drm/amdgpu: add timeout flush mechanism to update wptr for self interrupt (v2)
authorChengming Gui <Jack.Gui@amd.com>
Tue, 14 Jul 2020 08:25:04 +0000 (16:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jul 2020 19:37:39 +0000 (15:37 -0400)
commit5ea6f9c22c709d5b4dd69444779eb2d9e2722274
tree454bb5e37b0dd8056e3388ccd968fd29f9c8236b
parentc652923afa7c8fef2aee42142e9663c0e69f367d
drm/amdgpu: add timeout flush mechanism to update wptr for self interrupt (v2)

outstanding log reaches threshold will trigger IH ring1/2's wptr
reported, that will avoid generating interrupts to ring0 too frequent.
But if ring1/2's wptr hasn't been increased for a long time, the outstanding log
can't reach threshold so that driver can't get latest wptr info and
miss some interrupts.

v2: squash in warning fix

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/navi10_ih.c