All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] drm/amdgpu/nbio7.7: fix IP version check
@ 2024-12-12 22:08 Alex Deucher
  2024-12-12 22:08 ` [PATCH 2/6] drm/amdgpu/nbio7.0: " Alex Deucher
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Alex Deucher @ 2024-12-12 22:08 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

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_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c
index 1ac730328516f..3fb6d2aa7e3b3 100644
--- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c
+++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c
@@ -247,7 +247,7 @@ static void nbio_v7_7_init_registers(struct amdgpu_device *adev)
 	if (def != data)
 		WREG32_SOC15(NBIO, 0, regBIF0_PCIE_MST_CTRL_3, data);
 
-	switch (adev->ip_versions[NBIO_HWIP][0]) {
+	switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) {
 	case IP_VERSION(7, 7, 0):
 		data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF5_STRAP4) & ~BIT(23);
 		WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF5_STRAP4, data);
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-12-13  1:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 22:08 [PATCH 1/6] drm/amdgpu/nbio7.7: fix IP version check Alex Deucher
2024-12-12 22:08 ` [PATCH 2/6] drm/amdgpu/nbio7.0: " Alex Deucher
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)

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.