[Intel-gfx] [PATCH 2/6] drm/i915: Reinitialize default context after resume

Mika Kuoppala mika.kuoppala at linux.intel.com
Thu Sep 18 16:58:31 CEST 2014


We have lost our ring and default context state on suspend,
including workarounds. Setup default context state like we
do in module load.

Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 8ce1b13..c86ef2c 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -586,6 +586,7 @@ static int i915_drm_freeze(struct drm_device *dev)
 	}
 
 	i915_gem_suspend_gtt_mappings(dev);
+	i915_gem_context_reset(dev);
 
 	i915_save_state(dev);
 
-- 
1.9.1




More information about the Intel-gfx mailing list