Skip to content

Wait for device readiness after D3hot -> D0uninitialized transition

Bjorn Helgaas linux-pci lkml 2 versions – Applied

Status from this message: I applied these to pci/reset for v7.2.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied
  2. v11 patch 8 repliesSuperseded

Changes in v2 from the cover letter

- Log device readiness timeouts as errors, not warnings
- On timeout, set dev->current_state to D3cold and return -EIO

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: Log device readiness timeouts as errorsdrivers/pci/pci.c+2 -20 replies
2/2PCI: Wait for device readiness after D3hot -> D0uninitialized transitiondrivers/pci/pci.c+22 -23 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRafael J. Wysocki (Intel)
SeriesR-b
1/2
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Wait for device readiness after D3hot -> D0uninitialized transition

In pci_power_up(), wait for device to become ready after a soft reset (D3hot->D0uninitialized transition). We already wait 10 ms, but even after that, the device is permitted to respond to config requests with Request Retry Status (RRS) completion status. Use pci_dev_wait() to wait for successful completion.

Bjorn Helgaas (2):
PCI: Log device readiness timeouts as errors
PCI: Wait for device readiness after D3hot -> D0uninitialized
transition

 drivers/pci/pci.c | 28 ++++++++++++++++++++++++----
 1 file changed, 24 insertions(+), 4 deletions(-)

Changes since v1:
- Log device readiness timeouts as errors, not warnings
- On timeout, set dev->current_state to D3cold and return -EIO

v1: https://lore.kernel.org/all/[email protected]/