]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: preserve user forcewake over system suspend/resume
authorImre Deak <imre.deak@intel.com>
Fri, 6 Jun 2014 09:59:39 +0000 (12:59 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Jun 2014 13:17:40 +0000 (15:17 +0200)
commitc363f20947f7d199da46ff96cdf95df751c6fcea
tree3c99c0aca46da8116e369f0c4cdfed8f3a68facb
parent32eaecaf30d543618f01e2d460ae4676d67e78af
drm/i915: preserve user forcewake over system suspend/resume

Atm, the forcewake refcount will be incorrectly set to zero during
system suspend if there is any reference held via the
i915_forcewake_user debugfs entry.

Fix this by simply not zeroing the sw counters during suspend and
restoring the original state using them. Note that the only other
places where we zeroed the counters were driver load and unload time,
where it was redundant anyway.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78059
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_uncore.c