aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-07-31 20:00:08 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-06 14:14:46 -0400
commit0b02e798ffec99b51f2fe931ceb61ca0d22d2a70 (patch)
tree38c7b190952ae80ea9e550b02898228dcfa6949f /drivers/gpu/drm/i915/i915_drv.h
parentddfe15677d9c47f2491e401cd773b45e1aac74bf (diff)
drm/i915: Improve VMA comments
Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 290c12dd6e6b..4f93467fdfdd 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -545,7 +545,12 @@ struct i915_hw_ppgtt {
545 int (*enable)(struct drm_device *dev); 545 int (*enable)(struct drm_device *dev);
546}; 546};
547 547
548/* To make things as simple as possible (ie. no refcounting), a VMA's lifetime 548/**
549 * A VMA represents a GEM BO that is bound into an address space. Therefore, a
550 * VMA's presence cannot be guaranteed before binding, or after unbinding the
551 * object into/from the address space.
552 *
553 * To make things as simple as possible (ie. no refcounting), a VMA's lifetime
549 * will always be <= an objects lifetime. So object refcounting should cover us. 554 * will always be <= an objects lifetime. So object refcounting should cover us.
550 */ 555 */
551struct i915_vma { 556struct i915_vma {