]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: do adapter power state notification at runtime PM
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 6 Dec 2013 22:34:21 +0000 (20:34 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Dec 2013 21:44:00 +0000 (22:44 +0100)
commitc644062b1fa763068b2a72788c8e4ad665227f72
treeb6e523191c53ad2d119df91c4eb5f36dda7d83f0
parent121b10fd5e5611d9a814886246ee002dac3cd240
drm/i915: do adapter power state notification at runtime PM

Now that we are actually setting the device to the D3 state, we should
issue the notification.

The opregion spec says we should send the message before the adapter
is about to be placed in a lower power state, and after the adapter is
placed in a higher power state.

Jani originally wrote a similar patch for PC8, but then we discovered
that we were not really changing the PCI D states when
enabling/disabling PC8, so we had to postpone his patch.

v2: - Improve commit message, explaining the expected state.

v3: - Rebase.

Cc: Jani Nikula <jani.nikula@intel.com>
Credits-to: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> (v2)
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c