drm/etnaviv: fix GPU vs sync point race
authorLucas Stach <l.stach@pengutronix.de>
Thu, 19 Oct 2017 11:48:40 +0000 (13:48 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:00:53 +0000 (17:00 +0100)
commitb9a48aa76c72fb4d0990425f82fdeb4fdff2b2b1
treee3ed5c14ed2f81a3f5b5c6d7f34e0a3dbc5f9ba0
parent49b82c389d2a40eaef1355aaa35868b367aec9d1
drm/etnaviv: fix GPU vs sync point race

If the FE is restarted before the sync point event is cleared, the GPU
might trigger a completion IRQ for the next sync point, corrupting
the state of the currently running worker.

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