linux/drivers/cxl
Cui Chao be5c5280cf cxl: Adjust the startup priority of cxl_pmem to be higher than that of cxl_acpi
During the cxl_acpi probe process, it checks whether the cxl_nvb device
and driver have been attached. Currently, the startup priority of the
cxl_pmem driver is lower than that of the cxl_acpi driver. At this point,
the cxl_nvb driver has not yet been registered on the cxl_bus, causing
the attachment check to fail. This results in a failure to add the root
nvdimm bridge, leading to a cxl_acpi probe failure and ultimately
affecting the subsequent loading of cxl drivers. As a consequence, only
one mem device object exists on the cxl_bus, while the cxl_port device
objects and decoder device objects are missing.

The solution is to raise the startup priority of cxl_pmem to be higher
than that of cxl_acpi, ensuring that the cxl_pmem driver is registered
before the aforementioned attachment check occurs.

Co-developed-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
Signed-off-by: Cui Chao <cuichao1753@phytium.com.cn>
Fixes: e7e222ad73 ("cxl: Move devm_cxl_add_nvdimm_bridge() to cxl_pmem.ko")
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://patch.msgid.link/20260319074535.1709250-1-cuichao1753@phytium.com.cn
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
2026-03-19 15:12:40 -07:00
..
core cxl/mbox: Use proper endpoint validity check upon sanitize 2026-03-18 08:49:29 -07:00
Kconfig cxl/acpi: Fix CXL_ACPI and CXL_PMEM Kconfig tristate mismatch 2026-03-06 08:08:53 -07:00
Makefile cxl/port: Fix CXL port initialization order when the subsystem is built-in 2024-10-25 16:06:49 -05:00
acpi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cxl.h cxl: Fix race of nvdimm_bus object when creating nvdimm objects 2026-02-24 08:33:21 -07:00
cxlmem.h Merge branch 'for-7.0/cxl-aer-prep' into cxl-for-next 2026-02-02 09:39:41 -07:00
cxlpci.h cxl/port: Map Port RAS registers 2026-02-02 08:45:57 -07:00
mem.c Merge branch 'for-7.0/cxl-aer-prep' into cxl-for-next 2026-02-02 09:39:41 -07:00
pci.c Merge branch 'for-7.0/cxl-aer-prep' into cxl-for-next 2026-02-02 09:39:41 -07:00
pmem.c cxl: Adjust the startup priority of cxl_pmem to be higher than that of cxl_acpi 2026-03-19 15:12:40 -07:00
pmu.h cxl/pci: Find and register CXL PMU devices 2023-05-30 11:20:35 -07:00
port.c Merge branch 'for-7.0/cxl-aer-prep' into cxl-for-next 2026-02-02 09:39:41 -07:00
security.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00