Skip to content

Commit a89e296

Browse files
Tim Huangalexdeucher
authored andcommitted
drm/amdgpu: enable GFX Power Gating for GC IP v11.0.4
Enable GFX Power Gating control for GC IP v11.0.4. Signed-off-by: Tim Huang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f2b91e5 commit a89e296

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5058,6 +5058,7 @@ static void gfx_v11_cntl_power_gating(struct amdgpu_device *adev, bool enable)
50585058
if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG)) {
50595059
switch (adev->ip_versions[GC_HWIP][0]) {
50605060
case IP_VERSION(11, 0, 1):
5061+
case IP_VERSION(11, 0, 4):
50615062
WREG32_SOC15(GC, 0, regRLC_PG_DELAY_3, RLC_PG_DELAY_3_DEFAULT_GC_11_0_1);
50625063
break;
50635064
default:
@@ -5091,6 +5092,7 @@ static int gfx_v11_0_set_powergating_state(void *handle,
50915092
amdgpu_gfx_off_ctrl(adev, enable);
50925093
break;
50935094
case IP_VERSION(11, 0, 1):
5095+
case IP_VERSION(11, 0, 4):
50945096
gfx_v11_cntl_pg(adev, enable);
50955097
amdgpu_gfx_off_ctrl(adev, enable);
50965098
break;

0 commit comments

Comments
 (0)