drm/amd/display: Add DCN32/321 version identifiers
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Mon, 21 Feb 2022 20:49:20 +0000 (15:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:43:36 +0000 (16:43 -0400)
Add DCN3.2 asic identifiers.

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/dmub_srv.h
drivers/gpu/drm/amd/display/include/dal_asic_id.h
drivers/gpu/drm/amd/display/include/dal_types.h

index f5cb8932bd5cb22b23b14af24c1d9307732e00f1..7dbc9fb55459593715590bafc9e124a4245499d4 100644 (file)
@@ -100,6 +100,8 @@ enum dmub_asic {
        DMUB_ASIC_DCN31B,
        DMUB_ASIC_DCN315,
        DMUB_ASIC_DCN316,
+       DMUB_ASIC_DCN32,
+       DMUB_ASIC_DCN321,
        DMUB_ASIC_MAX,
 };
 
index 310f8779db671959a1e31735f113ef278c483a0f..11391eead954e5a9b9553ef6f5ba339954228c61 100644 (file)
@@ -247,6 +247,14 @@ enum {
 
 #define ASICREV_IS_GC_10_3_7(eChipRev) ((eChipRev >= GC_10_3_7_A0) && (eChipRev < GC_10_3_7_UNKNOWN))
 
+#define AMDGPU_FAMILY_GC_11_0_0 145
+#define GC_11_0_0_A0 0x1
+#define GC_11_0_2_A0 0x10
+#define GC_11_UNKNOWN 0xFF
+
+#define ASICREV_IS_GC_11_0_0(eChipRev) (eChipRev < GC_11_0_2_A0)
+#define ASICREV_IS_GC_11_0_2(eChipRev) (eChipRev >= GC_11_0_2_A0 && eChipRev < GC_11_UNKNOWN)
+
 /*
  * ASIC chip ID
  */
index bf9085fc5105bd8150a8cebc842f4e99bec89c9f..775c640fc820bcce5700e285bdde139ddd1e35ea 100644 (file)
@@ -59,6 +59,8 @@ enum dce_version {
        DCN_VERSION_3_1,
        DCN_VERSION_3_15,
        DCN_VERSION_3_16,
+       DCN_VERSION_3_2,
+       DCN_VERSION_3_21,
        DCN_VERSION_MAX
 };