Skip to content

drm/xe: Fix KUnit build issues

Mauro Carvalho Chehab requested to merge mchehab_kernel/kernel:kunit into xe

The dependency chain for KUnit is broken: it currently misses DEBUG_FS and DRM_FBDEV_EMULATION.

Without that, trying to build tests fail.

After the patch, KUnit works again:

$ ./tools/testing/kunit/kunit.py run --arch x86_64 --kunitconfig drivers/gpu/drm/xe/.kunitconfig
[21:35:38] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=x86_64 O=.kunit olddefconfig
[21:35:39] Building KUnit Kernel ...
Populating config with:
$ make ARCH=x86_64 O=.kunit olddefconfig
Building with:
$ make ARCH=x86_64 O=.kunit --jobs=8
[21:36:27] Starting KUnit Kernel (1/1)...
[21:36:27] ============================================================
Running tests with:
$ qemu-system-x86_64 -nodefaults -m 1024 -kernel .kunit/arch/x86/boot/bzImage -append 'kunit.enable=1 console=ttyS0 kunit_shutdown=reboot' -no-reboot -nographic -serial stdio
[21:36:28] ==================== xe_bo (2 subtests) ====================
[21:36:28] [PASSED] xe_ccs_migrate_kunit
[21:36:28] [PASSED] xe_bo_evict_kunit
[21:36:28] ====================== [PASSED] xe_bo ======================
[21:36:28] ================== xe_dma_buf (1 subtest) ==================
[21:36:28] [PASSED] xe_dma_buf_kunit
[21:36:28] =================== [PASSED] xe_dma_buf ====================
[21:36:28] ================== xe_migrate (1 subtest) ==================
[21:36:28] [PASSED] xe_migrate_sanity_kunit
[21:36:28] =================== [PASSED] xe_migrate ====================
[21:36:28] ============================================================
[21:36:28] Testing complete. Ran 4 tests: passed: 4
[21:36:28] Elapsed time: 50.815s total, 1.176s configuring, 47.972s building, 1.045s running

Merge request reports