From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: "Jesse.Zhang" <Jesse.Zhang@amd.com>, amd-gfx@lists.freedesktop.org
Cc: Alexander.Deucher@amd.com, Christian Koenig <christian.koenig@amd.com>
Subject: Re: [PATCH] drm/amdgpu: Fix jpeg ring test order in vcn_v4_0_3
Date: Tue, 27 Jan 2026 13:43:53 +0530 [thread overview]
Message-ID: <fc62b461-8bfe-4646-95eb-e9b152f6bef6@amd.com> (raw)
In-Reply-To: <20260127073918.2415931-1-Jesse.Zhang@amd.com>
On 27-Jan-26 1:09 PM, Jesse.Zhang wrote:
> Fix the vcn reset sequence in vcn_v4_0_3_ring_reset() to restore
> JPEG power state and unlock the JPEG powergating mutex before
> running the JPEG ring post-reset helper.
>
> Fixes: c50beca39115 ("drm/amdgpu/vcn4.0.3: rework reset handling")
>
> Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
> index dd247abce1ab..e78526a4e521 100644
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
> @@ -1742,11 +1742,11 @@ static int vcn_v4_0_3_ring_reset(struct amdgpu_ring *ring,
> goto unlock;
> }
>
> - r = vcn_v4_0_3_reset_jpeg_post_helper(adev, ring->me);
> if (pg_state)
> amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_JPEG,
> AMD_PG_STATE_GATE);
> mutex_unlock(&adev->jpeg.jpeg_pg_lock);
Probably, we can revisit this later since ring test logic will make sure
that jpeg will get eventually power gated if not in use.
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Thanks,
Lijo
> + r = vcn_v4_0_3_reset_jpeg_post_helper(adev, ring->me);
>
> unlock:
> mutex_unlock(&vinst->engine_reset_mutex);
prev parent reply other threads:[~2026-01-27 8:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-27 7:39 [PATCH] drm/amdgpu: Fix jpeg ring test order in vcn_v4_0_3 Jesse.Zhang
2026-01-27 8:13 ` Lazar, Lijo [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=fc62b461-8bfe-4646-95eb-e9b152f6bef6@amd.com \
--to=lijo.lazar@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Jesse.Zhang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@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