public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Thomas Hellström <thomas.hellstrom@linux.intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>,
	intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: Himanshu Girotra <himanshu.girotra@intel.com>,
	Matthew Brost <matthew.brost@intel.com>
Subject: Re: [PATCH] drm/syncobj: Fix xa_alloc allocation flags
Date: Tue, 24 Mar 2026 12:12:11 +0100	[thread overview]
Message-ID: <f1953706e241aff8048d826a262d8258ddc70ec7.camel@linux.intel.com> (raw)
In-Reply-To: <20260324111019.22467-1-tvrtko.ursulin@igalia.com>

On Tue, 2026-03-24 at 11:10 +0000, Tvrtko Ursulin wrote:
> The xarray conversion blindly and wrongly replaced idr_alloc with
> xa_alloc
> and kept the GFP_NOWAIT. It should have been GFP_KERNEL to account
> for
> idr_preload it removed. Fix it.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
> Fixes: fec2c3c01f1c ("drm/syncobj: Convert syncobj idr to xarray")
> Reported-by: Himanshu Girotra <himanshu.girotra@intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>

Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>


> ---
>  drivers/gpu/drm/drm_syncobj.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_syncobj.c
> b/drivers/gpu/drm/drm_syncobj.c
> index 250734dee928..8d9fd1917c6e 100644
> --- a/drivers/gpu/drm/drm_syncobj.c
> +++ b/drivers/gpu/drm/drm_syncobj.c
> @@ -602,7 +602,7 @@ int drm_syncobj_get_handle(struct drm_file
> *file_private,
>  	drm_syncobj_get(syncobj);
>  
>  	ret = xa_alloc(&file_private->syncobj_xa, handle, syncobj,
> xa_limit_32b,
> -		       GFP_NOWAIT);
> +		       GFP_KERNEL);
>  	if (ret)
>  		drm_syncobj_put(syncobj);
>  
> @@ -716,7 +716,7 @@ static int drm_syncobj_fd_to_handle(struct
> drm_file *file_private,
>  	drm_syncobj_get(syncobj);
>  
>  	ret = xa_alloc(&file_private->syncobj_xa, handle, syncobj,
> xa_limit_32b,
> -		       GFP_NOWAIT);
> +		       GFP_KERNEL);
>  	if (ret)
>  		drm_syncobj_put(syncobj);
>  

  reply	other threads:[~2026-03-24 11:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24 11:10 [PATCH] drm/syncobj: Fix xa_alloc allocation flags Tvrtko Ursulin
2026-03-24 11:12 ` Thomas Hellström [this message]
2026-03-24 11:27 ` Girotra, Himanshu
2026-03-24 20:54 ` Claude review: " Claude Code Review Bot
2026-03-24 20:54 ` Claude Code Review Bot

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=f1953706e241aff8048d826a262d8258ddc70ec7.camel@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=himanshu.girotra@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox