ath10k: disable cpuidle during downloading firmware.
Subsystems (3)
PATCH 1/1 ath10k: disable cpuidle during downloading firmware.
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
This patch disables cpuidle during firmware downloading by applying PM_QOS_CPU_DMA_LATENCY in ath10k_download_fw().
--- drivers/net/wireless/ath/ath10k/core.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath10k/core.c +10 -2
@@ -11,6 +11,7 @@#include <linux/property.h> #include <linux/dmi.h> #include <linux/ctype.h> +#include <linux/pm_qos.h> #include <asm/byteorder.h> #include "core.h"
@@ -1027,6 +1028,7 @@ static int ath10k_download_fw(struct ath10k *ar)u32 address, data_len;const void *data;int ret; +struct pm_qos_request latency_qos; address = ar->hw_params.patch_load_addr;
@@ -1060,8 +1062,14 @@ static int ath10k_download_fw(struct ath10k *ar) ret); } -return ath10k_bmi_fast_download (ar, address, - data, data_len); +memset (&latency_qos,0 ,sizeof (latency_qos)); +pm_qos_add_request (&latency_qos,PM_QOS_CPU_DMA_LATENCY ,0 ); + + ret =ath10k_bmi_fast_download (ar, address, data, data_len); + +pm_qos_remove_request (&latency_qos); + +return ret; }void ath10k_core_free_board_files (struct ath10k *ar)
Signature · 1 line
2.24.0.rc1.363.gb1bccd3e3d-goog
Quoted 8 lines · Ikjoon Jang
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
This patch disables cpuidle during firmware downloading by applying
PM_QOS_CPU_DMA_LATENCYinath10k_download_fw().Signed-off-by Ikjoon Jang <[email protected]>
On what hardware and firmware versions did you test this? I'll add that to the commit log.
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches#guidelines
Signature · 6 lines
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 16 lines · Kalle Valo
Quoted 8 lines · Ikjoon Jang
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
This patch disables cpuidle during firmware downloading by applying
PM_QOS_CPU_DMA_LATENCYinath10k_download_fw().Signed-off-by Ikjoon Jang <[email protected]>On what hardware and firmware versions did you test this? I'll add that to the commit log.
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches#guidelines
Quoted 8 lines
--
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Hi
I've tested this on QCA9880. No issues during firmware download.
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 10 lines · Tom Psyborg
Quoted 9 lines · Kalle Valo
Quoted 7 lines · Ikjoon Jang
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
This patch disables cpuidle during firmware downloading by applying
PM_QOS_CPU_DMA_LATENCYinath10k_download_fw().
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Ikjoon Jang <[email protected]>On what hardware and firmware versions did you test this? I'll add that to the commit log.
I've tested this on QCA9880. No issues during firmware download.
Great, thanks for testing.
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 10 lines · Kalle Valo
Quoted 7 lines · Ikjoon Jang
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
This patch disables cpuidle during firmware downloading by applying
PM_QOS_CPU_DMA_LATENCYinath10k_download_fw().
Quoted 6 lines
Quoted 1 line
Signed-off-by Ikjoon Jang <[email protected]>On what hardware and firmware versions did you test this? I'll add that to the commit log.
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches#guidelines
Thank you for sharing it.
It's QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00029
on ARMv8 multi cluster platform.
Quoted 13 lines · Ikjoon Jang
Quoted 12 lines · Kalle Valo
Quoted 8 lines · Ikjoon Jang
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
This patch disables cpuidle during firmware downloading by applying
PM_QOS_CPU_DMA_LATENCYinath10k_download_fw().Signed-off-by Ikjoon Jang <[email protected]>
Quoted 8 lines
Quoted 4 lines
On what hardware and firmware versions did you test this? I'll add that to the commit log.
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches#guidelines
Thank you for sharing it.
It's QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00029
on ARMv8 multi cluster platform.
Thanks, I added that to the commit log.
Signature · 6 lines
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 4 lines · Ikjoon Jang
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
Quoted 8 lines
This patch disables cpuidle during firmware downloading by applying
PM_QOS_CPU_DMA_LATENCYinath10k_download_fw().Tested-on: QCA9880
Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00029Signed-off-by Ikjoon Jang <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3b58d6a599ba ath10k: disable cpuidle during downloading firmware
Signature · 9 lines
https://patchwork.kernel.org/patch/11222331/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 4 lines · Ikjoon Jang
Downloading ath10k firmware needs a large number of IOs and cpuidle's miss predictions make it worse. In the worst case, resume time can be three times longer than the average on sdio.
Quoted 8 lines
This patch disables cpuidle during firmware downloading by applying
PM_QOS_CPU_DMA_LATENCYinath10k_download_fw().Tested-on: QCA9880
Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00029Signed-off-by Ikjoon Jang <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
3b58d6a599ba ath10k: disable cpuidle during downloading firmware
Signature · 3 lines
https://patchwork.kernel.org/patch/11222331/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches