AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Sunil Khatri <sunil.khatri@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [Patch v1 4/4] drm/amdgpu/userq: Fix the code alignment for readability
Date: Thu, 26 Mar 2026 13:12:18 +0100	[thread overview]
Message-ID: <d24b7d91-e775-4310-997c-f628332c13c3@amd.com> (raw)
In-Reply-To: <20260326085601.2665215-5-sunil.khatri@amd.com>

On 3/26/26 09:56, Sunil Khatri wrote:
> Fix the code alignment for if condition and also provide
> a line space between multiline if condition and next
> statement.
> 
> Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>

Acked-by: Christian König <christian.koenig@amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
> index 48cb2e21ce56..7cdfe3adcbae 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
> @@ -1454,17 +1454,19 @@ int amdgpu_userq_start_sched_for_enforce_isolation(struct amdgpu_device *adev,
>  
>  	if (!adev->userq_halt_for_enforce_isolation)
>  		dev_warn(adev->dev, "userq scheduling already started!\n");
> +
>  	adev->userq_halt_for_enforce_isolation = false;
> +
>  	xa_for_each(&adev->userq_doorbell_xa, queue_id, queue) {
>  		uqm = queue->userq_mgr;
>  		mutex_lock(&uqm->userq_mutex);
> -			if (((queue->queue_type == AMDGPU_HW_IP_GFX) ||
> -			     (queue->queue_type == AMDGPU_HW_IP_COMPUTE)) &&
> -			    (queue->xcp_id == idx)) {
> +		if (((queue->queue_type == AMDGPU_HW_IP_GFX) ||
> +		     (queue->queue_type == AMDGPU_HW_IP_COMPUTE)) &&
> +		    (queue->xcp_id == idx)) {
>  			r = amdgpu_userq_restore_helper(queue);
>  			if (r)
>  				ret = r;
> -			}
> +		}
>  		mutex_unlock(&uqm->userq_mutex);
>  	}
>  


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

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-26  8:55 [Patch v1 0/4] Bunch of patches to do trivial clean up and Sunil Khatri
2026-03-26  8:55 ` [Patch v1 1/4] drm/amdgpu/userq: no need to use local variable ret Sunil Khatri
2026-03-26 12:08   ` Christian König
2026-03-26 12:26     ` Khatri, Sunil
2026-03-26 12:52       ` Christian König
2026-03-26  8:55 ` [Patch v1 2/4] drm/amdgpu/userq: no need to use local variable here for return Sunil Khatri
2026-03-26 12:09   ` Christian König
2026-03-26 12:30     ` Khatri, Sunil
2026-03-26 12:55       ` Christian König
2026-03-26  8:56 ` [Patch v1 3/4] " Sunil Khatri
2026-03-26 12:11   ` Christian König
2026-03-26 12:32     ` Khatri, Sunil
2026-03-26  8:56 ` [Patch v1 4/4] drm/amdgpu/userq: Fix the code alignment for readability Sunil Khatri
2026-03-26 12:12   ` Christian König [this message]

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=d24b7d91-e775-4310-997c-f628332c13c3@amd.com \
    --to=christian.koenig@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=sunil.khatri@amd.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