Skip to content

Commit

Permalink
drm/amdgpu/gfx9: Explicitly halt CP before init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Deucher committed Sep 26, 2024
1 parent 993fcc4 commit b1281b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1281b6

Please sign in to comment.