drm/amdgpu: use leaf iterator for allocating PD/PT
authorChristian König <christian.koenig@amd.com>
Sat, 1 Sep 2018 10:03:37 +0000 (12:03 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Sep 2018 20:14:08 +0000 (15:14 -0500)
commitd72a6887eef880271c0d48ed427329ccc0d547f9
treeaa9bc4413eeb60c7cae6386779c5195bf0b4cdc1
parent73633e3223e6e19bd22775b4ad725fdc65d5d8ed
drm/amdgpu: use leaf iterator for allocating PD/PT

Less code and allows for easier error handling.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c