drm/amdgpu: rework reserved VMID handling
authorChristian König <christian.koenig@amd.com>
Fri, 25 Nov 2022 16:04:25 +0000 (17:04 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Dec 2022 14:48:33 +0000 (09:48 -0500)
commite44a0fe630c58b0a87d8281f5c1077a3479e5fce
treef9e96d4abf046dcd2981ab78705e1ff68b449558
parent053499f7b45dc56758240615569b349fe9e2fc8d
drm/amdgpu: rework reserved VMID handling

Instead of reserving a VMID for a single process allow that many
processes use the reserved ID. This allows for proper isolation
between the processes.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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_ids.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h