From: Nicholas Kazlauskas Date: Tue, 7 Oct 2025 14:40:26 +0000 (-0400) Subject: drm/amd/display: Fix wrong index for DCN401 cursor offload X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c228b1aabce1ee9c4d050cb68a43638dc5b3900;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Fix wrong index for DCN401 cursor offload [Why] Payloads are ignored because the wrong index is written as part of the pipe update implementation for DCN401. [How] Align it to the DCN35 implementation and ensure the + 1 is added. Reviewed-by: Alvin Lee Signed-off-by: Nicholas Kazlauskas Signed-off-by: Wayne Lin Tested-by: Dan Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c index 23ecab4bcbba8..b9c357a407074 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c @@ -2978,7 +2978,7 @@ void dcn401_update_cursor_offload_pipe(struct dc *dc, const struct pipe_ctx *pip return; stream_idx = top_pipe->pipe_idx; - write_idx = cs->offload_streams[stream_idx].write_idx; + write_idx = cs->offload_streams[stream_idx].write_idx + 1; /* new payload (+1) */ payload_idx = write_idx % ARRAY_SIZE(cs->offload_streams[stream_idx].payloads); p = &cs->offload_streams[stream_idx].payloads[payload_idx].pipe_data[pipe->pipe_idx].dcn401;