]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Serialize non TDR gpu recovery with TDRs
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 17 Dec 2021 18:05:15 +0000 (13:05 -0500)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 9 Feb 2022 17:15:23 +0000 (12:15 -0500)
commit4c4ccc7c0eb67c69283ca112d887ffb5996d195e
tree941038356cea01d8665b3e5bc428a93cae31dff0
parent9013241ebbf803633259b94cab95d27b3eead73f
drm/amdgpu: Serialize non TDR gpu recovery with TDRs

Use reset domain wq also for non TDR gpu recovery trigers
such as sysfs and RAS. We must serialize all possible
GPU recoveries to gurantee no concurrency there.
For TDR call the original recovery function directly since
it's already executed from within the wq. For others just
use a wrapper to qeueue work and wait on it to finish.

v2: Rename to amdgpu_recover_work_struct

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://www.spinics.net/lists/amd-gfx/msg74113.html
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c