Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/2] Add a check for power management PCI capability
@ 2025-03-11 17:01 Jakub Kolakowski
  2025-03-11 17:01 ` [PATCH i-g-t 1/2] lib/igt_pm: Introduce helper to check for PM capability Jakub Kolakowski
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Jakub Kolakowski @ 2025-03-11 17:01 UTC (permalink / raw)
  To: igt-dev; +Cc: Jakub Kolakowski, Adam Miszczak, Lukasz Laguna,
	Marcin Bernatowicz

This patch series is introducing a helper for checking the presence of
power management PCI capability and it utilizes this new helper in
xe_pm tests that are related to D-states.

Add power management capability checking helper. With this helper one
can make sure the capability is present on device under test before
proceeding with any actions related to PM. This is mainly aimed to check
for availability of D-states but overall it checks for the PCI
capability in general.

Add a check for power management capability of device tested in tests
related to D-states. Currently if test is started on configuration
that does not support the PM capability it doesn't skip, instead
depending on test it may fail, abort or timeout.
With this change test will skip with a clear message why it did.

Cc: Adam Miszczak <adam.miszczak@linux.intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Signed-off-by: Jakub Kolakowski <jakub1.kolakowski@intel.com>

Jakub Kolakowski (2):
  lib/igt_pm: Introduce helper to check for PM capability
  tests/intel/xe_pm: Add a check for power management capability

 lib/igt_pm.c        | 20 ++++++++++++++++++++
 lib/igt_pm.h        |  1 +
 tests/intel/xe_pm.c | 16 ++++++++++++++++
 3 files changed, 37 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2025-03-13 11:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 17:01 [PATCH i-g-t 0/2] Add a check for power management PCI capability Jakub Kolakowski
2025-03-11 17:01 ` [PATCH i-g-t 1/2] lib/igt_pm: Introduce helper to check for PM capability Jakub Kolakowski
2025-03-13 10:30   ` Bernatowicz, Marcin
2025-03-13 11:12     ` Kamil Konieczny
2025-03-11 17:01 ` [PATCH i-g-t 2/2] tests/intel/xe_pm: Add a check for power management capability Jakub Kolakowski
2025-03-13 10:33   ` Bernatowicz, Marcin
2025-03-12  4:49 ` ✓ Xe.CI.BAT: success for Add a check for power management PCI capability Patchwork
2025-03-12  5:03 ` ✗ i915.CI.BAT: failure " Patchwork
2025-03-12 20:13 ` ✗ Xe.CI.Full: " Patchwork

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