[PATCH i-g-t 2/2] lib/amdgpu: add GFX1152 to GFX1150 family
Tim Huang
tim.huang at amd.com
Wed Aug 7 06:33:51 UTC 2024
Add GFX1152 to the amdgpu supported chip list.
Signed-off-by: Tim Huang <tim.huang at amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak at amd.com>
---
lib/amdgpu/amd_family.h | 1 +
lib/amdgpu/amd_ip_blocks.c | 1 +
lib/amdgpu/amdgpu_asic_addr.h | 2 ++
3 files changed, 4 insertions(+)
diff --git a/lib/amdgpu/amd_family.h b/lib/amdgpu/amd_family.h
index 4a5731dbf..54b0ae1d8 100644
--- a/lib/amdgpu/amd_family.h
+++ b/lib/amdgpu/amd_family.h
@@ -106,6 +106,7 @@ enum radeon_family {
CHIP_GFX1103_R2,
CHIP_GFX1150,
CHIP_GFX1151,
+ CHIP_GFX1152,
CHIP_GFX1200,
CHIP_LAST,
};
diff --git a/lib/amdgpu/amd_ip_blocks.c b/lib/amdgpu/amd_ip_blocks.c
index f675b97dd..131251615 100644
--- a/lib/amdgpu/amd_ip_blocks.c
+++ b/lib/amdgpu/amd_ip_blocks.c
@@ -735,6 +735,7 @@ int setup_amdgpu_ip_blocks(uint32_t major, uint32_t minor, struct amdgpu_gpu_inf
case FAMILY_GFX1150:
identify_chip(GFX1150);
identify_chip(GFX1151);
+ identify_chip(GFX1152);
break;
case FAMILY_GFX1200:
identify_chip(GFX1200);
diff --git a/lib/amdgpu/amdgpu_asic_addr.h b/lib/amdgpu/amdgpu_asic_addr.h
index 3829b0306..d5579ce4c 100644
--- a/lib/amdgpu/amdgpu_asic_addr.h
+++ b/lib/amdgpu/amdgpu_asic_addr.h
@@ -109,6 +109,7 @@
#define AMDGPU_GFX1103_R2_RANGE 0x80, 0xFF //# 128 <= x < max
#define AMDGPU_GFX1150_RANGE 0x01, 0x40 //# 01 <= x < 64
#define AMDGPU_GFX1151_RANGE 0xc0, 0xFF //# 192 <= x < 255
+#define AMDGPU_GFX1152_RANGE 0x40, 0x50 //# 64 <= x < 80
#define AMDGPU_GFX1200_RANGE 0x01, 0xFF //# 01 <= x < 255
#define AMDGPU_EXPAND_FIX(x) x
@@ -175,6 +176,7 @@
#define ASICREV_IS_GFX1103_R2(r) ASICREV_IS(r, GFX1103_R2)
#define ASICREV_IS_GFX1150(r) ASICREV_IS(r, GFX1150)
#define ASICREV_IS_GFX1151(r) ASICREV_IS(r, GFX1151)
+#define ASICREV_IS_GFX1152(r) ASICREV_IS(r, GFX1152)
#define ASICREV_IS_GFX1200(r) ASICREV_IS(r, GFX1200)
#endif // _AMDGPU_ASIC_ADDR_H
--
2.43.0
More information about the igt-dev
mailing list