]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Rework amdgpu_device_lock_adev
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 25 Jan 2022 16:32:47 +0000 (11:32 -0500)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 9 Feb 2022 17:18:39 +0000 (12:18 -0500)
commit1c745718d0dda93e04d55aabca8cff64112ba468
tree575b0a1d0a6467d1771c5994092fef714b28515f
parent88cc5bda39efb51a818008073671986ae7b95fd6
drm/amdgpu: Rework amdgpu_device_lock_adev

This functions needs to be split into 2 parts where
one is called only once for locking single instance of
reset_domain's sem and reset flag and the other part
which handles MP1 states should still be called for
each device in XGMI hive.

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/msg74118.html
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h