mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +00:00

From Dave [1]: """ It was a mistake to introduce core/acpi.c and putting ACPI dependency on cxl_core when adding the extended linear cache support. """ Current implementation calls hmat_get_extended_linear_cache_size() of the ACPI subsystem. That external reference causes issue running cxl_test as there is no way to "mock" that function and ignore it when using cxl test. Instead of working around that using cxlrd ops and extensively expanding cxl_test code [1], just move HMAT calls out of the core module to cxl_acpi. Implement this by adding a @cache_size member to struct cxl_root_decoder. During initialization the cache size is determined and added to the root decoder object in cxl_acpi. Later on in cxl_core the cache_size parameter is used to setup extended linear caching. [1] https://patch.msgid.link/20250610172938.139428-1-dave.jiang@intel.com [ dj: Remove core/acpi.o from tools/testing/cxl/Kbuild ] [ dj: Add kdoc for cxlrd->cache_size ] Cc: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Robert Richter <rrichter@amd.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://patch.msgid.link/20250711151529.787470-1-rrichter@amd.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
22 lines
620 B
Makefile
22 lines
620 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_CXL_BUS) += cxl_core.o
|
|
obj-$(CONFIG_CXL_SUSPEND) += suspend.o
|
|
|
|
ccflags-y += -I$(srctree)/drivers/cxl
|
|
CFLAGS_trace.o = -DTRACE_INCLUDE_PATH=. -I$(src)
|
|
|
|
cxl_core-y := port.o
|
|
cxl_core-y += pmem.o
|
|
cxl_core-y += regs.o
|
|
cxl_core-y += memdev.o
|
|
cxl_core-y += mbox.o
|
|
cxl_core-y += pci.o
|
|
cxl_core-y += hdm.o
|
|
cxl_core-y += pmu.o
|
|
cxl_core-y += cdat.o
|
|
cxl_core-y += ras.o
|
|
cxl_core-$(CONFIG_TRACING) += trace.o
|
|
cxl_core-$(CONFIG_CXL_REGION) += region.o
|
|
cxl_core-$(CONFIG_CXL_MCE) += mce.o
|
|
cxl_core-$(CONFIG_CXL_FEATURES) += features.o
|
|
cxl_core-$(CONFIG_CXL_EDAC_MEM_FEATURES) += edac.o
|