drm/i915/ttm: add i915_sg_from_buddy_resource
authorMatthew Auld <matthew.auld@intel.com>
Wed, 16 Jun 2021 15:24:56 +0000 (16:24 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 16 Jun 2021 15:33:26 +0000 (16:33 +0100)
commitf701b16d4cc535d24facdfdd21dc97a3691e5576
tree67e6f844b7434b85c17d297ea049df84a34edc9f
parent88be9a0a06b73ecd85a688a7c174c941e9692e92
drm/i915/ttm: add i915_sg_from_buddy_resource

We need to be able to build an sg table from our list of buddy blocks,
so that we can later plug this into our ttm backend, and replace our use
of the range manager.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210616152501.394518-2-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_scatterlist.c
drivers/gpu/drm/i915/i915_scatterlist.h