]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Close client on suspend and restore client MSIx on resume
authorShiraz Saleem <shiraz.saleem@intel.com>
Mon, 19 Mar 2018 16:28:03 +0000 (09:28 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 19 Mar 2018 16:46:09 +0000 (09:46 -0700)
commit0750940bf73ecb438dd6172b38e104c599d5f7fe
tree9c5f3d7d9bdd33e49e8338e828d28ad9ef3b4d1c
parentba4187bd4e0989d665446b45f30f7a1daf905316
i40e: Close client on suspend and restore client MSIx on resume

During suspend client MSIx vectors are freed while they are still
in use causing a crash on entering S3.

Fix this calling client close before freeing up its MSIx vectors.
Also update the client MSIx vectors on resume before client
open is called.

Fixes commit b30383745021 ("i40e: shutdown all IRQs and disable MSI-X
when suspended")

Reported-by: Stefan Assmann <sassmann@redhat.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_client.c
drivers/net/ethernet/intel/i40e/i40e_main.c