Skip to content

Commit 5adcd78

Browse files
amd-sukhatrialexdeucher
authored andcommitted
drm:amdgpu: enable IH ring1 for IH v6.1
We need IH ring1 for handling the pagefault interrupts which over flow in default ring for specific usecases. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent eefc85a commit 5adcd78

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/ih_v6_1.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,15 @@ static int ih_v6_1_sw_init(void *handle)
550550
adev->irq.ih.use_doorbell = true;
551551
adev->irq.ih.doorbell_index = adev->doorbell_index.ih << 1;
552552

553-
adev->irq.ih1.ring_size = 0;
554-
adev->irq.ih2.ring_size = 0;
553+
if (!(adev->flags & AMD_IS_APU)) {
554+
r = amdgpu_ih_ring_init(adev, &adev->irq.ih1, IH_RING_SIZE,
555+
use_bus_addr);
556+
if (r)
557+
return r;
558+
559+
adev->irq.ih1.use_doorbell = true;
560+
adev->irq.ih1.doorbell_index = (adev->doorbell_index.ih + 1) << 1;
561+
}
555562

556563
/* initialize ih control register offset */
557564
ih_v6_1_init_register_offset(adev);

0 commit comments

Comments
 (0)