Skip to contentSkip to conversation

drm/amdgpu/powerplay/vega20: call PrepareMp1ForUnload in power_off_asic

PATCH In review Alex Deucher 3 participants 5 messages Jul 23, 2019 – Jul 24, 2019 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 drm/amdgpu/powerplay/vega20: call PrepareMp1ForUnload in power_off_asic

Needed to make sure the smu is idle when resetting. This fixes sporatic failures with GPU reset.

---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +5 -0
index f27c6fbb192e..e16d6654692f 100644
@@ -3764,6 +3764,11 @@ static int vega20_power_off_asic(struct pp_hwmgr *hwmgr)
 			);
 	data->water_marks_bitmap &= ~(WaterMarksLoaded);
 
+	PP_ASSERT_WITH_CODE((result = smum_send_msg_to_smc(hwmgr,
+			PPSMC_MSG_PrepareMp1ForUnload)) == 0,
+			"[PrepareMp1ForUnload] Failed!",
+			return result);
+
 	return result;
 }
 
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20190723170049.9143-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#2 lore raw

PATCH 2/3 drm/amdgpu/powerplay/vega10: call PrepareMp1ForUnload in power_off_asic

Needed to make sure the smu is idle when resetting. This may fix sporatic failures with GPU reset.

---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +5 -0
index 1d9bb29adaef..a6066d92de78 100644
@@ -4740,6 +4740,11 @@ static int vega10_power_off_asic(struct pp_hwmgr *hwmgr)
 			);
 	data->water_marks_bitmap &= ~(WaterMarksLoaded);
 
+	PP_ASSERT_WITH_CODE((result = smum_send_msg_to_smc(hwmgr,
+			PPSMC_MSG_PrepareMp1ForUnload)) == 0,
+			"[PrepareMp1ForUnload] Failed!",
+			return result);
+
 	return result;
 }
 
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#3 lore raw

PATCH 3/3 drm/amdgpu/powerplay/vega12: call PrepareMp1ForUnload in power_off_asic

In reply to a message not in the archive

Needed to make sure the smu is idle when resetting. This may fix sporatic failures with GPU reset.

---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +5 -0
index efb6d3762feb..3d3504411b63 100644
@@ -2468,6 +2468,11 @@ static int vega12_power_off_asic(struct pp_hwmgr *hwmgr)
 			);
 	data->water_marks_bitmap &= ~(WaterMarksLoaded);
 
+	PP_ASSERT_WITH_CODE((result = smum_send_msg_to_smc(hwmgr,
+			PPSMC_MSG_PrepareMp1ForUnload)) == 0,
+			"[PrepareMp1ForUnload] Failed!",
+			return result);
+
 	return result;
 }
 
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20190723170049.9143-3-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#5 lore raw

Re: [PATCH 3/3] drm/amdgpu/powerplay/vega12: call PrepareMp1ForUnload in power_off_asic

Series is Acked-by: Andrey Grodzovsky <[email protected]>

Andrey

Quoted 14 lines · Alex Deucher

Needed to make sure the smu is idle when resetting. This may fix sporatic failures with GPU reset.

---
  drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +0 -0
index efb6d3762feb..3d3504411b63 100644
@@ -2468,6 +2468,11 @@ static int vega12_power_off_asic(struct pp_hwmgr *hwmgr)
  			);

drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c static int vega12_power_off_asic(struct pp_hwmgr *hwmgr) · line 2478

Quoted 10 lines
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +5 -0
  	data->water_marks_bitmap &= ~(WaterMarksLoaded);
 
+	PP_ASSERT_WITH_CODE((result = smum_send_msg_to_smc(hwmgr,
+			PPSMC_MSG_PrepareMp1ForUnload)) == 0,
+			"[PrepareMp1ForUnload] Failed!",
+			return result);
+
  	return result;
  }
 

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): bda866af-42f0-d40d-baf3-ffbfcb2867e2-5C7GfCeVMHo@public.gmane.org

#7 lore raw

RE: [PATCH 3/3] drm/amdgpu/powerplay/vega12: call PrepareMp1ForUnload in power_off_asic

No. Hold on. Let me discuss this internally.

Regards,
Evan

Quoted 33 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Grodzovsky, Andrey
Sent: Wednesday, July 24, 2019 4:01 AM
To: Alex Deucher <[email protected]>; amd- [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: Re: [PATCH 3/3] drm/amdgpu/powerplay/vega12: call PrepareMp1ForUnload in power_off_asic

Series is Acked-by: Andrey Grodzovsky <[email protected]>

Andrey

drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c static int vega12_power_off_asic(struct

Quoted 14 lines · Alex Deucher

Needed to make sure the smu is idle when resetting. This may fix sporatic failures with GPU reset.

---
  drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +0 -0
index efb6d3762feb..3d3504411b63 100644
@@ -2468,6 +2468,11 @@ static int vega12_power_off_asic(struct

pp_hwmgr *hwmgr)

Quoted 3 lines
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +0 -0
  			);
  	data->water_marks_bitmap &= ~(WaterMarksLoaded);
 
Quoted 12 lines

drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c static int vega12_power_off_asic(struct pp_hwmgr *hwmgr) · line 2478

Quoted 8 lines
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +5 -0
+	PP_ASSERT_WITH_CODE((result = smum_send_msg_to_smc(hwmgr,
+			PPSMC_MSG_PrepareMp1ForUnload)) == 0,
+			"[PrepareMp1ForUnload] Failed!",
+			return result);
+
  	return result;
  }
 

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx