]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit803687d870aeb21bfbe97b6ff6fbc67cc5dee4a9
tree67e6f844b7434b85c17d297ea049df84a34edc9f
parent34ec12e31296596ec0789b4a64d825b7dab24ae6
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