]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Release the mmap offset when purging a buffer
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Feb 2012 21:13:38 +0000 (21:13 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 23 Mar 2012 10:04:35 +0000 (11:04 +0100)
commita9095e196068779dc70ab65b8d76076d8be96646
treefe2f0143ce8fb145cb22cbece58df348c5f6d095
parentc3d45f25b8f911e7a490f02fc90344bac41d7b2f
drm/i915: Release the mmap offset when purging a buffer

If we discard a buffer due to memory pressure, also release its alloted
mmap address space. As it may be sometime before userspace wakes up
and notices that it has buffers to purge from its cache, we may waste
valuable address space on unusable objects for a period of time.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47738
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c