[PATCH 2/7] drm/amdgpu/virtual_dce: no need to an irq process callback
Deng, Emily
Emily.Deng at amd.com
Sat Oct 8 08:22:30 UTC 2016
Reviewed-By: Emily Deng <Emily.Deng at amd.com>
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Alex Deucher
> Sent: Saturday, October 01, 2016 1:09 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>
> Subject: [PATCH 2/7] drm/amdgpu/virtual_dce: no need to an irq process
> callback
>
> Virtual crtcs interrupts do not show up in the IV ring, so it will never be called.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 17 +----------------
> 1 file changed, 1 insertion(+), 16 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> index cf43caa..8163622 100644
> --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
> @@ -710,21 +710,6 @@ static int dce_virtual_set_crtc_irq_state(struct
> amdgpu_device *adev,
> return 0;
> }
>
> -static int dce_virtual_crtc_irq(struct amdgpu_device *adev,
> - struct amdgpu_irq_src *source,
> - struct amdgpu_iv_entry *entry)
> -{
> - unsigned crtc = 0;
> - unsigned irq_type = AMDGPU_CRTC_IRQ_VBLANK1;
> -
> - if (amdgpu_irq_enabled(adev, source, irq_type)) {
> - drm_handle_vblank(adev->ddev, crtc);
> - }
> - dce_virtual_pageflip_irq(adev, NULL, NULL);
> - DRM_DEBUG("IH: D%d vblank\n", crtc + 1);
> - return 0;
> -}
> -
> static int dce_virtual_pageflip_irq(struct amdgpu_device *adev,
> struct amdgpu_irq_src *source,
> struct amdgpu_iv_entry *entry)
> @@ -775,7 +760,7 @@ static int dce_virtual_pageflip_irq(struct
> amdgpu_device *adev,
>
> static const struct amdgpu_irq_src_funcs dce_virtual_crtc_irq_funcs = {
> .set = dce_virtual_set_crtc_irq_state,
> - .process = dce_virtual_crtc_irq,
> + .process = NULL,
> };
>
> static void dce_virtual_set_irq_funcs(struct amdgpu_device *adev)
> --
> 2.5.5
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list