Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: Maciej Patelczyk <maciej.patelczyk@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
	<niranjana.vishwanathapura@intel.com>,
	<maarten.lankhorst@linux.intel.com>, <jonathan.cavitt@intel.com>
Subject: Re: [PATCH] drm/xe: remove unmatched xe_vm_unlock() from __xe_exec_queue_init()
Date: Fri, 30 May 2025 14:02:31 -0700	[thread overview]
Message-ID: <aDoc55B7hTqbv+lK@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20250530135627.2821612-1-maciej.patelczyk@intel.com>

On Fri, May 30, 2025 at 03:56:27PM +0200, Maciej Patelczyk wrote:
> There is unmatched xe_vm_unlock() in the __xe_exec_queue_init().
> Leftover from commit fbeaad071a98 ("drm/xe: Create LRC BO without VM")
> 
> Fixes: fbeaad071a98 ("drm/xe: Create LRC BO without VM")
> Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com>
> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
 
> ---
>  drivers/gpu/drm/xe/xe_exec_queue.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_exec_queue.c b/drivers/gpu/drm/xe/xe_exec_queue.c
> index 32c6923df7c3..fee22358cc09 100644
> --- a/drivers/gpu/drm/xe/xe_exec_queue.c
> +++ b/drivers/gpu/drm/xe/xe_exec_queue.c
> @@ -114,7 +114,6 @@ static struct xe_exec_queue *__xe_exec_queue_alloc(struct xe_device *xe,
>  
>  static int __xe_exec_queue_init(struct xe_exec_queue *q)
>  {
> -	struct xe_vm *vm = q->vm;
>  	int i, err;
>  	u32 flags = 0;
>  
> @@ -136,7 +135,7 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
>  		q->lrc[i] = xe_lrc_create(q->hwe, q->vm, SZ_16K, q->msix_vec, flags);
>  		if (IS_ERR(q->lrc[i])) {
>  			err = PTR_ERR(q->lrc[i]);
> -			goto err_unlock;
> +			goto err_lrc;
>  		}
>  	}
>  
> @@ -146,9 +145,6 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q)
>  
>  	return 0;
>  
> -err_unlock:
> -	if (vm)
> -		xe_vm_unlock(vm);
>  err_lrc:
>  	for (i = i - 1; i >= 0; --i)
>  		xe_lrc_put(q->lrc[i]);
> -- 
> 2.35.0
> 

  parent reply	other threads:[~2025-05-30 21:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-30 13:56 [PATCH] drm/xe: remove unmatched xe_vm_unlock() from __xe_exec_queue_init() Maciej Patelczyk
2025-05-30 14:42 ` ✓ CI.Patch_applied: success for drm/xe: remove unmatched xe_vm_unlock() from __xe_exec_queue_init() (rev2) Patchwork
2025-05-30 14:42 ` ✓ CI.checkpatch: " Patchwork
2025-05-30 14:43 ` ✓ CI.KUnit: " Patchwork
2025-05-30 14:53 ` ✓ CI.Build: " Patchwork
2025-05-30 14:56 ` ✓ CI.Hooks: " Patchwork
2025-05-30 14:57 ` ✓ CI.checksparse: " Patchwork
2025-05-30 15:25 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-30 21:02 ` Matthew Brost [this message]
2025-06-01  3:28 ` ✓ Xe.CI.Full: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-05-30  8:48 [PATCH] drm/xe: remove unmatched xe_vm_unlock() from __xe_exec_queue_init() Maciej Patelczyk
2025-05-30 14:07 ` Cavitt, Jonathan
2025-05-30 14:22   ` Maciej Patelczyk

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=aDoc55B7hTqbv+lK@lstrano-desk.jf.intel.com \
    --to=matthew.brost@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jonathan.cavitt@intel.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=maciej.patelczyk@intel.com \
    --cc=niranjana.vishwanathapura@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