linux/drivers/gpu/drm/amd/display/amdgpu_dm
Wayne Lin c9aef4f6c6 drm/amd/display: adjust few initialization order in dm
[Why]
Observe error message "Can't retrieve aconnector in hpd_rx_irq_offload_work"
when boot up with a mst tbt4 dock connected. After analyzing, there are few
parts needed to be adjusted:

1. hpd_rx_offload_wq[].aconnector is not initialzed before the dmub outbox
hpd_irq handler get registered which causes the error message.

2. registeration of hpd and hpd_rx_irq event for usb4 dp tunneling is not
aligned with legacy interface sequence

[How]
Put DMUB_NOTIFICATION_HPD and DMUB_NOTIFICATION_HPD_IRQ handler
registration into register_hpd_handlers() to align other interfaces and
get hpd_rx_offload_wq[].aconnector initialized earlier than that.

Leave DMUB_NOTIFICATION_AUX_REPLY registered as it was since we need that
while calling dc_link_detect(). USB4 connection status will be proactively
detected by dc_link_detect_connection_type() in amdgpu_dm_initialize_drm_device()

Cc: Stable <stable@vger.kernel.org>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-02-22 10:15:11 -05:00
..
amdgpu_dm_color.c drm/amd/display: cleanup inconsistent indenting in amdgpu_dm_color 2024-01-09 15:44:13 -05:00
amdgpu_dm_crc.c drm/amd/display: Skip writeback connector when we get amdgpu_dm_connector 2023-12-06 15:22:34 -05:00
amdgpu_dm_crc.h drm/amd/display: Fix in secure display context creation 2023-04-24 18:36:46 -04:00
amdgpu_dm_crtc.c drm/amd/display: add debugfs disallow edp psr 2024-01-29 15:42:10 -05:00
amdgpu_dm_crtc.h drm/amd/display: add prefix to amdgpu_dm_crtc.h functions 2023-03-08 14:05:53 -05:00
amdgpu_dm_debugfs.c drm/amd/display: add debugfs disallow edp psr 2024-01-29 15:42:10 -05:00
amdgpu_dm_debugfs.h drm/amd/display: Move connector debugfs to drm 2022-05-23 11:27:44 +03:00
amdgpu_dm_hdcp.c drm/amd/display: Add DCN35 DM Support 2023-08-30 15:51:16 -04:00
amdgpu_dm_hdcp.h drm/amd/display: phase2 enable mst hdcp multiple displays 2023-01-17 15:41:19 -05:00
amdgpu_dm_helpers.c drm/amd/display: Align the returned error code with legacy DP 2024-01-15 18:35:39 -05:00
amdgpu_dm_irq_params.h drm/amd/display: Implement secure display on DCN21 2022-10-27 14:42:32 -04:00
amdgpu_dm_irq.c drm/amd/display: Disable ips before dc interrupt setting 2024-01-25 14:58:03 -05:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd: include drm/drm_edid.h only where needed 2023-12-13 16:08:01 -05:00
amdgpu_dm_mst_types.h drm/amd/display: Add polling method to handle MST reply packet 2023-07-18 14:32:37 -04:00
amdgpu_dm_plane.c drm/amd/display: Add 3x4 CTM support for plane CTM 2023-12-14 15:27:35 -05:00
amdgpu_dm_plane.h drm/amd/display: Add prefix for plane functions 2023-10-26 19:00:09 -04:00
amdgpu_dm_pp_smu.c drm/amd/display: Clean up warnings in amdgpu_dm_pp_smu.c 2023-07-07 13:51:47 -04:00
amdgpu_dm_psr.c drm/amd/display: Add a new DC debug mask for PSR-SU 2023-12-19 14:47:15 -05:00
amdgpu_dm_psr.h
amdgpu_dm_replay.c drm/amd/display: Enable Panel Replay for static screen use case 2024-01-15 18:35:39 -05:00
amdgpu_dm_replay.h drm/amd/display: Enable Panel Replay for static screen use case 2024-01-15 18:35:39 -05:00
amdgpu_dm_services.c
amdgpu_dm_trace.h drm/amd/display: Create optc.h file 2023-11-07 12:03:30 -05:00
amdgpu_dm_wb.c drm/amd: include drm/drm_edid.h only where needed 2023-12-13 16:08:01 -05:00
amdgpu_dm_wb.h drm/amd/display: Create amdgpu_dm_wb_connector 2023-12-06 15:22:35 -05:00
amdgpu_dm.c drm/amd/display: adjust few initialization order in dm 2024-02-22 10:15:11 -05:00
amdgpu_dm.h drm/amd/display: add debugfs disallow edp psr 2024-01-29 15:42:10 -05:00
dc_fpu.c drm/amd/display: Add a warning if the FPU is used outside from task context. 2023-10-09 16:47:37 -04:00
dc_fpu.h
Makefile drm/amd/display: Initialize writeback connector 2023-12-06 15:22:34 -05:00