]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Try GGTT mmapping whole object as partial
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 30 Jun 2018 09:05:09 +0000 (10:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Jul 2018 16:36:09 +0000 (17:36 +0100)
commitea3910ca19ffa7725da08080c98be3b1070ee709
tree188142c2868774a07fdd60ec47f26b6e69cb3ea0
parent73cbbc25f3e8b9fde81e4f8d82fd631e1effbc82
drm/i915: Try GGTT mmapping whole object as partial

If the whole object is already pinned by HW for use as scanout, we will
fail to move it to the mappable region and so must resort to using a
partial VMA covering the whole object.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104513
Fixes: 56decefababa ("drm/i915: Convert partial ggtt vma to full ggtt if it spans the entire object")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180630090509.469-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_vma.c