Commit b1281b6d authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 993fcc40
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;