drm/i915/ttm: Reorganize the ttm move code
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 4 Nov 2021 11:07:17 +0000 (12:07 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 5 Nov 2021 08:05:30 +0000 (09:05 +0100)
commit3589fdbd3b2085e273b6ea1e9f27a211e0ef74f8
treee53c2f1d9386b2a5bda994c93d3164f7bb56776f
parentfbd4cf3bfe1557b80774670d19c0a68d7d40fb18
drm/i915/ttm: Reorganize the ttm move code

We are about to introduce failsafe- and asynchronous migration and
ttm moves.
This will add complexity and code to the TTM move code so it makes sense
to split it out to a separate file to make the i915 TTM code easer to
digest.
Split the i915 TTM move code out and since we will have to change the name
of the gpu_binds_iomem() and cpu_maps_iomem() functions anyway,
we alter the name of gpu_binds_iomem() to i915_ttm_gtt_binds_lmem() which
is more reflecting what it is used for.
With this we also add some more documentation. Otherwise there should be
no functional change.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211104110718.688420-2-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
drivers/gpu/drm/i915/gem/i915_gem_ttm.h
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c [new file with mode: 0644]
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.h [new file with mode: 0644]