Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
i915: send D1 opregion notification
Browse files Browse the repository at this point in the history
The opregion notification for runtime suspend is currently D1, not D3.

Signed-off-by: Kristen Carlson Accardi <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
  • Loading branch information
kaccardi authored and danvet committed Jan 16, 2014
1 parent 07a0cd9 commit 551c7d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 551c7d9

Please sign in to comment.