drm/amd/display: Increase num voltage states to 40
authorAlvin Lee <alvin.lee2@amd.com>
Wed, 8 Nov 2023 22:16:28 +0000 (17:16 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:16:58 +0000 (17:16 +0100)
commit9826255cdec671a4f0f083d457cfc79b95bbc738
tree2aae430c52148167d491bbb88a088e05ff47eb23
parent93d67b62c7689644b9555405cc64cefa9ee58436
drm/amd/display: Increase num voltage states to 40

[ Upstream commit 67e38874b85b8df7b23d29f78ac3d7ecccd9519d ]

[Description]
If during driver init stage there are greater than 20
intermediary voltage states while constructing the SOC
BB we could hit issues because we will index outside of the
clock_limits array and start overwriting data. Increase the
total number of states to 40 to avoid this issue.

Cc: stable@vger.kernel.org # 6.1+
Reviewed-by: Samson Tam <samson.tam@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dml/dc_features.h