drm/amdgpu: add DMUB trace event IRQ source define
authorLeo (Hanghong) Ma <hanghong.ma@amd.com>
Thu, 4 Mar 2021 15:26:52 +0000 (10:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Mar 2021 20:10:49 +0000 (15:10 -0500)
[Why & How]
We use DMCUB outbox0 interrupt to log DMCUB trace buffer events
as Linux kernel traces, so need to add some irq source related
defination in the header files;

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/include/ivsrcid/dcn/irqsrcs_dcn_1_0.h

index 563c229..051fa8f 100644 (file)
@@ -908,6 +908,7 @@ struct amdgpu_device {
        struct amdgpu_irq_src           vupdate_irq;
        struct amdgpu_irq_src           pageflip_irq;
        struct amdgpu_irq_src           hpd_irq;
+       struct amdgpu_irq_src           dmub_trace_irq;
 
        /* rings */
        u64                             fence_context;
index ac9fa3a..e2bffca 100644 (file)
 #define DCN_1_0__SRCID__HUBP6_FLIP_AWAY_INTERRUPT      0x63    // Flip_away interrupt is generated when all data for old surface is returned and old surface is not used again after the surface flip.HUBP6_IHC_FLIP_AWAY_INTERRUPT    DISP_INTERRUPT_STATUS_CONTINUE17        Level / Pulse
 #define DCN_1_0__SRCID__HUBP7_FLIP_AWAY_INTERRUPT      0x64    // Flip_away interrupt is generated when all data for old surface is returned and old surface is not used again after the surface flip.HUBP7_IHC_FLIP_AWAY_INTERRUPT    DISP_INTERRUPT_STATUS_CONTINUE17        Level / Pulse
 
+#define DCN_1_0__SRCID__DMCUB_OUTBOX_HIGH_PRIORITY_READY_INT       0x68
+#define DCN_1_0__CTXID__DMCUB_OUTBOX_HIGH_PRIORITY_READY_INT       6
 
 #endif // __IRQSRCS_DCN_1_0_H__