drm/amdgpu: enabled software IH ring for Navi
authorChristian König <christian.koenig@amd.com>
Tue, 3 Nov 2020 13:22:50 +0000 (14:22 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:06:55 +0000 (12:06 -0500)
Felix pointed out that we need this for Navi as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/navi10_ih.c

index 837769fcb35b7aed2c6422a81b39664e1d8456cc..ce0a02a4b5d986871419f0d9721a1246f39751ab 100644 (file)
@@ -136,6 +136,9 @@ static void navi10_ih_enable_interrupts(struct amdgpu_device *adev)
                }
                adev->irq.ih2.enabled = true;
        }
+
+       if (adev->irq.ih_soft.ring_size)
+               adev->irq.ih_soft.enabled = true;
 }
 
 /**
@@ -695,6 +698,10 @@ static int navi10_ih_sw_init(void *handle)
                                        (adev->doorbell_index.ih + 2) << 1;
        }
 
+       r = amdgpu_ih_ring_init(adev, &adev->irq.ih_soft, PAGE_SIZE, true);
+       if (r)
+               return r;
+
        r = amdgpu_irq_init(adev);
 
        return r;