[PATCH] drm/xe/debugfs: Do not register residency files for SRIOV VF

Gustavo Sousa gustavo.sousa at intel.com
Tue Jul 29 16:46:33 UTC 2025


Registers accessed by the recently added[1] residency counters debugfs
are marked as inaccessible to SRIOV VFs. That causes warnings to be
raised when an attempt is made to read those files. Skip registering
those files for VFs.

[1] Via commit 487579fd8524 ("drm/xe/xe_debugfs: Exposure of G-State and
    pcie link state residency counters through debugfs").

Cc: Soham Purkait <soham.purkait at intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt at intel.com>
Cc: Karthik Poosa <karthik.poosa at intel.com>
Cc: Riana Tauro <riana.tauro at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Fixes: 487579fd8524 ("drm/xe/xe_debugfs: Exposure of G-State and pcie link state residency counters through debugfs")
Signed-off-by: Gustavo Sousa <gustavo.sousa at intel.com>
---
 drivers/gpu/drm/xe/xe_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index 0b4a532f7c45..53b89528692a 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -360,7 +360,7 @@ void xe_debugfs_register(struct xe_device *xe)
 				 ARRAY_SIZE(debugfs_list),
 				 root, minor);
 
-	if (xe->info.platform == XE_BATTLEMAGE)
+	if (!IS_SRIOV_VF(xe) && xe->info.platform == XE_BATTLEMAGE)
 		drm_debugfs_create_files(debugfs_residencies,
 					 ARRAY_SIZE(debugfs_residencies),
 					 root, minor);

---
base-commit: b6a72d53a8082ee6ef701042e7cb8a93d6a2b678
change-id: 20250729-skip-residency-debugfs-for-vfs-4d707779fcb1

Best regards,
-- 
Gustavo Sousa <gustavo.sousa at intel.com>



More information about the Intel-xe mailing list