Skip to content

Commit f3b5945

Browse files
author
Maarten Lankhorst
committed
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 <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241210083111.230484-12-dev@lankhorst.se Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
1 parent 173baa1 commit f3b5945

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/xe/xe_gt_sriov_vf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ int xe_gt_sriov_vf_bootstrap(struct xe_gt *gt)
213213
{
214214
int err;
215215

216+
if (!xe_device_uc_enabled(gt_to_xe(gt)))
217+
return -ENODEV;
218+
216219
err = vf_reset_guc_state(gt);
217220
if (unlikely(err))
218221
return err;

0 commit comments

Comments
 (0)