]> 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)
commite4e2d05706d0774ab740245098ebf172a81268bb
tree9c5f3d7d9bdd33e49e8338e828d28ad9ef3b4d1c
parent065a53a82f1af08b29840b0023d9c8e1a1b87136
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 51326ee3b393 ("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