drm/amd/display/dc/irq: Remove duplications of hpd_ack function from IRQThe major of dcn and dce irqs share a copy-pasted collectionof copy-pasted function, which is: hpd_ack.This patch removes
drm/amd/display/dc/irq: Remove duplications of hpd_ack function from IRQThe major of dcn and dce irqs share a copy-pasted collectionof copy-pasted function, which is: hpd_ack.This patch removes the multiple copy-pasted by moving them tothe irq_service.c and make the irq_service'scalls the functions implemented by the irq_service.cinstead.The hpd_ack function is replaced by hpd0_ack and hpd1_ack, therequired constants are also added.The changes were not tested on actual hardware. I am only ableto verify that the changes keep the code compileable and do mybest to look repeatedly if I am not actually changing any code.Signed-off-by: Sebastian Aguilera Novoa <saguileran@ime.usp.br>Reviewed-by: Alex Hung <alex.hung@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
drm/amd/display: Add DCN35 IRQ[Why & How]- Add IRQ handling for DCN35- Update IRQ files for other DCNs in accordance to change in irq_service.hSigned-off-by: Qingqing Zhuo <Qingqing.Zhuo@amd.
drm/amd/display: Add DCN35 IRQ[Why & How]- Add IRQ handling for DCN35- Update IRQ files for other DCNs in accordance to change in irq_service.hSigned-off-by: Qingqing Zhuo <Qingqing.Zhuo@amd.com>Acked-by: Harry Wentland <Harry.Wentland@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: fix function scopesThis turns previously global functions into static, thus removingcompile-time warnings such as: warning: no previous prototype for 'get_highest_allowed_voltag
drm/amd/display: fix function scopesThis turns previously global functions into static, thus removingcompile-time warnings such as: warning: no previous prototype for 'get_highest_allowed_voltage_level' [-Wmissing-prototypes] 742 | unsigned int get_highest_allowed_voltage_level(uint32_t chip_family, uint32_t hw_internal_rev, uint32_t pci_revision_id) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: no previous prototype for 'rv1_vbios_smu_send_msg_with_param' [-Wmissing-prototypes] 102 | int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Changes since v1:- As suggested by Rodrigo Siqueira: 1. Rewrite function signatures to make them more readable. 2. Get rid of unused functions in order to remove 'defined but not used' warnings.Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>Signed-off-by: Isabella Basso <isabbasso@riseup.net>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amdgpu/display: fold DRM_AMD_DC_DCN3_1 into DRM_AMD_DC_DCNNo need for a separate flag now that DCN3.1 is not in bring up.Fold into DRM_AMD_DC_DCN like previous DCN IPs.Reviewed-by: Nicholas
drm/amdgpu/display: fold DRM_AMD_DC_DCN3_1 into DRM_AMD_DC_DCNNo need for a separate flag now that DCN3.1 is not in bring up.Fold into DRM_AMD_DC_DCN like previous DCN IPs.Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Add DCN3.1 IRQ managerAdd IRQ services for DCN3.1 to handle hardware generated interrupts.Acked-by: Huang Rui <ray.huang@amd.com>Signed-off-by: Nicholas Kazlauskas <nicholas.kaz
drm/amd/display: Add DCN3.1 IRQ managerAdd IRQ services for DCN3.1 to handle hardware generated interrupts.Acked-by: Huang Rui <ray.huang@amd.com>Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>