linux/drivers/gpu/drm/amd/display
Wenjing Liu 39079fe8e6 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.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Reviewed-by: Nevenko Stupar <nevenko.stupar@amd.com>
Reviewed-by: Chaitanya Dhere <chaitanya.dhere@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-01-31 17:29:58 -05:00
..
amdgpu_dm drm/amd/display: "Enable IPS by default" 2024-01-25 16:00:24 -05:00
dc drm/amd/display: fix incorrect mpc_combine array size 2024-01-31 17:29:58 -05:00
dmub drm/amd/display: Replay + IPS + ABM in Full Screen VPB 2024-01-25 16:00:24 -05:00
include drm/amd/display: To adjust dprefclk by down spread percentage 2024-01-09 15:43:53 -05:00
modules drm/amd/display: Replay + IPS + ABM in Full Screen VPB 2024-01-25 16:00:24 -05:00
Kconfig
Makefile drm/amd/display: Refactor OPTC into component folder 2023-11-29 16:49:01 -05:00
TODO