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)
commitb6d6223f5029d3c4fe466ce1711fe4cb23d06013
treeecc8f42b128666892000619a2a0a5b498b821df2
parent40c27bdeb00ba234d5062b7c51467a9a51c4606c
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