]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: doesn't reprogram AMD OUI
authorYu-ting Shen <Yu-ting.Shen@amd.com>
Tue, 24 Nov 2020 02:49:27 +0000 (10:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:43:38 +0000 (23:43 -0500)
commit92861c8e35ae1f5f770b6b9ee50f47c469ac561c
tree239f38e97b9d3914bc5fae8794eca18407e63bea
parentc64bbc8ee755882b1cbf5b74f348e7a99c0b4417
drm/amd/display: doesn't reprogram AMD OUI

[Why]
1. the corrected timing to write DPCD 300h AMD signature is before
link training.
2. and VBIOS will writes correctted AMD signature by after AGESA 1.0.0,
so driver doesn't need to write DPCD 300h again to switch config.
3. there are some OLED panel will clean backlight level to 0 once
receive DPCD 300h, so we will see flicker issue at that time.

[How]
read DPCD 300h signature before write it to avoid reprogram again, if
AMD signature was writed corrected by VBIOS, driver will not reprogram
it again.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Yu-ting Shen <Yu-ting.Shen@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_dp_types.h