drm/amdgpu: cleanup VM handling in the CS a bit
authorChristian König <christian.koenig@amd.com>
Fri, 17 Aug 2018 13:07:13 +0000 (15:07 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:17 +0000 (11:11 -0500)
commit9a02ece43ee49efdfad19a3ca90c02d20f491031
treeb3ebe9f6952be60368760167441e436edb20090b
parent262b9c392e7dbe264b075fa5ad6a0de5a403da7a
drm/amdgpu: cleanup VM handling in the CS a bit

Add a helper function for getting the root PD addr and cleanup join the
two VM related functions and cleanup the function name.

No functional change.

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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c