Thread (8 messages) flat view 8 messages, 4 authors, 2021-08-21

Re: [PATCH] brcmfmac: Set SDIO workqueue as WQ_HIGHPRI

From: Sean Anderson <hidden>
Date: 2021-08-17 16:48:47

ping?

On 8/2/21 1:09 PM, Sean Anderson wrote:
quoted hunk ↗ jump to hunk
This puts tasks submitted to the SDIO workqueue at the head of the queue
and runs them immediately. This gets higher RX throughput with the SDIO
bus.

This was originally submitted as [1]. The original author Wright Feng
reports
quoted
throughput result with 43455(11ac) on 1 core 1.6 Ghz platform is
    Without WQ_HIGGPRI TX/RX: 293/301 (mbps)
    With    WQ_HIGHPRI TX/RX: 293/321 (mbps)
I tested this with a 43364(11bgn) on a 1 core 800 MHz platform and got
     Without WQ_HIGHPRI TX/RX: 16/19 (Mbits/sec)
     With    WQ_HIGHPRI TX/RX: 24/20 (MBits/sec)

[1] https://lore.kernel.org/linux-wireless/1584604406-15452-4-git-send-email-wright.feng@cypress.com/ (local)

Signed-off-by: Sean Anderson <redacted>
---

  drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
index 97ee9e2e2e35..5e10176c6c7e 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
@@ -4442,7 +4442,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev)
  	bus->tx_seq = SDPCM_SEQ_WRAP - 1;
  
  	/* single-threaded workqueue */
-	wq = alloc_ordered_workqueue("brcmf_wq/%s", WQ_MEM_RECLAIM,
+	wq = alloc_ordered_workqueue("brcmf_wq/%s", WQ_MEM_RECLAIM | WQ_HIGHPRI,
  				     dev_name(&sdiodev->func1->dev));
  	if (!wq) {
  		brcmf_err("insufficient memory to create txworkqueue\n");
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help