]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/pm: Do pci_restore_state() in switcheroo resume hook
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 19 Sep 2025 18:50:13 +0000 (21:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 22 Sep 2025 16:34:50 +0000 (19:34 +0300)
commit03a37f5c3a169bea3c25b1e07e632cd0ddbcf302
tree31c2c4b1c7a01d5f2672c16179cd9e7b94d20502
parentf3d8e898ce5e97b2fbc3321b8fbfd31826357f6e
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: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250919185015.14561-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_driver.c