Skip to content

cxl: Delay HB port and switch dport probing until endpoint dev probe

Dave Jiang linux-cxl 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cxl: Saperate out CXL dport->id vs actual dport hardware iddrivers/cxl/core/port.c drivers/cxl/cxl.h+33 -114 replies
2/4cxl: Defer hardware dport->port_id assignment and registers probingdrivers/cxl/core/core.h drivers/cxl/core/pci.c drivers/cxl/core/port.c +2 more+114 -556 replies
3/4cxl: Add late host bridge uport mapping updatedrivers/cxl/acpi.c drivers/cxl/core/port.c drivers/cxl/cxl.h +1 more+93 -195 replies
4/4cxl/test: Add workaround for cxl_test for cxl_core calling mocked functionsdrivers/cxl/core/hdm.c drivers/cxl/cxl.h tools/testing/cxl/Kbuild +1 more+82 -222 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] cxl: Delay HB port and switch dport probing until endpoint dev probe

This series attempts to delay the setup of dports and Host Bridge (HB) register probing until when the endpoint device (memdev) is being probed. At this point, the CXL link is established and all the devices along the CXL link path up to the Root Port (RP) should be active.

And hopefully this help a bit with Robert's issue raised in the "Inactive downstream port handling" series [1]. Testing would be appreicated. Thank you!

[1]: https://lore.kernel.org/linux-cxl/[email protected]/

---
Dave Jiang (4):
cxl: Saperate out CXL dport->id vs actual dport hardware id
cxl: Defer hardware dport->port_id assignment and registers probing
cxl: Add late host bridge uport mapping update
cxl/test: Add workaround for cxl_test for cxl_core calling mocked functions

 drivers/cxl/acpi.c            |  17 +++++-
 drivers/cxl/core/core.h       |   4 ++
 drivers/cxl/core/hdm.c        |  51 ++++++++++++++---
 drivers/cxl/core/pci.c        |  74 +++++++++++++++++++++----
 drivers/cxl/core/port.c       | 186 ++++++++++++++++++++++++++++++++++++++++++++++----------------
 drivers/cxl/cxl.h             |  25 +++++++++
 drivers/cxl/port.c            |  21 +------
 tools/testing/cxl/Kbuild      |   3 -
 tools/testing/cxl/test/mock.c |  34 ++++++++----
 9 files changed, 315 insertions(+), 100 deletions(-)      

base-commit: a0ba0d4ec5e79ce96317a057ce4a60d8aaf0af6e