Skip to contentSkip to conversation

drm/amdgpu: Add initial support for gfx v12_1

PATCH New Alex Deucher 1 participant 2 messages Nov 24, 2025

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/2 drm/amdgpu: Add initial support for gfx v12_1

From: Likun Gao <[email protected]>

Add initial support for gfx ip block for gc v12_1.

V2: Remove some not applicable bit set.
V3: drop unused header (Alex)

---
 drivers/gpu/drm/amd/amdgpu/Makefile    |    1 +
 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3947 ++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.h |   29 +
 3 files changed, 3977 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.h
drivers/gpu/drm/amd/amdgpu/Makefile +1 -0
index 367f2da5f5100..f65021678fc07 100644
@@ -158,6 +158,7 @@ amdgpu-y += \
 	gfx_v11_0_3.o \
 	imu_v11_0_3.o \
 	gfx_v12_0.o \
+	gfx_v12_1.o \
 	imu_v12_0.o
 
 # add async DMA block
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c new file +3947 -0

2,993 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/gfx_v12_1.h new file +29 -0
new file mode 100644
index 0000000000000..e4d547e7ee02b

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.51.1

Part of the diff is not shown here. View the raw message.

author maintainer
#1 lore raw

PATCH 2/2 drm/amdgpu: Add gfx v12_1_0 to discovery list

From: Likun Gao <[email protected]>

Include gfx v12_1_0 in the discovery list for gfx IP blocks

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +4 -0
index 0b94a23d03b68..ffffc60c98db5 100644
@@ -79,6 +79,7 @@
 #include "gfx_v10_0.h"
 #include "gfx_v11_0.h"
 #include "gfx_v12_0.h"
+#include "gfx_v12_1.h"
 #include "sdma_v5_0.h"
 #include "sdma_v5_2.h"
 #include "sdma_v6_0.h"
@@ -2363,6 +2364,9 @@ static int amdgpu_discovery_set_gc_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(12, 0, 1):
 		amdgpu_device_ip_block_add(adev, &gfx_v12_0_ip_block);
 		break;
+	case IP_VERSION(12, 1, 0):
+		amdgpu_device_ip_block_add(adev, &gfx_v12_1_ip_block);
+		break;
 	default:
 		dev_err(adev->dev, "Failed to add gfx ip block(GC_HWIP:0x%x)\n",
 			amdgpu_ip_version(adev, GC_HWIP, 0));
Signature · 1 line
2.51.1