]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't save/restore HWS_PGA reg for kms
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Oct 2012 09:32:57 +0000 (11:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Oct 2012 20:38:34 +0000 (22:38 +0200)
commit4a39344b8ef3f30d4974d0c05da3e2e325db5adf
treecc2f1eed02135e76d96bdbe0a4a76bc5675f1515
parentfe60f52b36290f614a9469e4b13c239bd2b64cba
drm/i915: don't save/restore HWS_PGA reg for kms

We already do that as part of the ringbuffer re-setup at resume time.
Furthermore the register offset has moved on gen6+ around quite a bit,
and on ilk/gm45 we also need to restore the HWS reg for the bsd ring,
not just the render ring.

So again in kms mode this is only confusing a best, hence don't
bother.

v2: Fixup logic, noticed by Paulo Zanoni.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Tested-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_suspend.c