]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix kdump when iommu=on
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 1 Apr 2015 07:02:20 +0000 (10:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Apr 2015 16:30:39 +0000 (12:30 -0400)
commitea5aac4dee9edf4861dd8204ea199dbba823eac1
tree293c6edd632c457b30aae1048f76e510edd7bd60
parent238d8bb51d4d9f51aac4bed98d57ef9f418a0de6
bnx2x: Fix kdump when iommu=on

When IOMM-vtd is active, once main kernel crashes unfinished DMAE transactions
will be blocked, putting the HW in an error state which will cause further
transactions to timeout.

Current employed logic uses wrong macros, causing the first function to be the
only function that cleanups that error state during its probe/load.

This patch allows all the functions to successfully re-load in kdump kernel.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c