Skip to content

Commit eefc85a

Browse files
amd-sukhatrialexdeucher
authored andcommitted
drm:amdgpu: enable IH RB ring1 for IH v6.0
We need IH ring1 for handling the pagefault interrupts which are overflowing the 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 efade6f commit eefc85a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

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

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

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

555562
/* initialize ih control register offset */
556563
ih_v6_0_init_register_offset(adev);

0 commit comments

Comments
 (0)