]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: fix concurrent VM flushes on Vega/Navi v2
authorChristian König <christian.koenig@amd.com>
Thu, 22 Apr 2021 11:11:39 +0000 (13:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Apr 2021 21:19:05 +0000 (17:19 -0400)
commit3dc7216c1d5058f2f809c26cbc44f4dfa440b07e
tree649b31c03554a576b9793cc412ee2d00d8e57c63
parent42daecfc2069da98e084e2e2457be2a3d50b0a30
drm/amdgpu: fix concurrent VM flushes on Vega/Navi v2

Starting with Vega the hardware supports concurrent flushes
of VMID which can be used to implement per process VMID
allocation.

But concurrent flushes are mutual exclusive with back to
back VMID allocations, fix this to avoid a VMID used in
two ways at the same time.

v2: don't set ring to NULL

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Tested-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h