[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ba6ce95-91d5-4d09-93bb-d50da1c11cc0@intel.com>
Date: Mon, 13 Oct 2025 13:36:43 +0200
From: Michal Wajdeczko <michal.wajdeczko@...el.com>
To: Michał Winiarski <michal.winiarski@...el.com>, "Alex
Williamson" <alex.williamson@...hat.com>, Lucas De Marchi
<lucas.demarchi@...el.com>, Thomas Hellström
<thomas.hellstrom@...ux.intel.com>, Rodrigo Vivi <rodrigo.vivi@...el.com>,
Jason Gunthorpe <jgg@...pe.ca>, Yishai Hadas <yishaih@...dia.com>, Kevin Tian
<kevin.tian@...el.com>, Shameer Kolothum
<shameerali.kolothum.thodi@...wei.com>, <intel-xe@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, <kvm@...r.kernel.org>
CC: <dri-devel@...ts.freedesktop.org>, Matthew Brost
<matthew.brost@...el.com>, Jani Nikula <jani.nikula@...ux.intel.com>, "Joonas
Lahtinen" <joonas.lahtinen@...ux.intel.com>, Tvrtko Ursulin
<tursulin@...ulin.net>, David Airlie <airlied@...il.com>, Simona Vetter
<simona@...ll.ch>, Lukasz Laguna <lukasz.laguna@...el.com>
Subject: Re: [PATCH 13/26] drm/xe/pf: Remove GuC migration data save/restore
from GT debugfs
On 10/11/2025 9:38 PM, Michał Winiarski wrote:
> In upcoming changes, SR-IOV VF migration data will be extended beyond
> GuC data and exported to userspace using VFIO interface (with a
> vendor-specific variant driver) and a device-level debugfs interface.
> Remove the GT-level debugfs.
this was already under CONFIG_DRM_XE_DEBUG_SRIOV for early bring-up only,
so if now it's hard to keep it exposed on the GT-level, then
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@...el.com>
>
> Signed-off-by: Michał Winiarski <michal.winiarski@...el.com>
> ---
> drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c | 47 ---------------------
> 1 file changed, 47 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
> index c026a3910e7e3..c2b27dab13aa8 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
> @@ -320,9 +320,6 @@ static const struct {
> { "stop", xe_gt_sriov_pf_control_stop_vf },
> { "pause", xe_gt_sriov_pf_control_pause_vf },
> { "resume", xe_gt_sriov_pf_control_resume_vf },
> -#ifdef CONFIG_DRM_XE_DEBUG_SRIOV
> - { "restore!", xe_gt_sriov_pf_migration_restore_guc_state },
> -#endif
> };
>
> static ssize_t control_write(struct file *file, const char __user *buf, size_t count, loff_t *pos)
> @@ -386,47 +383,6 @@ static const struct file_operations control_ops = {
> .llseek = default_llseek,
> };
>
> -/*
> - * /sys/kernel/debug/dri/BDF/
> - * ├── sriov
> - * : ├── vf1
> - * : ├── tile0
> - * : ├── gt0
> - * : ├── guc_state
> - */
> -
> -static ssize_t guc_state_read(struct file *file, char __user *buf,
> - size_t count, loff_t *pos)
> -{
> - struct dentry *dent = file_dentry(file);
> - struct dentry *parent = dent->d_parent;
> - struct xe_gt *gt = extract_gt(parent);
> - unsigned int vfid = extract_vfid(parent);
> -
> - return xe_gt_sriov_pf_migration_read_guc_state(gt, vfid, buf, count, pos);
> -}
> -
> -static ssize_t guc_state_write(struct file *file, const char __user *buf,
> - size_t count, loff_t *pos)
> -{
> - struct dentry *dent = file_dentry(file);
> - struct dentry *parent = dent->d_parent;
> - struct xe_gt *gt = extract_gt(parent);
> - unsigned int vfid = extract_vfid(parent);
> -
> - if (*pos)
> - return -EINVAL;
> -
> - return xe_gt_sriov_pf_migration_write_guc_state(gt, vfid, buf, count);
> -}
> -
> -static const struct file_operations guc_state_ops = {
> - .owner = THIS_MODULE,
> - .read = guc_state_read,
> - .write = guc_state_write,
> - .llseek = default_llseek,
> -};
> -
> /*
> * /sys/kernel/debug/dri/BDF/
> * ├── sriov
> @@ -561,9 +517,6 @@ static void pf_populate_gt(struct xe_gt *gt, struct dentry *dent, unsigned int v
>
> /* for testing/debugging purposes only! */
> if (IS_ENABLED(CONFIG_DRM_XE_DEBUG)) {
> - debugfs_create_file("guc_state",
> - IS_ENABLED(CONFIG_DRM_XE_DEBUG_SRIOV) ? 0600 : 0400,
> - dent, NULL, &guc_state_ops);
> debugfs_create_file("config_blob",
> IS_ENABLED(CONFIG_DRM_XE_DEBUG_SRIOV) ? 0600 : 0400,
> dent, NULL, &config_blob_ops);
Powered by blists - more mailing lists