]> asedeno.scripts.mit.edu Git - linux.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)
committerJani Nikula <jani.nikula@intel.com>
Tue, 3 Jul 2018 11:54:12 +0000 (14:54 +0300)
commitd403397c7c0821704a2f4da2694b46e423791261
treef1d28af506ef5dc76e4af0b0ec4d816ed957c5ea
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
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: aa136d9d72c2 ("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
(cherry picked from commit 7e7367d3bc6cf27dd7e007e7897fcebfeff1ee8b)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_vma.c