drm/amdgpu/soc21: add mode2 asic reset for SMU IP v13.0.4
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/soc21: add mode2 asic reset for SMU IP v13.0.4
Set the default reset method to mode2 for SMU IP v13.0.4
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +7 -0
@@ -310,6 +310,7 @@ static enum amd_reset_method soc21_asic_reset_method(struct amdgpu_device *adev) {if (amdgpu_reset_method ==AMD_RESET_METHOD_MODE1 || + amdgpu_reset_method ==AMD_RESET_METHOD_MODE2 || amdgpu_reset_method ==AMD_RESET_METHOD_BACO )return amdgpu_reset_method;
@@ -320,6 +321,8 @@ soc21_asic_reset_method(struct amdgpu_device *adev)switch (adev->ip_versions[MP1_HWIP ][0 ]) {case IP_VERSION (13 ,0 ,0 ):return AMD_RESET_METHOD_MODE1 ; +case IP_VERSION (13 ,0 ,4 ): +return AMD_RESET_METHOD_MODE2 ;default :if (amdgpu_dpm_is_baco_supported (adev))return AMD_RESET_METHOD_BACO ;
@@ -341,6 +344,10 @@ static int soc21_asic_reset(struct amdgpu_device *adev)dev_info (adev->dev,"BACO reset\n" ); ret =amdgpu_dpm_baco_reset (adev);break ; +case AMD_RESET_METHOD_MODE2 : +dev_info (adev->dev,"MODE2 reset\n" ); + ret =amdgpu_dpm_mode2_reset (adev); +break ;default :dev_info (adev->dev,"MODE1 reset\n" ); ret =amdgpu_device_mode1_reset (adev);
Signature · 1 line
2.35.3
Ping?
Quoted 44 lines · Alex Deucher
Set the default reset method to mode2 for SMU IP v13.0.4
Signed-off-by Tim Huang <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/amd/amdgpu/soc21.c +7
-1@@ -310,6 +310,7 @@ static enum amd_reset_method soc21_asic_reset_method(struct amdgpu_device *adev) {if (amdgpu_reset_method ==AMD_RESET_METHOD_MODE1 || + amdgpu_reset_method ==AMD_RESET_METHOD_MODE2 || amdgpu_reset_method ==AMD_RESET_METHOD_BACO )return amdgpu_reset_method;@@ -320,6 +321,8 @@ soc21_asic_reset_method(struct amdgpu_device *adev)switch (adev->ip_versions[MP1_HWIP ][0 ]) {case IP_VERSION (13 ,0 ,0 ):return AMD_RESET_METHOD_MODE1 ; +case IP_VERSION (13 ,0 ,4 ): +return AMD_RESET_METHOD_MODE2 ;default :if (amdgpu_dpm_is_baco_supported (adev))return AMD_RESET_METHOD_BACO ;@@ -341,6 +344,10 @@ static int soc21_asic_reset(struct amdgpu_device *adev)dev_info (adev->dev,"BACO reset\n" ); ret =amdgpu_dpm_baco_reset (adev);break ; +case AMD_RESET_METHOD_MODE2 : +dev_info (adev->dev,"MODE2 reset\n" ); + ret =amdgpu_dpm_mode2_reset (adev); +break ;default :dev_info (adev->dev,"MODE1 reset\n" ); ret =amdgpu_device_mode1_reset (adev); --2.35.3
[AMD Official Use Only - General]
Quoted 54 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Friday, May 27, 2022 1:58 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Tim <[email protected]>
Subject: [PATCH] drm/amdgpu/soc21: add mode2 asic reset for SMU IP v13.0.4Set the default reset method to mode2 for SMU IP v13.0.4
Signed-off-by Tim Huang <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/amd/amdgpu/soc21.c +3
-0@@ -310,6 +310,7 @@ static enum amd_reset_method soc21_asic_reset_method(struct amdgpu_device *adev) {if (amdgpu_reset_method ==AMD_RESET_METHOD_MODE1 || + amdgpu_reset_method ==AMD_RESET_METHOD_MODE2 || amdgpu_reset_method ==AMD_RESET_METHOD_BACO )return amdgpu_reset_method;@@ -320,6 +321,8 @@ soc21_asic_reset_method(struct amdgpu_device *adev)switch (adev->ip_versions[MP1_HWIP ][0 ]) {case IP_VERSION (13 ,0 ,0 ):return AMD_RESET_METHOD_MODE1 ; +case IP_VERSION (13 ,0 ,4 ): +return AMD_RESET_METHOD_MODE2 ;default :if (amdgpu_dpm_is_baco_supported (adev))drivers/gpu/drm/amd/amdgpu/soc21.c +4
-0return AMD_RESET_METHOD_BACO ;@@ -341,6 +344,10 @@ static int soc21_asic_reset(struct amdgpu_device *adev)dev_info (adev->dev,"BACO reset\n" ); ret =amdgpu_dpm_baco_reset (adev);break ; +case AMD_RESET_METHOD_MODE2 : +dev_info (adev->dev,"MODE2 reset\n" ); + ret =amdgpu_dpm_mode2_reset (adev); +break ;default :dev_info (adev->dev,"MODE1 reset\n" );ret =
amdgpu_device_mode1_reset(adev);
--
2.35.3
[AMD Official Use Only - General]
-----Original Message-----
From: Deucher, Alexander <[email protected]>
Sent: Friday, May 27, 2022 1:58 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Tim <[email protected]>
Subject: [PATCH] drm/amdgpu/soc21: add mode2 asic reset for SMU IP v13.0.4
Set the default reset method to mode2 for SMU IP v13.0.4
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +7 -0
@@ -310,6 +310,7 @@ static enum amd_reset_method soc21_asic_reset_method(struct amdgpu_device *adev) {if (amdgpu_reset_method ==AMD_RESET_METHOD_MODE1 || + amdgpu_reset_method ==AMD_RESET_METHOD_MODE2 || amdgpu_reset_method ==AMD_RESET_METHOD_BACO )return amdgpu_reset_method;
@@ -320,6 +321,8 @@ soc21_asic_reset_method(struct amdgpu_device *adev)switch (adev->ip_versions[MP1_HWIP ][0 ]) {case IP_VERSION (13 ,0 ,0 ):return AMD_RESET_METHOD_MODE1 ; +case IP_VERSION (13 ,0 ,4 ): +return AMD_RESET_METHOD_MODE2 ;default :if (amdgpu_dpm_is_baco_supported (adev))return AMD_RESET_METHOD_BACO ;
@@ -341,6 +344,10 @@ static int soc21_asic_reset(struct amdgpu_device *adev)dev_info (adev->dev,"BACO reset\n" ); ret =amdgpu_dpm_baco_reset (adev);break ; +case AMD_RESET_METHOD_MODE2 : +dev_info (adev->dev,"MODE2 reset\n" ); + ret =amdgpu_dpm_mode2_reset (adev); +break ;default :dev_info (adev->dev,"MODE1 reset\n" ); ret =amdgpu_device_mode1_reset (adev);
--
2.35.3