drm/amdgpu: add ih waiter on process until checkpoint
authorJonathan Kim <jonathan.kim@amd.com>
Tue, 23 Feb 2021 20:10:33 +0000 (15:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:10:57 +0000 (23:10 -0400)
commit3f1d1eb2a2561383c84b4400352e721876c565e4
tree068ef61abfde07846ccac1408231bcc5aab1927d
parent0dd795323405680f68cc16a471d19bc3369cc519
drm/amdgpu: add ih waiter on process until checkpoint

Add IH function to allow caller to wait until ring entries are processed
until the checkpoint write pointer.

This will be primarily used by HMM to drain pending page fault interrupts
before memory unmap to prevent HMM from handling stale interrupts.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Christian König <christian.koenig@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