From: Karthik Poosa <karthik.poosa@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: anshuman.gupta@intel.com, badal.nilawar@intel.com,
riana.tauro@intel.com, rodrigo.vivi@intel.com,
kamil.konieczny@linux.intel.com,
Karthik Poosa <karthik.poosa@intel.com>
Subject: [PATCH i-g-t v10 0/2] tests/intel/xe_pm_residency: Add ASPM Link residency test
Date: Tue, 6 Jan 2026 19:21:52 +0530 [thread overview]
Message-ID: <20260106135154.33722-1-karthik.poosa@intel.com> (raw)
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.
v7:
- Address below review comments from Riana.
- Use igt_sysfs_has_attr() instead of faccess().
- Remove unnecessary spaces, debug logs, if checks.
- Wrap line length to 100 chars.
- Use spinner instead of mmap as workload.
v8:
- Address minor review comments from Kamil.
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 | 43 +++++++++
lib/igt_device.h | 1 +
lib/igt_pci.h | 2 +
tests/intel/xe_pm_residency.c | 176 ++++++++++++++++++++++++++++++++++
4 files changed, 222 insertions(+)
--
2.25.1
next reply other threads:[~2026-01-06 13:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-06 13:51 Karthik Poosa [this message]
2026-01-06 13:51 ` [PATCH i-g-t v10 1/2] lib/igt_device: Add API to get pci device upstream port Karthik Poosa
2026-01-06 13:51 ` [PATCH i-g-t v10 2/2] tests/intel/xe_pm_residency: Add subtest for ASPM Link state residency Karthik Poosa
2026-01-07 6:24 ` Riana Tauro
2026-01-06 14:17 ` ✓ Xe.CI.BAT: success for tests/intel/xe_pm_residency: Add ASPM Link residency test Patchwork
2026-01-06 14:42 ` ✓ i915.CI.BAT: " Patchwork
2026-01-06 16:26 ` ✗ Xe.CI.Full: failure " Patchwork
2026-01-06 19:35 ` ✓ i915.CI.Full: success " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2026-01-21 14:57 [PATCH i-g-t v10 0/2] " Karthik Poosa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260106135154.33722-1-karthik.poosa@intel.com \
--to=karthik.poosa@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=badal.nilawar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=riana.tauro@intel.com \
--cc=rodrigo.vivi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox