Re: [PATCH] net/wireless: Delete unnecessary checks before the macro call “dev_kfree_skb”

2019-10-14 Thread Kalle Valo
Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 22 Aug 2019 10:20:10 +0200 > > The dev_kfree_skb() function performs also input parameter validation. > Thus the test around the shown calls is not needed. > > This issue was detected by using the Coccinelle software. > >

Re: [PATCH] net/wireless: Delete unnecessary checks before the macro call “dev_kfree_skb”

2019-10-14 Thread Kalle Valo
Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 22 Aug 2019 10:20:10 +0200 > > The dev_kfree_skb() function performs also input parameter validation. > Thus the test around the shown calls is not needed. > > This issue was detected by using the Coccinelle software. > >

Re: [PATCH v3 20/24] wireless: Remove call to memset after dma_alloc_coherent

2019-10-14 Thread Kalle Valo
Fuqian Huang wrote: > In commit 518a2f1925c3 > ("dma-mapping: zero memory returned from dma_alloc_*"), > dma_alloc_coherent has already zeroed the memory. > So memset is not needed. > > Signed-off-by: Fuqian Huang Patch applied to wireless-drivers-next.git, thanks. 52d4261862ec wireless:

Re: [PATCH v3 20/24] wireless: Remove call to memset after dma_alloc_coherent

2019-10-14 Thread Kalle Valo
Fuqian Huang wrote: > In commit 518a2f1925c3 > ("dma-mapping: zero memory returned from dma_alloc_*"), > dma_alloc_coherent has already zeroed the memory. > So memset is not needed. > > Signed-off-by: Fuqian Huang Patch applied to wireless-drivers-next.git, thanks. 52d4261862ec wireless:

Re: [PATCH v4 0/2] Implement Airtime-based Queue Limit (AQL)

2019-10-14 Thread Kan Yan
Hi Kalle, Thanks for the help and tips. Will do that if I need to submit again. I believe Toke will integrate this with his version and move the estimating pending airtime part to mac80211, so maybe in the next version, ath10k change is no longer required. Thanks, Kan On Mon, Oct 14, 2019 at

RE: [PATCH v5 0/8] ath10k: improve throughout of tcp/udp TX/RX of sdio

2019-10-14 Thread Wen Gong
> -Original Message- > From: ath10k On Behalf Of Wen Gong > Sent: Thursday, September 26, 2019 10:33 AM > To: kv...@codeaurora.org > Cc: linux-wirel...@vger.kernel.org; ath10k@lists.infradead.org > Subject: [EXT] Re: [PATCH v5 0/8] ath10k: improve throughout of tcp/udp > TX/RX of sdio >

[PATCH v6 0/3] ath10k: improve throughout of TX of sdio

2019-10-14 Thread Wen Gong
v6: remove module parameters disable_tx_comp and alt_data this is 3 patches of the 7 patches from ath10k: improve throughout of tcp/udp TX/RX of sdio v5: change ath10k_htc_setup_tx_req to add check bundle_tx to forbidden init 2 times v4: add macro ATH10K_HTC_MSG_READY_EXT_ALT_DATA_MASK v3:

[PATCH v6 2/3] ath10k: add htt TX bundle for sdio

2019-10-14 Thread Wen Gong
The transmission utilization ratio for sdio bus for small packet is slow, because the space and time cost for sdio bus is same for large length packet and small length packet. So the speed of data for large length packet is higher than small length. Test result of different length of data: data

[PATCH v6 1/3] ath10k: disable TX complete indication of htt for sdio

2019-10-14 Thread Wen Gong
For sdio chip, it is high latency bus, all the TX packet's content will be tranferred from HOST memory to firmware memory via sdio bus, then it need much more memory in firmware than low latency bus chip, for low latency chip, such as PCI-E, it only need to transfer the TX descriptor via PCI-E bus

[PATCH v6] ath10k: enable napi on RX path for sdio

2019-10-14 Thread Wen Gong
For tcp RX, the quantity of tcp acks to remote is 1/2 of the quantity of tcp data from remote, then it will have many small length packets on TX path of sdio bus, then it reduce the RX packets's bandwidth of tcp. This patch enable napi on RX path, then the RX packet of tcp will not feed to tcp

Re: [RFC PATCH 0/2] ath10k: provide survey info as accumulated data

2019-10-14 Thread Sebastian Gottschall
10.4 has additional 64 bit cycle counters. see wmi_pdev_bss_chan_info_event the standard 32 cycle counters do individual wrap around as far as i know Am 14.10.2019 um 09:07 schrieb Sven Eckelmann: On Monday, 14 October 2019 00:15:20 CEST Sebastian Gottschall wrote: i checked your patch on

Re: [PATCH v4 2/2] ath10k: Enable Airtime-based Queue Limit (AQL)

2019-10-14 Thread Kalle Valo
Kan Yan writes: > Calculate the estimated airtime pending in the txqs and apply AQL to > prevent excessive amounts of packets being queued in the firmware queue. > > Signed-off-by: Kan Yan Forgot to mention earlier that please add tested hardware and firmware versions:

Re: [PATCH v4 0/2] Implement Airtime-based Queue Limit (AQL)

2019-10-14 Thread Kalle Valo
Kalle Valo writes: > Kan Yan writes: > >> This patch series implements Airtime-based Queue Limit (AQL) in the >> mac80211 and Ath10k driver. It is based on an earlier version from >> the ChromiumOS tree[0]. >> >> This version has been tested with QCA9884 platform with 4.14 kernel. >> Tests show

Re: [PATCH v4 0/2] Implement Airtime-based Queue Limit (AQL)

2019-10-14 Thread Kalle Valo
Kan Yan writes: > This patch series implements Airtime-based Queue Limit (AQL) in the mac80211 > and Ath10k driver. It is based on an earlier version from the ChromiumOS > tree[0]. > > This version has been tested with QCA9884 platform with 4.14 kernel. Tests > show AQL is able to reduce

Re: [RFC PATCH 0/2] ath10k: provide survey info as accumulated data

2019-10-14 Thread Kalle Valo
Sven Eckelmann writes: > On Monday, 14 October 2019 00:15:20 CEST Sebastian Gottschall wrote: >> i checked your patch on 10.4 based chipsets with 9984. the values are >> now looking bogus and wrong at all. busy and active time time in ms does >> increase in hours each second >> the problem

Re: [PATCH] ath10k: fix disabling of UART debugging

2019-10-14 Thread Kalle Valo
+ linux-wireless Patrick Steinhardt writes: > Starting with v5.3.0, it was observed that throughput of an access point > with QCA988x-based wireless chip is severely degraded from at least > 10MB/s to roughly 200KB/s. A bisect of the issue points to commit > 4504f0e5b571 (ath10k: sdio:

Re: [PATCH v2] ath10k: Correct error handling of dma_map_single()

2019-10-14 Thread Kalle Valo
Bjorn Andersson wrote: > The return value of dma_map_single() should be checked for errors using > dma_mapping_error() and the skb has been dequeued so it needs to be > freed. > > This was found when enabling CONFIG_DMA_API_DEBUG and it warned about the > missing dma_mapping_error() call. > >

Re: [PATCH v2] ath10k: Correct error handling of dma_map_single()

2019-10-14 Thread Kalle Valo
Bjorn Andersson wrote: > The return value of dma_map_single() should be checked for errors using > dma_mapping_error() and the skb has been dequeued so it needs to be > freed. > > This was found when enabling CONFIG_DMA_API_DEBUG and it warned about the > missing dma_mapping_error() call. > >

Re: [PATCH] ath: rename regulatory rules

2019-10-14 Thread Kalle Valo
Tomislav Požega wrote: > Regulatory rule defines in regd.c are used not only by ath9k but also > ath10k driver (haven't test other drivers) and thus should be > renamed from ATH9K* to ATH*. > > Signed-off-by: Tomislav Požega > Signed-off-by: Kalle Valo Patch applied to ath-next branch of

Re: [PATCH] ath: rename regulatory rules

2019-10-14 Thread Kalle Valo
Tomislav Požega wrote: > Regulatory rule defines in regd.c are used not only by ath9k but also > ath10k driver (haven't test other drivers) and thus should be > renamed from ATH9K* to ATH*. > > Signed-off-by: Tomislav Požega > Signed-off-by: Kalle Valo Patch applied to ath-next branch of

Re: [PATCH 1/2] ath10k: fix array out-of-bounds access

2019-10-14 Thread Kalle Valo
Miaoqing Pan wrote: > If firmware reports rate_max > WMI_TPC_RATE_MAX(WMI_TPC_FINAL_RATE_MAX) > or num_tx_chain > WMI_TPC_TX_N_CHAIN, it will cause array out-of-bounds > access, so print a warning and reset to avoid memory corruption. > > Tested HW: QCA9984 > Tested FW: 10.4-3.9.0.2-00035 > >

Re: [PATCH 1/2] ath10k: fix array out-of-bounds access

2019-10-14 Thread Kalle Valo
Miaoqing Pan wrote: > If firmware reports rate_max > WMI_TPC_RATE_MAX(WMI_TPC_FINAL_RATE_MAX) > or num_tx_chain > WMI_TPC_TX_N_CHAIN, it will cause array out-of-bounds > access, so print a warning and reset to avoid memory corruption. > > Tested HW: QCA9984 > Tested FW: 10.4-3.9.0.2-00035 > >

Re: [PATCH] ath10k: Correct error check of dma_map_single()

2019-10-14 Thread Kalle Valo
Bjorn Andersson writes: > On Fri 11 Oct 04:57 PDT 2019, Kalle Valo wrote: > >> Bjorn Andersson wrote: >> >> > The return value of dma_map_single() should be checked for errors using >> > dma_mapping_error(), rather than testing for NULL. Correct this. >> > >> > Fixes: 1807da49733e ("ath10k:

Re: [RFC PATCH 0/2] ath10k: provide survey info as accumulated data

2019-10-14 Thread Sven Eckelmann
On Monday, 14 October 2019 00:15:20 CEST Sebastian Gottschall wrote: > i checked your patch on 10.4 based chipsets with 9984. the values are > now looking bogus and wrong at all. busy and active time time in ms does > increase in hours each second > the problem seem to be that your patch is