Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fb2362b authored by Kristen Carlson Accardi's avatar Kristen Carlson Accardi Committed by Daniel Vetter
Browse files

i915: send D1 opregion notification



The opregion notification for runtime suspend is currently D1, not D3.

Signed-off-by: default avatarKristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent babb1903
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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;
}