drm/amd/display: Fix dummy p-state hang on monitors with extreme timing
authorFelipe Clark <felclark@amd.com>
Mon, 18 Oct 2021 20:50:10 +0000 (16:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:32:34 +0000 (12:32 -0400)
commit670d2a6240536bb7a5dabbd7eb32ebec8c033301
tree06a8d6e598c9f075c33471e0d69af4b3065d37c3
parent7c5b0f22364955ea7a7cbf9cefa4e8e9b99e9d88
drm/amd/display: Fix dummy p-state hang on monitors with extreme timing

[WHY]
It was found that the system would hang on a dummy pstate when playing
4k60 videos on a 1080p 390Hz monitor.

[HOW]
Properly select the dummy_pstate_latency_ms when firmware assisted
memory clock switching is enabled instead of assuming that the highest
latency would work for every monitor timing.

Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Felipe Clark <felclark@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@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/dcn30/dcn30_resource.c