aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/bios
diff options
context:
space:
mode:
authorEric Yang <Eric.Yang2@amd.com>2019-11-10 12:08:02 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-12-05 16:28:57 -0500
commite6d9a93c141e0bcc3a40671b2338c093d04ab14b (patch)
tree6eb9349153236b504abe7d51305550eb566720ec /drivers/gpu/drm/amd/display/dc/bios
parentdrm/amd/display: have two different sr and pstate latency tables for renoir (diff)
downloadlinux-dev-e6d9a93c141e0bcc3a40671b2338c093d04ab14b.tar.xz
linux-dev-e6d9a93c141e0bcc3a40671b2338c093d04ab14b.zip
drm/amd/display: fix dprefclk and ss percentage reading on RN
[Why] Before was using HW counter value to determine the dprefclk. Which take into account ss, but has large variation, not good enough for generating audio dto. Also, the bios parser code to get the ss percentage was not working. [How] After this change, dprefclk is hard coded, same as on RV. We don't expect this to change on Renoir. Modified bios parser code to get the right ss percentage. Signed-off-by: Eric Yang <Eric.Yang2@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios')
-rw-r--r--drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
index 2a74be731faa..2f1c9584ac32 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
@@ -834,6 +834,7 @@ static enum bp_result bios_parser_get_spread_spectrum_info(
case 1:
return get_ss_info_v4_1(bp, signal, index, ss_info);
case 2:
+ case 3:
return get_ss_info_v4_2(bp, signal, index, ss_info);
default:
break;