]> Git Repo - linux.git/commitdiff
drm/amdgpu/gfx10: Disable gfxoff before disabling powergating.
authorBas Nieuwenhuizen <[email protected]>
Tue, 9 May 2023 16:49:46 +0000 (18:49 +0200)
committerAlex Deucher <[email protected]>
Fri, 9 Jun 2023 13:37:58 +0000 (09:37 -0400)
Otherwise we get a full system lock (looks like a FW mess).

Copied the order from the GFX9 powergating code.

Fixes: 366468ff6c34 ("drm/amdgpu: Allow GfxOff on Vangogh as default")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2545
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Guilherme G. Piccoli <[email protected]>
Cc: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

index 2e0234b43f433d8d9fcbb931a84159e0ac98c60d..8e86b2c23c0a59fd6bcc5db878a27841b0bae42a 100644 (file)
@@ -8036,8 +8036,14 @@ static int gfx_v10_0_set_powergating_state(void *handle,
        case IP_VERSION(10, 3, 3):
        case IP_VERSION(10, 3, 6):
        case IP_VERSION(10, 3, 7):
+               if (!enable)
+                       amdgpu_gfx_off_ctrl(adev, false);
+
                gfx_v10_cntl_pg(adev, enable);
-               amdgpu_gfx_off_ctrl(adev, enable);
+
+               if (enable)
+                       amdgpu_gfx_off_ctrl(adev, true);
+
                break;
        default:
                break;
This page took 0.109532 seconds and 4 git commands to generate.