mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 02:47:31 -04:00
drm/xe/pf: Allow to trigger VF GuC state restore from debugfs
For feature enabling and testing purposes, allow to restore saved or replaced VF GuC state from debugfs, bypassing normal migration flow. This is available only under strict debug config. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Michał Winiarski <michal.winiarski@intel.com> Cc: Tomasz Lis <tomasz.lis@intel.com> Reviewed-by: Michał Winiarski <michal.winiarski@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240912203817.1880-7-michal.wajdeczko@intel.com
This commit is contained in:
@@ -313,6 +313,9 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user