From: Kristen Carlson Accardi Date: Tue, 14 Jan 2014 23:36:15 +0000 (-0800) Subject: i915: send D1 opregion notification X-Git-Tag: next-20140116~60^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f1fcde49872f390a4060fa9ee8b02d3f2a8508b7;p=karo-tx-linux.git i915: send D1 opregion notification The opregion notification for runtime suspend is currently D1, not D3. Signed-off-by: Kristen Carlson Accardi Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index c71801b54a7b..0c7c966f7c1e 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -919,7 +919,15 @@ static int i915_runtime_suspend(struct device *device) del_timer_sync(&dev_priv->gpu_error.hangcheck_timer); dev_priv->pm.suspended = true; - intel_opregion_notify_adapter(dev, PCI_D3cold); + + /* + * current versions of firmware which depend on this opregion + * notification have repurposed the D1 definition to mean + * "runtime suspended" vs. what you would normally expect (D3) + * to distinguish it from notifications that might be sent + * via the suspend path. + */ + intel_opregion_notify_adapter(dev, PCI_D1); return 0; }