Skip to content

Commit

Permalink
ath10k: qmi: Sleep for a while before assigning MSA memory
Browse files Browse the repository at this point in the history
Unless we sleep for a while before transitioning the MSA memory to WLAN
the MPSS.AT.4.0.c2-01184-SDM845_GEN_PACK-1 firmware triggers a security
violation fairly reliably. Unforutnately recovering from this failure
always results in the entire system freezing.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Bjorn Andersson authored and Kalle Valo committed Nov 15, 2019
1 parent f4fe2e5 commit b70b3a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/wireless/ath/ath10k/qmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,13 @@ static void ath10k_qmi_event_server_arrive(struct ath10k_qmi *qmi)
if (ret)
return;

/*
* HACK: sleep for a while inbetween receiving the msa info response
* and the XPU update to prevent SDM845 from crashing due to a security
* violation, when running MPSS.AT.4.0.c2-01184-SDM845_GEN_PACK-1.
*/
msleep(20);

ret = ath10k_qmi_setup_msa_permissions(qmi);
if (ret)
return;
Expand Down

0 comments on commit b70b3a3

Please sign in to comment.