Skip to content

RFC Implement initial CXL Timeout & Isolation support

Ben Cheatham linux-cxl linux-mm linux-pci oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cxl/core: Add CXL Timeout & Isolation capability parsingdrivers/cxl/core/regs.c drivers/cxl/cxl.h+13 -00 replies
2/6pcie/cxl_timeout: Add CXL Timeout & Isolation service driverdrivers/cxl/cxl.h drivers/pci/pcie/Kconfig drivers/pci/pcie/Makefile +3 more+222 -13 replies
3/6pcie/cxl_timeout: Add CXL.mem timeout range programmingdrivers/cxl/cxl.h drivers/pci/pcie/cxl_timeout.c+198 -04 replies
4/6pcie/cxl_timeout: Add CXL.mem error isolation supportdrivers/cxl/cxl.h drivers/pci/pcie/cxl_timeout.c+41 -12 replies
5/6pcie/portdrv: Add CXL MSI/-X allocationdrivers/cxl/cxl.h drivers/pci/pcie/cxl_timeout.c drivers/pci/pcie/portdrv.c +1 more+50 -42 replies
6/6pcie/cxl_timeout: Add CXL.mem Timeout & Isolation interrupt supportdrivers/cxl/core/pci.c drivers/cxl/core/port.c drivers/cxl/core/region.c +4 more+278 -12 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/6] Implement initial CXL Timeout & Isolation support

Implement initial support for CXL.mem Timeout & Isolation (CXL 3.0 12.3.2). This series implements support for CXL.mem enabling and programming CXL.mem transaction timeout, CXL.mem error isolation, and error isolation interrupts for CXL-enabled PCIe root ports that implement the CXL Timeout & Isolation capability.

I am operating under the assumption that recovery from error isolation will be more involved than just resetting the port and turning off isolation, so that flow is not implemented here. There is also no support for CXL.cache, but I plan to eventually implement both.

The series also introduces a PCIe port bus driver dependency on the CXL core. I expect to be able to remove that when when my team submits patches for a future rework of the PCIe port bus driver.

I have done some testing using QEMU by adding the isolation registers and a hacked-up QMP command to test the interrupt flow, but I *DID NOT* implement the actual isolation feature and the subsequent device behavior. I'd be willing to share these changes (and my config) if anyone is interested in testing this.

Any thoughts/comments would be greatly appreciated!

Ben Cheatham (6):
cxl/core: Add CXL Timeout & Isolation capability parsing pcie/cxl_timeout: Add CXL Timeout & Isolation service driver pcie/cxl_timeout: Add CXL.mem timeout range programming pcie/cxl_timeout: Add CXL.mem error isolation support pcie/portdrv: Add CXL MSI/-X allocation pcie/cxl_timeout: Add CXL.mem Timeout & Isolation interrupt support

 drivers/cxl/core/pci.c         |   5 +
 drivers/cxl/core/port.c        |  80 +++++
 drivers/cxl/core/region.c      |   9 +
 drivers/cxl/core/regs.c        |   7 +
 drivers/cxl/cxl.h              |  37 +++
 drivers/cxl/cxlpci.h           |   9 +
 drivers/pci/pcie/Kconfig       |  10 +
 drivers/pci/pcie/Makefile      |   1 +
 drivers/pci/pcie/cxl_timeout.c | 592 +++++++++++++++++++++++++++++++++
 drivers/pci/pcie/portdrv.c     |  36 +-
 drivers/pci/pcie/portdrv.h     |  17 +-
 11 files changed, 799 insertions(+), 4 deletions(-)
 create mode 100644 drivers/pci/pcie/cxl_timeout.c
Signature · 1 line
2.34.1