drm/amd/display: Check DP Alt mode DPCS state via DMUB
authorGeorge Shen <george.shen@amd.com>
Tue, 6 Feb 2024 21:08:49 +0000 (16:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Feb 2024 15:23:55 +0000 (10:23 -0500)
commit7d1e9d0369e4d45738d4b905c3ec92f76d7f91e6
treed1dff65c3a0ba9473f15543c34ca4e1fb22a98be
parent5fe4a8d3c61f76b6e2b155d2f589355bd706a74c
drm/amd/display: Check DP Alt mode DPCS state via DMUB

[Why]
Currently, driver state for DCN3.2 is not strictly matching HW state for
the USBC port. To reduce inconsistencies while debugging, the driver
should match HW configuration.

[How]
Update link encoder flag to indicate USBC port. Call into DMUB to check
when DP Alt mode is entered, and also to check for 2-lane versuse 4-lane
mode.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_link_encoder.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_dio_link_encoder.h