Skip to content

Commit addcedf

Browse files
Maarten Lankhorstjfvogel
authored andcommitted
drm/xe: Do not attempt to bootstrap VF in execlists mode
[ Upstream commit f3b5945 ] 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 <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Maarten Lankhorst <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit c9db43696ed0e2f834d1a525a6bf8433374ad3c2) Signed-off-by: Jack Vogel <[email protected]>
1 parent 0671124 commit addcedf

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
@@ -235,6 +235,9 @@ int xe_gt_sriov_vf_bootstrap(struct xe_gt *gt)
235235
{
236236
int err;
237237

238+
if (!xe_device_uc_enabled(gt_to_xe(gt)))
239+
return -ENODEV;
240+
238241
err = vf_reset_guc_state(gt);
239242
if (unlikely(err))
240243
return err;

0 commit comments

Comments
 (0)