diff options
author | Ben Widawsky | 2013-09-18 06:12:45 +0200 |
---|---|---|
committer | Daniel Vetter | 2013-09-19 20:39:43 +0200 |
commit | a33afea5ff6e5b87ac11c87fb60b3704b3ac0fcc (patch) | |
tree | e8c6bae280dfa96ed2b0de85196b39717b3da0ca /drivers/gpu/drm/i915/i915_gem.c | |
parent | drm/i915: Make l3 remapping use the ring (diff) | |
download | kernel-qcow2-linux-a33afea5ff6e5b87ac11c87fb60b3704b3ac0fcc.tar.gz kernel-qcow2-linux-a33afea5ff6e5b87ac11c87fb60b3704b3ac0fcc.tar.xz kernel-qcow2-linux-a33afea5ff6e5b87ac11c87fb60b3704b3ac0fcc.zip |
drm/i915: Keep a list of all contexts
I have implemented this patch before without creating a separate list
(I'm having trouble finding the links, but the messages ids are:
<1364942743-6041-2-git-send-email-ben@bwidawsk.net>
<1365118914-15753-9-git-send-email-ben@bwidawsk.net>)
However, the code is much simpler to just use a list and it makes the
code from the next patch a lot more pretty.
As you'll see in the next patch, the reason for this is to be able to
specify when a context needs to get L3 remapping. More details there.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index e4f17e594703..83464aae909f 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -4541,6 +4541,7 @@ i915_gem_load(struct drm_device *dev) INIT_LIST_HEAD(&dev_priv->vm_list); i915_init_vm(dev_priv, &dev_priv->gtt.base); + INIT_LIST_HEAD(&dev_priv->context_list); INIT_LIST_HEAD(&dev_priv->mm.unbound_list); INIT_LIST_HEAD(&dev_priv->mm.bound_list); INIT_LIST_HEAD(&dev_priv->mm.fence_list); |