From: "Borah, Chaitanya Kumar" <chaitanya.kumar.borah@intel.com>
To: Nemesa Garg <nemesa.garg@intel.com>,
<intel-gfx@lists.freedesktop.org>,
<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 5/6] drm/i915/cursor: Schedule cursor unpin per joined pipe
Date: Thu, 27 Aug 2026 15:16:40 +0530 [thread overview]
Message-ID: <3a7112a9-d726-4306-bdf8-5b71872ffab8@intel.com> (raw)
In-Reply-To: <20260821044755.2234490-6-nemesa.garg@intel.com>
On 8/21/2026 10:17 AM, Nemesa Garg wrote:
> Convert the primary-only vblank unpin block into a loop over the
> joined_pipe_state[] array so each pipe's old cursor framebuffer is scheduled for
> unpin (or unpinned inline when unchanged) independently. All unpin
> work is armed on the primary crtc's vblank (&crtc->base), consistent
> with the single primary vblank evasion used above.
>
> v4: Split from the update_arm loop conversion. [Chaitanya]
>
If it is possible to do so cleanly, I would prefer to squash this change
with patch 3 for the sake of completion. Not a blocker though.
LGTM
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
> Assisted-by: Claude:claude-sonnet-4.6
> Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_cursor.c | 26 ++++++++++-----------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_cursor.c b/drivers/gpu/drm/i915/display/intel_cursor.c
> index f5625dabc8f6..dedb6f87359c 100644
> --- a/drivers/gpu/drm/i915/display/intel_cursor.c
> +++ b/drivers/gpu/drm/i915/display/intel_cursor.c
> @@ -894,7 +894,6 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
> struct intel_display *display = to_intel_display(plane);
> struct intel_plane_state *old_plane_state =
> to_intel_plane_state(plane->base.state);
> - struct intel_plane_state *new_plane_state = NULL;
> struct intel_crtc_state *crtc_state =
> to_intel_crtc_state(crtc->base.state);
> struct intel_vblank_evade_ctx evade;
> @@ -993,7 +992,6 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
> num_pipes++;
> }
>
> - new_plane_state = joined_pipe_state[0].new_plane_state;
> intel_frontbuffer_flush(to_intel_frontbuffer(joined_pipe_state[0].new_plane_state->hw.fb),
> ORIGIN_CURSOR_UPDATE);
>
> @@ -1078,17 +1076,19 @@ intel_legacy_cursor_update(struct drm_plane *_plane,
> * Schedule or immediately unpin old framebuffers.
> * Protect against concurrent access.
> */
> - if (old_plane_state->ggtt_vma != new_plane_state->ggtt_vma) {
> - drm_vblank_work_init(&old_plane_state->unpin_work, &crtc->base,
> - intel_cursor_unpin_work);
> -
> - drm_vblank_work_schedule(&old_plane_state->unpin_work,
> - drm_crtc_accurate_vblank_count(&crtc->base) + 1,
> - false);
> -
> - joined_pipe_state[0].old_plane_state = NULL;
> - } else {
> - intel_plane_unpin_fb(old_plane_state);
> + for (int i = 0; i < num_pipes; i++) {
> + struct intel_plane_state *old = joined_pipe_state[i].old_plane_state;
> +
> + if (old->ggtt_vma != joined_pipe_state[i].new_plane_state->ggtt_vma) {
> + drm_vblank_work_init(&old->unpin_work, &crtc->base,
> + intel_cursor_unpin_work);
> + drm_vblank_work_schedule(&old->unpin_work,
> + drm_crtc_accurate_vblank_count(&crtc->base) + 1,
> + false);
> + joined_pipe_state[i].old_plane_state = NULL;
> + } else {
> + intel_plane_unpin_fb(old);
> + }
> }
>
> out_free:
next prev parent reply other threads:[~2026-08-27 9:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 4:47 [PATCH 0/6] Enable joiner cursor fast updates Nemesa Garg
2026-08-21 4:47 ` [PATCH 1/6] drm/i915/cursor: Check joiner cursor commit status Nemesa Garg
2026-08-27 9:45 ` Borah, Chaitanya Kumar
2026-08-21 4:47 ` [PATCH 2/6] drm/i915/cursor: Add helper to update cursor plane Nemesa Garg
2026-08-27 9:45 ` Borah, Chaitanya Kumar
2026-08-21 4:47 ` [PATCH 3/6] drm/i915/cursor: Handle secondary cursor state Nemesa Garg
2026-08-27 9:45 ` Borah, Chaitanya Kumar
2026-08-21 4:47 ` [PATCH 4/6] drm/i915/cursor: Program secondary cursor planes Nemesa Garg
2026-08-27 9:46 ` Borah, Chaitanya Kumar
2026-08-21 4:47 ` [PATCH 5/6] drm/i915/cursor: Schedule cursor unpin per joined pipe Nemesa Garg
2026-08-27 9:46 ` Borah, Chaitanya Kumar [this message]
2026-08-21 4:47 ` [PATCH 6/6] drm/i915/cursor: Allow joiner cursor fast path update Nemesa Garg
2026-08-27 9:46 ` Borah, Chaitanya Kumar
2026-08-21 5:49 ` ✓ i915.CI.BAT: success for Enable joiner cursor fast updates (rev6) Patchwork
2026-08-21 9:05 ` ✗ i915.CI.Full: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2026-08-18 8:42 [PATCH 0/6] Enable joiner cursor fast updates Nemesa Garg
2026-08-18 8:42 ` [PATCH 5/6] drm/i915/cursor: Schedule cursor unpin per joined pipe Nemesa Garg
2026-07-06 11:56 [PATCH 0/6] Enable joiner cursor fast updates Nemesa Garg
2026-07-06 11:56 ` [PATCH 5/6] drm/i915/cursor: Schedule cursor unpin per joined pipe Nemesa Garg
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=3a7112a9-d726-4306-bdf8-5b71872ffab8@intel.com \
--to=chaitanya.kumar.borah@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=nemesa.garg@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