Skip to contentSkip to conversation

amdgpu/vcn: enable AMD_PG_SUPPORT_VCN

PATCH New Alex Deucher 1 participant 3 messages Apr 30, 2024

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/3 amdgpu/vcn: enable AMD_PG_SUPPORT_VCN

From: "David (Ming Qiang) Wu" <[email protected]>

turn on AMD_PG_SUPPORT_VCN flag for power saving

---
 drivers/gpu/drm/amd/amdgpu/soc24.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc24.c +1 -1
index 6b438f0cc86e7..c8cb255b6cf68 100644
@@ -359,7 +359,7 @@ static int soc24_common_early_init(void *handle)
 		break;
 	case IP_VERSION(12, 0, 1):
 		adev->cg_flags = 0;
-		adev->pg_flags = 0;
+		adev->pg_flags = AMD_PG_SUPPORT_VCN;
 		adev->external_rev_id = adev->rev_id + 0x50;
 		adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
 				AMD_CG_SUPPORT_GFX_CGLS;
Signature · 1 line
2.44.0
author maintainer
#1 lore raw

PATCH 2/3 drm/amdgpu/jpeg5: enable power gating

From: Sonny Jiang <[email protected]>

Enable PG on JPEG5

---
 drivers/gpu/drm/amd/amdgpu/soc24.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc24.c +2 -1
index c8cb255b6cf68..9c14f81c88a7f 100644
@@ -359,7 +359,8 @@ static int soc24_common_early_init(void *handle)
 		break;
 	case IP_VERSION(12, 0, 1):
 		adev->cg_flags = 0;
-		adev->pg_flags = AMD_PG_SUPPORT_VCN;
+		adev->pg_flags = AMD_PG_SUPPORT_VCN |
+			AMD_PG_SUPPORT_JPEG;
 		adev->external_rev_id = adev->rev_id + 0x50;
 		adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
 				AMD_CG_SUPPORT_GFX_CGLS;
Signature · 1 line
2.44.0
author maintainer
#2 lore raw

PATCH 3/3 drm/amdgpu/vcn5: enable DPG mode support

In reply to Alex Deucher

From: Sonny Jiang <[email protected]>

Enable DPG mode

---
 drivers/gpu/drm/amd/amdgpu/soc24.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc24.c +2 -1
index 9c14f81c88a7f..e7929be1a6ff7 100644
@@ -360,7 +360,8 @@ static int soc24_common_early_init(void *handle)
 	case IP_VERSION(12, 0, 1):
 		adev->cg_flags = 0;
 		adev->pg_flags = AMD_PG_SUPPORT_VCN |
-			AMD_PG_SUPPORT_JPEG;
+			AMD_PG_SUPPORT_JPEG |
+			AMD_PG_SUPPORT_VCN_DPG;
 		adev->external_rev_id = adev->rev_id + 0x50;
 		adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
 				AMD_CG_SUPPORT_GFX_CGLS;
Signature · 1 line
2.44.0