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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 21:48:59 +0000 (16:48 -0500)
commit75a3371e8ffdab2e504f4326daab60f8fb15fdf1
tree88af81920d65dde0f148eaa2c2a1284cf960a34f
parent220db802cb505e6ec3b3e0018ac0233205632a72
drm/amd/display: Increase num voltage states to 40

[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>
drivers/gpu/drm/amd/display/dc/dml/dc_features.h