]> git.baikalelectronics.ru Git - kernel.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)
commit7d04a228da2ec5cba2fcb43d2c868c1f2a9c2e29
tree16799455d81e272e725750dfb8e782748cc9536e
parentef7b926af2e61043abce51d3f39a37ae1239a9c6
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