Skip to contentSkip to conversation

Partial GGTT views

PATCH Superseded Joonas Lahtinen 1 participant 1 message Apr 24, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Partial GGTT views

This series adds partial GGTT views and uses them from the GTT mmap fault handler for objects bigger than half the aperture. This allows to handle huge objects through mmap from user land. And not only huge objects, but when objects are of regular size and aperture is shrinked due to virtualization. (vGT)

Tiling is not supported yet. Other than that, the gem_mmap_gtt suite passes without errors even when the mmap fault handler would be converted to unconditionally use partial views.

Regards, Joonas

Joonas Lahtinen (5):
drm/i915: Do not clear mappings beyond VMA size drm/i915: Do not make assumptions on GGTT VMA sizes drm/i915: Consider object pinned if any VMA is pinned drm/i915: Add a partial GGTT view type drm/i915: Use partial view in mmap fault handler

 drivers/gpu/drm/i915/i915_gem.c     |  180 ++++++++++++++++++++++-------------
 drivers/gpu/drm/i915/i915_gem_gtt.c |   77 ++++++++++++++-
 drivers/gpu/drm/i915/i915_gem_gtt.h |   19 +++-
 3 files changed, 207 insertions(+), 69 deletions(-)
Signature · 7 lines
1.7.9.5


_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx