FAILED: Patch "drm/amd/display: fix incorrect mpc_combine array size" failed to apply to 6.8-stable tree
Subsystems (5)
Sasha Levin
maintainerThe patch below does not apply to the 6.8-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 607e1b0cf480cb8dbd65b372397871d7389942b5 Mon Sep 17 00:00:00 2001
From: Wenjing Liu <[email protected]>
Date: Thu, 18 Jan 2024 15:14:15 -0500
Subject: [PATCH] drm/amd/display: fix incorrect mpc_combine array size
[why]MAX_SURFACES is per stream, while MAX_PLANES is per asic. The mpc_combine is an array that records all the planes per asic. Therefore MAX_PLANES should be used as the array size. Using MAX_SURFACES causes array overflow when there are more than 3 planes.
[how]
Use the MAX_PLANES for the mpc_combine array size.
--- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +1 -1
@@ -1113,7 +1113,7 @@ struct pipe_slice_table {struct pipe_ctx *pri_pipe;struct dc_plane_state *plane;int slice_count; - } mpc_combines[MAX_SURFACES ]; + } mpc_combines[MAX_PLANES ];int mpc_combine_count; };
Signature · 1 line
2.43.0