drm/amdgpu/gfx10: Disable gfxoff before disabling powergating.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 9 May 2023 16:49:46 +0000 (18:49 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:37:58 +0000 (09:37 -0400)
commita39b52c838127a42c57d5e080dbd5204770aa80e
tree658339e3a1d829f66be0b48128a4664e4c209d92
parent3fb9dd5fef7ccd756544713e6e84db1c525816c4
drm/amdgpu/gfx10: Disable gfxoff before disabling powergating.

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 <bas@basnieuwenhuizen.nl>
Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c