[igt-dev] [PATCH] lib/amdgpu: add GFX1036, GFX1037 chips for IGT tests

vitaly.prosyak at amd.com vitaly.prosyak at amd.com
Tue Sep 5 18:51:46 UTC 2023


From: Jesse Zhang <jesse.zhang at amd.com>

Cc: Luben Tuikov <luben.tuikov at amd.com>
Cc: Alex Deucher <alexander.deucher at amd.com>
Cc: Christian Koenig <christian.koenig at amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak at amd.com> 
---
 lib/amdgpu/amd_family.h       | 2 ++
 lib/amdgpu/amd_ip_blocks.c    | 6 ++++++
 lib/amdgpu/amdgpu_asic_addr.h | 8 ++++++++
 3 files changed, 16 insertions(+)

diff --git a/lib/amdgpu/amd_family.h b/lib/amdgpu/amd_family.h
index 5b172d3a7..9e534208d 100644
--- a/lib/amdgpu/amd_family.h
+++ b/lib/amdgpu/amd_family.h
@@ -97,6 +97,8 @@ enum radeon_family {
 	CHIP_DIMGREY_CAVEFISH,
 	CHIP_BEIGE_GOBY,
 	CHIP_YELLOW_CARP,
+	CHIP_GFX1036,
+	CHIP_GFX1037,
 	CHIP_GFX1100,
 	CHIP_GFX1101,
 	CHIP_GFX1102,
diff --git a/lib/amdgpu/amd_ip_blocks.c b/lib/amdgpu/amd_ip_blocks.c
index 02dcaa431..be9ff38c6 100644
--- a/lib/amdgpu/amd_ip_blocks.c
+++ b/lib/amdgpu/amd_ip_blocks.c
@@ -620,6 +620,12 @@ int setup_amdgpu_ip_blocks(uint32_t major, uint32_t minor, struct amdgpu_gpu_inf
 	case FAMILY_YC:
 		identify_chip(YELLOW_CARP);
 		break;
+	case FAMILY_GFX1036:
+		identify_chip(GFX1036);
+		break;
+	case FAMILY_GFX1037:
+		identify_chip(GFX1037);
+		break;
 	case FAMILY_GFX1100:
 		identify_chip(GFX1100);
 		identify_chip(GFX1101);
diff --git a/lib/amdgpu/amdgpu_asic_addr.h b/lib/amdgpu/amdgpu_asic_addr.h
index 5e600e305..1178a920e 100644
--- a/lib/amdgpu/amdgpu_asic_addr.h
+++ b/lib/amdgpu/amdgpu_asic_addr.h
@@ -28,6 +28,8 @@
 #define FAMILY_GFX1100 0x91
 #define FAMILY_YC      0x92
 #define FAMILY_GFX1103 0x94
+#define FAMILY_GFX1036 0x95
+#define FAMILY_GFX1037 0x97
 
 // AMDGPU_FAMILY_IS(familyId, familyName)
 #define FAMILY_IS(f, fn)     (f == FAMILY_##fn)
@@ -42,6 +44,8 @@
 #define FAMILY_IS_RV(f)      FAMILY_IS(f, RV)
 #define FAMILY_IS_NV(f)      FAMILY_IS(f, NV)
 #define FAMILY_IS_YC(f)      FAMILY_IS(f, YC)
+#define FAMILY_IS_GFX1036(f) FAMILY_IS(f, GFX1036)
+#define FAMILY_IS_GFX1037(f) FAMILY_IS(f, GFX1037)
 #define FAMILY_IS_GFX1100(f) FAMILY_IS(f, GFX1100)
 
 #define AMDGPU_UNKNOWN          0xFF
@@ -91,6 +95,8 @@
 #define AMDGPU_BEIGE_GOBY_RANGE          0x46, 0x50
 #define AMDGPU_VANGOGH_RANGE      0x01, 0xFF
 #define AMDGPU_YELLOW_CARP_RANGE  0x01, 0xFF
+#define AMDGPU_GFX1036_RANGE  0x01, 0xFF
+#define AMDGPU_GFX1037_RANGE  0x01, 0xFF
 
 
 #define AMDGPU_GFX1100_RANGE     0x01, 0x10 //# 01 <= x < 16
@@ -153,6 +159,8 @@
 
 #define ASICREV_IS_VANGOGH(r)          ASICREV_IS(r, VANGOGH)
 #define ASICREV_IS_YELLOW_CARP(r)      ASICREV_IS(r, YELLOW_CARP)
+#define ASICREV_IS_GFX1036(r)          ASICREV_IS(r, GFX1036)
+#define ASICREV_IS_GFX1037(r)          ASICREV_IS(r, GFX1037)
 
 #define ASICREV_IS_GFX1100(r)          ASICREV_IS(r, GFX1100)
 #define ASICREV_IS_GFX1101(r)          ASICREV_IS(r, GFX1101)
-- 
2.25.1



More information about the igt-dev mailing list