[PATCH] drm/etnaviv: Protect the scheduler's pending list with its lock

Maíra Canal mcanal at igalia.com
Mon Jun 16 23:41:38 UTC 2025


On 02/06/25 10:22, Maíra Canal wrote:
> Commit 704d3d60fec4 ("drm/etnaviv: don't block scheduler when GPU is still
> active") ensured that active jobs are returned to the pending list when
> extending the timeout. However, it didn't use the pending list's lock to
> manipulate the list, which causes a race condition as the scheduler's
> workqueues are running.
> 
> Hold the lock while manipulating the scheduler's pending list to prevent
> a race.
> 
> Cc: stable at vger.kernel.org
> Fixes: 704d3d60fec4 ("drm/etnaviv: don't block scheduler when GPU is still active")
> Signed-off-by: Maíra Canal <mcanal at igalia.com>
> ---

The patch was applied to misc/kernel.git (drm-misc-fixes) with Philipp's
suggestions.

Thanks for the review!

Best Regards,
- Maíra

>   



More information about the dri-devel mailing list