Skip to content

Commit 4f8dbad

Browse files
committed
drm/etnaviv: flush shader L1 cache after user commandstream
The shader L1 cache is a writeback cache for shader loads/stores and thus must be flushed before any BOs backing the shader buffers are potentially freed. Cc: stable@vger.kernel.org Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
1 parent 5a85670 commit 4f8dbad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/etnaviv/etnaviv_buffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ void etnaviv_buffer_queue(struct etnaviv_gpu *gpu, u32 exec_state,
482482
} else {
483483
CMD_LOAD_STATE(buffer, VIVS_GL_FLUSH_CACHE,
484484
VIVS_GL_FLUSH_CACHE_DEPTH |
485-
VIVS_GL_FLUSH_CACHE_COLOR);
485+
VIVS_GL_FLUSH_CACHE_COLOR |
486+
VIVS_GL_FLUSH_CACHE_SHADER_L1);
486487
if (has_blt) {
487488
CMD_LOAD_STATE(buffer, VIVS_BLT_ENABLE, 0x1);
488489
CMD_LOAD_STATE(buffer, VIVS_BLT_SET_COMMAND, 0x1);

0 commit comments

Comments
 (0)