]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amdgpu: keep the MMU lock until the update ends v4
authorChristian König <christian.koenig@amd.com>
Tue, 5 Sep 2017 15:30:46 +0000 (17:30 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:27:56 +0000 (14:27 -0400)
commit1ed3d2567c800eca053ef86fdd3fc27b72d0192e
treee08cb35bf5b9e8ddabe4eb601d108890341b7467
parentaebc5e6f50f770ec9392c3ca804f18b30797dfa7
drm/amdgpu: keep the MMU lock until the update ends v4

This is quite controversial because it adds another lock which is held during
page table updates, but I don't see much other option.

v2: allow multiple updates to be in flight at the same time
v3: simplify the patch, take the read side only once
v4: correctly fix rebase conflict

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c