Skip to content

Commit 11fbdda

Browse files
guilhermepiccolialexdeucher
authored andcommitted
drm/amdgpu/gfx11: Adjust gfxoff before powergating on gfx11 as well
(Bas: speculative change to mirror gfx10/gfx9) Signed-off-by: Guilherme G. Piccoli <[email protected]> Signed-off-by: Bas Nieuwenhuizen <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.1.x
1 parent 8173cab commit 11fbdda

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5153,8 +5153,14 @@ static int gfx_v11_0_set_powergating_state(void *handle,
51535153
break;
51545154
case IP_VERSION(11, 0, 1):
51555155
case IP_VERSION(11, 0, 4):
5156+
if (!enable)
5157+
amdgpu_gfx_off_ctrl(adev, false);
5158+
51565159
gfx_v11_cntl_pg(adev, enable);
5157-
amdgpu_gfx_off_ctrl(adev, enable);
5160+
5161+
if (enable)
5162+
amdgpu_gfx_off_ctrl(adev, true);
5163+
51585164
break;
51595165
default:
51605166
break;

0 commit comments

Comments
 (0)