drm/amdgpu: limit the number of IVs processed at once
authorChristian König <christian.koenig@amd.com>
Tue, 5 Mar 2019 14:13:52 +0000 (15:13 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:58 +0000 (15:36 -0500)
commit8c65fe5fc81c37c98269389759bb1d90c4658953
tree5a035d343cd25b005df4abb8543297e7e3cb6222
parentb51cd19e48b72dd31831d8f00fbcf34444e69f68
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 <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h