]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4178e4d8f039b1f652b6396eebf3c42d56b82c9e
tree5f077babe5ee86ea1f6a0ec4aaedf340becd3ea7
parentde7d0c0f27a3e707622ef1698e49498302fc13f0
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