Intel-GFX 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 2/2] drm/xe: Respect pin_params.alignment for GGTT
Date: Wed, 6 May 2026 19:46:12 +0300	[thread overview]
Message-ID: <c4081d03-c47e-42e0-87b4-0a517c0748f5@gmail.com> (raw)
In-Reply-To: <20260430154602.11393-2-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: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Fix __xe_pin_fb_vma_ggtt() to actually respect the GGTT alignment
> specified by the display code. Misalignment can cause GTT faults
> etc.
> 
> Signed-off-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 3e8114fbfbaa..8d0067f908c5 100644
> --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c
> +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c
> @@ -286,7 +286,7 @@ static int __xe_pin_fb_vma_ggtt(struct drm_gem_object *obj,
>   	 */
>   	guard(xe_pm_runtime_noresume)(xe);
>   
> -	align = XE_PAGE_SIZE;
> +	align = max(XE_PAGE_SIZE, pin_params->alignment);
>   	if (xe_bo_is_vram(bo) && xe->info.vram_flags & XE_VRAM_FLAGS_NEED64K)
>   		align = max(align, SZ_64K);
>   


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

Thread overview: 6+ 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ä [this message]
2026-04-30 16:56 ` ✓ i915.CI.BAT: success for series starting with [1/2] drm/xe: Use fb cached min alignment Patchwork
2026-04-30 23:19 ` ✗ i915.CI.Full: failure " Patchwork
2026-05-06 16:44 ` [PATCH 1/2] " Juha-Pekka Heikkilä

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=c4081d03-c47e-42e0-87b4-0a517c0748f5@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