]> 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)
commitaf76bf8967de27ae3303e0f58b5d37145441265e
tree92238b98187bcf270b5b8b269bd93a16f67af695
parent38f9ceb88a3460d9e1a65806fb5e1bd898a401c3
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