drm/amdgpu: add limitation for dedicated vm number v4
authorChunming Zhou <David1.Zhou@amd.com>
Fri, 21 Apr 2017 07:51:04 +0000 (15:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:09 +0000 (17:40 -0400)
commitc350577073de8fe21e6cdd798c4e4746d670bb47
tree968c894c30c1e0ee539eb347c1117f104b681144
parent1e9ef26fb385394c3b0267c8293f4178729d8719
drm/amdgpu: add limitation for dedicated vm number v4

Limit reserved vmids to 1 to avoid taking too many
out of commission and starving the system.

v2: move #define to amdgpu_vm.h
v3: move reserved vmid counter to id_manager,
and increase counter before allocating vmid
v4: rename to reserved_vmid_num

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@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