drm/amd/display: change SMU repsonse timeout to 2s
authorCharlene Liu <Charlene.Liu@amd.com>
Mon, 4 Jan 2021 21:07:02 +0000 (16:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:45:05 +0000 (23:45 -0500)
[why]
driver has sent PMFW VBIOSSMC_MSG_SetDisplayIdleOptimizations while SMU
still processing a previous VBIOSSMC_MSG_SetHardMinDcfclkByFreq message.

[how]
same as RN, change the time out to2s.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c

index cfa8e02..68942bb 100644 (file)
@@ -103,7 +103,7 @@ int dcn301_smu_send_msg_with_param(
        /* Trigger the message transaction by writing the message ID */
        REG_WRITE(MP1_SMN_C2PMSG_67, msg_id);
 
-       result = dcn301_smu_wait_for_response(clk_mgr, 10, 1000);
+       result = dcn301_smu_wait_for_response(clk_mgr, 10, 200000);
 
        ASSERT(result == VBIOSSMC_Result_OK);