]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Keep refs on the object over the lifetime of vmas for GTT mmap.
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 11 Feb 2009 22:01:46 +0000 (14:01 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Feb 2009 02:21:13 +0000 (12:21 +1000)
commit0601a5734ec95a8fe85de145c0aa0c6caedea0d7
tree68359cf341eb58cefa9d8c91200e6d137ff2007c
parentc48e1a40848ec6e9c4ce0ac9218fad22fa3ba676
drm/i915: Keep refs on the object over the lifetime of vmas for GTT mmap.

This fixes potential fault at fault time if the object was unreferenced
while the mapping still existed.  Now, while the mmap_offset only lives
for the lifetime of the object, the object also stays alive while a vma
exists that needs it.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
include/drm/drmP.h