[PATCH i-g-t 0/3] Guard idle residency tests against busy DRM clients

Soham Purkait
2026-03-30T16:25:10Z

The idle residency subtests are sensitive to unrelated DRM clients
on the same card. When other processes keep the device busy,
the measured idle residency can be lower than expected and trigger
false failures.

This series improves the robustness of the subtest by first introducing
a helper to enumerate DRM client processes associated with a given card
fd, and subsequently using it in idle residency tests to detect competing
DRM clients triggering a warning, and skipping the test.

Soham Purkait (3):
lib/igt_drm_clients: Add helper to list and count the DRM client
processes
tests/intel/xe_pm_residency: Check for other DRM device users
HAX: Add idle-residency tests to xe-fast-feedback.testlist

lib/igt_drm_clients.c | 93 ++++++++++++++++++++++++
lib/igt_drm_clients.h | 10 +++
tests/intel-ci/xe.fast-feedback.testlist | 1 +
tests/intel/xe_pm_residency.c | 25 +++++++
tests/meson.build | 1 +
5 files changed, 130 insertions(+)

--
2.43.0