From: Terry Bowman <terry.bow...@amd.com>

ACPI includes a CXL _OSC for the OS to communicate what it knows of CXL
device topologies. To date Linux has added support for CXL 2.0 (VH) port
topologies, hotplug, and error handling. Now that the driver also know
how to enumerate CXL 1.1 (RCH) port topologies, indicate that capability
via CXL _OSC. See CXL3.0 Table 9-26 'Interpretation of CXL _OSC Support
Field'

Signed-off-by: Terry Bowman <terry.bow...@amd.com>
Signed-off-by: Robert Richter <rrich...@amd.com>
Acked-by: Rafael J. Wysocki <rafael.j.wyso...@intel.com>
[djbw: wordsmith changelog]
Signed-off-by: Dan Williams <dan.j.willi...@intel.com>
---
 drivers/acpi/pci_root.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index 4e3db20e9cbb..b3c202d2a433 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -493,6 +493,7 @@ static u32 calculate_cxl_support(void)
        u32 support;
 
        support = OSC_CXL_2_0_PORT_DEV_REG_ACCESS_SUPPORT;
+       support |= OSC_CXL_1_1_PORT_REG_ACCESS_SUPPORT;
        if (pci_aer_available())
                support |= OSC_CXL_PROTOCOL_ERR_REPORTING_SUPPORT;
        if (IS_ENABLED(CONFIG_HOTPLUG_PCI_PCIE))


Reply via email to