]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ath10k: qmi: Sleep for a while before assigning MSA memory
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 13 Nov 2019 23:35:58 +0000 (15:35 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 15 Nov 2019 06:58:33 +0000 (08:58 +0200)
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>
drivers/net/wireless/ath/ath10k/qmi.c

index 637f83ef65f861404d1315b350106db5f798d5a5..a0ba07b853626910736f55f018b4e4811cc4561e 100644 (file)
@@ -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;