]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Add workaround to restrict max frac urgent for DPM0
authorSung-huai Wang <danny.wang@amd.com>
Thu, 13 Jun 2024 07:22:17 +0000 (15:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:37 +0000 (17:10 -0400)
commit871512e36f9c1c2cb4e62eb860ca0438800e4d63
treee0d0b6ef3bd675d3bd08a057b5302b28b632b095
parenta42e74391783603b28f266fc7bbfc1011eb0a151
drm/amd/display: Add workaround to restrict max frac urgent for DPM0

[WHY]
Underflow occurs on some platforms when urgent BW is close to
the maximum in DPM0.

[HOW]
It does not occur at DPM1, so as a workaround restrict the maximum
amount and increase the lowest state index for clock states until
we're out of DPM0.
Adds DML2 config options to specify this pe platform as required.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Sung-huai Wang <danny.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.h
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c