]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: wait for all rings to drain before runtime suspending
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2019 21:21:44 +0000 (16:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:13 +0000 (16:09 -0500)
commitfa099bbf26f3a9e1a80176d34d4225ced4136dbb
tree0de7b0d4e88635225d5ad60c482b61727905c71a
parent0073da5710cb14330753d469736b80f763e0965d
drm/amdgpu: wait for all rings to drain before runtime suspending

Add a safety check to runtime suspend to make sure all outstanding
fences have signaled before we suspend.  Doesn't fix any known issue.

We already do this via the fence driver suspend function, but we
just force completion rather than bailing.  This bails on runtime
suspend so we can try again later once the fences are signaled to
avoid missing any outstanding work.

Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c