drm/amdgpu: Add otg vertical IRQ Source
authorWayne Lin <Wayne.Lin@amd.com>
Fri, 29 Jan 2021 06:06:16 +0000 (14:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Feb 2021 20:28:55 +0000 (15:28 -0500)
[Why & How]
In order to get appropriate timing for registers which
read/write is vertical line sensitive, add new IRQ source variable.
This interrupt is triggered by specific vertical line,

Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h

index f4ff8dd..dbf8c8a 100644 (file)
@@ -891,6 +891,7 @@ struct amdgpu_device {
        /* For pre-DCE11. DCE11 and later are in "struct amdgpu_device->dm" */
        struct work_struct              hotplug_work;
        struct amdgpu_irq_src           crtc_irq;
+       struct amdgpu_irq_src           vline0_irq;
        struct amdgpu_irq_src           vupdate_irq;
        struct amdgpu_irq_src           pageflip_irq;
        struct amdgpu_irq_src           hpd_irq;