]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Avoid system crash when enabling many VFs
authorEli Cohen <eli@mellanox.com>
Sun, 27 Nov 2016 13:18:21 +0000 (15:18 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 13 Dec 2016 18:39:47 +0000 (13:39 -0500)
commit467aa7b37bf2161b74d1eafdd09bf44f3f2e3c7a
tree2086a5c12f6c0302f77b97929dd324046fc25253
parent34fe55fa8613d6d91ac2a0e9a0a54fc48da19d60
IB/mlx5: Avoid system crash when enabling many VFs

When enabling many VFs, the total amount of DMA mappings increase
significantly. This causes DMA allocations to take a lot of time
since they are serialized in the kernel.

As a result the driver enters into fatal condition due to
timeout and the system hangs. To recover from this we disable
MR cache for VFs.

PFs will still have a full cache and VFs cache can be manipulated
as usual after driver load.

Fixes: 7c120481afcc ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c