mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 09:20:13 -04:00
drm/amd/display: Move HPD and IRQ handler code to amdgpu_dm_irq
Move HPD handling (workqueue creation, debounce, handler registration) and IRQ handler callbacks (vblank, pflip, vupdate, vline0, outbox) from amdgpu_dm.c into the existing amdgpu_dm_irq.c. This keeps all IRQ-related code together rather than creating additional files. No functional change intended. Assisted-by: Copilot:Claude-Opus-4.6 Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1167,4 +1167,8 @@ int amdgpu_dm_initialize_hdmi_connector(struct amdgpu_dm_connector *aconnector);
|
||||
|
||||
void retrieve_dmi_info(struct amdgpu_display_manager *dm);
|
||||
|
||||
void amdgpu_dm_emulated_link_detect(struct dc_link *link);
|
||||
void amdgpu_dm_apply_delay_after_dpcd_poweroff(struct amdgpu_device *adev,
|
||||
struct dc_sink *sink);
|
||||
|
||||
#endif /* __AMDGPU_DM_H__ */
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,12 @@
|
||||
|
||||
#include "irq_types.h" /* DAL irq definitions */
|
||||
|
||||
struct amdgpu_device;
|
||||
struct amdgpu_crtc;
|
||||
struct amdgpu_display_manager;
|
||||
struct hpd_rx_irq_offload_work_queue;
|
||||
struct work_struct;
|
||||
|
||||
/*
|
||||
* Display Manager IRQ-related interfaces (for use by DAL).
|
||||
*/
|
||||
@@ -101,4 +107,17 @@ void amdgpu_dm_irq_suspend(struct amdgpu_device *adev);
|
||||
void amdgpu_dm_irq_resume_early(struct amdgpu_device *adev);
|
||||
void amdgpu_dm_irq_resume_late(struct amdgpu_device *adev);
|
||||
|
||||
/* HPD handling */
|
||||
struct hpd_rx_irq_offload_work_queue *amdgpu_dm_hpd_rx_irq_create_workqueue(struct amdgpu_device *adev);
|
||||
void amdgpu_dm_hpd_rx_irq_work_suspend(struct amdgpu_display_manager *dm);
|
||||
int amdgpu_dm_register_hpd_handlers(struct amdgpu_device *adev);
|
||||
void amdgpu_dm_hdmi_hpd_debounce_work(struct work_struct *work);
|
||||
|
||||
/* IRQ handlers */
|
||||
struct amdgpu_crtc *amdgpu_dm_get_crtc_by_otg_inst(struct amdgpu_device *adev,
|
||||
int otg_inst);
|
||||
int amdgpu_dm_dce110_register_irq_handlers(struct amdgpu_device *adev);
|
||||
int amdgpu_dm_dcn10_register_irq_handlers(struct amdgpu_device *adev);
|
||||
int amdgpu_dm_register_outbox_irq_handlers(struct amdgpu_device *adev);
|
||||
|
||||
#endif /* __AMDGPU_DM_IRQ_H__ */
|
||||
|
||||
Reference in New Issue
Block a user