From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
imre.deak@intel.com, "Gustavo Sousa" <gustavo.sousa@intel.com>
Subject: Re: [PATCH 24/24] drm/xe/display: unify runtime suspend/resume with i915 for non-d3cold
Date: Mon, 8 Jun 2026 21:08:20 -0400 [thread overview]
Message-ID: <aidnhMTk4bOxx0Ks@intel.com> (raw)
In-Reply-To: <4e06d22ae910b81852f246e063cd04971de3c0b9@intel.com>
On Fri, Jun 05, 2026 at 07:04:59PM +0300, Jani Nikula wrote:
> On Fri, 29 May 2026, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> > On Fri, May 29, 2026 at 02:04:08PM +0300, Jani Nikula wrote:
> >> With the special d3cold handling in xe runtime suspend/resume separated,
> >> unify the non-d3cold paths with i915. There are multiple changes here at
> >> once that probably wouldn't make much sense to split out further.
> >>
> >> Add the call to intel_display_driver_pm_runtime_suspend(), which in turn
> >> starts calling intel_display_power_runtime_suspend(). Deep down, this
> >> should take care of intel_dmc_wl_flush_release_work(), allowing us to
> >> drop the extra call in xe_display_pm_runtime_suspend_late().
> >>
> >> Add the call to intel_display_driver_pm_runtime_suspend_late(), which
> >> starts calling intel_opregion_notify_adapter(). The
> >> intel_hpd_poll_enable() call is also done here, postponed from the
> >> previous location in xe_display_pm_runtime_suspend().
> >>
> >> Add the call to intel_display_driver_pm_runtime_resume_early(), which
> >> contains the intel_display_power_runtime_resume() and
> >> intel_opregion_notify_adapter() counterparts found in
> >> intel_display_power_runtime_suspend() and
> >> intel_display_power_runtime_suspend_late(). (They are not symmetric.)
> >>
> >> Finally, intel_display_driver_pm_runtime_resume() replaces the direct
> >> calls to intel_hpd_init(), intel_hpd_poll_disable(), and
> >> skl_watermark_ipc_update().
> >>
> >> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> >> ---
> >> drivers/gpu/drm/xe/display/xe_display.c | 14 ++++----------
> >> 1 file changed, 4 insertions(+), 10 deletions(-)
> >>
> >> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
> >> index 0fadc62e1cdd..cd7264d7dfe2 100644
> >> --- a/drivers/gpu/drm/xe/display/xe_display.c
> >> +++ b/drivers/gpu/drm/xe/display/xe_display.c
> >> @@ -363,7 +363,7 @@ void xe_display_pm_runtime_suspend(struct xe_device *xe)
> >> return;
> >> }
> >>
> >> - intel_hpd_poll_enable(display);
> >> + intel_display_driver_pm_runtime_suspend(display);
> >> }
> >>
> >> void xe_display_pm_runtime_suspend_late(struct xe_device *xe)
> >> @@ -379,12 +379,7 @@ void xe_display_pm_runtime_suspend_late(struct xe_device *xe)
> >> return;
> >> }
> >>
> >> - /*
> >> - * If xe_display_pm_suspend_late() is not called, it is likely
> >> - * that we will be on dynamic DC states with DMC wakelock enabled. We
> >> - * need to flush the release work in that case.
> >> - */
> >
> > The entire comment seems wonky. I don't think we have any platforms
> > with wakelock+!DC9. Ah, it was added exactly because the D3cold path
> > is broken and doesn't go into DC9. Would have been better to fix the
> > actual problem instead. I guess you should move the comment to the
> > D3cold path in the previous patch to keep it where it actually makes
> > some sense.
>
> Huh, but the comment says, "If xe_display_pm_suspend_late() is not
> called", and the d3cold path above calls that. It's the non-d3cold path
> that does not call the function.
>
> Yeah, I don't know what to do with this.
>
> Commit 731c74e988ff ("drm/xe/display: Flush DMC wakelock release work on
> runtime suspend") says, "We currently are not calling display runtime
> suspend functions when D3cold is not allowed." But that's not the whole
> truth, we're not calling the runtime suspend/resume functions *at all*
> on any xe path. (Which is what the patch at hand is trying to fix for
> non-d3cold.)
>
> Why is the fix in the above commit just adding the single DMC wakelock
> call, instead of doing the proper runtime suspend/resume for non-d3cold?
>
> I don't get it.
Yeap, it was never called and we were indeed dropping the DC9 savings out.
DC5/DC6 was the only thing that would be working anyway I believe.
And Gustavo's patch was more like a temporary workaround at the time that
we knew we would be working to unify the sequences. I'm sorry for having
dropped that effort :(
>
> Cc: Gustavo, Rodrigo
>
>
> BR,
> Jani.
>
>
> >
> > Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> >> - intel_dmc_wl_flush_release_work(display);
> >> + intel_display_driver_pm_runtime_suspend_late(display);
> >> }
> >>
> >> void xe_display_pm_runtime_resume(struct xe_device *xe)
> >> @@ -399,9 +394,8 @@ void xe_display_pm_runtime_resume(struct xe_device *xe)
> >> return;
> >> }
> >>
> >> - intel_hpd_init(display);
> >> - intel_hpd_poll_disable(display);
> >> - skl_watermark_ipc_update(display);
> >> + intel_display_driver_pm_runtime_resume_early(display);
> >> + intel_display_driver_pm_runtime_resume(display);
> >> }
> >>
> >>
> >> --
> >> 2.47.3
>
> --
> Jani Nikula, Intel
next prev parent reply other threads:[~2026-06-09 1:08 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 11:03 [PATCH 00/24] drm/{i915, xe}: display (runtime) suspend/resume/shutdown unification Jani Nikula
2026-05-29 11:03 ` [PATCH 01/24] drm/i915: Keep display IRQs enabled for encoder suspend/shutdown Jani Nikula
2026-05-29 11:03 ` [PATCH 02/24] drm/i915/xe: Enable HPD polling later during system resume Jani Nikula
2026-05-29 11:03 ` [PATCH 03/24] drm/i915: add flush_workqueue(display->wq.cleanup) on shutdown Jani Nikula
2026-05-29 13:07 ` Ville Syrjälä
2026-05-29 11:03 ` [PATCH 04/24] drm/xe/display: remove intel_display_flush_cleanup_work() calls on suspend/shutdown Jani Nikula
2026-05-29 13:18 ` Ville Syrjälä
2026-05-29 11:03 ` [PATCH 05/24] drm/xe/display: drop duplicate intel_dp_mst_suspend() call Jani Nikula
2026-05-29 13:18 ` Ville Syrjälä
2026-05-29 11:03 ` [PATCH 06/24] drm/i915/display: add "pm" to intel_display_driver_{suspend, resume}() names Jani Nikula
2026-05-29 13:30 ` [PATCH 06/24] drm/i915/display: add "pm" to intel_display_driver_{suspend,resume}() names Ville Syrjälä
2026-05-29 11:03 ` [PATCH 07/24] drm/xe/display: rename xe_display_pm_shutdown*() to xe_display_shutdown*() Jani Nikula
2026-05-29 13:30 ` Ville Syrjälä
2026-05-29 11:03 ` [PATCH 08/24] drm/xe/display: relocate the xe_display_shutdown*() functions Jani Nikula
2026-06-02 7:22 ` Michał Grzelak
2026-05-29 11:03 ` [PATCH 09/24] drm/xe/display: relocate the xe_display_pm_runtime_*() functions Jani Nikula
2026-06-02 7:23 ` Michał Grzelak
2026-05-29 11:03 ` [PATCH 10/24] drm/{i915, xe}: move more calls inside intel_display_driver_pm_suspend() Jani Nikula
2026-05-29 13:36 ` [PATCH 10/24] drm/{i915,xe}: " Ville Syrjälä
2026-05-29 11:03 ` [PATCH 11/24] drm/{i915, xe}: move more calls inside intel_display_driver_pm_resume() Jani Nikula
2026-05-29 13:38 ` [PATCH 11/24] drm/{i915,xe}: " Ville Syrjälä
2026-05-29 11:03 ` [PATCH 12/24] drm/{i915, xe}: add intel_display_driver_pm_{suspend_late, resume_early}() Jani Nikula
2026-05-29 13:39 ` [PATCH 12/24] drm/{i915,xe}: add intel_display_driver_pm_{suspend_late,resume_early}() Ville Syrjälä
2026-05-29 11:03 ` [PATCH 13/24] drm/{i915, xe}: move more calls inside intel_display_driver_{register, unregister}() Jani Nikula
2026-05-29 14:04 ` [PATCH 13/24] drm/{i915,xe}: move more calls inside intel_display_driver_{register,unregister}() Ville Syrjälä
2026-05-29 11:03 ` [PATCH 14/24] drm/{i915, xe}: add intel_display_driver_shutdown_late() Jani Nikula
2026-05-29 14:05 ` [PATCH 14/24] drm/{i915,xe}: " Ville Syrjälä
2026-05-29 11:03 ` [PATCH 15/24] drm/i915: add intel_display_driver_shutdown() Jani Nikula
2026-05-29 17:57 ` Ville Syrjälä
2026-05-29 11:04 ` [PATCH 16/24] drm/i915/display: deduplicate suspend and shutdown a bit Jani Nikula
2026-05-29 17:59 ` Ville Syrjälä
2026-05-29 11:04 ` [PATCH 17/24] drm/xe/display: use intel_display_driver_pm_shutdown() Jani Nikula
2026-05-29 18:02 ` Ville Syrjälä
2026-05-29 11:04 ` [PATCH 18/24] drm/{i915, xe}: move more stuff to __intel_display_driver_pm_suspend() Jani Nikula
2026-05-29 18:03 ` [PATCH 18/24] drm/{i915,xe}: " Ville Syrjälä
2026-05-29 11:04 ` [PATCH 19/24] drm/{i915, xe}: make intel_dmc_suspend() part of display suspend/shutdown calls Jani Nikula
2026-05-29 14:16 ` [PATCH 19/24] drm/{i915,xe}: " Ville Syrjälä
2026-06-01 8:14 ` Imre Deak
2026-05-29 11:04 ` [PATCH 20/24] drm/{i915, xe}: move intel_opregion_suspend() to intel_display_driver_pm_suspend_late() Jani Nikula
2026-05-29 14:42 ` [PATCH 20/24] drm/{i915,xe}: " Ville Syrjälä
2026-05-29 11:04 ` [PATCH 21/24] drm/{i915, xe}: keep moving stuff to intel_display_driver_pm_resume() Jani Nikula
2026-05-29 18:45 ` [PATCH 21/24] drm/{i915,xe}: " Ville Syrjälä
2026-05-29 11:04 ` [PATCH 22/24] drm/i915: add intel_display_driver_pm_runtime*() functions Jani Nikula
2026-05-29 19:05 ` Ville Syrjälä
2026-05-29 11:04 ` [PATCH 23/24] drm/xe/display: separate d3cold handling from xe_display_pm_runtime_suspend_late() Jani Nikula
2026-05-29 19:05 ` Ville Syrjälä
2026-05-29 11:04 ` [PATCH 24/24] drm/xe/display: unify runtime suspend/resume with i915 for non-d3cold Jani Nikula
2026-05-29 19:12 ` Ville Syrjälä
2026-06-05 16:04 ` Jani Nikula
2026-06-09 1:08 ` Rodrigo Vivi [this message]
2026-05-29 11:13 ` ✓ CI.KUnit: success for drm/{i915, xe}: display (runtime) suspend/resume/shutdown unification Patchwork
2026-05-29 11:59 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-05-29 14:07 ` ✗ Xe.CI.FULL: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aidnhMTk4bOxx0Ks@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=gustavo.sousa@intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox