Skip to contentSkip to conversation

drm/amdgpu: enable gfx clock gating for gfx950

PATCH In review Mangesh Gadre 2 participants 2 messages Jan 30, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: enable gfx clock gating for gfx950

From: Le Ma <[email protected]>

The CGCG residency can be observed with the change.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +1 -0
index 2ba185875baa..28a2310a049e 100644
@@ -2798,6 +2798,7 @@ static int gfx_v9_4_3_set_clockgating_state(struct amdgpu_ip_block *ip_block,
 	switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
 	case IP_VERSION(9, 4, 3):
 	case IP_VERSION(9, 4, 4):
+	case IP_VERSION(9, 5, 0):
 		for (i = 0; i < num_xcc; i++)
 			gfx_v9_4_3_xcc_update_gfx_clock_gating(
 				adev, state == AMD_CG_STATE_GATE, i);
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Mangesh Gadre

From: Le Ma <[email protected]>

The CGCG residency can be observed with the change.

This can be dropped, no longer needed after -

"drm/amdgpu: Clean up GFX v9.4.3 IP version checks"

Thanks,
Lijo

Quoted 16 lines
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +1 -0
index 2ba185875baa..28a2310a049e 100644
@@ -2798,6 +2798,7 @@ static int gfx_v9_4_3_set_clockgating_state(struct amdgpu_ip_block *ip_block,
 	switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
 	case IP_VERSION(9, 4, 3):
 	case IP_VERSION(9, 4, 4):
+	case IP_VERSION(9, 5, 0):
 		for (i = 0; i < num_xcc; i++)
 			gfx_v9_4_3_xcc_update_gfx_clock_gating(
 				adev, state == AMD_CG_STATE_GATE, i);