]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/{hfi1, qib}: Add handling of kernel restart
authorAlex Estrin <alex.estrin@intel.com>
Wed, 2 May 2018 13:43:15 +0000 (06:43 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 19:53:29 +0000 (15:53 -0400)
commit8d3e71136a080d007620472f50c7b3e63ba0f5cf
tree76f265621e2fe1a307bc336bd154e9eecf93ddde
parenta93a0a31111231bb1949f4a83b17238f0fa32d6a
IB/{hfi1, qib}: Add handling of kernel restart

A warm restart will fail to unload the driver, leaving link state
potentially flapping up to the point the BIOS resets the adapter.
Correct the issue by hooking the shutdown pci method,
which will bring port down.

Cc: <stable@vger.kernel.org> # 4.9.x
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/init.c
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_init.c