drm/amdgpu/powerplay/vega20: call PrepareMp1ForUnload in power_off_asic
Subsystems (2)
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
@@ -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
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
@@ -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
PATCH 3/3 drm/amdgpu/powerplay/vega12: call PrepareMp1ForUnload in power_off_asic
In reply to a message not in the archiveNeeded 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
@@ -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
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.
Signed-off-by Alex Deucher <[email protected]>--- 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@@ -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
-0data->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
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 inpower_off_asicSeries 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.
Signed-off-by Alex Deucher <[email protected]>--- 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@@ -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