]> 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)
commit8317443c8016962e37d1bc5f9b0cd53566aae7ef
tree11f9ecd94c09eb26b796ab784f42410877566794
parentb2777831975c63d0276b6ebf27ebb7a3768274c5
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