diff options
author | Kristen Carlson Accardi <kristen@linux.intel.com> | 2014-01-15 00:36:15 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-22 10:34:36 +0100 |
commit | 1fb2362b43371f35b98a55e615d990f96d8ac966 (patch) | |
tree | 3c24e6cd94d61191ff0730ce2ce650d775ad478d /drivers/gpu/drm/i915 | |
parent | drm/i915/bdw: remove preliminary_hw_support flag from BDW (diff) | |
download | linux-1fb2362b43371f35b98a55e615d990f96d8ac966.tar.xz linux-1fb2362b43371f35b98a55e615d990f96d8ac966.zip |
i915: send D1 opregion notification
The opregion notification for runtime suspend is currently D1, not D3.
Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index ca11cc854e78..04f1f02c4019 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -922,7 +922,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; } |