]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Do not clear mappings beyond VMA size
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Fri, 24 Apr 2015 12:09:03 +0000 (15:09 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:19 +0000 (13:03 +0200)
commit14808eab7884a29c92d712cd652d56d1198ca067
treecab7565c363666bae8d44413cad7e8b18ff81c0d
parentf97b6c9fd0f83539aa4f518b2e27f6f2bfb3d0c9
drm/i915: Do not clear mappings beyond VMA size

Do not to clear mappings outside the allocated VMA under any
circumstances. Only clear the smaller of VMA or object page count.

This is required to allow creating partial object VMAs which in
turn are needed for partial GGTT views.

Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c