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)
commit695ddc9318ad45b6a32f902b7c6998c65d575f26
treebd03a96a24434ab7ab88a90eabce14ab8808a507
parent6c482c62a635aa4f534d2439fbf8afa37452b986
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