[PATCH] drm/xe/debugfs: Do not register residency files for SRIOV VF
Cavitt, Jonathan
jonathan.cavitt at intel.com
Tue Jul 29 18:41:00 UTC 2025
-----Original Message-----
From: Sousa, Gustavo <gustavo.sousa at intel.com>
Sent: Tuesday, July 29, 2025 9:47 AM
To: intel-xe at lists.freedesktop.org
Cc: Purkait, Soham <soham.purkait at intel.com>; Cavitt, Jonathan <jonathan.cavitt at intel.com>; Poosa, Karthik <karthik.poosa at intel.com>; Tauro, Riana <riana.tauro at intel.com>; Vivi, Rodrigo <rodrigo.vivi at intel.com>; Sousa, Gustavo <gustavo.sousa at intel.com>
Subject: [PATCH] drm/xe/debugfs: Do not register residency files for SRIOV VF
>
> 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,
It sounds like it's specifically these debugfs_residencies files, and not a property of
drm_debugfs_create_files, that has troubles on VF.
I don't see a reason to block this, so
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt
> 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