]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix failing fw tracer allocation on s390
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 9 Apr 2020 07:46:20 +0000 (09:46 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 20 Apr 2020 21:30:21 +0000 (14:30 -0700)
commit392edd147c925835764b11ce2dee7448dd4b5d8a
tree8c970a3250a16d6209619592003eef4c5f8f4223
parentf1990240e869371e22b6dfbf0e87b5ddc5b03c2b
net/mlx5: Fix failing fw tracer allocation on s390

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: 73b82f23f168 ("net/mlx5: FW tracer, implement tracer logic")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c