]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Improve VMA comments
authorBen Widawsky <ben@bwidawsk.net>
Thu, 1 Aug 2013 00:00:08 +0000 (17:00 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 6 Aug 2013 18:14:46 +0000 (20:14 +0200)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h

index 290c12dd6e6b82af08c8d72aeb1389c1ff01c8bb..4f93467fdfdd69a13ee4196fe2c5a04242510434 100644 (file)
@@ -545,7 +545,12 @@ struct i915_hw_ppgtt {
        int (*enable)(struct drm_device *dev);
 };
 
-/* To make things as simple as possible (ie. no refcounting), a VMA's lifetime
+/**
+ * A VMA represents a GEM BO that is bound into an address space. Therefore, a
+ * VMA's presence cannot be guaranteed before binding, or after unbinding the
+ * object into/from the address space.
+ *
+ * To make things as simple as possible (ie. no refcounting), a VMA's lifetime
  * will always be <= an objects lifetime. So object refcounting should cover us.
  */
 struct i915_vma {