igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t v8 0/2] tests/intel/xe_pm_residency: Add ASPM Link residency test
@ 2025-12-16  8:09 Karthik Poosa
  2025-12-16  8:09 ` [PATCH i-g-t v8 1/2] lib/igt_device: Add API to get pci device upstream port Karthik Poosa
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Karthik Poosa @ 2025-12-16  8:09 UTC (permalink / raw)
  To: igt-dev
  Cc: anshuman.gupta, badal.nilawar, riana.tauro, rodrigo.vivi,
	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)

v5:
 - Use device type from pci express capability of pci config space to
   identify upstream port. (Badal) 

v6:
 - Search for upstream port only two levels up of the endpoint as we want to
   verify ASPM only on PCIe link on which GPU card is present.
 - Skip test for integrated platforms.


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              |  41 ++++++++
 lib/igt_device.h              |   1 +
 lib/igt_pci.h                 |   2 +
 tests/intel/xe_pm_residency.c | 179 ++++++++++++++++++++++++++++++++++
 4 files changed, 223 insertions(+)
 mode change 100644 => 100755 tests/intel/xe_pm_residency.c

-- 
2.25.1


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

end of thread, other threads:[~2025-12-17  8:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16  8:09 [PATCH i-g-t v8 0/2] tests/intel/xe_pm_residency: Add ASPM Link residency test Karthik Poosa
2025-12-16  8:09 ` [PATCH i-g-t v8 1/2] lib/igt_device: Add API to get pci device upstream port Karthik Poosa
2025-12-16 11:21   ` Nilawar, Badal
2025-12-16  8:09 ` [PATCH i-g-t v8 2/2] tests/intel/xe_pm_residency: Add subtest for ASPM Link state residency Karthik Poosa
2025-12-16 14:18   ` Riana Tauro
2025-12-17  6:34     ` Poosa, Karthik
2025-12-16 14:27 ` ✓ Xe.CI.BAT: success for tests/intel/xe_pm_residency: Add ASPM Link residency test Patchwork
2025-12-16 14:27 ` ✓ i915.CI.BAT: " Patchwork
2025-12-16 16:48 ` ✓ i915.CI.Full: " Patchwork
2025-12-17  8:49 ` ✗ Xe.CI.Full: failure " 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).