diff mbox series

[3/3] drm/xe/display: Add missing display power handling on non-d3cold rpm

Message ID 20250214175600.504481-3-rodrigo.vivi@intel.com (mailing list archive)
State New
Headers show
Series [1/3] drm/xe/display: Move display runtime suspend to a later point | expand

Commit Message

Rodrigo Vivi Feb. 14, 2025, 5:56 p.m. UTC
On the regular igfx runtime pm sequence where d3cold is not
possible, the proper calls to power display are required.

Align with i915.

v2: Rebase only.

Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
 drivers/gpu/drm/xe/display/xe_display.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
index ebe0e8c3d722..3a289d245cde 100644
--- a/drivers/gpu/drm/xe/display/xe_display.c
+++ b/drivers/gpu/drm/xe/display/xe_display.c
@@ -363,6 +363,8 @@  void xe_display_pm_shutdown(struct xe_device *xe)
 
 void xe_display_pm_runtime_suspend(struct xe_device *xe)
 {
+	struct intel_display *display = &xe->display;
+
 	if (!xe->info.probe_display)
 		return;
 
@@ -371,6 +373,7 @@  void xe_display_pm_runtime_suspend(struct xe_device *xe)
 		return;
 	}
 
+	intel_display_power_suspend(display);
 	intel_hpd_poll_enable(xe);
 }
 
@@ -471,6 +474,8 @@  void xe_display_pm_resume(struct xe_device *xe)
 
 void xe_display_pm_runtime_resume(struct xe_device *xe)
 {
+	struct intel_display *display = &xe->display;
+
 	if (!xe->info.probe_display)
 		return;
 
@@ -479,6 +484,7 @@  void xe_display_pm_runtime_resume(struct xe_device *xe)
 		return;
 	}
 
+	intel_display_power_resume(display);
 	intel_hpd_init(xe);
 	intel_hpd_poll_disable(xe);
 	skl_watermark_ipc_update(xe);