From: "Girotra, Himanshu" <himanshu.girotra@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Cc: "Brost, Matthew" <matthew.brost@intel.com>,
Thomas Hellström <thomas.hellstrom@linux.intel.com>
Subject: RE: [PATCH] drm/syncobj: Fix xa_alloc allocation flags
Date: Tue, 24 Mar 2026 11:27:35 +0000 [thread overview]
Message-ID: <CH0PR11MB5564E08C3A491EF4841217D49848A@CH0PR11MB5564.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20260324111019.22467-1-tvrtko.ursulin@igalia.com>
> -----Original Message-----
> From: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
> Sent: 24 March 2026 16:40
> To: intel-xe@lists.freedesktop.org; dri-devel@lists.freedesktop.org
> Cc: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>; Girotra, Himanshu
> <himanshu.girotra@intel.com>; Brost, Matthew <matthew.brost@intel.com>;
> Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Subject: [PATCH] drm/syncobj: Fix xa_alloc allocation flags
>
> 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: Himanshu Girotra <himanshu.girotra@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);
>
> --
> 2.52.0
next prev parent reply other threads:[~2026-03-24 11:27 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
2026-03-24 11:27 ` Girotra, Himanshu [this message]
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=CH0PR11MB5564E08C3A491EF4841217D49848A@CH0PR11MB5564.namprd11.prod.outlook.com \
--to=himanshu.girotra@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=thomas.hellstrom@linux.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