Skip to content

Commit 878a7a7

Browse files
committed
.github: new cxl-test.cfg from ndctl/README.md; add --cxl-test
Now making sure that --cxl-test builds tests from ndctl. New .github/workflows/cxl-test.cfg based on ndctl.git/README.md. Still --no-run cause running in a Github runner VM. Also drop --cxl which was a misunderstanding: this merely configures QEMU which is not used here. Signed-off-by: Marc Herbert <[email protected]>
1 parent 1c43e0d commit 878a7a7

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

.github/workflows/cxl-test.cfg

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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
11+
12+
13+
# Duplicate of ndctl.git/README.md as of ndctl v80.
14+
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+
29+
# CXL test requirements
30+
CONFIG_CXL_BUS=m
31+
CONFIG_CXL_PCI=m
32+
CONFIG_CXL_ACPI=m
33+
34+
CONFIG_CXL_PMEM=m
35+
CONFIG_CXL_MEM=m
36+
CONFIG_CXL_PORT=m
37+
CONFIG_CXL_REGION=y
38+
CONFIG_CXL_REGION_INVALIDATION_TEST=y
39+
CONFIG_DAX=m
40+
CONFIG_TRANSPARENT_HUGEPAGE=y
41+
CONFIG_DEV_DAX=m
42+
CONFIG_DEV_DAX_CXL=m
43+
44+
45+
# Optimization: saves almost half the compilation time with just one
46+
# one-line. When making and testing changes above, comment out this line
47+
# to make the output of kconfig/merge_config.sh usable.
48+
CONFIG_DRM=n

.github/workflows/main.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
img_distro: ubuntu
3636
img_rel: noble
3737
arch: [x86_64]
38-
run_opts: [--cxl --ndctl-build]
38+
run_opts: [--cxl-test --ndctl-build]
3939

4040
steps:
4141
- uses: actions/checkout@v4
@@ -133,8 +133,10 @@ jobs:
133133
${{ matrix.cfg.os }}_${{ matrix.arch }}
134134
135135
- name: defconfig
136-
run: cd kernel &&
136+
working-directory: ${{ github.workspace }}/kernel
137+
run: |
137138
make defconfig ARCH=${{ matrix.arch }}
139+
./scripts/kconfig/merge_config.sh .config ../run_qemu/.github/workflows/cxl-test.cfg
138140
139141
- name: disable AppArmor
140142
run: |

0 commit comments

Comments
 (0)