Skip to content

Commit 45d235c

Browse files
committed
cxl/region: Enable CONFIG_CXL_REGION to be toggled
Add help text and a label so the CXL_REGION config option can be toggled. This is mainly to enable compile testing without region support. Reviewed-by: Vishal Verma <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Reviewed-by: Gregory Price <[email protected]> Tested-by: Fan Ni <[email protected]> Link: https://lore.kernel.org/r/167601998765.1924368.258370414771847699.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <[email protected]>
1 parent 93c177f commit 45d235c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/cxl/Kconfig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,22 @@ config CXL_SUSPEND
104104
depends on SUSPEND && CXL_MEM
105105

106106
config CXL_REGION
107-
bool
107+
bool "CXL: Region Support"
108108
default CXL_BUS
109109
# For MAX_PHYSMEM_BITS
110110
depends on SPARSEMEM
111111
select MEMREGION
112112
select GET_FREE_REGION
113+
help
114+
Enable the CXL core to enumerate and provision CXL regions. A CXL
115+
region is defined by one or more CXL expanders that decode a given
116+
system-physical address range. For CXL regions established by
117+
platform-firmware this option enables memory error handling to
118+
identify the devices participating in a given interleaved memory
119+
range. Otherwise, platform-firmware managed CXL is enabled by being
120+
placed in the system address map and does not need a driver.
121+
122+
If unsure say 'y'
113123

114124
config CXL_REGION_INVALIDATION_TEST
115125
bool "CXL: Region Cache Management Bypass (TEST)"

0 commit comments

Comments
 (0)