diff options
| author | Christian König <[email protected]> | 2019-03-05 14:13:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-03-19 20:36:58 +0000 |
| commit | 8c65fe5fc81c37c98269389759bb1d90c4658953 (patch) | |
| tree | 5a035d343cd25b005df4abb8543297e7e3cb6222 /drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | |
| parent | drm/amdgpu: enable IH ring 1&2 for Vega20 as well (diff) | |
| download | kernel-8c65fe5fc81c37c98269389759bb1d90c4658953.tar.gz kernel-8c65fe5fc81c37c98269389759bb1d90c4658953.zip | |
drm/amdgpu: limit the number of IVs processed at once
Only process a maximum of 32 IVs before writing back the RPTR. This improves
hw handling when we get close to an overflow in the ring buffer.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h index 113a1ba13d4a..4e0bb645176d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h @@ -24,6 +24,9 @@ #ifndef __AMDGPU_IH_H__ #define __AMDGPU_IH_H__ +/* Maximum number of IVs processed at once */ +#define AMDGPU_IH_MAX_NUM_IVS 32 + struct amdgpu_device; struct amdgpu_iv_entry; |
