Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/3] tests/kms: don't fail cursor-fb-leak because of leftover FBs
@ 2026-11-26  8:48 Luca Coelho
  2026-11-26  8:48 ` [PATCH i-g-t 1/3] tests/kms_universal_plane: remove redundant is_intel_device() check Luca Coelho
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Luca Coelho @ 2026-11-26  8:48 UTC (permalink / raw)
  To: igt-dev; +Cc: juhapekka.heikkila

Hi,

kms_universal_plane@cursor-fb-leak counts the framebuffers before
creating its own FBs and again after releasing them, and expects the
same number.  If kms_cursor_crc fails a subtest before cursor-fb-leak
runs, the cursor and its FB are still on screen, so the first count is
one higher than the second and the test fails, even though nothing
leaked.

The first patch removes an is_intel_device() check that is always true
because the test already calls igt_require_intel().  The second one
makes kms_cursor_crc clean up after a failed subtest, so it doesn't
leave the cursor FB behind anymore.  The third one makes
cursor-fb-leak take its first count after its first commit, so it
doesn't depend on what an earlier test left on screen.

Each of the last two patches fixes the failure on its own.  I checked
this by running the two tests one after the other on the same boot
in a simulation setup.

Please review.


Luca Coelho (3):
  tests/kms_universal_plane: remove redundant is_intel_device() check
  tests/kms_cursor_crc: clean up after a failed subtest
  tests/kms_universal_plane: count FBs after the first commit

 tests/kms_cursor_crc.c      | 16 ++++++++--------
 tests/kms_universal_plane.c | 15 +++++++++------
 2 files changed, 17 insertions(+), 14 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-11-27 15:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  8:48 [PATCH i-g-t 0/3] tests/kms: don't fail cursor-fb-leak because of leftover FBs Luca Coelho
2026-11-26  8:48 ` [PATCH i-g-t 1/3] tests/kms_universal_plane: remove redundant is_intel_device() check Luca Coelho
2026-11-27 15:03   ` Juha-Pekka Heikkilä
2026-11-26  8:48 ` [PATCH i-g-t 2/3] tests/kms_cursor_crc: clean up after a failed subtest Luca Coelho
2026-11-27 15:03   ` Juha-Pekka Heikkilä
2026-11-26  8:48 ` [PATCH i-g-t 3/3] tests/kms_universal_plane: count FBs after the first commit Luca Coelho
2026-11-27 15:04   ` Juha-Pekka Heikkilä
2026-11-27  1:41 ` ✓ Xe.CI.BAT: success for tests/kms: don't fail cursor-fb-leak because of leftover FBs Patchwork
2026-11-27  1:56 ` ✗ i915.CI.BAT: failure " Patchwork
2026-11-27 14:34 ` ✓ Xe.CI.FULL: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox