]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0cda052597e85013d24835699011e0c676e8ab6d
tree3e73754ea4169809bb1434f20015986bdfafd5d7
parentfcaf6667cc5c158de412e0e51cbabc9beeb2aa3d
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