From: Alex Deucher <alexander.deucher@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Alex Deucher <alexander.deucher@amd.com>
Subject: [PATCH 2/6] drm/amdgpu/nbio7.0: fix IP version check
Date: Thu, 12 Dec 2024 17:08:51 -0500 [thread overview]
Message-ID: <20241212220855.790502-2-alexander.deucher@amd.com> (raw)
In-Reply-To: <20241212220855.790502-1-alexander.deucher@amd.com>
Use the helper function rather than reading it directly.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
index 49e953f86ced4..d1032e9992b49 100644
--- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
@@ -278,7 +278,7 @@ static void nbio_v7_0_init_registers(struct amdgpu_device *adev)
{
uint32_t data;
- switch (adev->ip_versions[NBIO_HWIP][0]) {
+ switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) {
case IP_VERSION(2, 5, 0):
data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4) & ~BIT(23);
WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4, data);
--
2.47.1
next prev parent reply other threads:[~2024-12-12 22:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 22:08 [PATCH 1/6] drm/amdgpu/nbio7.7: fix IP version check Alex Deucher
2024-12-12 22:08 ` Alex Deucher [this message]
2024-12-12 22:08 ` [PATCH 3/6] drm/amdgpu/nbio7.11: " Alex Deucher
2024-12-12 22:08 ` [PATCH 4/6] drm/amdgpu/mmhub4.1: " Alex Deucher
2024-12-12 22:08 ` [PATCH 5/6] drm/amdgpu/gfx12: " Alex Deucher
2024-12-12 22:08 ` [PATCH 6/6] drm/amdgpu/smu14.0.2: " Alex Deucher
2024-12-13 1:19 ` [PATCH 1/6] drm/amdgpu/nbio7.7: " Wang, Yang(Kevin)
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=20241212220855.790502-2-alexander.deucher@amd.com \
--to=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.