From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [RESEND 2/6] drm/i915/display: switch from drm_for_each_crtc() to for_each_intel_crtc()
Date: Fri, 22 May 2026 15:22:22 +0300 [thread overview]
Message-ID: <ahBKfmBlTT-Oy5RP@intel.com> (raw)
In-Reply-To: <8ee4320cd15bc35a8b40676faae6db4b33eb50eb.1778659089.git.jani.nikula@intel.com>
On Wed, May 13, 2026 at 10:58:36AM +0300, Jani Nikula wrote:
> intel_has_pending_fb_unpin() has the last direct user of
> drm_for_each_crtc() in i915. Switch to for_each_intel_crtc() to ensure
> pipe order iteration in all cases.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
The order doesn't actually matter here, but no reason do things
differently just in this one case.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_display.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 50feca52b962..682a0514ec81 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -714,22 +714,22 @@ static void icl_set_pipe_chicken(const struct intel_crtc_state *crtc_state)
>
> bool intel_has_pending_fb_unpin(struct intel_display *display)
> {
> - struct drm_crtc *crtc;
> + struct intel_crtc *crtc;
> bool cleanup_done;
>
> - drm_for_each_crtc(crtc, display->drm) {
> + for_each_intel_crtc(display->drm, crtc) {
> struct drm_crtc_commit *commit;
> - spin_lock(&crtc->commit_lock);
> - commit = list_first_entry_or_null(&crtc->commit_list,
> + spin_lock(&crtc->base.commit_lock);
> + commit = list_first_entry_or_null(&crtc->base.commit_list,
> struct drm_crtc_commit, commit_entry);
> cleanup_done = commit ?
> try_wait_for_completion(&commit->cleanup_done) : true;
> - spin_unlock(&crtc->commit_lock);
> + spin_unlock(&crtc->base.commit_lock);
>
> if (cleanup_done)
> continue;
>
> - intel_crtc_wait_for_next_vblank(to_intel_crtc(crtc));
> + intel_crtc_wait_for_next_vblank(crtc);
>
> return true;
> }
> --
> 2.47.3
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-05-22 12:22 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 7:58 [RESEND 0/6] drm/i915: crtc iteration cleanups Jani Nikula
2026-05-13 7:58 ` [RESEND 1/6] drm/{i915, xe}: move xe_display_flush_cleanup_work() to i915 display Jani Nikula
2026-05-13 12:09 ` Ville Syrjälä
2026-05-13 14:19 ` Jani Nikula
2026-05-13 14:56 ` Imre Deak
2026-05-22 8:34 ` Jani Nikula
2026-05-22 12:20 ` Ville Syrjälä
2026-05-25 11:05 ` [PATCH v2] " Jani Nikula
2026-05-26 12:08 ` [PATCH v2] drm/{i915,xe}: " Jani Nikula
2026-05-26 17:37 ` Ville Syrjälä
2026-05-26 18:09 ` Jani Nikula
2026-05-26 19:26 ` Ville Syrjälä
2026-05-13 7:58 ` [RESEND 2/6] drm/i915/display: switch from drm_for_each_crtc() to for_each_intel_crtc() Jani Nikula
2026-05-22 12:22 ` Ville Syrjälä [this message]
2026-05-13 7:58 ` [RESEND 3/6] drm/i915/display: always pass display->drm to for_each_intel_crtc*() Jani Nikula
2026-05-13 12:22 ` Ville Syrjälä
2026-05-13 7:58 ` [RESEND 4/6] drm/i915/display: pass struct intel_display to all for_each_intel_crtc*() macros Jani Nikula
2026-05-13 12:22 ` Ville Syrjälä
2026-05-13 7:58 ` [RESEND 5/6] drm/i915/display: stop passing i to for_each_*_intel_crtc_in_state() macros Jani Nikula
2026-05-13 12:22 ` Ville Syrjälä
2026-05-13 7:58 ` [RESEND 6/6] drm/i915/display: stop passing i to for_each_pipe_crtc_modeset_{enable, disable}() Jani Nikula
2026-05-13 12:23 ` Ville Syrjälä
2026-05-13 8:05 ` ✗ CI.checkpatch: warning for drm/i915: crtc iteration cleanups (rev2) Patchwork
2026-05-13 8:07 ` ✓ CI.KUnit: success " Patchwork
2026-05-13 8:59 ` ✗ i915.CI.BAT: failure " Patchwork
2026-05-13 8:59 ` Patchwork
2026-05-13 9:46 ` ✓ Xe.CI.BAT: success " Patchwork
2026-05-14 7:33 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-25 12:24 ` ✗ CI.checkpatch: warning for drm/i915: crtc iteration cleanups (rev3) Patchwork
2026-05-25 12:25 ` ✓ CI.KUnit: success " Patchwork
2026-05-25 13:11 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-25 15:39 ` ✓ Xe.CI.FULL: " Patchwork
2026-05-25 16:18 ` ✓ i915.CI.BAT: " Patchwork
2026-05-25 21:35 ` ✓ i915.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=ahBKfmBlTT-Oy5RP@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.