]> 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)
commit79e0fa66fa6dcc8d99fd1605f1a6c975cf193fbf
treeecc8f42b128666892000619a2a0a5b498b821df2
parent4a389b592c804be82155cb16dfd8b981b22b4fe6
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