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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:23:09 +0000 (11:23 +0200)
commit9cac0a08e476775df3ae5f90730a766ea01b6232
tree774638d689b07a71b9b6fd88e55e038cb4ba4cbb
parent9321e8303406e2a194ba8e88fa8b57ee360f3f00
IB/{hfi1, qib}: Add handling of kernel restart

commit 8d3e71136a080d007620472f50c7b3e63ba0f5cf upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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