[PATCH 2/5] drm/xe: Reinit msg link when processing a message
Cavitt, Jonathan
jonathan.cavitt at intel.com
Fri Aug 9 20:44:09 UTC 2024
-----Original Message-----
From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Matthew Brost
Sent: Friday, August 9, 2024 12:19 PM
To: intel-xe at lists.freedesktop.org
Cc: Dugast, Francois <francois.dugast at intel.com>
Subject: [PATCH 2/5] drm/xe: Reinit msg link when processing a message
>
> Will help to avoid adding a static message twice.
>
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
LGTM.
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt
> ---
> drivers/gpu/drm/xe/xe_gpu_scheduler.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler.c b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
> index eea71c67cf2a..1c703e8423de 100644
> --- a/drivers/gpu/drm/xe/xe_gpu_scheduler.c
> +++ b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
> @@ -31,7 +31,7 @@ xe_sched_get_msg(struct xe_gpu_scheduler *sched)
> msg = list_first_entry_or_null(&sched->msgs,
> struct xe_sched_msg, link);
> if (msg)
> - list_del(&msg->link);
> + list_del_init(&msg->link);
> xe_sched_msg_unlock(sched);
>
> return msg;
> --
> 2.34.1
>
>
More information about the Intel-xe
mailing list