drm/xe/display: Improve s2idle handling.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 28 Jul 2023 14:13:22 +0000 (16:13 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:43:39 +0000 (11:43 -0500)
commitf6761c68c0ace6f4e3df6b03209fab09d472b727
treed4b53e37ff6c9d6daa323b954d6c2d70e2bcf301
parent44e694958b95395bd1c41508c88c8ca141bf9bd7
drm/xe/display: Improve s2idle handling.

We accidentally always pass true as s2idle argument, instead of
calculating it in the same way as i915.

Suspend modes were removed to achieve compatibility with i915, but
accidentally left in the source code.

While at it, fix all other cases too, s2idle will go into a D1 state and
setting a lower power state should be handled by PCI core.

Maybe my laptop stops draining so much power during suspend now? I can
only hope..

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h
drivers/gpu/drm/xe/xe_display.c
drivers/gpu/drm/xe/xe_pci.c