Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Francois Dugast <francois.dugast@intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maarten Lankhorst <dev@lankhorst.se>, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/2] fixup! drm/xe/uapi: Reject bo creation of unaligned size
Date: Tue, 12 Dec 2023 15:29:15 +0100	[thread overview]
Message-ID: <ZXhuO2KPGqbApSwL@fdugast-desk.home> (raw)
In-Reply-To: <20231212142045.22182-2-maarten.lankhorst@linux.intel.com>

On Tue, Dec 12, 2023 at 03:20:45PM +0100, Maarten Lankhorst wrote:
> From: Maarten Lankhorst <dev@lankhorst.se>
> 
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>

Reviewed-by: Francois Dugast <francois.dugast@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_bo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index 7e25c8b7a01a..9cc78986dbd3 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1574,7 +1574,7 @@ struct xe_bo *xe_managed_bo_create_pin_map(struct xe_device *xe, struct xe_tile
>  struct xe_bo *xe_managed_bo_create_from_data(struct xe_device *xe, struct xe_tile *tile,
>  					     const void *data, size_t size, u32 flags)
>  {
> -	struct xe_bo *bo = xe_managed_bo_create_pin_map(xe, tile, size, flags);
> +	struct xe_bo *bo = xe_managed_bo_create_pin_map(xe, tile, ALIGN(size, PAGE_SIZE), flags);
>  
>  	if (IS_ERR(bo))
>  		return bo;
> -- 
> 2.40.1
> 

  reply	other threads:[~2023-12-12 14:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-12 14:20 [PATCH 1/2] fixup! drm/xe/uc: Store firmware binary in system-memory backed BO Maarten Lankhorst
2023-12-12 14:20 ` [PATCH 2/2] fixup! drm/xe/uapi: Reject bo creation of unaligned size Maarten Lankhorst
2023-12-12 14:29   ` Francois Dugast [this message]
2023-12-12 14:23 ` ✓ CI.Patch_applied: success for series starting with [1/2] fixup! drm/xe/uc: Store firmware binary in system-memory backed BO Patchwork
2023-12-12 14:23 ` ✗ CI.checkpatch: warning " Patchwork
2023-12-12 14:24 ` ✓ CI.KUnit: success " Patchwork
2023-12-12 14:28 ` [PATCH 1/2] " Francois Dugast
2023-12-12 14:31 ` ✓ CI.Build: success for series starting with [1/2] " Patchwork
2023-12-12 14:32 ` ✓ CI.Hooks: " Patchwork
2023-12-12 14:33 ` ✓ CI.checksparse: " Patchwork
2023-12-12 15:07 ` ✓ CI.BAT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-12-12  4:01 [PATCH v4 0/2] drm/xe/pmu: Remove PMU from Xe till uapi is finalized Ashutosh Dixit
2023-12-12  4:01 ` [PATCH 2/2] fixup! drm/xe/uapi: Reject bo creation of unaligned size Ashutosh Dixit
2023-12-12 18:30   ` Rodrigo Vivi

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=ZXhuO2KPGqbApSwL@fdugast-desk.home \
    --to=francois.dugast@intel.com \
    --cc=dev@lankhorst.se \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=maarten.lankhorst@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