]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix suspend/resume for GENs w/o runtime PM support
authorImre Deak <imre.deak@intel.com>
Tue, 26 Aug 2014 10:26:56 +0000 (13:26 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Aug 2014 11:13:03 +0000 (13:13 +0200)
commit4cf02743cf154807b04b348a8fb7a7f4a1baa0eb
tree5fa05bbd21192f47c183ff41ab9109883a732eb1
parent3a614f8c50b51137e5c250c74d75358e66a71ad1
drm/i915: fix suspend/resume for GENs w/o runtime PM support

Before sharing common parts between the system and runtime s/r
handlers we WARNed if the runtime s/r handlers were called on GENs that
didn't support RPM. But this WARN is not correct if the same handler is
called from the system s/r path, since that can happen on any platform.
This also broke system s/r on old platforms.

The issue was introduced in

commit b16a8ceb818db6495321872d053252d35d8bb2f6
Author: Sagar Kamble <sagar.a.kamble@intel.com>
Date:   Wed Aug 13 23:07:06 2014 +0530

v2:
- remove the WARN and depend on the HAS_RUNTIME_PM check in
  rutime_suspend/resume instead (Daniel)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82751
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c