igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/1] Enable/Disable DRM debug logging between tests in shard mode
@ 2025-12-15 10:33 Sobin Thomas
  2025-12-15 10:33 ` [PATCH i-g-t 1/1] feat: " Sobin Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Sobin Thomas @ 2025-12-15 10:33 UTC (permalink / raw)
  To: igt-dev, zbigniew.kempczynski; +Cc: Sobin Thomas

In shard mode, when disk usage limit is exceeded during a test, DRM
debug logging is disabled by writing "0" to /sys/module/drm/parameters/debug
to prevent premature exit. However, this disabled state persisted across
subsequent tests in the same shard, causing loss of debug information for
tests that did not exceed the disk limit.

Add a global flag to track when DRM debug was disabled in a previous test.
At the start of each new test in monitor_output(), check this flag and
restore DRM debug logging to the original value (or default "14" if the
original value could not be saved). Verify the write succeeded by reading
back the value, retrying up to 10 times with 100ms delays if needed.

The original DRM debug value is saved once at startup in execute() before
any tests run, ensuring we can restore to the correct state. The per-test
logging_disabled flag remains local to monitor_output() to track state
within the current test execution.

This ensures each test starts with a clean state and proper debug logging,
while still allowing dynamic disabling when disk limits are exceeded.

Sobin Thomas (1):
  feat: Enable/Disable DRM debug logging between tests in shard mode

 runner/executor.c | 148 +++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 147 insertions(+), 1 deletion(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-12-16  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 10:33 [PATCH i-g-t 0/1] Enable/Disable DRM debug logging between tests in shard mode Sobin Thomas
2025-12-15 10:33 ` [PATCH i-g-t 1/1] feat: " Sobin Thomas
2025-12-15 13:02   ` Jani Nikula
2025-12-16  9:15   ` Zbigniew Kempczyński

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).