[PATCH 05/29] drm/i915/dp_mst: Move suspend/resume to display suspend/resume
Imre Deak
imre.deak at intel.com
Wed Dec 20 00:53:44 UTC 2023
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
drivers/gpu/drm/i915/display/intel_display_driver.c | 6 ++++++
drivers/gpu/drm/i915/display/intel_dp.c | 3 ---
drivers/gpu/drm/i915/i915_driver.c | 4 ----
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display_driver.c b/drivers/gpu/drm/i915/display/intel_display_driver.c
index 9df9097a0255a..6025b37e6e2d3 100644
--- a/drivers/gpu/drm/i915/display/intel_display_driver.c
+++ b/drivers/gpu/drm/i915/display/intel_display_driver.c
@@ -519,6 +519,9 @@ int intel_display_driver_suspend(struct drm_i915_private *i915)
ret);
else
i915->display.restore.modeset_state = state;
+
+ intel_dp_mst_suspend(i915);
+
return ret;
}
@@ -571,6 +574,9 @@ void intel_display_driver_resume(struct drm_i915_private *i915)
if (!HAS_DISPLAY(i915))
return;
+ /* MST sideband requires HPD interrupts enabled */
+ intel_dp_mst_resume(i915);
+
i915->display.restore.modeset_state = NULL;
if (state)
state->acquire_ctx = &ctx;
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 3dfca8d88a6ff..dc4844c533b61 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -6584,9 +6584,6 @@ void intel_dp_mst_resume(struct drm_i915_private *dev_priv)
{
struct intel_encoder *encoder;
- if (!HAS_DISPLAY(dev_priv))
- return;
-
for_each_intel_encoder(&dev_priv->drm, encoder) {
struct intel_dp *intel_dp;
int ret;
diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c
index c7d7c3b7ecc63..e7ab45eb53381 100644
--- a/drivers/gpu/drm/i915/i915_driver.c
+++ b/drivers/gpu/drm/i915/i915_driver.c
@@ -1087,8 +1087,6 @@ static int i915_drm_suspend(struct drm_device *dev)
intel_display_driver_suspend(dev_priv);
- intel_dp_mst_suspend(dev_priv);
-
intel_runtime_pm_disable_interrupts(dev_priv);
intel_hpd_cancel_work(dev_priv);
@@ -1245,8 +1243,6 @@ static int i915_drm_resume(struct drm_device *dev)
intel_clock_gating_init(dev_priv);
intel_hpd_init(dev_priv);
- /* MST sideband requires HPD interrupts enabled */
- intel_dp_mst_resume(dev_priv);
intel_display_driver_resume(dev_priv);
intel_hpd_poll_disable(dev_priv);
--
2.39.2
More information about the Intel-gfx-trybot
mailing list