mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
drm/amdgpu/gfx11: Adjust gfxoff before powergating on gfx11 as well
(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
This commit is contained in:
parent
8173cab336
commit
11fbdda2ab
1 changed files with 7 additions and 1 deletions
|
@ -5153,8 +5153,14 @@ static int gfx_v11_0_set_powergating_state(void *handle,
|
||||||
break;
|
break;
|
||||||
case IP_VERSION(11, 0, 1):
|
case IP_VERSION(11, 0, 1):
|
||||||
case IP_VERSION(11, 0, 4):
|
case IP_VERSION(11, 0, 4):
|
||||||
|
if (!enable)
|
||||||
|
amdgpu_gfx_off_ctrl(adev, false);
|
||||||
|
|
||||||
gfx_v11_cntl_pg(adev, enable);
|
gfx_v11_cntl_pg(adev, enable);
|
||||||
amdgpu_gfx_off_ctrl(adev, enable);
|
|
||||||
|
if (enable)
|
||||||
|
amdgpu_gfx_off_ctrl(adev, true);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue