]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/buddy: adjust res->start
authorMatthew Auld <matthew.auld@intel.com>
Fri, 25 Feb 2022 14:55:00 +0000 (14:55 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 28 Feb 2022 08:47:34 +0000 (08:47 +0000)
commit41bd4eb03c7d86f12ed5544a50beee92eb1bb4b0
tree707746829e7e8d01cc5cf6651631575d950da911
parent217523eab906b303cbe10e0fc40f9b6c140e5d8e
drm/i915/buddy: adjust res->start

Differentiate between mappable vs non-mappable resources, also if this
is an actual range allocation ensure we set res->start as the starting
pfn. Later when we need to do non-mappable -> mappable moves then we
want TTM to see that the current placement is not compatible, which
should result in an actual move, instead of being turned into a noop.

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>
Acked-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220225145502.331818-5-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_ttm_buddy_manager.c