This DC patchset brings improvements in multiple areas. In summary, we highlight:
- Avoid per-entry long division in __drm_lut32_to_dc_gamma - Add more diagnostic logging, a debug option to force the DP link rate and per-CRTC pstate method in connector debugfs - Reject Replay activation on an inactive link - Decouple PROGRAM_CURSOR_UPDATE_NOW from dc and pipe_ctx - Add DPMS-v2 init and tx init, and implement link_set_dpms_off_v2 - Derive DCN6 DSCCLK range from DISPCLK - Carry stream and plane update bits in update_flags and add vsync and immediate flips to the DC2 seamless update - Preserve bandwidth floors in overrides - Set HDMI bypass earlier - Add DMUB timer reference clock to ref_clocks - Guard connector I2C transfer without DDC pin - Refactor ABM_SET_PIPE and ABM_SET_IMMEDIATE_DISABLE - Add amdgpu_dm_dmub tests for alt-ch apertures, SET_CONFIG sync wait, AUX transfer timeout and fused IO replies - Use Z8 enter plus exit for vblank reserve - Fix two streams sharing one OTG - Count planes, not pipes, in the surface check - Promote DMUB firmware to release 0.1.86.0 Cc: Daniel Wheeler <[email protected]> Alan Liu (1): drm/amd/display: Avoid per-entry long division in __drm_lut32_to_dc_gamma Alex Hung (4): drm/amd/display: Test amdgpu_dm_dmub alt-ch apertures drm/amd/display: Test amdgpu_dm_dmub SET_CONFIG sync wait drm/amd/display: Test amdgpu_dm_dmub AUX transfer timeout drm/amd/display: Test amdgpu_dm_dmub fused IO replies Allen Pan (1): drm/amd/display: Add debug option to force DP link rate Alvin Lee (1): drm/amd/display: Add DMUB timer reference clock to ref_clocks Charlene Liu (1): drm/amd/display: Set HDMI bypass earlier Dillon Varone (1): drm/amd/display: Capture more diagnostic register state Dominik Kowalski (3): drm/amd/display: Add DPMS-v2 init drm/amd/display: Add DPMS-v2 tx init drm/amd/display: Implement link_set_dpms_off_v2 Gabe Teeger (1): drm/amd/display: Fix two streams sharing one OTG Harry VanZyllDeJong (1): drm/amd/display: Reject Replay activation on an inactive link Ivan Lipski (2): drm/amd/display: Expose per-CRTC pstate method in connector debugfs drm/amd/display: Derive DCN6 DSCCLK range from DISPCLK James Lin (1): drm/amd/display: Guard connector I2C transfer without DDC pin Ovidiu Bunea (1): drm/amd/display: Use Z8 enter plus exit for vblank reserve Piotr Maziarz (1): drm/amd/display: Decouple PROGRAM_CURSOR_UPDATE_NOW from dc and pipe_ctx Rafal Ostrowski (1): drm/amd/display: Refactor ABM_SET_PIPE and ABM_SET_IMMEDIATE_DISABLE Taimur Hassan (2): drm/amd/display: [FW Promotion] Release 0.1.86.0 drm/amd/display: Promote DC to 3.2.409 Tony Cheng (4): drm/amd/display: Carry the stream and plane update bits in update_flags drm/amd/display: Add the vsync flip to the DC2 seamless update drm/amd/display: Add the immediate flip to the DC2 seamless update drm/amd/display: Count planes, not pipes, in the surface check Wenjing Liu (1): drm/amd/display: Preserve bandwidth floors in overrides .../amd/display/amdgpu_dm/amdgpu_dm_color.c | 21 +- .../display/amdgpu_dm/amdgpu_dm_connector.c | 6 +- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 34 ++ .../amd/display/amdgpu_dm/amdgpu_dm_dmub.c | 1 + .../amdgpu_dm/tests/amdgpu_dm_dmub_test.c | 283 ++++++++++ .../bls_builder/bls_builder_private_types.h | 12 + .../dc/bls_builder/dcn401_builder_internal.h | 14 + .../dc/bls_builder/dcn401_seamless_builder.c | 482 +++++++++++++++--- .../display/dc/clk_mgr/dcn60/dcn60_clk_mgr.c | 18 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 +- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 192 +++++-- .../gpu/drm/amd/display/dc/core/dc_resource.c | 64 ++- .../gpu/drm/amd/display/dc/core/dc_state.c | 4 + .../gpu/drm/amd/display/dc/core2/dc_core2.c | 76 ++- drivers/gpu/drm/amd/display/dc/dc.h | 4 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 11 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h | 8 +- .../gpu/drm/amd/display/dc/dc_state_priv.h | 8 +- drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c | 66 ++- drivers/gpu/drm/amd/display/dc/dce/dmub_abm.h | 2 + .../dc/dio/dcn401/dcn401_dio_stream_encoder.c | 15 + .../dc/dio/dcn401/dcn401_dio_stream_encoder.h | 4 + .../dc/dio/dcn42/dcn42_dio_link_encoder.c | 12 +- .../dc/dio/dcn42/dcn42_dio_stream_encoder.c | 2 +- .../dc/dio/dcn60/dcn60_dio_stream_encoder.c | 2 +- .../dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c | 35 +- .../src/inc/dml2_internal_shared_types.h | 1 + .../display/dc/hubbub/dcn10/dcn10_hubbub.h | 1 + .../display/dc/hubbub/dcn20/dcn20_hubbub.c | 6 + .../display/dc/hubbub/dcn35/dcn35_hubbub.h | 1 + .../display/dc/hubbub/dcn42/dcn42_hubbub.h | 3 +- .../amd/display/dc/hwss/dcn21/dcn21_hwseq.c | 108 ++-- .../amd/display/dc/hwss/dcn30/dcn30_hwseq.c | 2 + .../amd/display/dc/hwss/dcn31/dcn31_hwseq.c | 2 + .../amd/display/dc/hwss/dcn32/dcn32_hwseq.c | 2 + .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 6 +- .../amd/display/dc/hwss/dcn35/dcn35_hwseq.h | 2 +- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 8 +- .../amd/display/dc/hwss/dcn42/dcn42_hwseq.c | 2 + .../amd/display/dc/hwss/dcn50/dcn50_hwseq.c | 2 + .../drm/amd/display/dc/hwss/hw_sequencer.h | 59 ++- .../gpu/drm/amd/display/dc/inc/core_types.h | 1 + drivers/gpu/drm/amd/display/dc/inc/hw/abm.h | 10 +- .../gpu/drm/amd/display/dc/inc/hw/dchubbub.h | 2 + drivers/gpu/drm/amd/display/dc/link/Makefile | 11 + .../drm/amd/display/dc/link/link_dpms_v1.c | 84 +++ .../drm/amd/display/dc/link/link_dpms_v1.h | 29 ++ .../drm/amd/display/dc/link/link_dpms_v2.c | 250 ++++++++- .../drm/amd/display/dc/link/link_factory.c | 90 +++- .../link/protocols/link_edp_panel_control.c | 6 + .../drm/amd/display/dc/link/tx/link_tx_v1.c | 55 ++ .../drm/amd/display/dc/link/tx/link_tx_v1.h | 34 ++ .../drm/amd/display/dc/link/tx/link_tx_v2.c | 83 +++ .../drm/amd/display/dc/link/tx/link_tx_v2.h | 38 ++ .../dc/resource/dcn401/dcn401_resource.h | 1 + .../dc/resource/dcn42b/dcn42b_resource.c | 82 ++- .../dc/resource/dcn42b/dcn42b_resource.h | 6 + .../dc/resource/dcn60/dcn60_resource.c | 4 + .../dc/resource/dcn60/dcn60_resource.h | 1 + .../dcn60/dcn60_soc_and_ip_translator.c | 15 + drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 12 + .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 1 + .../drm/amd/display/dmub/src/dmub_dcn401.c | 40 ++ .../drm/amd/display/dmub/src/dmub_dcn401.h | 39 +- .../gpu/drm/amd/display/dmub/src/dmub_dcn42.c | 37 ++ .../gpu/drm/amd/display/dmub/src/dmub_dcn42.h | 36 +- .../drm/amd/display/dmub/src/dmub_dcn42b.c | 1 + .../gpu/drm/amd/display/dmub/src/dmub_dcn60.c | 38 ++ .../gpu/drm/amd/display/dmub/src/dmub_dcn60.h | 36 +- 69 files changed, 2331 insertions(+), 297 deletions(-) create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.c create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.h create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.c create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.h -- 2.43.0
