]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/etnaviv: add lockdep annotation for userptr object population
authorLucas Stach <l.stach@pengutronix.de>
Fri, 17 Nov 2017 10:23:17 +0000 (11:23 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:04:18 +0000 (17:04 +0100)
commit783c06cb9c9072ff87903cce73317209b3af8568
tree16799455d81e272e725750dfb8e782748cc9536e
parentd6a8743dd8cc1e2ca5e40e07fe3de7557ac117a0
drm/etnaviv: add lockdep annotation for userptr object population

The current userptr page population will defer work to a work item if
needed to avoid ever taking the mmap_sem in the direct call path. With
the more fine-grained locking in etnaviv this isn't needed anymore, so
a future commit will simplify this code.

Add a lockdep annotation to validate the assumption that the mmap_sem
can be taken in the direct call path.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_gem.c