drm/amd/display: Insert smu busy status before sending another request
authorOliver Logush <oliver.logush@amd.com>
Fri, 1 Apr 2022 14:40:30 +0000 (10:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Apr 2022 21:05:58 +0000 (17:05 -0400)
[why]
Need to check if result register is busy before sending another request

[how]
Call method to check if result register is busy

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Oliver Logush <oliver.logush@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c

index d9920d9..1cae01a 100644 (file)
@@ -94,6 +94,8 @@ static int dcn301_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr,
 {
        uint32_t result;
 
+       result = dcn301_smu_wait_for_response(clk_mgr, 10, 200000);
+
        /* First clear response register */
        REG_WRITE(MP1_SMN_C2PMSG_91, VBIOSSMC_Status_BUSY);