drm/amdgpu: add alloc/free for multi level PDs V2
authorChristian König <christian.koenig@amd.com>
Thu, 27 Oct 2016 18:04:38 +0000 (20:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:28 +0000 (23:55 -0400)
commitf566ceb165f8f3bf0e7492a3a8d5eefed9e499a6
tree3e73754ea4169809bb1434f20015986bdfafd5d7
parent4e2cb640c2efbf86058cffd2785307690ebefe20
drm/amdgpu: add alloc/free for multi level PDs V2

Allocate and free page directories on demand.

V2:
a. clear entries allocation
b. fix entries index calculation
c. need alloc sub level even parent bo was allocated

Signed-off-by: Christian König <christian.koenig@amd.com> (v1)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com> (v2)
Acked-by: Alex Deucher <alexander.deucher@amd.com> (v2)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c