drm/amdgpu: add VMC1 interrupt client id for Arcturus
authorLe Ma <le.ma@amd.com>
Thu, 6 Sep 2018 09:34:06 +0000 (17:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:02 +0000 (14:18 -0500)
New IH client id for VMC1.

Signed-off-by: Le Ma <le.ma@amd.com>
Acked-by: Snow Zhang < Snow.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/include/soc15_ih_clientid.h

index 3ce10e8ebefa48d20da97b23742266727fa7e082..ad387529446e138fc6a6a1665ae295d0e18c6781 100644 (file)
@@ -1032,6 +1032,13 @@ static int gmc_v9_0_sw_init(void *handle)
        if (r)
                return r;
 
+       if (adev->asic_type == CHIP_ARCTURUS) {
+               r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VMC1, VMC_1_0__SRCID__VM_FAULT,
+                                       &adev->gmc.vm_fault);
+               if (r)
+                       return r;
+       }
+
        r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_UTCL2, UTCL2_1_0__SRCID__FAULT,
                                &adev->gmc.vm_fault);
 
index 5b40b9d1b788700e713e273f1d312698bf357403..0f386b2e1f4f9e98b5e1b6099c29dd38a94d5035 100644 (file)
@@ -70,6 +70,7 @@ enum soc15_ih_clientid {
        SOC15_IH_CLIENTID_SDMA5         = SOC15_IH_CLIENTID_VCE0,
        SOC15_IH_CLIENTID_SDMA6         = SOC15_IH_CLIENTID_XDMA,
        SOC15_IH_CLIENTID_SDMA7         = SOC15_IH_CLIENTID_VCE1,
+       SOC15_IH_CLIENTID_VMC1          = SOC15_IH_CLIENTID_PCIE0,
 };
 
 #endif