From: Maarten Lankhorst Date: Tue, 10 Dec 2024 08:31:11 +0000 (+0100) Subject: drm/xe: Do not attempt to bootstrap VF in execlists mode X-Git-Tag: v6.15-rc1~120^2~15^2~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3b59457808f61d88178b0afa67cbd017d7ce79e;p=thirdparty%2Fkernel%2Flinux.git drm/xe: Do not attempt to bootstrap VF in execlists mode It was mentioned in a review that there is a possibility of choosing to load the module with VF in execlists mode. Of course this doesn't work, just bomb out as hard as possible. Reviewed-by: Lucas De Marchi Link: https://patchwork.freedesktop.org/patch/msgid/20241210083111.230484-12-dev@lankhorst.se Signed-off-by: Maarten Lankhorst --- diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c index cca5d57328021..6671030439fd7 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c @@ -213,6 +213,9 @@ int xe_gt_sriov_vf_bootstrap(struct xe_gt *gt) { int err; + if (!xe_device_uc_enabled(gt_to_xe(gt))) + return -ENODEV; + err = vf_reset_guc_state(gt); if (unlikely(err)) return err;