[PATCH 1/2] drm/xe/vf: Don't support changing GuC reset policy

Lukasz Laguna lukasz.laguna at intel.com
Thu Apr 3 09:41:40 UTC 2025


VF can't change GuC reset policy. Ensure the driver does not attempt to
do so by adding an assertion.

Signed-off-by: Lukasz Laguna <lukasz.laguna at intel.com>
---
 drivers/gpu/drm/xe/xe_guc_ads.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index bee4e0cfe7b8..2ea07d28728e 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -990,6 +990,8 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
 	struct xe_bo *bo;
 	int ret = 0;
 
+	xe_gt_assert(gt, !IS_SRIOV_VF(gt_to_xe(gt)));
+
 	policies = kmalloc(sizeof(*policies), GFP_KERNEL);
 	if (!policies)
 		return -ENOMEM;
-- 
2.40.0



More information about the Intel-xe mailing list