Skip to content

Commit

Permalink
drm/amd/pm: increase time out value when sending msg to SMU
Browse files Browse the repository at this point in the history
when do S3 stress, low rate that PowerUpVcn message will get response
more than 1s, so here increase the timeout to 2s

Signed-off-by: charles sun <charles.sun@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
CharlesSun1018 authored and alexdeucher committed Apr 9, 2021
1 parent f066af8 commit 0551626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void smu_cmn_read_arg(struct smu_context *smu,
int smu_cmn_wait_for_response(struct smu_context *smu)
{
struct amdgpu_device *adev = smu->adev;
uint32_t cur_value, i, timeout = adev->usec_timeout * 10;
uint32_t cur_value, i, timeout = adev->usec_timeout * 20;

for (i = 0; i < timeout; i++) {
cur_value = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_90);
Expand Down

0 comments on commit 0551626

Please sign in to comment.