]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add enable/disable FIFO callbacks to stream setup
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 6 Jul 2022 20:26:40 +0000 (16:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jul 2022 21:14:50 +0000 (17:14 -0400)
commit62309b02a5fea296c67f3d9960bca6ec4d0e0716
tree11f9ecd94c09eb26b796ab784f42410877566794
parent79d4a2087fff3245c572930842641d2e87979ef6
drm/amd/display: Add enable/disable FIFO callbacks to stream setup

[Why]
We don't write out attributes after disabling and re-enabling the link
on some monitors, causing some, but not all, HDMI displays to fail to
lightup on DCN314.

[How]
Firmware used to do this after DIG link setup.

Since firmware is no longer doing this to support USB4 and dynamic link
remapping we'll need to add this to driver in the equivalent paths.

New optional callbacks were created in the stream encoder interface and
implementations were added for DCN314.

Reviewed-by: Michael Strauss <Michael.Strauss@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h
drivers/gpu/drm/amd/display/dc/link/link_hwss_dio.c