From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Sonny Jiang <sonny.jiang@amd.com>,
Boyuan Zhang <Boyuan.Zhang@amd.com>,
Alex Deucher <alexander.deucher@amd.com>,
Sasha Levin <sashal@kernel.org>
Subject: [PATCH 7.3.y 2/4] drm/amdgpu: Correct VCN V5_0_2 doorbell index setting
Date: Thu, 12 Nov 2026 12:47:04 -0500 [thread overview]
Message-ID: <20261112174623.3116347-2-sashal@kernel.org> (raw)
In-Reply-To: <20261112174623.3116347-1-sashal@kernel.org>
From: Sonny Jiang <sonny.jiang@amd.com>
[ Upstream commit 66421e37897ddd29c03a3290cd559f7c72622f80 ]
Each VCN 5.0.2 instance has 11 doorbells. Use an 11-doorbell when
calculating the per-instance VCN ring doorbell index.
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: a56c2536c399 ("drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
index b9f6ae75ea727..5291ebbc5c3e2 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c
@@ -129,7 +129,7 @@ static int vcn_v5_0_2_sw_init(struct amdgpu_ip_block *ip_block)
ring->use_doorbell = true;
ring->doorbell_index =
- (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 32 * vcn_inst;
+ (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 11 * vcn_inst;
ring->vm_hub = AMDGPU_MMHUB0(adev->vcn.inst[i].aid_id);
sprintf(ring->name, "vcn_unified_%d", adev->vcn.inst[i].aid_id);
--
2.53.0
next prev parent reply other threads:[~2026-11-12 17:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 1:02 FAILED: patch "[PATCH] drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg" failed to apply to 7.3-stable tree Sasha Levin
2026-11-12 17:47 ` [PATCH 7.3.y 1/4] drm/amdgpu: Config VCN instance for soc_v1_0" Sasha Levin
2026-11-12 17:47 ` Sasha Levin [this message]
2026-11-12 17:47 ` [PATCH 7.3.y 3/4] drm/amdgpu: VCN 5_0_2 disable VCN_RRMT Sasha Levin
2026-11-12 17:47 ` [PATCH 7.3.y 4/4] drm/amdgpu: cancel idle work in hw_init failure paths for vcn/uvd/vce/jpeg Sasha Levin
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=20261112174623.3116347-2-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=Boyuan.Zhang@amd.com \
--cc=alexander.deucher@amd.com \
--cc=sonny.jiang@amd.com \
--cc=stable@vger.kernel.org \
/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