Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b02e798 authored by Ben Widawsky's avatar Ben Widawsky Committed by Daniel Vetter
Browse files

drm/i915: Improve VMA comments

parent ddfe1567
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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 {