drm/amdgpu/gfx9: Explicitly halt CP before init

Need to make sure it's halted as we don't know what state
the GPU may have been left in previously.

Reviewed-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher 2024-09-16 13:21:02 -04:00
parent 993fcc40ae
commit b1281b6d55

View File

@ -3931,6 +3931,10 @@ static int gfx_v9_0_cp_resume(struct amdgpu_device *adev)
return r;
}
if (adev->gfx.num_gfx_rings)
gfx_v9_0_cp_gfx_enable(adev, false);
gfx_v9_0_cp_compute_enable(adev, false);
r = gfx_v9_0_kiq_resume(adev);
if (r)
return r;