* [PATCH i-g-t] tests/kms_lease: Drain late lease uevents before lease-uevent
@ 2026-11-26 3:04 Roy
2026-11-27 0:47 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Roy @ 2026-11-26 3:04 UTC (permalink / raw)
To: igt-dev; +Cc: Roy
lease-uevent flushes the uevent monitor and then asserts that creating
a lease does not send a lease uevent. The monitor from
igt_watch_uevents() listens for events after udevd has processed them,
so a lease uevent from the previous subtest can still be on its way
through udevd when the flush runs, and it then shows up as a lease
change for the new lease.
This happens every time on a Raspberry Pi 5 (vc4) when
implicit-plane-lease runs right before lease-uevent, as it does in a
full kms_lease run. The kernel uevents from implicit-plane-lease closing
its leases come 0.15 ms before lease-uevent starts, and udevd passes
them on 1-3 ms later:
Starting subtest: lease-uevent
(kms_lease) CRITICAL: Failed assertion: !igt_lease_change_detected(uevent_monitor, 1)
Subtest lease-uevent: FAIL
lease-uevent passes when it runs on its own, or with a 200 ms sleep
before the flush.
Instead of flushing, consume events until no lease uevent arrives for a
second. The subtest takes one second longer.
Tested on a Raspberry Pi 5 (Raspberry Pi OS kernel 6.18.39):
- implicit-plane-lease followed by lease-uevent: 3/3 FAIL before,
5/5 pass after
- full kms_lease run: 1 failure before, all 21 subtests pass after
This change and its description were written with the help of an AI
coding assistant (Claude); the test runs above were done on real
hardware.
Signed-off-by: Roy <rongh7426@gmail.com>
---
tests/kms_lease.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/kms_lease.c b/tests/kms_lease.c
index 4e9a69d..8e2b821 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -1215,7 +1215,13 @@ static void lease_uevent(data_t *data)
uevent_monitor = igt_watch_uevents();
- igt_flush_uevents(uevent_monitor);
+ /*
+ * The monitor sees events after udevd has processed them, so lease
+ * events from an earlier subtest can still arrive after a flush.
+ * Wait until no lease event comes in for a second.
+ */
+ while (igt_lease_change_detected(uevent_monitor, 1))
+ ;
lease_fd = create_simple_lease(data->master.fd, data);
--
2.51.1.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* ✗ LGCI.VerificationFailed: failure for tests/kms_lease: Drain late lease uevents before lease-uevent
2026-11-26 3:04 [PATCH i-g-t] tests/kms_lease: Drain late lease uevents before lease-uevent Roy
@ 2026-11-27 0:47 ` Patchwork
0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2026-11-27 0:47 UTC (permalink / raw)
To: Roy; +Cc: igt-dev
== Series Details ==
Series: tests/kms_lease: Drain late lease uevents before lease-uevent
URL : https://patchwork.freedesktop.org/series/179724/
State : failure
== Summary ==
Series author address 'rongh7426@gmail.com' is not on the allowlist, which prevents CI from being automatically triggered.
If you want CI to run for this series, ask Patchwork project owners to click 'retest' on the series in Patchwork.
Exception occurred during validation, bailing out!
Build URL: http://gfx-ci.igk.intel.com:8080/job/CI_IGTPW_check/244225/ (on cidrm1)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 0:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 3:04 [PATCH i-g-t] tests/kms_lease: Drain late lease uevents before lease-uevent Roy
2026-11-27 0:47 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox