linux_dsm_epyc7002/drivers/gpu/drm/amd
Zhan Liu f739ce5768 drm/amd/display: Add aconnector condition check for dpcd read
[Why]
core_link_read_dpcd() will invoke dm_helpers_dp_read_dpcd(),
which needs to read dpcd info with the help of aconnector.
If aconnector (dc->links[i]->prev) is NULL, then dpcd status
 cannot be read.

As a result, dpcd read fails and a line of error will be
printed out in dmesg.log as:
"*ERROR* Failed to found connector for link!"

[How]
Make sure that aconnector (dc->links[i]->prev) is not NULL,
then read dpcd status.

Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Joseph Gravenor <Joseph.Gravenor@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-02-25 11:02:14 -05:00
..
acp drm/amdgpu: fix license on Kconfig and Makefiles 2019-12-11 15:22:08 -05:00
amdgpu drm/amdgpu: Improve Vega20 XGMI TLB flush workaround 2020-02-25 11:01:57 -05:00
amdkfd drm/amdkfd: refactor runtime pm for baco 2020-02-12 16:00:54 -05:00
display drm/amd/display: Add aconnector condition check for dpcd read 2020-02-25 11:02:14 -05:00
include amdgpu/gmc_v9: save/restore sdpif regs during S3 2020-02-25 11:01:26 -05:00
powerplay drm/amdgpu: fix memory leak during TDR test(v2) 2020-02-25 11:01:25 -05:00