Skip to content

fm10k fixes for suspend/resume and related

Jacob Keller intel-wired-lan 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest18 patches 0 repliesNew

Changes in v2 from the cover letter

* This series does not include the 2 patches Jeff already applied on the queue, which are the first two patches of the v1 series
* Added 2 new patches to fix a few issues found in testing

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18fm10k: prevent multiple threads updating statisticsdrivers/net/ethernet/intel/fm10k/fm10k.h drivers/net/ethernet/intel/fm10k/fm10k_pci.c+15 -01 reply
2/18fm10k: Reset mailbox global interruptsdrivers/net/ethernet/intel/fm10k/fm10k_mbx.h drivers/net/ethernet/intel/fm10k/fm10k_pf.c+6 -01 reply
3/18fm10k: don't stop reset due to FM10K_ERR_REQUESTS_PENDINGdrivers/net/ethernet/intel/fm10k/fm10k_ethtool.c drivers/net/ethernet/intel/fm10k/fm10k_pf.c drivers/net/ethernet/intel/fm10k/fm10k_type.h +1 more+24 -151 reply
4/18fm10k: perform data path reset even when switch is not readydrivers/net/ethernet/intel/fm10k/fm10k_pf.c+0 -51 reply
5/18fm10k: use actual hardware registers when checking for pending Txdrivers/net/ethernet/intel/fm10k/fm10k_main.c+5 -31 reply
6/18fm10k: only warn when stop_hw fails with FM10K_ERR_REQUESTS_PENDINGdrivers/net/ethernet/intel/fm10k/fm10k_pci.c+4 -11 reply
7/18fm10k: wait for queues to drain if stop_hw() fails oncedrivers/net/ethernet/intel/fm10k/fm10k.h drivers/net/ethernet/intel/fm10k/fm10k_main.c drivers/net/ethernet/intel/fm10k/fm10k_pci.c+40 -71 reply
8/18fm10k: split fm10k_reinit into two functionsdrivers/net/ethernet/intel/fm10k/fm10k_pci.c+28 -51 reply
9/18fm10k: implement prepare_suspend and handle_resumedrivers/net/ethernet/intel/fm10k/fm10k_pci.c+38 -01 reply
10/18fm10k: use common reset flow when handling io errors from PCI stackdrivers/net/ethernet/intel/fm10k/fm10k_pci.c+7 -531 reply
11/18fm10k: implement reset_notify handler for PCIe FLR eventsdrivers/net/ethernet/intel/fm10k/fm10k_pci.c+33 -01 reply
12/18fm10k: use common flow for suspend and resumedrivers/net/ethernet/intel/fm10k/fm10k_pci.c+3 -701 reply
13/18fm10k: enable bus master after every resetdrivers/net/ethernet/intel/fm10k/fm10k_pci.c+2 -01 reply
14/18fm10k: check if PCIe link is restoreddrivers/net/ethernet/intel/fm10k/fm10k_pci.c+13 -01 reply
15/18fm10k: implement request_lport_map pointerdrivers/net/ethernet/intel/fm10k/fm10k_common.c drivers/net/ethernet/intel/fm10k/fm10k_pf.c drivers/net/ethernet/intel/fm10k/fm10k_type.h+9 -131 reply
16/18fm10k: force link to remain down for at least a second on resume eventsdrivers/net/ethernet/intel/fm10k/fm10k_pci.c+4 -01 reply
17/18fm10k: return proper error code when pci_enable_msix_range failsdrivers/net/ethernet/intel/fm10k/fm10k_main.c+1 -11 reply
18/18fm10k: bump version numberdrivers/net/ethernet/intel/fm10k/fm10k_main.c+1 -11 reply

Reviews trailers per patch

None of the 18 patches has a Reviewed-by or Acked-by.

PatchKrishneil Singh
1/18T-b
2/18T-b
3/18T-b
4/18T-b
5/18T-b
6/18T-b
7/18T-b
8/18T-b
9/18T-b
10/18T-b
11/18T-b
12/18T-b
13/18T-b
14/18T-b
15/18T-b
16/18T-b
17/18T-b
18/18T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Intel-wired-lan] [PATCH v2 00/18] fm10k fixes for suspend/resume and related

This series implements several fixes for suspend/resume and related behaviors for both PF and VF driver. The major changes are to commonize the suspend/resume, io_error_detected, reset_notify and reinit flows to use one set of functions. This ensures that all flows set the same state, preventing multiple flows from interacting together. In addition it ensures that each flow does every step that it needs. This was previously overlooked because each flow was coded separately.

In addition, there are several bug fixes scattered around the series for issues that came up when testing the changes and the bugs that these changes fix.

Changes in V2:
* This series does not include the 2 patches Jeff already applied on the queue, which are the first two patches of the v1 series
* Added 2 new patches to fix a few issues found in testing

Jacob Keller (17):
fm10k: prevent multiple threads updating statistics
fm10k: don't stop reset due to FM10K_ERR_REQUESTS_PENDING
fm10k: perform data path reset even when switch is not ready
fm10k: use actual hardware registers when checking for pending Tx
fm10k: only warn when stop_hw fails with FM10K_ERR_REQUESTS_PENDING
fm10k: wait for queues to drain if stop_hw() fails once
fm10k: split fm10k_reinit into two functions
fm10k: implement prepare_suspend and handle_resume
fm10k: use common reset flow when handling io errors from PCI stack
fm10k: implement reset_notify handler for PCIe FLR events
fm10k: use common flow for suspend and resume
fm10k: enable bus master after every reset
fm10k: check if PCIe link is restored
fm10k: implement request_lport_map pointer
fm10k: force link to remain down for at least a second on resume
events
fm10k: return proper error code when pci_enable_msix_range fails
fm10k: bump version number

Ngai-Mint Kwan (1):
fm10k: Reset mailbox global interrupts

 drivers/net/ethernet/intel/fm10k/fm10k.h         |   2 +
 drivers/net/ethernet/intel/fm10k/fm10k_common.c  |   6 +-
 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c |   2 +
 drivers/net/ethernet/intel/fm10k/fm10k_main.c    |  14 +-
 drivers/net/ethernet/intel/fm10k/fm10k_mbx.h     |   2 +
 drivers/net/ethernet/intel/fm10k/fm10k_pci.c     | 309 +++++++++++++----------
 drivers/net/ethernet/intel/fm10k/fm10k_pf.c      |  38 ++-
 drivers/net/ethernet/intel/fm10k/fm10k_type.h    |   2 +
 drivers/net/ethernet/intel/fm10k/fm10k_vf.c      |  12 +-
 9 files changed, 223 insertions(+), 164 deletions(-)
Signature · 1 line
2.9.0.rc1.405.g81f467e