* [PATCH v1 1/3] drm/xe/Makefile: remove unused variable
2026-12-03 13:38 [PATCH v1 0/3] drm/xe: build related cleanups Michał Grzelak
@ 2026-12-03 13:38 ` Michał Grzelak
2026-12-03 13:51 ` sashiko-bot
2026-12-03 13:38 ` [PATCH v1 2/3] drm/xe/Makefile: align build log output Michał Grzelak
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Michał Grzelak @ 2026-12-03 13:38 UTC (permalink / raw)
To: intel-xe
Cc: Michał Grzelak, Michał Grzelak, Matt Atwood,
Matthew Brost, Thomas Hellström, Rodrigo Vivi
hostprogs is not used. Delete it.
Signed-off-by: Michał Grzelak <michal.grzelak@linux.intel.com>
---
drivers/gpu/drm/xe/Makefile | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index acd32476356cc..baaecc0ef97e2 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -13,7 +13,6 @@ subdir-ccflags-y += -I$(obj) -I$(src)
# generated sources
-hostprogs := xe_gen_wa_oob
generated_oob := $(obj)/generated/xe_wa_oob.c $(obj)/generated/xe_wa_oob.h
quiet_cmd_wa_oob = GEN $(notdir $(generated_oob))
cmd_wa_oob = mkdir -p $(@D); $(obj)/xe_gen_wa_oob $(src)/xe_wa_oob.rules $(generated_oob)
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH v1 1/3] drm/xe/Makefile: remove unused variable
2026-12-03 13:38 ` [PATCH v1 1/3] drm/xe/Makefile: remove unused variable Michał Grzelak
@ 2026-12-03 13:51 ` sashiko-bot
0 siblings, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-12-03 13:51 UTC (permalink / raw)
To: Michał Grzelak, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/xe: removing hostprogs breaks xe_gen_wa_oob build and clean
--
commit 20689790aba8751d4b9f180036b57b8f71aa6c14
Author: Michał Grzelak <michal.grzelak@linux.intel.com>
drm/xe/Makefile: remove unused variable
This commit removes the hostprogs := xe_gen_wa_oob assignment from
drivers/gpu/drm/xe/Makefile.
> diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
> index 31955c9277b2b..61fdae5fe064a 100644
> --- a/drivers/gpu/drm/xe/Makefile
> +++ b/drivers/gpu/drm/xe/Makefile
> @@ -13,7 +13,6 @@ subdir-ccflags-y += -I$(obj) -I$(src)
>
> # generated sources
>
> -hostprogs := xe_gen_wa_oob
> generated_oob := $(obj)/generated/xe_wa_oob.c $(obj)/generated/xe_wa_oob.h
> quiet_cmd_wa_oob = GEN $(notdir $(generated_oob))
> cmd_wa_oob = mkdir -p $(@D); $(obj)/xe_gen_wa_oob $(src)/xe_wa_oob.rules $(generated_oob)
[Severity: High]
Does removing hostprogs break building $(obj)/xe_gen_wa_oob?
hostprogs is used by scripts/Makefile.build to include
scripts/Makefile.host, which defines the rule to compile xe_gen_wa_oob
from xe_gen_wa_oob.c. Without it, clean builds of the xe driver fail
because the generated_oob rules require $(obj)/xe_gen_wa_oob.
scripts/Makefile.clean also uses hostprogs, so make clean stops removing
xe_gen_wa_oob as well.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203133819.1425896-1-michal.grzelak@linux.intel.com?part=1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 2/3] drm/xe/Makefile: align build log output
2026-12-03 13:38 [PATCH v1 0/3] drm/xe: build related cleanups Michał Grzelak
2026-12-03 13:38 ` [PATCH v1 1/3] drm/xe/Makefile: remove unused variable Michał Grzelak
@ 2026-12-03 13:38 ` Michał Grzelak
2026-12-03 13:38 ` [PATCH v1 3/3] drm/xe/wa: s/<whitespace>/<tab>/ Michał Grzelak
2026-12-03 15:13 ` ✗ CI.KUnit: failure for drm/xe: build related cleanups Patchwork
3 siblings, 0 replies; 6+ messages in thread
From: Michał Grzelak @ 2026-12-03 13:38 UTC (permalink / raw)
To: intel-xe
Cc: Michał Grzelak, Michał Grzelak, Matt Atwood,
Matthew Brost, Thomas Hellström, Rodrigo Vivi
Currently generating xe-device workaround files produces misaligned
build log:
DESCEND objtool
GEN xe_wa_oob.c xe_wa_oob.h
GEN xe_device_wa_oob.c xe_device_wa_oob.h
CC [M] drivers/gpu/drm/xe/xe_bb.o
CC [M] drivers/gpu/drm/xe/xe_bo.o
CC [M] drivers/gpu/drm/xe/xe_bo_evict.o
Indent build log by replacing tabulation symbol with whitespaces.
Signed-off-by: Michał Grzelak <michal.grzelak@linux.intel.com>
---
drivers/gpu/drm/xe/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index baaecc0ef97e2..76642aff8ae79 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -21,7 +21,7 @@ $(obj)/generated/%_wa_oob.c $(obj)/generated/%_wa_oob.h: $(obj)/xe_gen_wa_oob \
$(call cmd,wa_oob)
generated_device_oob := $(obj)/generated/xe_device_wa_oob.c $(obj)/generated/xe_device_wa_oob.h
-quiet_cmd_device_wa_oob = GEN $(notdir $(generated_device_oob))
+quiet_cmd_device_wa_oob = GEN $(notdir $(generated_device_oob))
cmd_device_wa_oob = mkdir -p $(@D); $(obj)/xe_gen_wa_oob $(src)/xe_device_wa_oob.rules $(generated_device_oob)
$(obj)/generated/%_device_wa_oob.c $(obj)/generated/%_device_wa_oob.h: $(obj)/xe_gen_wa_oob \
$(src)/xe_device_wa_oob.rules
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH v1 3/3] drm/xe/wa: s/<whitespace>/<tab>/
2026-12-03 13:38 [PATCH v1 0/3] drm/xe: build related cleanups Michał Grzelak
2026-12-03 13:38 ` [PATCH v1 1/3] drm/xe/Makefile: remove unused variable Michał Grzelak
2026-12-03 13:38 ` [PATCH v1 2/3] drm/xe/Makefile: align build log output Michał Grzelak
@ 2026-12-03 13:38 ` Michał Grzelak
2026-12-03 15:13 ` ✗ CI.KUnit: failure for drm/xe: build related cleanups Patchwork
3 siblings, 0 replies; 6+ messages in thread
From: Michał Grzelak @ 2026-12-03 13:38 UTC (permalink / raw)
To: intel-xe
Cc: Michał Grzelak, Michał Grzelak, Matt Atwood,
Matthew Brost, Thomas Hellström, Rodrigo Vivi
Workaround 15015404425 is indented with whitespaces leading to
producing generated/xe_device_wa_oob.c file with:
XE_RTP_RULES( PLATFORM(LUNARLAKE), OR,
PLATFORM(PANTHERLAKE)) },
Indent rule for the workaround with tabulation instead of whitespace.
Signed-off-by: Michał Grzelak <michal.grzelak@linux.intel.com>
---
drivers/gpu/drm/xe/xe_device_wa_oob.rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_device_wa_oob.rules b/drivers/gpu/drm/xe/xe_device_wa_oob.rules
index 300207596893b..46874d45d9152 100644
--- a/drivers/gpu/drm/xe/xe_device_wa_oob.rules
+++ b/drivers/gpu/drm/xe/xe_device_wa_oob.rules
@@ -1,5 +1,5 @@
22010954014 PLATFORM(DG2)
-15015404425 PLATFORM(LUNARLAKE)
+15015404425 PLATFORM(LUNARLAKE)
PLATFORM(PANTHERLAKE)
22019338487_display PLATFORM(LUNARLAKE)
14022085890 SUBPLATFORM(BATTLEMAGE, G21)
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* ✗ CI.KUnit: failure for drm/xe: build related cleanups
2026-12-03 13:38 [PATCH v1 0/3] drm/xe: build related cleanups Michał Grzelak
` (2 preceding siblings ...)
2026-12-03 13:38 ` [PATCH v1 3/3] drm/xe/wa: s/<whitespace>/<tab>/ Michał Grzelak
@ 2026-12-03 15:13 ` Patchwork
3 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2026-12-03 15:13 UTC (permalink / raw)
To: Michał Grzelak; +Cc: intel-xe
== Series Details ==
Series: drm/xe: build related cleanups
URL : https://patchwork.freedesktop.org/series/180424/
State : failure
== Summary ==
+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[15:12:42] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[15:12:47] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[15:13:08] Starting KUnit Kernel (1/1)...
[15:13:08] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[15:13:08] ================= gpu_buddy (15 subtests) ==================
[15:13:08] [PASSED] gpu_test_buddy_alloc_limit
[15:13:08] [PASSED] gpu_test_buddy_alloc_optimistic
[15:13:08] [PASSED] gpu_test_buddy_alloc_pessimistic
[15:13:08] [PASSED] gpu_test_buddy_alloc_pathological
[15:13:08] [PASSED] gpu_test_buddy_alloc_contiguous
[15:13:08] [PASSED] gpu_test_buddy_alloc_clear
[15:13:08] [PASSED] gpu_test_buddy_alloc_range
[15:13:08] [PASSED] gpu_test_buddy_alloc_range_bias
[15:13:08] [PASSED] gpu_test_buddy_alloc_range_clear_guard
[15:13:09] [PASSED] gpu_test_buddy_fragmentation_performance
[15:13:10] [PASSED] gpu_test_buddy_dirty_tracker_performance
[15:13:10] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[15:13:10] [PASSED] gpu_test_buddy_offset_aligned_allocation
[15:13:10] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[15:13:10] [PASSED] gpu_test_buddy_addr_to_block
[15:13:10] ==================== [PASSED] gpu_buddy ====================
[15:13:10] ============================================================
[15:13:10] Testing complete. Ran 15 tests: passed: 15
[15:13:10] Elapsed time: 28.018s total, 5.182s configuring, 20.768s building, 1.997s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
ERROR:root:make[7]: *** No rule to make target 'drivers/gpu/drm/xe/generated/xe_wa_oob.h', needed by 'drivers/gpu/drm/xe/xe_bb.o'. Stop.
make[7]: *** Waiting for unfinished jobs....
make[6]: *** [../scripts/Makefile.build:572: drivers/gpu/drm/xe] Error 2
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [../scripts/Makefile.build:572: drivers/gpu/drm] Error 2
make[4]: *** [../scripts/Makefile.build:572: drivers/gpu] Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.build:572: drivers] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/kernel/Makefile:2244: .] Error 2
make[1]: *** [/kernel/Makefile:248: __sub-make] Error 2
make: *** [Makefile:248: __sub-make] Error 2
[15:13:10] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[15:13:12] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 6+ messages in thread