[Intel-gfx] [PATCH 30/48] drm/i915: Add VM to context

2013-12-06 Thread Ben Widawsky
Pretty straightforward so far except for the bit about the refcounting. The PPGTT will potentially be shared amongst multiple contexts. Because contexts themselves have a refcounted lifecycle, the easiest way to manage this will be to refcount the PPGTT. To acheive this, we piggy back off of the ex

[Intel-gfx] [PATCH 30/48] drm/i915: Add VM to context

2013-12-06 Thread Ben Widawsky
Pretty straightforward so far except for the bit about the refcounting. The PPGTT will potentially be shared amongst multiple contexts. Because contexts themselves have a refcounted lifecycle, the easiest way to manage this will be to refcount the PPGTT. To acheive this, we piggy back off of the ex