[PATCH] drm/xe/uc: Don't emit false error if running in execlist mode
Daniele Ceraolo Spurio
daniele.ceraolospurio at intel.com
Wed May 22 16:08:49 UTC 2024
On 5/21/2024 4:48 AM, Michal Wajdeczko wrote:
> When running in execlist mode (using force_execlist=1 modparam)
> we incorrectly select the error path in xe_uc_init(), leading to
> an unwanted error message like this:
>
> [ ] xe 0000:00:00.0: [drm] *ERROR* GT0: Failed to initialize uC (0000000000000000)
>
> Fix that by doing early return like we do in other similar cases.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Daniele
> ---
> drivers/gpu/drm/xe/xe_uc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
> index 0186eafc947d..85808706d1c8 100644
> --- a/drivers/gpu/drm/xe/xe_uc.c
> +++ b/drivers/gpu/drm/xe/xe_uc.c
> @@ -51,7 +51,7 @@ int xe_uc_init(struct xe_uc *uc)
> goto err;
>
> if (!xe_device_uc_enabled(uc_to_xe(uc)))
> - goto err;
> + return 0;
>
> ret = xe_wopcm_init(&uc->wopcm);
> if (ret)
More information about the Intel-xe
mailing list