[Intel-gfx] [PATCH] drm/i915: reset forcewake count after reset

Ben Widawsky ben at bwidawsk.net
Fri Jun 24 01:06:22 CEST 2011


Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 drivers/gpu/drm/i915/i915_drv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 0defd42..9292499 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -579,6 +579,7 @@ int i915_reset(struct drm_device *dev, u8 flags)
 	} else switch (INTEL_INFO(dev)->gen) {
 	case 6:
 		ret = gen6_do_reset(dev, flags);
+		atomic_set(&dev_priv->forcewake_count, 0);
 		break;
 	case 5:
 		ret = ironlake_do_reset(dev, flags);
-- 
1.7.5.2




More information about the Intel-gfx mailing list