drm/amd/display: fix read errors pertaining to dp_lttpr_status_show()
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Fri, 3 Feb 2023 15:04:11 +0000 (10:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Feb 2023 22:15:08 +0000 (17:15 -0500)
commit642f1b405255ec5574eb20a3f72e29676b94679c
tree7d55d68514b28edb5660544cf0855578db256f02
parentad1cebb6f0fbc2a1e8ea0c7a70d658732bc6f2cd
drm/amd/display: fix read errors pertaining to dp_lttpr_status_show()

Currently, it is likely that we will read the relevant LTTPR caps after
link training has completed (which can cause garbage data to be read),
however according to the DP 2.0 spec that should be done before link
training has commenced. So, instead of reading the registers on demand,
use the values provided to us by DC.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c