Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/debugfs: Do not register residency files for SRIOV VF
@ 2025-07-29 16:46 Gustavo Sousa
  2025-07-29 18:26 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Gustavo Sousa @ 2025-07-29 16:46 UTC (permalink / raw)
  To: intel-xe
  Cc: Soham Purkait, Jonathan Cavitt, Karthik Poosa, Riana Tauro,
	Rodrigo Vivi, Gustavo Sousa

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@intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: Karthik Poosa <karthik.poosa@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@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@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@intel.com>


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

end of thread, other threads:[~2025-08-01 20:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-29 16:46 [PATCH] drm/xe/debugfs: Do not register residency files for SRIOV VF Gustavo Sousa
2025-07-29 18:26 ` ✓ CI.KUnit: success for " Patchwork
2025-07-29 18:41 ` [PATCH] " Cavitt, Jonathan
2025-07-29 19:04   ` Gustavo Sousa
2025-08-01 20:27     ` Rodrigo Vivi
2025-07-29 19:34 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-07-30  2:30 ` ✗ 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