1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlx5/core/diag
Niklas Schnelle 040287785f net/mlx5: Fix failing fw tracer allocation on s390
commit a019b36123 upstream.

On s390 FORCE_MAX_ZONEORDER is 9 instead of 11, thus a larger kzalloc()
allocation as done for the firmware tracer will always fail.

Looking at mlx5_fw_tracer_save_trace(), it is actually the driver itself
that copies the debug data into the trace array and there is no need for
the allocation to be contiguous in physical memory. We can therefor use
kvzalloc() instead of kzalloc() and get rid of the large contiguous
allcoation.

Fixes: f53aaa31cc ("net/mlx5: FW tracer, implement tracer logic")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-02 08:48:52 +02:00
..
crdump.c net/mlx5: Issue SW reset on FW assert 2019-06-13 13:23:18 -07:00
en_rep_tracepoint.h net/mlx5e: Add trace point for neigh update 2019-08-21 15:55:18 -07:00
en_tc_tracepoint.c net/mlx5e: Add tc flower tracepoints 2019-08-21 15:55:17 -07:00
en_tc_tracepoint.h net/mlx5e: Add trace point for neigh used value update 2019-08-21 15:55:18 -07:00
fs_tracepoint.c net/mlx5: Add trace points for flow tables create/destroy 2019-01-25 12:16:14 -08:00
fs_tracepoint.h net/mlx5e: Specifying known origin of packets matching the flow 2019-06-26 12:01:28 -07:00
fw_tracer.c net/mlx5: Fix failing fw tracer allocation on s390 2020-05-02 08:48:52 +02:00
fw_tracer.h net/mlx5: Add support for FW reporter dump 2019-06-13 13:23:18 -07:00
fw_tracer_tracepoint.h net/mlx5: Get rid of storing copy of device name 2019-04-29 16:55:05 -07:00