drm/etnaviv: ensure write caches are flushed at end of user cmdstream
authorLucas Stach <l.stach@pengutronix.de>
Wed, 5 Oct 2016 16:30:43 +0000 (18:30 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 10 Oct 2016 13:26:38 +0000 (15:26 +0200)
commit8c136b590f79f7f4f60ae4709fc1340885ca2eba
tree223fc4b2be5373f4f95b5b51675e1140bb3993b8
parentb89857852656f016328d2d7ccec5fff57445fa85
drm/etnaviv: ensure write caches are flushed at end of user cmdstream

If the GPU is done with one user command stream the buffers referenced
by this command stream may go away and get unmapped from the MMU. If
the write caches are still dirty at this point later evictions will run
into MMU faults, killing the GPU.

Make sure the write caches are flushed before signaling completion
of the user command stream.

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