Skip to contentSkip to conversation

drm/amdgpu/gfx9.4.3: Explicitly halt MEC before init

PATCH In review Alex Deucher 2 participants 2 messages Sep 12, 2024

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu/gfx9.4.3: Explicitly halt MEC before init

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

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +2 -0
index 611659404703..c100845409f7 100644
@@ -2248,6 +2248,8 @@ static int gfx_v9_4_3_xcc_cp_resume(struct amdgpu_device *adev, int xcc_id)
 		r = gfx_v9_4_3_xcc_cp_compute_load_microcode(adev, xcc_id);
 		if (r)
 			return r;
+	} else {
+		gfx_v9_4_3_xcc_cp_compute_enable(adev, false, xcc_id);
 	}
 
 	r = gfx_v9_4_3_xcc_kiq_resume(adev, xcc_id);
Signature · 1 line
2.46.0
Tested-by Acked-by on v1 1/1
#1 lore raw

Regards,
Amber

Quoted 21 lines · Alex Deucher

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

---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +2 -0
index 611659404703..c100845409f7 100644
@@ -2248,6 +2248,8 @@ static int gfx_v9_4_3_xcc_cp_resume(struct amdgpu_device *adev, int xcc_id)
  		r = gfx_v9_4_3_xcc_cp_compute_load_microcode(adev, xcc_id);
  		if (r)
  			return r;
+	} else {
+		gfx_v9_4_3_xcc_cp_compute_enable(adev, false, xcc_id);
  	}
 
  	r = gfx_v9_4_3_xcc_kiq_resume(adev, xcc_id);