drm/amd/display: Detect dpcd_rev when hotplug mst monitor
authorWayne Lin <Wayne.Lin@amd.com>
Wed, 20 Apr 2022 02:32:15 +0000 (10:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:43:18 +0000 (14:43 -0400)
commit453b0016a054df0f442fda8a145b97a33816cab9
treeb5b4b7094d8a05d12f14e6fa4baee4e302dd07d8
parent84de5c2e92dccb2bcfd5ff68af44960b808fe6bb
drm/amd/display: Detect dpcd_rev when hotplug mst monitor

[Why]
Once mst topology is constructed, later on new connected monitors
are reported to source by CSN message. Within CSN, there is no
carried info of DPCD_REV comparing to LINK_ADDRESS reply. As the
result, we might leave some ports connected to DP but without DPCD
revision number which will affect us determining the capability of
the DP Rx.

[How]
Send out remote DPCD read when the port's dpcd_rev is 0x0 in
detect_ctx(). Firstly, read out the value from DPCD 0x2200. If the
return value is 0x0, it's likely the DP1.2 DP Rx then we reques
revision from DPCD 0x0 again.

Reviewed-by: Hersen Wu <hersenwu@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c