1
- # Fragment tested with kernel v6.13 + make defconfig ARCH=x86_64
2
-
3
- # FIXME : this file is not enough to PASS all --suite=cxl tests yet
4
- # but it is already enough to automatically build and run.
5
-
6
-
7
- # Requirements missing from ndctl.git/README.md as of ndctl v80
8
-
9
- CONFIG_MEMORY_HOTPLUG =y
10
- CONFIG_MEMORY_HOTREMOVE =y
1
+ # CXL test requirements
11
2
3
+ # Fragment tested with kernel v6.15 and:
4
+ #
5
+ # make defconfig ARCH=x86_64
6
+ # ./scripts/kconfig/merge_config.sh .config $this_file
12
7
13
- # Duplicate of ndctl.git/README.md as of ndctl v80.
8
+ # WARNING: you may or may not need to disable KASLR, see issue
9
+ # https://github.com/pmem/ndctl/issues/278
14
10
15
- # libnvdimm requirements
16
- CONFIG_X86_PMEM_LEGACY =m
17
- CONFIG_ZONE_DEVICE =y
18
- CONFIG_LIBNVDIMM =m
19
- CONFIG_BLK_DEV_PMEM =m
20
- CONFIG_BTT =y
21
- CONFIG_NVDIMM_PFN =y
22
- CONFIG_NVDIMM_DAX =y
23
- CONFIG_DEV_DAX_PMEM =m
24
- CONFIG_ENCRYPTED_KEYS =y
25
- CONFIG_NVDIMM_SECURITY_TEST =y
26
- CONFIG_STRICT_DEVMEM =y
27
- CONFIG_IO_STRICT_DEVMEM =y
28
11
29
- # CXL test requirements
12
+ # This first section is mostly a duplicate of ndctl.git/README.md as of ndctl v81
13
+ # Try to keep both in sync.
30
14
CONFIG_CXL_BUS =m
31
15
CONFIG_CXL_PCI =m
32
16
CONFIG_CXL_ACPI =m
@@ -44,6 +28,25 @@ CONFIG_DEV_DAX_CXL=m
44
28
# --cxl-debug requirement (part of --cxl-test-run)
45
29
CONFIG_DYNAMIC_DEBUG =y
46
30
31
+
32
+ # These CXL test requirements are either directly in the libnvdimm
33
+ # section of ndctl.git/README.md, or indirect dependencies of it.
34
+
35
+ # Required by CXL_PMEM
36
+ CONFIG_LIBNVDIMM =m
37
+
38
+ # Needed by ndctl/test/cxl-security.sh specifically
39
+ CONFIG_ENCRYPTED_KEYS =y
40
+ CONFIG_NVDIMM_KEYS =y
41
+ CONFIG_NVDIMM_SECURITY_TEST =y
42
+
43
+
44
+ # These are required by DEV_DAX_PMEM, NVDIMM_DAX and a couple others
45
+ # below but missing from ndctl.git/README.md as of ndctl v81
46
+ CONFIG_MEMORY_HOTPLUG =y
47
+ CONFIG_MEMORY_HOTREMOVE =y
48
+
49
+
47
50
# Optimization: saves almost half the compilation time with just one
48
51
# one-line. When making and testing changes above, comment out this line
49
52
# to make the output of kconfig/merge_config.sh usable.
0 commit comments