All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: intel-xe@lists.freedesktop.org, kernel-dev@igalia.com,
	Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Subject: Re: [PATCH 1/2] drm/xe: Fix ggtt fb alignment
Date: Wed, 24 Sep 2025 11:40:38 +0300	[thread overview]
Message-ID: <aNOufDMgXkR6AU-r@intel.com> (raw)
In-Reply-To: <20250924081304.10098-1-tvrtko.ursulin@igalia.com>

On Wed, Sep 24, 2025 at 09:13:03AM +0100, Tvrtko Ursulin wrote:
> Pass the correct alignment from intel_fb_pin_to_ggtt() down to
> __xe_pin_fb_vma().

Just to elaborate a bit, "phys_alignment" is only a thing on
some gen2/3 platforms where the display cursor hardware doesn't
go through GGTT translation and instead takes a direct physical
address instead.

> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
> Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  drivers/gpu/drm/xe/display/xe_fb_pin.c | 2 +-
>  1 file changed, 1 insertion(+), 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 1fd4a815e784..b18d15cc3c53 100644
> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> @@ -378,7 +378,7 @@ intel_fb_pin_to_ggtt(const struct drm_framebuffer *fb,
>  {
>  	*out_flags = 0;
>  
> -	return __xe_pin_fb_vma(to_intel_framebuffer(fb), view, phys_alignment);
> +	return __xe_pin_fb_vma(to_intel_framebuffer(fb), view, alignment);
>  }
>  
>  void intel_fb_unpin_vma(struct i915_vma *vma, unsigned long flags)
> -- 
> 2.48.0

-- 
Ville Syrjälä
Intel

  parent reply	other threads:[~2025-09-24  8:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-24  8:13 [PATCH 1/2] drm/xe: Fix ggtt fb alignment Tvrtko Ursulin
2025-09-24  8:13 ` [PATCH 2/2] drm/xe: Fix DPT frame buffer alignment Tvrtko Ursulin
2025-09-24  8:19 ` ✗ CI.checkpatch: warning for series starting with [1/2] drm/xe: Fix ggtt fb alignment Patchwork
2025-09-24  8:21 ` ✓ CI.KUnit: success " Patchwork
2025-09-24  8:40 ` Ville Syrjälä [this message]
2025-09-24  9:05 ` ✓ Xe.CI.BAT: " Patchwork
2025-09-24 11:11 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-24 11:26   ` Tvrtko Ursulin
2025-09-24 11:56     ` Ville Syrjälä

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=aNOufDMgXkR6AU-r@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=juhapekka.heikkila@gmail.com \
    --cc=kernel-dev@igalia.com \
    --cc=tvrtko.ursulin@igalia.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.