]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: add lockdep annotations to buffer manipulation functions
authorLucas Stach <l.stach@pengutronix.de>
Fri, 17 Nov 2017 16:51:19 +0000 (17:51 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:25:44 +0000 (17:25 +0100)
commit6ab507e139caf4bc10d53e2942091892be9fd9c3
treeecc8f42b128666892000619a2a0a5b498b821df2
parent78de18251218b70059f9dae40fee2203b84f1437
drm/etnaviv: add lockdep annotations to buffer manipulation functions

When manipulating the kernel command buffer the GPU mutex must be held, as
otherwise different callers might try to replace the same part of the
buffer, wreacking havok in the GPU execution.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_buffer.c