]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu:add lock_reset for SRIOV
authorMonk Liu <Monk.Liu@amd.com>
Wed, 25 Jan 2017 07:48:01 +0000 (15:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:52:46 +0000 (23:52 -0400)
commit34756f93cf6284f83258acbf3cdcde8464d6c50b
tree12c0d32e7187e3de058a9d799421b988f476cd0e
parent6307dc854e33e52038768bb565e70f6c2e8f7fa8
drm/amdgpu:add lock_reset for SRIOV

this lock is used for sriov_gpu_reset, only get this mutex
can run into sriov_gpu_reset.

we have couple source triggers gpu_reset for SRIOV:
1) submit timedout and trigger reset voluntarily
2) invalid instruction detected by ENGINE and trigger reset voluntarily
2) hypervisor found world switch hang and trigger flr and notify guest to
   do reset.

all need take care and we need a mutex to protect the consistency of
reset routine.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h