diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-26 11:15:36 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-12-08 00:14:20 +0100 |
commit | a655dad4b2f94e0d880f2e4ea45251092d836f36 (patch) | |
tree | 8d1730c8cb85cf92bc5b5ea10d442e2fc032dbf1 /drivers/gpu/drm/amd/amdgpu/tonga_ih.c | |
parent | drm/amdgpu: send IVs to the KFD only after processing them v3 (diff) | |
download | linux-a655dad4b2f94e0d880f2e4ea45251092d836f36.tar.xz linux-a655dad4b2f94e0d880f2e4ea45251092d836f36.zip |
drm/amdgpu: remove VM fault_credit handling
printk_ratelimit() is much better suited to limit the number of reported
VM faults.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/tonga_ih.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c index dcdbb4d72472..9d7b43da6acc 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c @@ -227,23 +227,7 @@ static u32 tonga_ih_get_wptr(struct amdgpu_device *adev) */ static bool tonga_ih_prescreen_iv(struct amdgpu_device *adev) { - u32 ring_index = adev->irq.ih.rptr >> 2; - u16 pasid; - - switch (le32_to_cpu(adev->irq.ih.ring[ring_index]) & 0xff) { - case 146: - case 147: - pasid = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]) >> 16; - if (!pasid || amdgpu_vm_pasid_fault_credit(adev, pasid)) - return true; - break; - default: - /* Not a VM fault */ - return true; - } - - adev->irq.ih.rptr += 16; - return false; + return true; } /** |