Skip to contentSkip to conversation

drm/amdgpu: add DMUB outbox event IRQ source define/complete/debug flag

PATCH In review Jude Shih 2 participants 2 messages Apr 7, 2021

Subsystems (2)
lore
Share & tools
lore

Jude Shih

author
#0 lore raw

PATCH 1/1 drm/amdgpu: add DMUB outbox event IRQ source define/complete/debug flag

[Why & How]
We use outbox interrupt that allows us to do the AUX via DMUB Therefore, we need to add some irq source related definition in the header files;

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h                       | 1 +
 drivers/gpu/drm/amd/include/ivsrcid/dcn/irqsrcs_dcn_1_0.h | 2 ++
 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
index 963ecfd84347..480e07d83492 100644
@@ -923,6 +923,7 @@ struct amdgpu_device {
 	struct amdgpu_irq_src		pageflip_irq;
 	struct amdgpu_irq_src		hpd_irq;
 	struct amdgpu_irq_src		dmub_trace_irq;
+	struct amdgpu_irq_src		dmub_outbox_irq;
 
 	/* rings */
 	u64				fence_context;
drivers/gpu/drm/amd/include/ivsrcid/dcn/irqsrcs_dcn_1_0.h +2 -0
index e2bffcae273a..754170a86ea4 100644
@@ -1132,5 +1132,7 @@
 
 #define DCN_1_0__SRCID__DMCUB_OUTBOX_HIGH_PRIORITY_READY_INT       0x68
 #define DCN_1_0__CTXID__DMCUB_OUTBOX_HIGH_PRIORITY_READY_INT       6
+#define DCN_1_0__SRCID__DMCUB_OUTBOX_LOW_PRIORITY_READY_INT        0x68 // DMCUB_IHC_outbox1_ready_int IHC_DMCUB_outbox1_ready_int_ack DMCUB_OUTBOX_LOW_PRIORITY_READY_INTERRUPT DISP_INTERRUPT_STATUS_CONTINUE24 Level/Pulse
+#define DCN_1_0__CTXID__DMCUB_OUTBOX_LOW_PRIORITY_READY_INT        8
 
 #endif // __IRQSRCS_DCN_1_0_H__
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jude Shih

[Why & How]
We use outbox interrupt that allows us to do the AUX via DMUB Therefore, we need to add some irq source related definition in the header files;

Harry

Quoted 23 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu.h                       | 1 +
  drivers/gpu/drm/amd/include/ivsrcid/dcn/irqsrcs_dcn_1_0.h | 2 ++
  2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
index 963ecfd84347..480e07d83492 100644
@@ -923,6 +923,7 @@ struct amdgpu_device {
  	struct amdgpu_irq_src		pageflip_irq;
  	struct amdgpu_irq_src		hpd_irq;
  	struct amdgpu_irq_src		dmub_trace_irq;
+	struct amdgpu_irq_src		dmub_outbox_irq;
 
  	/* rings */
  	u64				fence_context;
drivers/gpu/drm/amd/include/ivsrcid/dcn/irqsrcs_dcn_1_0.h +0 -0
index e2bffcae273a..754170a86ea4 100644

drivers/gpu/drm/amd/include/ivsrcid/dcn/irqsrcs_dcn_1_0.h line 1138

Quoted 7 lines
drivers/gpu/drm/amd/include/ivsrcid/dcn/irqsrcs_dcn_1_0.h +2 -0
@@ -1132,5 +1132,7 @@
 
  #define DCN_1_0__SRCID__DMCUB_OUTBOX_HIGH_PRIORITY_READY_INT       0x68
  #define DCN_1_0__CTXID__DMCUB_OUTBOX_HIGH_PRIORITY_READY_INT       6
+#define DCN_1_0__SRCID__DMCUB_OUTBOX_LOW_PRIORITY_READY_INT        0x68 // DMCUB_IHC_outbox1_ready_int IHC_DMCUB_outbox1_ready_int_ack DMCUB_OUTBOX_LOW_PRIORITY_READY_INTERRUPT DISP_INTERRUPT_STATUS_CONTINUE24 Level/Pulse
+#define DCN_1_0__CTXID__DMCUB_OUTBOX_LOW_PRIORITY_READY_INT        8
 
  #endif // __IRQSRCS_DCN_1_0_H__

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx