drm/amd/powerplay: increase waiting time for smu response
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: increase waiting time for smu response
We observed some SMU commands take more time for execution, so increase waiting time for response.
--- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +3 -3
@@ -64,9 +64,9 @@ static int smu_v11_0_read_arg(struct smu_context *smu, uint32_t *arg)static int smu_v11_0_wait_for_response (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev; -uint32_t cur_value, i; +uint32_t cur_value, i, timeout = adev->usec_timeout *10 ; -for (i =0 ; i < adev->usec_timeout; i++) { +for (i =0 ; i < timeout; i++) { cur_value =RREG32_SOC15 (MP1 ,0 , mmMP1_SMN_C2PMSG_90);if ((cur_value &MP1_C2PMSG_90__CONTENT_MASK ) !=0 )break ;
@@ -74,7 +74,7 @@ static int smu_v11_0_wait_for_response(struct smu_context *smu) }/* timeout means wrong logic */ -if (i == adev->usec_timeout) +if (i == timeout)return -ETIME ;return RREG32_SOC15 (MP1 ,0 , mmMP1_SMN_C2PMSG_90) ==0x1 ?0 : -EIO ;
Signature · 6 lines
1.9.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): 1562127464-25780-1-git-send-email-Jack.Xiao-5C7GfCeVMHo@public.gmane.org
Zhang, Hawking
Reviewed-by Hawking ZhangRegards,
Hawking
-----Original Message-----
From: Xiao, Jack <[email protected]>
Sent: 2019年7月3日 12:18
To: [email protected]; Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>
Cc: Xiao, Jack <[email protected]>
Subject: [PATCH] drm/amd/powerplay: increase waiting time for smu response
We observed some SMU commands take more time for execution, so increase waiting time for response.
--- drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +3 -3
@@ -64,9 +64,9 @@ static int smu_v11_0_read_arg(struct smu_context *smu, uint32_t *arg) static int smu_v11_0_wait_for_response(struct smu_context *smu) {struct amdgpu_device *adev = smu->adev; -uint32_t cur_value, i; +uint32_t cur_value, i, timeout = adev->usec_timeout *10 ; -for (i =0 ; i < adev->usec_timeout; i++) { +for (i =0 ; i < timeout; i++) { cur_value =RREG32_SOC15 (MP1 ,0 , mmMP1_SMN_C2PMSG_90);if ((cur_value &MP1_C2PMSG_90__CONTENT_MASK ) !=0 )break ;
@@ -74,7 +74,7 @@ static int smu_v11_0_wait_for_response(struct smu_context *smu) }/* timeout means wrong logic */ -if (i == adev->usec_timeout) +if (i == timeout)return -ETIME ;return RREG32_SOC15 (MP1 ,0 , mmMP1_SMN_C2PMSG_90) ==0x1 ?0 : -EIO ;
--
1.9.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx