drm/amdgpu: let amdgpu_vm_clear_bo figure out ats status v2
authorChristian König <christian.koenig@amd.com>
Thu, 16 Aug 2018 08:49:41 +0000 (10:49 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:48 +0000 (15:36 -0500)
commit780637cbdf8fd614cc85a01c6c810d9d28902a59
tree5f077babe5ee86ea1f6a0ec4aaedf340becd3ea7
parent83cd83972260de1197a80724038c8a14ee7a38f0
drm/amdgpu: let amdgpu_vm_clear_bo figure out ats status v2

Instead of providing it from outside figure out the ats status in the
function itself from the data structures.

v2: simplify finding the right level
v3: partially revert changes from v2, more cleanup and split code
    into more functions.

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