Skip to content

Commit 96c3085

Browse files
lynxeye-devgregkh
authored andcommitted
drm/etnaviv: flush shader L1 cache after user commandstream
commit 4f8dbad upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e1f0df8 commit 96c3085

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)