drm/amdgpu: choose number of VM levels based on VM size
authorChristian König <christian.koenig@amd.com>
Thu, 23 Nov 2017 10:16:05 +0000 (11:16 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:48:29 +0000 (12:48 -0500)
commit36539dcea3225fb603905fb884446f3173cc0198
treee40a3ba68bb51aa777e79c47ea31bb2ff39f2ef0
parentb38f41ebb8d0395221e136677387c36bf03fd320
drm/amdgpu: choose number of VM levels based on VM size

This allows us limiting the VM size for testing even of Vega10.

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_vm.c