]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: sanitize forcewake registers on reset
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 23 Aug 2013 13:52:30 +0000 (16:52 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Sep 2013 09:10:54 +0000 (11:10 +0200)
commit521198a2e7095c8c7daa8d7d3a76a110c346be6f
tree213f64bf5172c627868d42786556927ee1a64938
parenta9c1f90c8e1792127f8348c1cc2565b79b2ef20a
drm/i915: sanitize forcewake registers on reset

In reset we try to restore the forcewake state to
pre reset state, using forcewake_count. The reset
doesn't seem to clear the forcewake bits so we
get warn on forcewake ack register not clearing.

Use same mechanism as intel_uncore_sanitize() does
when loading driver to reset the forcewake bits, right
after the chip has been reset.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c