drm/i915/display: Migrate objects to LMEM if possible for display
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 29 Jun 2021 15:12:03 +0000 (17:12 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 30 Jun 2021 10:32:53 +0000 (11:32 +0100)
commite11b7b6e574d57b99952213b5388db66445b18f2
treea1918ab986b6d01212710b87abd321e11f6dc8d6
parentbf74a18ca8569ff1ac89501026a8218753f757f7
drm/i915/display: Migrate objects to LMEM if possible for display

Objects intended to be used as display framebuffers must reside in
LMEM for discrete. If they happen to not do that, migrate them to
LMEM before pinning.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210629151203.209465-4-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/gem/i915_gem_domain.c
drivers/gpu/drm/i915/gem/i915_gem_lmem.c
drivers/gpu/drm/i915/gem/i915_gem_object.h