]> git.ipfire.org Git - people/arne_f/kernel.git/commit
drm/i915: Disable runtime power management during shutdown
authorImre Deak <imre.deak@intel.com>
Wed, 27 Jan 2021 18:19:09 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 May 2021 09:11:23 +0000 (11:11 +0200)
commita7c5727923b5edd8d6f14dd67dba457c2551f645
treefc22b90e19ffdb1adbbf52aff815c632c50c10e8
parent8c09e09e6da47c74deb5d07b184b2c55bd69370f
drm/i915: Disable runtime power management during shutdown

commit 7962893ecb853aa7c8925ce237ab6c4274cfc1c7 upstream.

At least on some TGL platforms PUNIT wants to access some display HW
registers, but it doesn't handle display power management (disabling DC
states as required) and so this register access will lead to a hang. To
prevent this disable runtime power management for poweroff and reboot.

v2:
- Add code comment clarifying the requirement of display power states.
  (Ville)

Reported-and-tested-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210127181909.128094-1-imre.deak@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/i915_drv.c