[PATCH 11/11] drm/xe: Do not attempt to bootstrap VF in execlists mode

Lucas De Marchi lucas.demarchi at intel.com
Tue Dec 10 15:27:13 UTC 2024


On Tue, Dec 10, 2024 at 09:31:11AM +0100, Maarten Lankhorst wrote:
>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.
>
>Signed-off-by: Maarten Lankhorst <dev at lankhorst.se>

Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi

>---
> drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 3 +++
> 1 file changed, 3 insertions(+)
>
>diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
>index 997438047a037..4b16a6bf27b12 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;
>-- 
>2.45.2
>


More information about the Intel-xe mailing list