igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t v6 0/2] tests/intel/xe_pm_residency: Add ASPM Link residency test
@ 2025-12-10 10:43 Karthik Poosa
  2025-12-10 10:43 ` [PATCH i-g-t v6 1/2] lib/igt_device: Add API to get pci device upstream port Karthik Poosa
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Karthik Poosa @ 2025-12-10 10:43 UTC (permalink / raw)
  To: igt-dev
  Cc: anshuman.gupta, badal.nilawar, riana.tauro, rodrigo.vivi,
	raag.jadav, sk.anirban, kamil.konieczny, Karthik Poosa

Add subtest aspm_link_residency to xe_pm_residency test to check ASPM Link state residency.
This uses the debugfs /sys/kernel/debug/dri/0/dgfx_pcie_link_residencies to read the
residency counters.
Add an API igt_device_get_pci_usp() to get pcie device's upstream port.

v2:
 - Avoid using igt_require() in igt_device_get_pci_device. (Kamil)
 - Add description about PCIe ASPM in commit message and code. (Kamil)
 - Resolve couple of compilation warnings about using variable as format string to sscanf.

v3:
 - Rename igt_device_get_pci_usp() to igt_device_get_pci_upstream_port(). (Kamil)

v4:
 - Refactor and enhance readability. (Badal)
 - Move save and restore of link states to separate functions. (Badal)

Karthik Poosa (2):
  lib/igt_device: Add API to get pci device upstream port
  tests/intel/xe_pm_residency: Add subtest for ASPM Link state residency

 lib/igt_device.c              |  30 ++++++
 lib/igt_device.h              |   1 +
 tests/intel/xe_pm_residency.c | 178 ++++++++++++++++++++++++++++++++++
 3 files changed, 209 insertions(+)
 mode change 100644 => 100755 tests/intel/xe_pm_residency.c

-- 
2.25.1


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 10:43 [PATCH i-g-t v6 0/2] tests/intel/xe_pm_residency: Add ASPM Link residency test Karthik Poosa
2025-12-10 10:43 ` [PATCH i-g-t v6 1/2] lib/igt_device: Add API to get pci device upstream port Karthik Poosa
2025-12-12 13:14   ` Nilawar, Badal
2025-12-10 10:44 ` [PATCH i-g-t v6 2/2] tests/intel/xe_pm_residency: Add subtest for ASPM Link state residency Karthik Poosa
2025-12-12 11:29   ` Nilawar, Badal
2025-12-10 14:10 ` ✓ Xe.CI.BAT: success for tests/intel/xe_pm_residency: Add ASPM Link residency test (rev4) Patchwork
2025-12-10 14:45 ` ✗ i915.CI.BAT: failure " Patchwork
2025-12-10 21:15 ` ✗ 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;
as well as URLs for NNTP newsgroup(s).