Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v8 0/2] Add debugfs node to expose G-state and pcie link state residency
@ 2025-06-27 19:00 Soham Purkait
  2025-06-27 19:00 ` [PATCH v8 1/2] drm/xe/regs/xe_pmt: Macros for G-State and pcie link state residency offset Soham Purkait
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Soham Purkait @ 2025-06-27 19:00 UTC (permalink / raw)
  To: intel-xe, anshuman.gupta, badal.nilawar, karthik.poosa,
	riana.tauro, jonathan.cavitt
  Cc: lucas.demarchi, soham.purkait, ashutosh.dixit, jani.nikula

    This patch exposes G-state and pcie link state residency counter
values through debugfs. The debugfs node "dgfx_pkg_residencies" exposes
G-states counters (G2, G6, G8, G10, ModS) and "dgfx_pcie_link_residencies"
exposes PCIe link states(L0, L1, L1.2) residency counters.

Example:
$ cat /sys/kernel/debug/dri/<bdf>/dgfx_pkg_residencies
Package G2 : 42853454
Package G6 : 26564
Package G8 : 705212205
Package G10 : 0
Package ModS : 396016642

$ cat /sys/kernel/debug/dri/<bdf>/dgfx_pcie_link_residencies
PCIE LINK L0 RESIDENCY : 12336019
PCIE LINK L1 RESIDENCY : 2326635578
PCIE LINK L1.2 RESIDENCY : 2326632312

Soham Purkait (2):
  drm/xe/regs/xe_pmt: Macros for G-State and pcie link state residency
    offset
  drm/xe/xe_debugfs: Exposure of G-State and pcie link state residency
    counters through debugfs

 drivers/gpu/drm/xe/regs/xe_pmt.h | 10 ++++
 drivers/gpu/drm/xe/xe_debugfs.c  | 87 ++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2025-07-02  0:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-27 19:00 [PATCH v8 0/2] Add debugfs node to expose G-state and pcie link state residency Soham Purkait
2025-06-27 19:00 ` [PATCH v8 1/2] drm/xe/regs/xe_pmt: Macros for G-State and pcie link state residency offset Soham Purkait
2025-06-30  6:42   ` Riana Tauro
2025-06-30 14:15     ` Lucas De Marchi
2025-06-27 19:00 ` [PATCH v8 2/2] drm/xe/xe_debugfs: Exposure of G-State and pcie link state residency counters through debugfs Soham Purkait
2025-06-30  6:41   ` Riana Tauro
2025-06-30  9:05   ` Jani Nikula
2025-06-30 19:38 ` ✓ CI.KUnit: success for Add debugfs node to expose G-state and pcie link state residency (rev6) Patchwork
2025-06-30 20:25 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-02  0:44 ` ✗ 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