drm/amdgpu/vcn: use vcn4 irqsrc header for VCN 4.0.3
authorJames Zhu <James.Zhu@amd.com>
Sat, 2 Jul 2022 20:04:26 +0000 (16:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:44:45 +0000 (09:44 -0400)
Use vcn4 irqsrc header for VCN 4.0.3.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c

index ae2cc47d344a0a0eee7a48e4da3800700f4e9c21..fafce2beb6cfe3554f39353528218a75016d3e31 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "vcn/vcn_4_0_3_offset.h"
 #include "vcn/vcn_4_0_3_sh_mask.h"
-#include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
+#include "ivsrcid/vcn/irqsrcs_vcn_4_0.h"
 
 #define mmUVD_DPG_LMA_CTL              regUVD_DPG_LMA_CTL
 #define mmUVD_DPG_LMA_CTL_BASE_IDX     regUVD_DPG_LMA_CTL_BASE_IDX
@@ -104,7 +104,7 @@ static int vcn_v4_0_3_sw_init(void *handle)
 
        /* VCN DEC TRAP */
        r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN,
-               VCN_2_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst->irq);
+               VCN_4_0__SRCID__UVD_TRAP, &adev->vcn.inst->irq);
        if (r)
                return r;
 
@@ -1380,7 +1380,7 @@ static int vcn_v4_0_3_process_interrupt(struct amdgpu_device *adev,
        DRM_DEV_DEBUG(adev->dev, "IH: VCN TRAP\n");
 
        switch (entry->src_id) {
-       case VCN_2_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT:
+       case VCN_4_0__SRCID__UVD_TRAP:
                amdgpu_fence_process(&adev->vcn.inst->ring_dec);
                break;
        default: