diff options
| author | Guilherme G. Piccoli <[email protected]> | 2023-05-09 16:49:47 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:38:15 +0000 |
| commit | ee30b8001cd85ba0ef287b216eb1dad58bb58159 (patch) | |
| tree | 5de10b38f61c46cd56623a9025a538f1d09554fe /drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | |
| parent | drm/amdgpu/gfx10: Disable gfxoff before disabling powergating. (diff) | |
| download | kernel-ee30b8001cd85ba0ef287b216eb1dad58bb58159.tar.gz kernel-ee30b8001cd85ba0ef287b216eb1dad58bb58159.zip | |
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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index 7bff50e58cff..f77779c31043 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c @@ -5076,8 +5076,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; |
