Skip to contentSkip to conversation

drm/amdgpu: add GC v11_0_0 family id

PATCH In review Alex Deucher 2 participants 3 messages Apr 29, 2022 – May 1, 2022

Subsystems (3)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/2 drm/amdgpu: add GC v11_0_0 family id

From: Hawking Zhang <[email protected]>

Add GC v11_0_0 family id

---
 include/uapi/drm/amdgpu_drm.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/drm/amdgpu_drm.h +1 -0
index 1d65c1fbc4ec..992851219441 100644
@@ -1150,6 +1150,7 @@ struct drm_amdgpu_info_video_caps {
 #define AMDGPU_FAMILY_RV			142 /* Raven */
 #define AMDGPU_FAMILY_NV			143 /* Navi10 */
 #define AMDGPU_FAMILY_VGH			144 /* Van Gogh */
+#define AMDGPU_FAMILY_GC_11_0_0			145 /* GC 11.0.0 */
 #define AMDGPU_FAMILY_YC			146 /* Yellow Carp */
 #define AMDGPU_FAMILY_GC_10_3_6			149 /* GC 10.3.6 */
 #define AMDGPU_FAMILY_GC_10_3_7			151 /* GC 10.3.7 */
Signature · 1 line
2.35.1
author maintainer
#1 lore raw

PATCH 2/2 drm/amdgpu/discovery: Set GC family for GC 11.0 IP

From: Likun Gao <[email protected]>

Set GC family for GC 11.0 IPs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +3 -0
index 2349617efeee..9c177ccc7ed9 100644
@@ -2090,6 +2090,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(10, 3, 7):
 		adev->family = AMDGPU_FAMILY_GC_10_3_7;
 		break;
+	case IP_VERSION(11, 0, 0):
+		adev->family = AMDGPU_FAMILY_GC_11_0_0;
+		break;
 	default:
 		return -EINVAL;
 	}
Signature · 1 line
2.35.1
Reviewed-by on v1 2/2
#2 lore raw

RE: [PATCH 2/2] drm/amdgpu/discovery: Set GC family for GC 11.0 IP

[AMD Official Use Only - General]

Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Saturday, April 30, 2022 01:32
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Gao, Likun <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu/discovery: Set GC family for GC 11.0 IP

From: Likun Gao <[email protected]>

Set GC family for GC 11.0 IPs.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +3 -0
index 2349617efeee..9c177ccc7ed9 100644
@@ -2090,6 +2090,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(10, 3, 7):
                adev->family = AMDGPU_FAMILY_GC_10_3_7;
                break;
+       case IP_VERSION(11, 0, 0):
+               adev->family = AMDGPU_FAMILY_GC_11_0_0;
+               break;
        default:
                return -EINVAL;
        }

--
2.35.1