Skip to contentSkip to conversation

drm/amdgpu: initialize common sw config for v11_0_3

PATCH New Alex Deucher 1 participant 3 messages Aug 26, 2022

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/3 drm/amdgpu: initialize common sw config for v11_0_3

From: Hawking Zhang <[email protected]>

init cp/pg_flags and extenal_rev_id

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +5 -0
index 55284b24f113..f87dfae4efda 100644
@@ -627,6 +627,11 @@ static int soc21_common_early_init(void *handle)
 			AMD_PG_SUPPORT_JPEG;
 		adev->external_rev_id = adev->rev_id + 0x1;
 		break;
+	case IP_VERSION(11, 0, 3):
+		adev->cg_flags = 0;
+		adev->pg_flags = 0;
+		adev->external_rev_id = adev->rev_id + 0x20;
+		break;
 	default:
 		/* FIXME: not supported yet */
 		return -EINVAL;
Signature · 1 line
2.37.1
author maintainer
#1 lore raw

PATCH 2/3 drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN

From: Sonny Jiang <[email protected]>

This enable VCN PG, CG, DPG and JPEG PG, CG

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +5 -2
index f87dfae4efda..54bce19a52ec 100644
@@ -628,8 +628,11 @@ static int soc21_common_early_init(void *handle)
 		adev->external_rev_id = adev->rev_id + 0x1;
 		break;
 	case IP_VERSION(11, 0, 3):
-		adev->cg_flags = 0;
-		adev->pg_flags = 0;
+		adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
+			AMD_CG_SUPPORT_JPEG_MGCG;
+		adev->pg_flags = AMD_PG_SUPPORT_VCN |
+			AMD_PG_SUPPORT_VCN_DPG |
+			AMD_PG_SUPPORT_JPEG;
 		adev->external_rev_id = adev->rev_id + 0x20;
 		break;
 	default:
Signature · 1 line
2.37.1
author maintainer
#2 lore raw

PATCH 3/3 drm/amdgpu: add new ip block for SOC21

In reply to Alex Deucher

From: Hawking Zhang <[email protected]>

Add ip block support for soc21_common.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index 95d34590cad1..c2e8a9fe81f7 100644
@@ -1506,6 +1506,7 @@ static int amdgpu_discovery_set_common_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(11, 0, 0):
 	case IP_VERSION(11, 0, 1):
 	case IP_VERSION(11, 0, 2):
+	case IP_VERSION(11, 0, 3):
 		amdgpu_device_ip_block_add(adev, &soc21_common_ip_block);
 		break;
 	default:
Signature · 1 line
2.37.1