drm/amd/display: Update dram_clock_change_latency for DCN2.1
authorJake Wang <haonan.wang2@amd.com>
Fri, 8 Jan 2021 17:27:51 +0000 (12:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2021 14:37:16 +0000 (15:37 +0100)
commitaf2fc0f4acb618ac66c0820ad84c9da1a8e95d95
tree73cfb535132a4a646f24d9b10eb07dbbf49accad
parent89ca15b71b9148b9d6af42bb84173150167bca8a
drm/amd/display: Update dram_clock_change_latency for DCN2.1

[ Upstream commit 901c1ec05ef277ce9d43cb806a225b28b3efe89a ]

[WHY]
dram clock change latencies get updated using ddr4 latency table, but
does that update does not happen before validation. This value
should not be the default and should be number received from
df for better mode support.
This may cause a PState hang on high refresh panels with short vblanks
such as on 1080p 360hz or 300hz panels.

[HOW]
Update latency from 23.84 to 11.72.

Signed-off-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@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/dcn21/dcn21_resource.c