aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2019-11-13 15:35:58 -0800
committerKalle Valo <kvalo@codeaurora.org>2019-11-15 08:58:33 +0200
commitb70b3a36ec33a2c8d3292f3b33fe2047a8f57b9a (patch)
tree925e43e46ffcb42119fb8cda558e2aed28323817 /drivers/net/wireless/ath/ath10k
parentath10k: Revert "ath10k: add cleanup in ath10k_sta_state()" (diff)
downloadlinux-dev-b70b3a36ec33a2c8d3292f3b33fe2047a8f57b9a.tar.xz
linux-dev-b70b3a36ec33a2c8d3292f3b33fe2047a8f57b9a.zip
ath10k: qmi: Sleep for a while before assigning MSA memory
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k')
-rw-r--r--drivers/net/wireless/ath/ath10k/qmi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/ath/ath10k/qmi.c
index 637f83ef65f8..a0ba07b85362 100644
--- a/drivers/net/wireless/ath/ath10k/qmi.c
+++ b/drivers/net/wireless/ath/ath10k/qmi.c
@@ -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;