]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit03dfa177bc077b116abc3561b455eae07bf57a92
tree223fc4b2be5373f4f95b5b51675e1140bb3993b8
parent2dd50833fa433e136f542b7de91d2e1197058747
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