drm/amd/display: fix dprefclk and ss percentage reading on RN
authorEric Yang <Eric.Yang2@amd.com>
Sun, 10 Nov 2019 17:08:02 +0000 (12:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 21:28:57 +0000 (16:28 -0500)
commite6d9a93c141e0bcc3a40671b2338c093d04ab14b
tree6eb9349153236b504abe7d51305550eb566720ec
parent639dcfc6feb5c7451d1382c5d3fa1fd679eca544
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>
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h