drm/amdgpu/ttm: handle tt moves properly.
authorDave Airlie <airlied@redhat.com>
Thu, 24 Sep 2020 05:18:03 +0000 (15:18 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 24 Sep 2020 19:48:00 +0000 (05:48 +1000)
commit3a08446b31e3614f6e018c6ac297b1312689a73a
tree8aac0bdda137dad55b34437653b72ced4d0837ce
parent6236d953f7aca13403a1fada9d1dd12978cf93e8
drm/amdgpu/ttm: handle tt moves properly.

The core move code currently handles use_tt moves, for amdgpu
this was being handled also in the driver, but not using the same
paths.

If moving between TT/SYSTEM (all the use_tt paths on amdgpu) use
the core move function.

Eventually the core will be flipped over to calling the driver.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200924051845.397177-4-airlied@gmail.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c