From: Michal Wajdeczko Date: Wed, 19 Jun 2024 21:45:56 +0000 (+0200) Subject: drm/xe/vf: Skip engine ring enabling if VF X-Git-Tag: v6.11-rc1~141^2~16^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7875fe7c2495884dd08d4a23fdc44147225542da;p=thirdparty%2Fkernel%2Flinux.git drm/xe/vf: Skip engine ring enabling if VF All engines will be correctly initialized by the PF driver. Moreover, VF drivers can't access related engine registers. Signed-off-by: Michal Wajdeczko Reviewed-by: Piotr Piórkowski Link: https://patchwork.freedesktop.org/patch/msgid/20240619214557.905-9-michal.wajdeczko@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_hw_engine.c b/drivers/gpu/drm/xe/xe_hw_engine.c index 52f12009678e9..78b50d3a65010 100644 --- a/drivers/gpu/drm/xe/xe_hw_engine.c +++ b/drivers/gpu/drm/xe/xe_hw_engine.c @@ -547,7 +547,8 @@ static int hw_engine_init(struct xe_gt *gt, struct xe_hw_engine *hwe, if (hwe->class == XE_ENGINE_CLASS_OTHER) hwe->irq_handler = xe_gsc_hwe_irq_handler; - xe_hw_engine_enable_ring(hwe); + if (!IS_SRIOV_VF(xe)) + xe_hw_engine_enable_ring(hwe); } /* We reserve the highest BCS instance for USM */