Skip to content

PCI: dwc: Do not enumerate bus before endpoint devices are ready

Niklas Cassel linux-arm-kernel linux-arm-msm linux-pci linux-rockchip 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 12 repliesApplied
  2. v36 patches 8 repliesSuperseded
  3. v25 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches15 repliesSuperseded

Changes in v4 from the cover letter

-Move LINK_WAIT_MAX_RETRIES and LINK_WAIT_SLEEP_MS to pci.h (Mani) -Only wait PCIE_RESET_CONFIG_WAIT_MS if > 5 GT/s (Mani) -Fix nit in commit log (Mani)

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/7PCI: Rename PCIE_RESET_CONFIG_DEVICE_WAIT_MS to PCIE_RESET_CONFIG_WAIT_MSdrivers/pci/controller/plda/pcie-starfive.c drivers/pci/pci.h+2 -20 replies
2/7PCI: rockchip-host: Use macro PCIE_RESET_CONFIG_WAIT_MSdrivers/pci/controller/pcie-rockchip-host.c drivers/pci/pci.h+1 -80 replies
3/7PCI: dw-rockchip: Wait PCIE_RESET_CONFIG_WAIT_MS after link-up IRQdrivers/pci/controller/dwc/pcie-dw-rockchip.c+1 -00 replies
4/7PCI: qcom: Wait PCIE_RESET_CONFIG_WAIT_MS after link-up IRQdrivers/pci/controller/dwc/pcie-qcom.c+1 -00 replies
5/7PCI: dwc: Ensure that dw_pcie_wait_for_link() waits 100 ms after link updrivers/pci/controller/dwc/pcie-designware.c+8 -011 replies
6/7PCI: Move link up wait time and max retries macros to pci.hdrivers/pci/controller/dwc/pcie-designware.c drivers/pci/controller/dwc/pcie-designware.h drivers/pci/pci.h+7 -70 replies
7/7PCI: Reduce PCIE_LINK_WAIT_SLEEP_MSdrivers/pci/controller/dwc/pcie-designware.c drivers/pci/pci.h+13 -40 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchWilfred MallawaDamien Le Moal
1/7
2/7R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7
7/7R-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/7] PCI: dwc: Do not enumerate bus before endpoint devices are ready

Hello all,

The DWC PCIe controller driver currently does not follow the PCIe specification with regards to the delays after link training, before sending out configuration requests. This series fixes this.

At the same time, PATCH 3/7 addresses a regression where a Plextor NVMe drive fails to be configured correctly. With this series, the Plextor NVMe drive works once again.

Kind regards,
Niklas

Changes since v3:
-Move LINK_WAIT_MAX_RETRIES and LINK_WAIT_SLEEP_MS to pci.h (Mani) -Only wait PCIE_RESET_CONFIG_WAIT_MS if > 5 GT/s (Mani) -Fix nit in commit log (Mani)

Niklas Cassel (7):
PCI: Rename PCIE_RESET_CONFIG_DEVICE_WAIT_MS to
PCIE_RESET_CONFIG_WAIT_MS
PCI: rockchip-host: Use macro PCIE_RESET_CONFIG_WAIT_MS
PCI: dw-rockchip: Wait PCIE_RESET_CONFIG_WAIT_MS after link-up IRQ
PCI: qcom: Wait PCIE_RESET_CONFIG_WAIT_MS after link-up IRQ
PCI: dwc: Ensure that dw_pcie_wait_for_link() waits 100 ms after link
up
PCI: Move link up wait time and max retries macros to pci.h
PCI: Reduce PCIE_LINK_WAIT_SLEEP_MS

 drivers/pci/controller/dwc/pcie-designware.c  | 20 +++++++++++++++----
 drivers/pci/controller/dwc/pcie-designware.h  |  4 ----
 drivers/pci/controller/dwc/pcie-dw-rockchip.c |  1 +
 drivers/pci/controller/dwc/pcie-qcom.c        |  1 +
 drivers/pci/controller/pcie-rockchip-host.c   |  2 +-
 drivers/pci/controller/plda/pcie-starfive.c   |  2 +-
 drivers/pci/pci.h                             | 18 +++++++++--------
 7 files changed, 30 insertions(+), 18 deletions(-)
Signature · 1 line
2.49.0