drm/amdgpu: fix VM clearing for the root PD
authorChristian König <christian.koenig@amd.com>
Thu, 16 Aug 2018 10:01:03 +0000 (12:01 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Aug 2018 21:04:14 +0000 (16:04 -0500)
commit8604ffcbf04f8f4f3f55a9e46e5ff948b2ed4290
treed7cadb99b518661cd74318ff08b691070a3e4a5d
parent9d1d02ff36783f954a206dfbf7943b7f2057f58b
drm/amdgpu: fix VM clearing for the root PD

We need to figure out the address after validating the BO, not before.

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