]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite08937a322b1c634ac891884d02860f4886d2c5c
treea1918ab986b6d01212710b87abd321e11f6dc8d6
parenta66d4f99695f15807de5c5654eac9175dbfd8cc4
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