drm/etnaviv: hold GPU lock while inserting END command
authorLucas Stach <l.stach@pengutronix.de>
Fri, 17 Nov 2017 16:59:26 +0000 (17:59 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:25:11 +0000 (17:25 +0100)
commit40c27bdeb00ba234d5062b7c51467a9a51c4606c
treec8f769b6e7d7920976a86d1894f321bc36dafaeb
parenta7790d78092e5904beb4de71e1ea43b260d2092a
drm/etnaviv: hold GPU lock while inserting END command

Inserting the END command when suspending the GPU is changing the
command buffer state, which requires the GPU to be held.

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