]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: return IH ring drain finished if ring is empty
authorPhilip Yang <Philip.Yang@amd.com>
Sun, 18 Apr 2021 02:37:21 +0000 (22:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:36:05 +0000 (23:36 -0400)
commit5f52499968d09e08da739b22fd8899fef0208eeb
tree0e617d7a70aec81e4d278cb76df6a92722fea039
parent52aa54b0c2a0258c57e5bf73843e9d00e6431ee7
drm/amdgpu: return IH ring drain finished if ring is empty

Sometimes IH do not setup ring wptr overflow flag after wptr exceed
rptr. As a workaround, if IH rptr equals to wptr, ring is empty,
return true to indicate IH ring checkpoint is processed, IH ring drain
is finished.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c