]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: rework VM state machine lock handling v2
authorChristian König <christian.koenig@amd.com>
Thu, 19 Apr 2018 08:56:02 +0000 (10:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 May 2018 15:07:52 +0000 (10:07 -0500)
commit60d01951686797c0a0a161594512c7be9b6ed1e1
tree92238b98187bcf270b5b8b269bd93a16f67af695
parent8e27b9a1a7e99dd0dc1f82d1c3dae999bfee2b84
drm/amdgpu: rework VM state machine lock handling v2

Only the moved state needs a separate spin lock protection. All other
states are protected by reserving the VM anyway.

v2: fix some more incorrect cases

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h