From: Paulo Zanoni Date: Fri, 21 Feb 2014 16:52:19 +0000 (-0300) Subject: drm/i915: put runtime PM only at the end of intel_mark_idle X-Git-Tag: v3.15-rc1~51^2~55^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb4cdd5345bf344d978e18835583641f2c156ce5;p=pandora-kernel.git drm/i915: put runtime PM only at the end of intel_mark_idle Because intel_mark_idle still touches some registers: it needs the machine to be awake. If you set both the autosuspend and PC8 delays to zero, you can get a "Device suspended" WARN when gen6_rps_idle touches registers. This is not easy to reproduce, but happens once in a while when running pm_pc8. Testcase: igt/pm_pc8 Signed-off-by: Paulo Zanoni Reviewed-by: Jesse Barnes Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed