]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: allow control over the flags when migrating
authorMatthew Auld <matthew.auld@intel.com>
Tue, 4 Oct 2022 13:19:14 +0000 (14:19 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 11 Oct 2022 16:28:48 +0000 (17:28 +0100)
commitb4e1bcdd5ab01dae2f6767e9ae43251bc6ac576b
treebd03a96a24434ab7ab88a90eabce14ab8808a507
parentf41d48dd9dd2a59b18e7f4e827d398d2136513ae
drm/i915: allow control over the flags when migrating

In the next patch we want to move the object (if the current resource is
not compatible), to the mappable part of lmem for some display buffers.
Currently that requires being able to unset the I915_BO_ALLOC_GPU_ONLY
hint.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Jianshui Yu <jianshui.yu@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221004131916.233474-3-matthew.auld@intel.com
(cherry picked from commit 999f4562077208b683f0519e5f1aa1e5c2fd2191)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/i915_gem_object_types.h
drivers/gpu/drm/i915/gem/i915_gem_ttm.c