From: Imre Deak Date: Fri, 6 Jun 2014 09:59:39 +0000 (+0300) Subject: drm/i915: preserve user forcewake over system suspend/resume X-Git-Tag: omap-for-v3.17/fixes-against-rc2~125^2~63^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10018603a481e4c1067e825e449f2e19dd737095;p=pandora-kernel.git 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 Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed