]> Gentwo Git Trees - linux/.git/commit
drm/xe/xe_debugfs: Exposure of G-State and pcie link state residency counters through...
authorSoham Purkait <soham.purkait@intel.com>
Wed, 16 Jul 2025 10:14:12 +0000 (15:44 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 17 Jul 2025 16:33:00 +0000 (12:33 -0400)
commit487579fd8524c58dc237904c1b1d9e7c89e53378
treedfa0a5f26e18fdeb7b26b4503ba8c53939e25476
parent4b0a5f5ce7849aab7a67ba9f113ed75626f6de36
drm/xe/xe_debugfs: Exposure of G-State and pcie link state residency counters through debugfs

Add debug nodes, "dgfx_pkg_residencies" for G-states (G2, G6, G8, G10,
ModS) and "dgfx_pcie_link_residencies" for PCIe link states(L0, L1, L1.2)
residency counters.

v1:
 - Expose all G-State residency counter values under
   dgfx_pkg_residencies. (Anshuman)
 - Include runtime_get/put. (Riana)
v2:
 - Move offset macros to drm/xe/regs/xe_pmt. (Riana)
v3:
 - Include debugfs node "dgfx_pcie_link_residencies" for pcie link
   residency counter values.  (Anshuman)
v4:
 - Include check for BMG and add helper function for repetitive
   code. (Riana)
 - Add for loop and local struct to avoid repetition. (Riana)
 - Use "drm_debugfs_create_files" to create debugfs. (Karthik)
v5:
 - Reorder commits to reflect the correct dependency hierarchy.  (Jonathan)
 - Simplification of commit message and rectified register offset.(Karthik)
 - Error handling and return before printing.                       (Riana)
v6:
 - Remove check for DGFX as BMG is discrete. (Karthik)
 - Rearrange residency offsets in ascending order. (Riana)
v7:
 - Squash the macros into the patch they are used in. (Lucas)

Signed-off-by: Soham Purkait <soham.purkait@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Link: https://lore.kernel.org/r/20250716101412.3062780-2-soham.purkait@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/regs/xe_pmt.h
drivers/gpu/drm/xe/xe_debugfs.c