]> 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)
commit85125a3d46f1d4b9f1b549bba0050841b7606a7a
tree223fc4b2be5373f4f95b5b51675e1140bb3993b8
parentff4831ba3a81e03d0aa30bb33cba92963529bd94
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