Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Juha-Pekka Heikkilä" <juhapekka.heikkila@gmail.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/xe: Use fb cached min alignment
Date: Wed, 6 May 2026 19:44:47 +0300	[thread overview]
Message-ID: <c509d626-563b-4335-8466-337d1217fd48@gmail.com> (raw)
In-Reply-To: <20260430154602.11393-1-ville.syrjala@linux.intel.com>

look all ok.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>

On 30/04/2026 18.46, Ville Syrjala wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
> 
> Instead of just looking at the first plane use the fb cached overall
> minimum alignment.
> 
> This aligns with how the i915 version of intel_plane_pin_fb works.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
> [vsyrjala: Rebase due to pin_params]
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>   drivers/gpu/drm/xe/display/xe_fb_pin.c | 10 +++++++++-
>   1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> index 948446346c53..3e8114fbfbaa 100644
> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> @@ -459,6 +459,14 @@ static bool reuse_vma(struct intel_plane_state *new_plane_state,
>   	return true;
>   }
>   
> +static unsigned int
> +intel_plane_fb_min_alignment(const struct intel_plane_state *plane_state)
> +{
> +	const struct intel_framebuffer *fb = to_intel_framebuffer(plane_state->hw.fb);
> +
> +	return fb->min_alignment;
> +}
> +
>   int intel_plane_pin_fb(struct intel_plane_state *new_plane_state,
>   		       const struct intel_plane_state *old_plane_state)
>   {
> @@ -469,7 +477,7 @@ int intel_plane_pin_fb(struct intel_plane_state *new_plane_state,
>   	struct intel_plane *plane = to_intel_plane(new_plane_state->uapi.plane);
>   	struct intel_fb_pin_params pin_params = {
>   		.view = &new_plane_state->view.gtt,
> -		.alignment = plane->min_alignment(plane, fb, 0),
> +		.alignment = intel_plane_fb_min_alignment(new_plane_state),
>   		.needs_cpu_lmem_access = intel_fb_needs_cpu_access(fb),
>   	};
>   


      parent reply	other threads:[~2026-05-06 16:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30 15:46 [PATCH 1/2] drm/xe: Use fb cached min alignment Ville Syrjala
2026-04-30 15:46 ` [PATCH 2/2] drm/xe: Respect pin_params.alignment for GGTT Ville Syrjala
2026-05-06 16:46   ` Juha-Pekka Heikkilä
2026-04-30 16:32 ` ✓ CI.KUnit: success for series starting with [1/2] drm/xe: Use fb cached min alignment Patchwork
2026-04-30 17:40 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-01  4:18 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-06 16:44 ` Juha-Pekka Heikkilä [this message]

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=c509d626-563b-4335-8466-337d1217fd48@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --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