[RFC PATCH v6] hw/arm/sbsa-ref: Support CXL Host Bridge & CFMW

2025-06-16 Thread wangyuquan
From: Yuquan Wang This creates a specific CXL host bridge (0001:00) with two cxl root ports on sbsa-ref. And the memory layout provides separate space windows for the cxl host bridge in the sbsa-ref memmap: - 64K CXL Host Bridge Component Registers (CHBCR) - 64K CXL_PIO - 128M CXL_MMIO - 256M

[RFC PATCH v3 2/2] pci-host/cxl: Support creation of a new CXL Host Bridge

2025-06-16 Thread wangyuquan
From: Yuquan Wang Define a new CXL host bridge type (TYPE_CXL_HOST). This is an independent CXL host bridge which combined GPEX features (ECAM, MMIO windows and irq) and CXL Host Bridge Component Registers (CHBCR). The root bus path of CXL_HOST is "0001:00", that would not affect the original PC

[RFC PATCH v3 0/2] cxl: Support creation of a new CXL Host Bridge

2025-06-16 Thread wangyuquan
v2 -> v3: - Update the commit message - Fix some alignment and space problems - Add a SPDX header for the new file - Remove unnecessary comments - Add CXL_HOST_BRIDGE config v1 -> v2: - Move the code of new bridge to hw/pci-host/cxl.c - Fix and simplify some logic on handling the different bridge t

[RFC PATCH v3 1/2] hw/pxb-cxl: Rename the pxb cxl host bridge

2025-06-16 Thread wangyuquan
This renames some descriptions and definitions of pxb cxl host bridge, since the original names can be confusing. Signed-off-by: Yuquan Wang --- hw/pci-bridge/pci_expander_bridge.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pci-bridge/pci_expander_bridge.c b/

[RFC PATCH v5] hw/arm/sbsa-ref: Support CXL Host Bridge & CFMW

2025-05-30 Thread wangyuquan
From: Yuquan Wang This creates a specific cxl host bridge (0001:00) with two cxl root ports on sbsa-ref. And the memory layout provides separate space windows for the cxl host bridge in the sbsa-ref memmap: - 64K CXL Host Bridge Component Registers (CHBCR) - 64K CXL_PIO - 128M CXL_MMIO - 256M

[RFC PATCH v2 0/2] cxl: Support creation of a new CXL Host Bridge

2025-05-30 Thread wangyuquan
v1 -> v2: - Move the code of new bridge to hw/pci-host/cxl.c - Fix and simplify some logic on handling the different bridge types Background == Currently the base CXL support for arm platforms is only on Jonathan's patches[1]. Some platform like SBSA-REF can be more like a real machine, th

[RFC PATCH v2 2/2] pci-host/cxl: Support creation of a new CXL Host Bridge

2025-05-30 Thread wangyuquan
From: Yuquan Wang This work defines a new cxl host bridge type (TYPE_CXL_HOST). This could be considered as a prototype of an independent cxl host bridge which combines gpex features (ecam, mmio windows & irq) and CHBCR at meanwhile. The root bus path of CXL_HOST is "0001:00", that would not aff

[RFC PATCH v2 1/2] hw/pxb-cxl: Rename the pxb cxl host bridge

2025-05-30 Thread wangyuquan
This renames some descriptions and definitions of pxb cxl host bridge, since the original names can be confusing. Signed-off-by: Yuquan Wang --- hw/pci-bridge/pci_expander_bridge.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pci-bridge/pci_expander_bridge.c b/