diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2012-06-04 14:42:56 -0700 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-06-14 17:36:21 +0200 |
commit | 8e96d9c4d9843f00ebeb4a9b33596d96602ea101 (patch) | |
tree | 6debb2fe30a95df483773d0d3e9f959d003f4a72 /drivers/gpu/drm/i915/i915_gem_context.c | |
parent | 6e0a69dbc81b88f5a42e08344203021571f6fb2f (diff) | |
download | op-kernel-dev-8e96d9c4d9843f00ebeb4a9b33596d96602ea101.zip op-kernel-dev-8e96d9c4d9843f00ebeb4a9b33596d96602ea101.tar.gz |
drm/i915: reset the GPU on context fini
It's the only way we know how to make the GPU actually forget about the
default context.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_context.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index 5642c40..6dc426a 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c @@ -278,6 +278,8 @@ void i915_gem_context_fini(struct drm_device *dev) i915_gem_object_unpin(dev_priv->ring[RCS].default_context->obj); do_destroy(dev_priv->ring[RCS].default_context); + + intel_gpu_reset(dev); } void i915_gem_context_open(struct drm_device *dev, struct drm_file *file) |