Commit 03a37f5c authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915/pm: Do pci_restore_state() in switcheroo resume hook



Since this switcheroo garbage bypasses all the core pm we
have to manually manage the pci state. To that end add the
missing pci_restore_state() to the switcheroo resume hook.
We already have the pci_save_state() counterpart on the
suspend side.

Arguably none of this code should exist in the driver
in the first place, and instead the entire switcheroo
mechanism should be rewritten and properly integrated into
core pm code...

Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarJouni Högander <jouni.hogander@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250919185015.14561-5-ville.syrjala@linux.intel.com
parent f3d8e898
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1346,6 +1346,8 @@ int i915_driver_resume_switcheroo(struct drm_i915_private *i915)
	if (ret)
		return ret;

	pci_restore_state(pdev);

	ret = i915_drm_resume_early(&i915->drm);
	if (ret)
		return ret;