[PATCH] drm/managed: Define drmm_mutex_init() as a macro to fix lockdep

Boris Brezillon boris.brezillon at collabora.com
Fri May 19 09:15:31 UTC 2023


On Fri, 19 May 2023 10:05:27 +0100
Matthew Auld <matthew.william.auld at gmail.com> wrote:

> On Fri, 19 May 2023 at 09:55, Boris Brezillon
> <boris.brezillon at collabora.com> wrote:
> >
> > drmm_mutex_init() needs to be defined as a macro if we want
> > lockdep to classify locks properly. If we don't do that, all locks
> > will be considered as belonging to the same lock class, leading to
> > false positive deadlock reports.
> >
> > Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
> > Reported-by: Sarah Walker <sarah.walker at imgtec.com>  
> 
> Yeah, we also encountered the same issue. Patch is here:
> https://patchwork.freedesktop.org/patch/537605/?series=117891&rev=2

Cool! Added my R-b to this patch.


More information about the dri-devel mailing list