tests/intel/xe_exec_system_allocator: suppress driver debug logs in CI
PATCH 1/1 tests/intel/xe_exec_system_allocator: suppress driver debug logs in CI
From: Nishit Sharma <[email protected]>
migration subtests can generate a DRM_UT_DRIVER debug
message for each migrated chunk, exceeding the CI runner's log-size limit on large-VRAM devices.
Call xe_drop_driver_debug_if_ci() from the test fixture so that, under CI, DRM_UT_DRIVER is cleared from the DRM debug mask for the duration of the test. The other debug categories are preserved and the original mask is restored on exit.
--- tests/intel/xe_exec_system_allocator.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
tests/intel/xe_exec_system_allocator.c +14 -1
@@ -17,6 +17,7 @@#include <time.h> #include "igt.h" +#include "igt_sysfs.h" #include "intel_pat.h" #include "lib/igt_syncobj.h" #include "lib/intel_compute.h"
@@ -2669,6 +2670,8 @@ int igt_main() igt_fixture() {struct xe_device *xe; +int dir; +unsigned int mask_to_set; fd =drm_open_driver (DRIVER_XE );igt_require (!xe_supports_faults (fd));
@@ -2691,7 +2694,17 @@ int igt_main() num_pat_entries =0 ; } -xe_drop_driver_debug_if_ci (); + dir =igt_sysfs_drm_module_params_open (); +if (dir >=0 ) { +int debug_mask =igt_drm_debug_mask_get (dir); + +close (dir); + mask_to_set =DRM_UT_DRIVER ; +if (debug_mask >0 && (debug_mask & mask_to_set)) { +igt_install_exit_handler (igt_drm_debug_mask_reset_exit_handler); +update_debug_mask_if_ci (debug_mask & ~mask_to_set); + } + } }for (const struct section *s = sections; s->name; s++) {
Signature · 1 line
2.43.0
Hi nishit.sharma,
Quoted 2 lines · On 2026-11-19 at 10:48:11 +0000, [email protected] wrote:
From: Nishit Sharma <[email protected]>
You patch do not apply, please rebase on current top and resend. See also few nits below.
Quoted 1 line
migration subtests can generate a
DRM_UT_DRIVERdebug
Start from upper case, also write up to 65 column.
Quoted 3 lines
message for each migrated chunk, exceeding the CI runner's log-size limit on large-VRAM devices.
Migration subtests can generate a DRM_UT_DRIVER debug message for each migrated chunk, exceeding the CI runner's log-size limit on large-VRAM devices.
Quoted 2 lines
Call
xe_drop_driver_debug_if_ci()from the test fixture so that, under
Please do not write C code in english, jus say that on CI run you clear that bit. Also no need for writin about restore, lib will take care of this.
Quoted 22 lines
CI,
DRM_UT_DRIVERis cleared from the DRM debug mask for the duration of the test. The other debug categories are preserved and the original mask is restored on exit.Signed-off-by Nishit Sharma <[email protected]>--- tests/intel/xe_exec_system_allocator.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)tests/intel/xe_exec_system_allocator.c +1
-0@@ -17,6 +17,7 @@#include <time.h> #include "igt.h" +#include "igt_sysfs.h" #include "intel_pat.h" #include "lib/igt_syncobj.h" #include "lib/intel_compute.h"
tests/intel/xe_exec_system_allocator.c int igt_main() · line 2674
Quoted 5 lines
tests/intel/xe_exec_system_allocator.c +2
-0@@ -2669,6 +2670,8 @@ int igt_main() igt_fixture() {struct xe_device *xe; +int dir; +unsigned int mask_to_set;
Move this var to place where is used.
Quoted 4 lines
tests/intel/xe_exec_system_allocator.c +0
-0fd =drm_open_driver (DRIVER_XE );igt_require (!xe_supports_faults (fd));
tests/intel/xe_exec_system_allocator.c int igt_main() · line 2702
Quoted 10 lines
tests/intel/xe_exec_system_allocator.c +6
-1@@ -2691,7 +2694,17 @@ int igt_main() num_pat_entries =0 ; } -xe_drop_driver_debug_if_ci (); + dir =igt_sysfs_drm_module_params_open (); +if (dir >=0 ) { +int debug_mask =igt_drm_debug_mask_get (dir); + +close (dir); + mask_to_set =DRM_UT_DRIVER ;
bits_to_clear = DRM_UT_DRIVER;
mask_to_set = debug_mask & ~bits_to_clear;
if (debug_mask > 0 && (debug_mask & bits_to_clear)) {
igt_install_exit_handler(igt_drm_debug_mask_reset_exit_handler);
update_debug_mask_if_ci(mask_to_set);
}Btw it seems lib needs an update, imho that exit handler should be installed by lib itself, not by tests.
Regards,
Kamil
Quoted 11 lines
tests/intel/xe_exec_system_allocator.c +5
-0+if (debug_mask >0 && (debug_mask & mask_to_set)) { +igt_install_exit_handler (igt_drm_debug_mask_reset_exit_handler); +update_debug_mask_if_ci (debug_mask & ~mask_to_set); + } + } }for (const struct section *s = sections; s->name; s++) {Signature · 1 line
2.43.0
Patchwork
CI✗ Fi.CI.BUILD: failure for tests/intel/xe_exec_system_allocator: suppress driver debug logs in CI
In reply to [email protected]== Series Details ==
== Series Details ==
Series: tests/intel/xe_exec_system_allocator: suppress driver debug logs in CI
URL : https://patchwork.freedesktop.org/series/179049/
State : failure
== Summary ==
Applying: tests/intel/xe_exec_system_allocator: suppress driver debug logs in CI Patch failed at 0001 tests/intel/xe_exec_system_allocator: suppress driver debug logs in CI When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".