ATH11K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
@ 2024-03-31 15:49 Yaroslav Isakov
  2024-04-01 14:53 ` Jeff Johnson
  0 siblings, 1 reply; 11+ messages in thread
From: Yaroslav Isakov @ 2024-03-31 15:49 UTC (permalink / raw)
  To: ath11k

Hello! When I tried to switch my OpenWRT router from default CCMP
pairwise cipher to any other, supported by both my router (Asus
TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1), I
saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
is good, though, for all ciphers - 1Gbit/s.

Initially, I thought, that issue with either router hardware, or
openwrt driver - but, I tested the same settings on another laptop -
T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
was 1Gbit/s on any pairwise cipher.

This issue is 100% reproducible for me, it happens all the times I'm
switching to any pairwise cipher other than CCMP.

I'm on Linux 6.7.6, compiled from sources on Gentoo.

Here is my dmesg for ath11k:
[   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
0x78600000-0x787fffff 64bit]
[   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
[   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
[   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
board_id 0xff soc_id 0x400c1211
[   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
fw_build_timestamp 2024-01-12 11:30 fw_build_id
WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
[   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
Country regulatory setting
[   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
Country regulatory setting
[  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-03-31 15:49 wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP Yaroslav Isakov
@ 2024-04-01 14:53 ` Jeff Johnson
  2024-04-02  0:35   ` Baochen Qiang
  0 siblings, 1 reply; 11+ messages in thread
From: Jeff Johnson @ 2024-04-01 14:53 UTC (permalink / raw)
  To: Yaroslav Isakov, ath11k, Baochen Qiang

On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
> Hello! When I tried to switch my OpenWRT router from default CCMP
> pairwise cipher to any other, supported by both my router (Asus
> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1), I
> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
> is good, though, for all ciphers - 1Gbit/s.
> 
> Initially, I thought, that issue with either router hardware, or
> openwrt driver - but, I tested the same settings on another laptop -
> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
> was 1Gbit/s on any pairwise cipher.
> 
> This issue is 100% reproducible for me, it happens all the times I'm
> switching to any pairwise cipher other than CCMP.
> 
> I'm on Linux 6.7.6, compiled from sources on Gentoo.
> 
> Here is my dmesg for ath11k:
> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
> 0x78600000-0x787fffff 64bit]
> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
> board_id 0xff soc_id 0x400c1211
> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
> fw_build_timestamp 2024-01-12 11:30 fw_build_id
> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
> Country regulatory setting
> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
> Country regulatory setting
> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
> 

There was another reporting of that error in this thread:
https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/

+Baochen Qiang for awareness

/jeff


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-04-01 14:53 ` Jeff Johnson
@ 2024-04-02  0:35   ` Baochen Qiang
  2024-04-14  8:12     ` Yaroslav Isakov
  0 siblings, 1 reply; 11+ messages in thread
From: Baochen Qiang @ 2024-04-02  0:35 UTC (permalink / raw)
  To: Jeff Johnson, Yaroslav Isakov, ath11k



On 4/1/2024 10:53 PM, Jeff Johnson wrote:
> On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
>> Hello! When I tried to switch my OpenWRT router from default CCMP
>> pairwise cipher to any other, supported by both my router (Asus
>> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1), I
>> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
>> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
>> is good, though, for all ciphers - 1Gbit/s.
>>
>> Initially, I thought, that issue with either router hardware, or
>> openwrt driver - but, I tested the same settings on another laptop -
>> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
>> was 1Gbit/s on any pairwise cipher.
>>
>> This issue is 100% reproducible for me, it happens all the times I'm
>> switching to any pairwise cipher other than CCMP.
>>
>> I'm on Linux 6.7.6, compiled from sources on Gentoo.
I'm not familiar with Gentoo, is there any private changes in it 
compared to upstream ath11k? If there indeed is, could you try Kalle's 
ath11k tree?

https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/

>>
>> Here is my dmesg for ath11k:
>> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
>> 0x78600000-0x787fffff 64bit]
>> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
>> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
>> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
>> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
>> board_id 0xff soc_id 0x400c1211
>> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
>> fw_build_timestamp 2024-01-12 11:30 fw_build_id
>> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
>> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
>> Country regulatory setting
>> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
>> Country regulatory setting
>> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
>>
> 
> There was another reporting of that error in this thread:
> https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/
> 
I don't think this is the same issue as reported by James there although 
same error message. For now I don't know the root cause to that message 
but it's unlikely it causes some tput issue.

Let's wait for Yasoslav verifying it on latest ath.git.

> +Baochen Qiang for awareness
> 
> /jeff


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-04-02  0:35   ` Baochen Qiang
@ 2024-04-14  8:12     ` Yaroslav Isakov
  2024-04-15 11:26       ` Yaroslav Isakov
  0 siblings, 1 reply; 11+ messages in thread
From: Yaroslav Isakov @ 2024-04-14  8:12 UTC (permalink / raw)
  To: Baochen Qiang; +Cc: Jeff Johnson, ath11k

Hello!

вт, 2 апр. 2024 г. в 02:35, Baochen Qiang <quic_bqiang@quicinc.com>:
>
>
>
> On 4/1/2024 10:53 PM, Jeff Johnson wrote:
> > On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
> >> Hello! When I tried to switch my OpenWRT router from default CCMP
> >> pairwise cipher to any other, supported by both my router (Asus
> >> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1), I
> >> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
> >> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
> >> is good, though, for all ciphers - 1Gbit/s.
> >>
> >> Initially, I thought, that issue with either router hardware, or
> >> openwrt driver - but, I tested the same settings on another laptop -
> >> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
> >> was 1Gbit/s on any pairwise cipher.
> >>
> >> This issue is 100% reproducible for me, it happens all the times I'm
> >> switching to any pairwise cipher other than CCMP.
> >>
> >> I'm on Linux 6.7.6, compiled from sources on Gentoo.
> I'm not familiar with Gentoo, is there any private changes in it
> compared to upstream ath11k? If there indeed is, could you try Kalle's
> ath11k tree?
>
> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
>
Sorry, missed the message. Gentoo kernel I'm using is very close to
upstream. I will try ath11.git, and will report there, thank you.

> >>
> >> Here is my dmesg for ath11k:
> >> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
> >> 0x78600000-0x787fffff 64bit]
> >> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
> >> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
> >> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
> >> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
> >> board_id 0xff soc_id 0x400c1211
> >> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
> >> fw_build_timestamp 2024-01-12 11:30 fw_build_id
> >> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
> >> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
> >> Country regulatory setting
> >> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
> >> Country regulatory setting
> >> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
> >>
> >
> > There was another reporting of that error in this thread:
> > https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/
> >
> I don't think this is the same issue as reported by James there although
> same error message. For now I don't know the root cause to that message
> but it's unlikely it causes some tput issue.
>
> Let's wait for Yasoslav verifying it on latest ath.git.
>
> > +Baochen Qiang for awareness
> >
> > /jeff


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-04-14  8:12     ` Yaroslav Isakov
@ 2024-04-15 11:26       ` Yaroslav Isakov
  2024-05-31  2:18         ` Baochen Qiang
  0 siblings, 1 reply; 11+ messages in thread
From: Yaroslav Isakov @ 2024-04-15 11:26 UTC (permalink / raw)
  To: Baochen Qiang; +Cc: Jeff Johnson, ath11k

Hello!

вс, 14 апр. 2024 г. в 10:12, Yaroslav Isakov <yaroslav.isakov@gmail.com>:
>
> Hello!
>
> вт, 2 апр. 2024 г. в 02:35, Baochen Qiang <quic_bqiang@quicinc.com>:
> >
> >
> >
> > On 4/1/2024 10:53 PM, Jeff Johnson wrote:
> > > On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
> > >> Hello! When I tried to switch my OpenWRT router from default CCMP
> > >> pairwise cipher to any other, supported by both my router (Asus
> > >> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1), I
> > >> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
> > >> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
> > >> is good, though, for all ciphers - 1Gbit/s.
> > >>
> > >> Initially, I thought, that issue with either router hardware, or
> > >> openwrt driver - but, I tested the same settings on another laptop -
> > >> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
> > >> was 1Gbit/s on any pairwise cipher.
> > >>
> > >> This issue is 100% reproducible for me, it happens all the times I'm
> > >> switching to any pairwise cipher other than CCMP.
> > >>
> > >> I'm on Linux 6.7.6, compiled from sources on Gentoo.
> > I'm not familiar with Gentoo, is there any private changes in it
> > compared to upstream ath11k? If there indeed is, could you try Kalle's
> > ath11k tree?
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
> >
> Sorry, missed the message. Gentoo kernel I'm using is very close to
> upstream. I will try ath11.git, and will report there, thank you.
>

I checked ath.git, master branch - it has the exact same behavior as
kernel I used - 1Gbit download with CCMP, 100Mbit download with GCMP.
For me, this issue is easily reproducible, it happens 100% if I'm
switching to pairwise_cipher (and therefore, groupwise, too) other
than CCMP.
> > >>
> > >> Here is my dmesg for ath11k:
> > >> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
> > >> 0x78600000-0x787fffff 64bit]
> > >> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
> > >> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
> > >> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
> > >> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
> > >> board_id 0xff soc_id 0x400c1211
> > >> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
> > >> fw_build_timestamp 2024-01-12 11:30 fw_build_id
> > >> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
> > >> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
> > >> Country regulatory setting
> > >> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
> > >> Country regulatory setting
> > >> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
> > >>
> > >
> > > There was another reporting of that error in this thread:
> > > https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/
> > >
> > I don't think this is the same issue as reported by James there although
> > same error message. For now I don't know the root cause to that message
> > but it's unlikely it causes some tput issue.
> >
> > Let's wait for Yasoslav verifying it on latest ath.git.
> >
> > > +Baochen Qiang for awareness
> > >
> > > /jeff


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-04-15 11:26       ` Yaroslav Isakov
@ 2024-05-31  2:18         ` Baochen Qiang
       [not found]           ` <CADS+iDW+urkeQDuZYYVDsEg=WNGoq5PomAmg1dRLPySPM=2SUg@mail.gmail.com>
  0 siblings, 1 reply; 11+ messages in thread
From: Baochen Qiang @ 2024-05-31  2:18 UTC (permalink / raw)
  To: Yaroslav Isakov; +Cc: Jeff Johnson, ath11k



On 4/15/2024 7:26 PM, Yaroslav Isakov wrote:
> Hello!
> 
> вс, 14 апр. 2024 г. в 10:12, Yaroslav Isakov <yaroslav.isakov@gmail.com>:
>>
>> Hello!
>>
>> вт, 2 апр. 2024 г. в 02:35, Baochen Qiang <quic_bqiang@quicinc.com>:
>>>
>>>
>>>
>>> On 4/1/2024 10:53 PM, Jeff Johnson wrote:
>>>> On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
>>>>> Hello! When I tried to switch my OpenWRT router from default CCMP
>>>>> pairwise cipher to any other, supported by both my router (Asus
>>>>> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1), I
>>>>> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
>>>>> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
>>>>> is good, though, for all ciphers - 1Gbit/s.
>>>>>
>>>>> Initially, I thought, that issue with either router hardware, or
>>>>> openwrt driver - but, I tested the same settings on another laptop -
>>>>> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
>>>>> was 1Gbit/s on any pairwise cipher.
>>>>>
>>>>> This issue is 100% reproducible for me, it happens all the times I'm
>>>>> switching to any pairwise cipher other than CCMP.
>>>>>
>>>>> I'm on Linux 6.7.6, compiled from sources on Gentoo.
>>> I'm not familiar with Gentoo, is there any private changes in it
>>> compared to upstream ath11k? If there indeed is, could you try Kalle's
>>> ath11k tree?
>>>
>>> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
>>>
>> Sorry, missed the message. Gentoo kernel I'm using is very close to
>> upstream. I will try ath11.git, and will report there, thank you.
>>
> 
> I checked ath.git, master branch - it has the exact same behavior as
> kernel I used - 1Gbit download with CCMP, 100Mbit download with GCMP.
> For me, this issue is easily reproducible, it happens 100% if I'm
> switching to pairwise_cipher (and therefore, groupwise, too) other
> than CCMP.
I just submitted a patch which may fix this issue, could you merge it and try again?

https://patchwork.kernel.org/project/linux-wireless/patch/20240531021228.2846-1-quic_bqiang@quicinc.com/

>>>>>
>>>>> Here is my dmesg for ath11k:
>>>>> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
>>>>> 0x78600000-0x787fffff 64bit]
>>>>> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
>>>>> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
>>>>> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
>>>>> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
>>>>> board_id 0xff soc_id 0x400c1211
>>>>> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
>>>>> fw_build_timestamp 2024-01-12 11:30 fw_build_id
>>>>> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
>>>>> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
>>>>> Country regulatory setting
>>>>> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
>>>>> Country regulatory setting
>>>>> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
>>>>>
>>>>
>>>> There was another reporting of that error in this thread:
>>>> https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/
>>>>
>>> I don't think this is the same issue as reported by James there although
>>> same error message. For now I don't know the root cause to that message
>>> but it's unlikely it causes some tput issue.
>>>
>>> Let's wait for Yasoslav verifying it on latest ath.git.
>>>
>>>> +Baochen Qiang for awareness
>>>>
>>>> /jeff


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
       [not found]           ` <CADS+iDW+urkeQDuZYYVDsEg=WNGoq5PomAmg1dRLPySPM=2SUg@mail.gmail.com>
@ 2024-06-04  1:55             ` Baochen Qiang
  2024-06-04  7:26               ` Yaroslav Isakov
  0 siblings, 1 reply; 11+ messages in thread
From: Baochen Qiang @ 2024-06-04  1:55 UTC (permalink / raw)
  To: Yaroslav Isakov; +Cc: Jeff Johnson, ath11k



On 6/4/2024 5:29 AM, Yaroslav Isakov wrote:
> Hello! Thank you for patch! I tried to apply this patch on top of 6.9.3,
> but it failed to apply - what kernel version should I use, to test it?
> 
That patch is based on ath-202405301555 tag of Kalle's ath.git:

https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/

but I suppose it could also be applied cleanly on ToT of ath.git.


> On Fri, 31 May 2024, 04:18 Baochen Qiang, <quic_bqiang@quicinc.com> wrote:
> 
>>
>>
>> On 4/15/2024 7:26 PM, Yaroslav Isakov wrote:
>>> Hello!
>>>
>>> вс, 14 апр. 2024 г. в 10:12, Yaroslav Isakov <yaroslav.isakov@gmail.com
>>> :
>>>>
>>>> Hello!
>>>>
>>>> вт, 2 апр. 2024 г. в 02:35, Baochen Qiang <quic_bqiang@quicinc.com>:
>>>>>
>>>>>
>>>>>
>>>>> On 4/1/2024 10:53 PM, Jeff Johnson wrote:
>>>>>> On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
>>>>>>> Hello! When I tried to switch my OpenWRT router from default CCMP
>>>>>>> pairwise cipher to any other, supported by both my router (Asus
>>>>>>> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1),
>> I
>>>>>>> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
>>>>>>> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
>>>>>>> is good, though, for all ciphers - 1Gbit/s.
>>>>>>>
>>>>>>> Initially, I thought, that issue with either router hardware, or
>>>>>>> openwrt driver - but, I tested the same settings on another laptop -
>>>>>>> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
>>>>>>> was 1Gbit/s on any pairwise cipher.
>>>>>>>
>>>>>>> This issue is 100% reproducible for me, it happens all the times I'm
>>>>>>> switching to any pairwise cipher other than CCMP.
>>>>>>>
>>>>>>> I'm on Linux 6.7.6, compiled from sources on Gentoo.
>>>>> I'm not familiar with Gentoo, is there any private changes in it
>>>>> compared to upstream ath11k? If there indeed is, could you try Kalle's
>>>>> ath11k tree?
>>>>>
>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
>>>>>
>>>> Sorry, missed the message. Gentoo kernel I'm using is very close to
>>>> upstream. I will try ath11.git, and will report there, thank you.
>>>>
>>>
>>> I checked ath.git, master branch - it has the exact same behavior as
>>> kernel I used - 1Gbit download with CCMP, 100Mbit download with GCMP.
>>> For me, this issue is easily reproducible, it happens 100% if I'm
>>> switching to pairwise_cipher (and therefore, groupwise, too) other
>>> than CCMP.
>> I just submitted a patch which may fix this issue, could you merge it and
>> try again?
>>
>>
>> https://patchwork.kernel.org/project/linux-wireless/patch/20240531021228.2846-1-quic_bqiang@quicinc.com/
>>
>>>>>>>
>>>>>>> Here is my dmesg for ath11k:
>>>>>>> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
>>>>>>> 0x78600000-0x787fffff 64bit]
>>>>>>> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 ->
>> 0002)
>>>>>>> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
>>>>>>> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
>>>>>>> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
>>>>>>> board_id 0xff soc_id 0x400c1211
>>>>>>> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
>>>>>>> fw_build_timestamp 2024-01-12 11:30 fw_build_id
>>>>>>> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
>>>>>>> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
>>>>>>> Country regulatory setting
>>>>>>> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
>>>>>>> Country regulatory setting
>>>>>>> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
>>>>>>>
>>>>>>
>>>>>> There was another reporting of that error in this thread:
>>>>>>
>> https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/
>>>>>>
>>>>> I don't think this is the same issue as reported by James there
>> although
>>>>> same error message. For now I don't know the root cause to that message
>>>>> but it's unlikely it causes some tput issue.
>>>>>
>>>>> Let's wait for Yasoslav verifying it on latest ath.git.
>>>>>
>>>>>> +Baochen Qiang for awareness
>>>>>>
>>>>>> /jeff
>>
> 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-06-04  1:55             ` Baochen Qiang
@ 2024-06-04  7:26               ` Yaroslav Isakov
  2024-06-04  7:32                 ` Baochen Qiang
  2024-06-04  7:56                 ` Kalle Valo
  0 siblings, 2 replies; 11+ messages in thread
From: Yaroslav Isakov @ 2024-06-04  7:26 UTC (permalink / raw)
  To: Baochen Qiang; +Cc: Jeff Johnson, ath11k

Hello!

вт, 4 июн. 2024 г. в 03:55, Baochen Qiang <quic_bqiang@quicinc.com>:
>
>
>
> On 6/4/2024 5:29 AM, Yaroslav Isakov wrote:
> > Hello! Thank you for patch! I tried to apply this patch on top of 6.9.3,
> > but it failed to apply - what kernel version should I use, to test it?
> >
> That patch is based on ath-202405301555 tag of Kalle's ath.git:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
>
> but I suppose it could also be applied cleanly on ToT of ath.git.
Actually, it seems that when I was copying patch from patchwork,
something went wrong. I properly downloaded it, and it applied (with
few hunks) on top of 6.9.3. After rebuilding currently running kernel,
and reloading driver - GCMP-256 finally started showing same speeds on
download as on upload! Looks like the issue is fixed, thank you a lot!
>
>
> > On Fri, 31 May 2024, 04:18 Baochen Qiang, <quic_bqiang@quicinc.com> wrote:
> >
> >>
> >>
> >> On 4/15/2024 7:26 PM, Yaroslav Isakov wrote:
> >>> Hello!
> >>>
> >>> вс, 14 апр. 2024 г. в 10:12, Yaroslav Isakov <yaroslav.isakov@gmail.com
> >>> :
> >>>>
> >>>> Hello!
> >>>>
> >>>> вт, 2 апр. 2024 г. в 02:35, Baochen Qiang <quic_bqiang@quicinc.com>:
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 4/1/2024 10:53 PM, Jeff Johnson wrote:
> >>>>>> On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
> >>>>>>> Hello! When I tried to switch my OpenWRT router from default CCMP
> >>>>>>> pairwise cipher to any other, supported by both my router (Asus
> >>>>>>> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1),
> >> I
> >>>>>>> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
> >>>>>>> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
> >>>>>>> is good, though, for all ciphers - 1Gbit/s.
> >>>>>>>
> >>>>>>> Initially, I thought, that issue with either router hardware, or
> >>>>>>> openwrt driver - but, I tested the same settings on another laptop -
> >>>>>>> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
> >>>>>>> was 1Gbit/s on any pairwise cipher.
> >>>>>>>
> >>>>>>> This issue is 100% reproducible for me, it happens all the times I'm
> >>>>>>> switching to any pairwise cipher other than CCMP.
> >>>>>>>
> >>>>>>> I'm on Linux 6.7.6, compiled from sources on Gentoo.
> >>>>> I'm not familiar with Gentoo, is there any private changes in it
> >>>>> compared to upstream ath11k? If there indeed is, could you try Kalle's
> >>>>> ath11k tree?
> >>>>>
> >>>>> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
> >>>>>
> >>>> Sorry, missed the message. Gentoo kernel I'm using is very close to
> >>>> upstream. I will try ath11.git, and will report there, thank you.
> >>>>
> >>>
> >>> I checked ath.git, master branch - it has the exact same behavior as
> >>> kernel I used - 1Gbit download with CCMP, 100Mbit download with GCMP.
> >>> For me, this issue is easily reproducible, it happens 100% if I'm
> >>> switching to pairwise_cipher (and therefore, groupwise, too) other
> >>> than CCMP.
> >> I just submitted a patch which may fix this issue, could you merge it and
> >> try again?
> >>
> >>
> >> https://patchwork.kernel.org/project/linux-wireless/patch/20240531021228.2846-1-quic_bqiang@quicinc.com/
> >>
> >>>>>>>
> >>>>>>> Here is my dmesg for ath11k:
> >>>>>>> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
> >>>>>>> 0x78600000-0x787fffff 64bit]
> >>>>>>> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 ->
> >> 0002)
> >>>>>>> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
> >>>>>>> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
> >>>>>>> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
> >>>>>>> board_id 0xff soc_id 0x400c1211
> >>>>>>> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
> >>>>>>> fw_build_timestamp 2024-01-12 11:30 fw_build_id
> >>>>>>> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
> >>>>>>> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
> >>>>>>> Country regulatory setting
> >>>>>>> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
> >>>>>>> Country regulatory setting
> >>>>>>> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
> >>>>>>>
> >>>>>>
> >>>>>> There was another reporting of that error in this thread:
> >>>>>>
> >> https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/
> >>>>>>
> >>>>> I don't think this is the same issue as reported by James there
> >> although
> >>>>> same error message. For now I don't know the root cause to that message
> >>>>> but it's unlikely it causes some tput issue.
> >>>>>
> >>>>> Let's wait for Yasoslav verifying it on latest ath.git.
> >>>>>
> >>>>>> +Baochen Qiang for awareness
> >>>>>>
> >>>>>> /jeff
> >>
> >


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-06-04  7:26               ` Yaroslav Isakov
@ 2024-06-04  7:32                 ` Baochen Qiang
  2024-06-04  7:56                 ` Kalle Valo
  1 sibling, 0 replies; 11+ messages in thread
From: Baochen Qiang @ 2024-06-04  7:32 UTC (permalink / raw)
  To: Yaroslav Isakov; +Cc: Jeff Johnson, ath11k



On 6/4/2024 3:26 PM, Yaroslav Isakov wrote:
> Hello!
> 
> вт, 4 июн. 2024 г. в 03:55, Baochen Qiang <quic_bqiang@quicinc.com>:
>>
>>
>>
>> On 6/4/2024 5:29 AM, Yaroslav Isakov wrote:
>>> Hello! Thank you for patch! I tried to apply this patch on top of 6.9.3,
>>> but it failed to apply - what kernel version should I use, to test it?
>>>
>> That patch is based on ath-202405301555 tag of Kalle's ath.git:
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
>>
>> but I suppose it could also be applied cleanly on ToT of ath.git.
> Actually, it seems that when I was copying patch from patchwork,
> something went wrong. I properly downloaded it, and it applied (with
> few hunks) on top of 6.9.3. After rebuilding currently running kernel,
> and reloading driver - GCMP-256 finally started showing same speeds on
> download as on upload! Looks like the issue is fixed, thank you a lot!
Great it can fix  your issue and thanks for testing.

Jeff, as you pointed out internally in that patch, I will repost with necessary tags added.

>>
>>
>>> On Fri, 31 May 2024, 04:18 Baochen Qiang, <quic_bqiang@quicinc.com> wrote:
>>>
>>>>
>>>>
>>>> On 4/15/2024 7:26 PM, Yaroslav Isakov wrote:
>>>>> Hello!
>>>>>
>>>>> вс, 14 апр. 2024 г. в 10:12, Yaroslav Isakov <yaroslav.isakov@gmail.com
>>>>> :
>>>>>>
>>>>>> Hello!
>>>>>>
>>>>>> вт, 2 апр. 2024 г. в 02:35, Baochen Qiang <quic_bqiang@quicinc.com>:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 4/1/2024 10:53 PM, Jeff Johnson wrote:
>>>>>>>> On 3/31/2024 8:49 AM, Yaroslav Isakov wrote:
>>>>>>>>> Hello! When I tried to switch my OpenWRT router from default CCMP
>>>>>>>>> pairwise cipher to any other, supported by both my router (Asus
>>>>>>>>> TUF-AX6000) and my laptop (Thinkpat T14 Gen 4 AMD with WCN6855 2.1),
>>>> I
>>>>>>>>> saw that download dropped from 1Gbit/s to 100 MBit/s. When I changed
>>>>>>>>> back to CCMP, download speed recovered back to 1Gbit/s. Upload speed
>>>>>>>>> is good, though, for all ciphers - 1Gbit/s.
>>>>>>>>>
>>>>>>>>> Initially, I thought, that issue with either router hardware, or
>>>>>>>>> openwrt driver - but, I tested the same settings on another laptop -
>>>>>>>>> T14 Gen3 Intel - and with Intel WIFI, both download and upload speed
>>>>>>>>> was 1Gbit/s on any pairwise cipher.
>>>>>>>>>
>>>>>>>>> This issue is 100% reproducible for me, it happens all the times I'm
>>>>>>>>> switching to any pairwise cipher other than CCMP.
>>>>>>>>>
>>>>>>>>> I'm on Linux 6.7.6, compiled from sources on Gentoo.
>>>>>>> I'm not familiar with Gentoo, is there any private changes in it
>>>>>>> compared to upstream ath11k? If there indeed is, could you try Kalle's
>>>>>>> ath11k tree?
>>>>>>>
>>>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
>>>>>>>
>>>>>> Sorry, missed the message. Gentoo kernel I'm using is very close to
>>>>>> upstream. I will try ath11.git, and will report there, thank you.
>>>>>>
>>>>>
>>>>> I checked ath.git, master branch - it has the exact same behavior as
>>>>> kernel I used - 1Gbit download with CCMP, 100Mbit download with GCMP.
>>>>> For me, this issue is easily reproducible, it happens 100% if I'm
>>>>> switching to pairwise_cipher (and therefore, groupwise, too) other
>>>>> than CCMP.
>>>> I just submitted a patch which may fix this issue, could you merge it and
>>>> try again?
>>>>
>>>>
>>>> https://patchwork.kernel.org/project/linux-wireless/patch/20240531021228.2846-1-quic_bqiang@quicinc.com/
>>>>
>>>>>>>>>
>>>>>>>>> Here is my dmesg for ath11k:
>>>>>>>>> [   13.092519] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
>>>>>>>>> 0x78600000-0x787fffff 64bit]
>>>>>>>>> [   13.093400] ath11k_pci 0000:02:00.0: enabling device (0000 ->
>>>> 0002)
>>>>>>>>> [   13.095723] ath11k_pci 0000:02:00.0: MSI vectors: 32
>>>>>>>>> [   13.096260] ath11k_pci 0000:02:00.0: wcn6855 hw2.1
>>>>>>>>> [   13.974707] ath11k_pci 0000:02:00.0: chip_id 0x12 chip_family 0xb
>>>>>>>>> board_id 0xff soc_id 0x400c1211
>>>>>>>>> [   13.974732] ath11k_pci 0000:02:00.0: fw_version 0x1106196e
>>>>>>>>> fw_build_timestamp 2024-01-12 11:30 fw_build_id
>>>>>>>>> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
>>>>>>>>> [   14.315774] ath11k_pci 0000:02:00.0: Failed to set the requested
>>>>>>>>> Country regulatory setting
>>>>>>>>> [   14.316046] ath11k_pci 0000:02:00.0: Failed to set the requested
>>>>>>>>> Country regulatory setting
>>>>>>>>> [  337.889222] ath11k_pci 0000:02:00.0: failed to enqueue rx buf: -28
>>>>>>>>>
>>>>>>>>
>>>>>>>> There was another reporting of that error in this thread:
>>>>>>>>
>>>> https://lore.kernel.org/all/5c63a3a2-29fe-444c-96f1-f87c89d7af39@gmail.com/
>>>>>>>>
>>>>>>> I don't think this is the same issue as reported by James there
>>>> although
>>>>>>> same error message. For now I don't know the root cause to that message
>>>>>>> but it's unlikely it causes some tput issue.
>>>>>>>
>>>>>>> Let's wait for Yasoslav verifying it on latest ath.git.
>>>>>>>
>>>>>>>> +Baochen Qiang for awareness
>>>>>>>>
>>>>>>>> /jeff
>>>>
>>>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-06-04  7:26               ` Yaroslav Isakov
  2024-06-04  7:32                 ` Baochen Qiang
@ 2024-06-04  7:56                 ` Kalle Valo
  2024-06-04 20:09                   ` Yaroslav Isakov
  1 sibling, 1 reply; 11+ messages in thread
From: Kalle Valo @ 2024-06-04  7:56 UTC (permalink / raw)
  To: Yaroslav Isakov; +Cc: Baochen Qiang, Jeff Johnson, ath11k

Yaroslav Isakov <yaroslav.isakov@gmail.com> writes:

> вт, 4 июн. 2024 г. в 03:55, Baochen Qiang <quic_bqiang@quicinc.com>:
>
>> On 6/4/2024 5:29 AM, Yaroslav Isakov wrote:
>> > Hello! Thank you for patch! I tried to apply this patch on top of 6.9.3,
>> > but it failed to apply - what kernel version should I use, to test it?
>> >
>> That patch is based on ath-202405301555 tag of Kalle's ath.git:
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
>>
>> but I suppose it could also be applied cleanly on ToT of ath.git.
>
> Actually, it seems that when I was copying patch from patchwork,
> something went wrong. I properly downloaded it, and it applied (with
> few hunks) on top of 6.9.3. After rebuilding currently running kernel,
> and reloading driver - GCMP-256 finally started showing same speeds on
> download as on upload! Looks like the issue is fixed, thank you a lot!

Great work, Baochen!

Yaroslav, would you mind providing your Tested-by tag? That way your
work is also properly attributed in the patch. This is of course
optional.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP
  2024-06-04  7:56                 ` Kalle Valo
@ 2024-06-04 20:09                   ` Yaroslav Isakov
  0 siblings, 0 replies; 11+ messages in thread
From: Yaroslav Isakov @ 2024-06-04 20:09 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Baochen Qiang, Jeff Johnson, ath11k

Hello!

On Tue, 4 Jun 2024, 09:56 Kalle Valo, <kvalo@kernel.org> wrote:
>
> Yaroslav Isakov <yaroslav.isakov@gmail.com> writes:
>
> > вт, 4 июн. 2024 г. в 03:55, Baochen Qiang <quic_bqiang@quicinc.com>:
> >
> >> On 6/4/2024 5:29 AM, Yaroslav Isakov wrote:
> >> > Hello! Thank you for patch! I tried to apply this patch on top of 6.9.3,
> >> > but it failed to apply - what kernel version should I use, to test it?
> >> >
> >> That patch is based on ath-202405301555 tag of Kalle's ath.git:
> >>
> >> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/
> >>
> >> but I suppose it could also be applied cleanly on ToT of ath.git.
> >
> > Actually, it seems that when I was copying patch from patchwork,
> > something went wrong. I properly downloaded it, and it applied (with
> > few hunks) on top of 6.9.3. After rebuilding currently running kernel,
> > and reloading driver - GCMP-256 finally started showing same speeds on
> > download as on upload! Looks like the issue is fixed, thank you a lot!
>
> Great work, Baochen!
>
> Yaroslav, would you mind providing your Tested-by tag?

Sure! Trying it for the first time, so
Tested-by: Yaroslav Isakov <yaroslav.isakov@gmail.com>

>
> That way your
> work is also properly attributed in the patch. This is of course
> optional.
>
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-06-04 20:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-31 15:49 wcn6855 2.1 - slow download speed on any pairwise cipher except CCMP Yaroslav Isakov
2024-04-01 14:53 ` Jeff Johnson
2024-04-02  0:35   ` Baochen Qiang
2024-04-14  8:12     ` Yaroslav Isakov
2024-04-15 11:26       ` Yaroslav Isakov
2024-05-31  2:18         ` Baochen Qiang
     [not found]           ` <CADS+iDW+urkeQDuZYYVDsEg=WNGoq5PomAmg1dRLPySPM=2SUg@mail.gmail.com>
2024-06-04  1:55             ` Baochen Qiang
2024-06-04  7:26               ` Yaroslav Isakov
2024-06-04  7:32                 ` Baochen Qiang
2024-06-04  7:56                 ` Kalle Valo
2024-06-04 20:09                   ` Yaroslav Isakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox