drm/amdgpu: add some VM PD/PT iterators v2
authorChristian König <christian.koenig@amd.com>
Sat, 1 Sep 2018 08:36:48 +0000 (10:36 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Sep 2018 20:14:08 +0000 (15:14 -0500)
commit73633e3223e6e19bd22775b4ad725fdc65d5d8ed
tree682d84a8ae00717ae93c7da075ea7411df51227a
parent52e211c1f04f7544bf3d3cf5ed3939708d5988d2
drm/amdgpu: add some VM PD/PT iterators v2

Both a leaf as well as dfs iterator to walk over all the PDs/PTs.

v2: update comments and fix for_each_amdgpu_vm_pt_dfs_safe

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@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