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)
commitaf4c0f650b563c7b30c1d8cd2bb926247ceb19cc
tree92238b98187bcf270b5b8b269bd93a16f67af695
parent22cc6c5e1958e5a08b4c44203d1810ab07ce5a16
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