Skip to content

Commit

Permalink
drm/amdgpu/gfx11: Adjust gfxoff before powergating on gfx11 as well
Browse files Browse the repository at this point in the history
commit 11fbdda upstream.

(Bas: speculative change to mirror gfx10/gfx9)

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
guilhermepiccoli authored and gregkh committed May 24, 2023
1 parent 4177bdc commit c5b44c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
Expand Up @@ -5135,8 +5135,14 @@ static int gfx_v11_0_set_powergating_state(void *handle,
break;
case IP_VERSION(11, 0, 1):
case IP_VERSION(11, 0, 4):
if (!enable)
amdgpu_gfx_off_ctrl(adev, false);

gfx_v11_cntl_pg(adev, enable);
amdgpu_gfx_off_ctrl(adev, enable);

if (enable)
amdgpu_gfx_off_ctrl(adev, true);

break;
default:
break;
Expand Down

0 comments on commit c5b44c0

Please sign in to comment.