[PATCH] drm/xe: Properly handle alloc_guc_id() failure

Randhawa, Jagmeet jagmeet.randhawa at intel.com
Tue May 21 20:26:31 UTC 2024


On 5/21/2024 1:12 PM, Niranjana Vishwanathapura wrote:
> Release the submission_state lock if alloc_guc_id() fails.
>
> Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
>
> Cc:<stable at vger.kernel.org>  # v6.8+
> Signed-off-by: Niranjana Vishwanathapura<niranjana.vishwanathapura at intel.com>
> Reviewed-by: Nirmoy Das<nirmoy.das at intel.com>
> Reviewed-by: Matthew Brost<matthew.brost at intel.com>
> ---
>   drivers/gpu/drm/xe/xe_guc_submit.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
> index ad2b8067d071..c0b901c5565b 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -1304,6 +1304,7 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
>   	return 0;
>   
>   err_entity:
> +	mutex_unlock(&guc->submission_state.lock);
>   	xe_sched_entity_fini(&ge->entity);
>   err_sched:
>   	xe_sched_fini(&ge->sched);

Reviewed-by: Jagmeet Randhawa <jagmeet.randhawa at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-xe/attachments/20240521/4137ceb7/attachment.htm>


More information about the Intel-xe mailing list