From: Oliver Logush Date: Fri, 1 Apr 2022 14:40:30 +0000 (-0400) Subject: drm/amd/display: Insert smu busy status before sending another request X-Git-Tag: howlett/maple/20220722_2~460^2~12^2~63 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=721af39f003668a86650a640b41439b7c145c52e;p=users%2Fjedix%2Flinux-maple.git drm/amd/display: Insert smu busy status before sending another request [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 Acked-by: Tom Chung Signed-off-by: Oliver Logush Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c index d9920d91838d..1cae01a91a69 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/dcn301_smu.c @@ -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);