mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu: use different irq ring ID for Vega20 page queues
Vega20 uses ring id 1 for page queues EOP irq while previous ASICs take ring id 3. Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c713a46145
commit
fefdc6cc0a
|
@ -1706,13 +1706,15 @@ static int sdma_v4_0_process_trap_irq(struct amdgpu_device *adev,
|
||||||
amdgpu_fence_process(&adev->sdma.instance[instance].ring);
|
amdgpu_fence_process(&adev->sdma.instance[instance].ring);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
/* XXX compute */
|
if (adev->asic_type == CHIP_VEGA20)
|
||||||
|
amdgpu_fence_process(&adev->sdma.instance[instance].page);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
/* XXX compute */
|
/* XXX compute */
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
amdgpu_fence_process(&adev->sdma.instance[instance].page);
|
if (adev->asic_type != CHIP_VEGA20)
|
||||||
|
amdgpu_fence_process(&adev->sdma.instance[instance].page);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue