2014-10-10 15:08:56

by Cedric VONCKEN

[permalink] [raw]
Subject: ath10k firmware crash

Hi all,

I'm trying to use ath10k in client mode and AP mode with 2 wireless cards (Ap on one card and client on another card).
The AP mode work, but the client mode always crash. Please find below the ath10k crash information

[?? 79.131301] ath10k: hardware name qca988x hw2.0 version 0x4100016c
[?? 79.149420] ath10k: firmware version: 999.999.0.636
[?? 79.167248] ath10k: target register Dump Location: 0x0040AC14
[?? 79.185939] ath10k: target Register Dump
[?? 79.201804] ath10k: [00]: 0x4100016C 0x00000000 0x009C4521 0x00000000
[?? 79.220184] ath10k: [04]: 0x009C4521 0x00060330 0x00000019 0x00955A00
[?? 79.238566] ath10k: [08]: 0x0000D0CE 0x00000000 0x0040CC94 0x00000020
[?? 79.256945] ath10k: [12]: 0x00000000 0x00000000 0x00958360 0x0095836B
[?? 79.275327] ath10k: [16]: 0x809A0978 0x0040AD94 0x00439304 0x0040D074
[?? 79.293706] ath10k: [20]: 0x0000FFFF 0x00000000 0x0041EFB8 0x00000000
[?? 79.312086] ath10k: [24]: 0x809A0978 0x0040AD94 0x00439304 0x0343389A
[?? 79.330466] ath10k: [28]: 0x809AD1A2 0x0040ADE4 0x00439304 0x0043F68C
[?? 79.348845] ath10k: [32]: 0x809B01DA 0x00000000 0x00410110 0x0041937C
[?? 79.367224] ath10k: [36]: 0x00000000 0x00000000 0x00000000 0x00000000
[?? 79.385604] ath10k: [40]: 0x00000000 0x00000000 0x00000071 0x00412700
[?? 79.403984] ath10k: [44]: 0x00439BB8 0x00000000 0x00000000 0x00400000
[?? 79.422364] ath10k: [48]: 0x809AE0B4 0x0040AE04 0x00400000 0x0043F68C
[?? 79.440744] ath10k: [52]: 0x00000001 0x00000000 0x004231F0 0x00400000
[?? 79.459124] ath10k: [56]: 0x809AE17E 0x0040AE44 0x0040FE6C 0x0040D310

I'm using openwrt, and I have the same problem with/without configuration option "Firmware optimized for sta operation".

Is it possible to use at the same time on 2 different cards the AP mode and client mode?

Cedric Voncken



2014-10-13 12:01:49

by Cedric VONCKEN

[permalink] [raw]
Subject: RE: ath10k firmware crash

> > I'm using the compat wireless from Openwrt.
> > Compat wireless version 2014-05-22, but we updated the
> > firmware with the latest version provided by openwrt (commit number
> > 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0 from
> > kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware)
>
> The fix for 4addr STA bridging is in the driver, not the firmware.
>
> The compat version you're using doesn't contain the required fix. I'm pretty
> sure openwrt compat 2014-09-26 contains it.
>
Ok, I will test with this version. Thanks for your help.
>
> Michał




2014-10-13 09:21:25

by Cedric VONCKEN

[permalink] [raw]
Subject: RE: ath10k firmware crash



> -----Message d'origine-----
> De : Michal Kazior [mailto:[email protected]]
> Envoyé : lundi 13 octobre 2014 09:54
> À : voncken
> Cc : [email protected]; linux-wireless
> Objet : Re: ath10k firmware crash
>
> On 13 October 2014 09:35, voncken <[email protected]> wrote:
> > Thanks for your reply,
> >
> >>
> >> Can you then provide a crash register dump for 10.1, please? I can't
> >> help you much with the 636 dump.
> >>
> > Yes I can, but where I find it?
>
> https://github.com/kvalo/ath10k-firmware/blob/master/10.1/firmware-
> 2.bin_10.1.467.2-1
>
>
> >> Are you perhaps trying to run STA with 4addr bridging? If so then
> >> make sure you use recent ath10k as this was known to be a problem.
> >>
> > Yes I'm testing with 4 addr bridging because I need to bridge this
> interface. I' ll try without this option.
> > I'm testing with commit number 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0
> from kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware. It is the
> latest version in openwrt.
> >
> >> Can you also provide ath10k traces or debug logs, please?
> >>
> > I'll send a trace.
>
I'm using the compat wireless from Openwrt.
Compat wireless version 2014-05-22, but we updated the firmware with the latest version provided by openwrt (commit number 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0 from kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware)

> Thanks.
>
> By the way, what kernel/compat-wireless are you using? I'm suspecting your
> build might be missing the fix for STA bridging.
Thanks.

>
>
> Michał


2014-10-15 12:13:52

by Bartosz Markowski

[permalink] [raw]
Subject: Re: ath10k firmware crash

On 13 October 2014 14:06, voncken <[email protected]> wrote:
>> >
>> > Have you a benchmark reference with ATH10K ? at this time we can send
>> around 700 Mbit/s, is it the maximum or we can expected better ?
>>
>> If this is OTA then this is pretty good. If this is cabled RF w/ attentuator
>> it should be possible to get ~900mbps of UDP traffic with multiple streams on
>> iperf. At least that's what I was getting on 10.1 firmware (on both AP and
>> STA) last time I checked.
>>
>> Getting more than 700mbps OTA requires AP and STA antenna alignment voodoo.
>>
> I did some tests with a linksys WRT1900AC and I have ~950 mbps OTA easily.

You mean ath10k (STA) VS WRT1900AC get up ~950mbps?
If so, could you say what's the HW, FW version you use?

--
Bartosz

2014-10-13 07:57:39

by Cedric VONCKEN

[permalink] [raw]
Subject: RE: ath10k firmware crash

Thanks for your reply,

>
> Can you then provide a crash register dump for 10.1, please? I can't help you
> much with the 636 dump.
>
Yes I can, but where I find it?

> Are you perhaps trying to run STA with 4addr bridging? If so then make sure
> you use recent ath10k as this was known to be a problem.
>
Yes I'm testing with 4 addr bridging because I need to bridge this interface. I' ll try without this option.
I'm testing with commit number 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0 from kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware. It is the latest version in openwrt.

> Can you also provide ath10k traces or debug logs, please?
>
I'll send a trace.
>
> > Is it possible to use at the same time on 2 different cards the AP
> mode and client mode?
>
> Yes, it is possible.
>
>
> Michał


2014-10-13 05:46:32

by Michal Kazior

[permalink] [raw]
Subject: Re: ath10k firmware crash

On 10 October 2014 16:46, Cedric VONCKEN <[email protected]> wrote:
> Hi all,
>
> I'm trying to use ath10k in client mode and AP mode with 2 wireless cards (Ap on one card and client on another card).
> The AP mode work, but the client mode always crash. Please find below the ath10k crash information
>
> [ 79.131301] ath10k: hardware name qca988x hw2.0 version 0x4100016c
> [ 79.149420] ath10k: firmware version: 999.999.0.636
> [ 79.167248] ath10k: target register Dump Location: 0x0040AC14
> [ 79.185939] ath10k: target Register Dump
> [ 79.201804] ath10k: [00]: 0x4100016C 0x00000000 0x009C4521 0x00000000
> [ 79.220184] ath10k: [04]: 0x009C4521 0x00060330 0x00000019 0x00955A00
> [ 79.238566] ath10k: [08]: 0x0000D0CE 0x00000000 0x0040CC94 0x00000020
> [ 79.256945] ath10k: [12]: 0x00000000 0x00000000 0x00958360 0x0095836B
> [ 79.275327] ath10k: [16]: 0x809A0978 0x0040AD94 0x00439304 0x0040D074
> [ 79.293706] ath10k: [20]: 0x0000FFFF 0x00000000 0x0041EFB8 0x00000000
> [ 79.312086] ath10k: [24]: 0x809A0978 0x0040AD94 0x00439304 0x0343389A
> [ 79.330466] ath10k: [28]: 0x809AD1A2 0x0040ADE4 0x00439304 0x0043F68C
> [ 79.348845] ath10k: [32]: 0x809B01DA 0x00000000 0x00410110 0x0041937C
> [ 79.367224] ath10k: [36]: 0x00000000 0x00000000 0x00000000 0x00000000
> [ 79.385604] ath10k: [40]: 0x00000000 0x00000000 0x00000071 0x00412700
> [ 79.403984] ath10k: [44]: 0x00439BB8 0x00000000 0x00000000 0x00400000
> [ 79.422364] ath10k: [48]: 0x809AE0B4 0x0040AE04 0x00400000 0x0043F68C
> [ 79.440744] ath10k: [52]: 0x00000001 0x00000000 0x004231F0 0x00400000
> [ 79.459124] ath10k: [56]: 0x809AE17E 0x0040AE44 0x0040FE6C 0x0040D310
>
> I'm using openwrt, and I have the same problem with/without configuration option "Firmware optimized for sta operation".

Can you then provide a crash register dump for 10.1, please? I can't
help you much with the 636 dump.

Are you perhaps trying to run STA with 4addr bridging? If so then make
sure you use recent ath10k as this was known to be a problem.

Can you also provide ath10k traces or debug logs, please?


> Is it possible to use at the same time on 2 different cards the AP mode and client mode?

Yes, it is possible.


Michał

2014-10-13 07:54:12

by Michal Kazior

[permalink] [raw]
Subject: Re: ath10k firmware crash

On 13 October 2014 09:35, voncken <[email protected]> wrote:
> Thanks for your reply,
>
>>
>> Can you then provide a crash register dump for 10.1, please? I can't help you
>> much with the 636 dump.
>>
> Yes I can, but where I find it?

https://github.com/kvalo/ath10k-firmware/blob/master/10.1/firmware-2.bin_10.1.467.2-1


>> Are you perhaps trying to run STA with 4addr bridging? If so then make sure
>> you use recent ath10k as this was known to be a problem.
>>
> Yes I'm testing with 4 addr bridging because I need to bridge this interface. I' ll try without this option.
> I'm testing with commit number 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0 from kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware. It is the latest version in openwrt.
>
>> Can you also provide ath10k traces or debug logs, please?
>>
> I'll send a trace.

Thanks.

By the way, what kernel/compat-wireless are you using? I'm suspecting
your build might be missing the fix for STA bridging.


Michał

2014-10-13 12:07:57

by Cedric VONCKEN

[permalink] [raw]
Subject: RE: ath10k firmware crash

> >
> > Have you a benchmark reference with ATH10K ? at this time we can send
> around 700 Mbit/s, is it the maximum or we can expected better ?
>
> If this is OTA then this is pretty good. If this is cabled RF w/ attentuator
> it should be possible to get ~900mbps of UDP traffic with multiple streams on
> iperf. At least that's what I was getting on 10.1 firmware (on both AP and
> STA) last time I checked.
>
> Getting more than 700mbps OTA requires AP and STA antenna alignment voodoo.
>
I did some tests with a linksys WRT1900AC and I have ~950 mbps OTA easily.
>
> Michał
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected] More majordomo info at
> http://vger.kernel.org/majordomo-info.html


2014-10-13 14:07:58

by Cedric VONCKEN

[permalink] [raw]
Subject: RE: ath10k firmware crash

> >>
> >> >> Are you perhaps trying to run STA with 4addr bridging? If so then
> >> >> make sure you use recent ath10k as this was known to be a problem.
> >> >>
> >> > Yes I'm testing with 4 addr bridging because I need to bridge this
> >> interface. I' ll try without this option.
> >> > I'm testing with commit number
> >> > 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0
> >> from kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware. It
> >> is the latest version in openwrt.
> >> >
> >> >> Can you also provide ath10k traces or debug logs, please?
> >> >>
> >> > I'll send a trace.
> >>
> > I'm using the compat wireless from Openwrt.
> > Compat wireless version 2014-05-22, but we updated the
> > firmware with the latest version provided by openwrt (commit number
> > 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0 from
> > kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware)
>
> The fix for 4addr STA bridging is in the driver, not the firmware.
>
> The compat version you're using doesn't contain the required fix. I'm pretty
> sure openwrt compat 2014-09-26 contains it.
It fix my issue. Thanks for your help.

Cedric Voncken
>
>
> Michał
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected] More majordomo info at
> http://vger.kernel.org/majordomo-info.html


2014-10-13 09:30:24

by Michal Kazior

[permalink] [raw]
Subject: Re: ath10k firmware crash

On 13 October 2014 11:23, voncken <[email protected]> wrote:
>
>
>>
>> Are you perhaps trying to run STA with 4addr bridging? If so then make sure
>> you use recent ath10k as this was known to be a problem.
>>
> We tested without the 4addr bridging, that works fine but we can't add the interface in bridge :-(
>
> Have you a benchmark reference with ATH10K ? at this time we can send around 700 Mbit/s, is it the maximum or we can expected better ?

If this is OTA then this is pretty good. If this is cabled RF w/
attentuator it should be possible to get ~900mbps of UDP traffic with
multiple streams on iperf. At least that's what I was getting on 10.1
firmware (on both AP and STA) last time I checked.

Getting more than 700mbps OTA requires AP and STA antenna alignment voodoo.


Michał

2014-10-13 09:46:01

by Cedric VONCKEN

[permalink] [raw]
Subject: RE: ath10k firmware crash



>
> Are you perhaps trying to run STA with 4addr bridging? If so then make sure
> you use recent ath10k as this was known to be a problem.
>
We tested without the 4addr bridging, that works fine but we can't add the interface in bridge :-(

Have you a benchmark reference with ATH10K ? at this time we can send around 700 Mbit/s, is it the maximum or we can expected better ?
>
> Michał

Thanks

Cedric Voncken


2014-10-13 09:25:38

by Michal Kazior

[permalink] [raw]
Subject: Re: ath10k firmware crash

On 13 October 2014 11:20, voncken <[email protected]> wrote:
>
>
>> -----Message d'origine-----
>> De : Michal Kazior [mailto:[email protected]]
>> Envoyé : lundi 13 octobre 2014 09:54
>> À : voncken
>> Cc : [email protected]; linux-wireless
>> Objet : Re: ath10k firmware crash
>>
>> On 13 October 2014 09:35, voncken <[email protected]> wrote:
>> > Thanks for your reply,
>> >
>> >>
>> >> Can you then provide a crash register dump for 10.1, please? I can't
>> >> help you much with the 636 dump.
>> >>
>> > Yes I can, but where I find it?
>>
>> https://github.com/kvalo/ath10k-firmware/blob/master/10.1/firmware-
>> 2.bin_10.1.467.2-1
>>
>>
>> >> Are you perhaps trying to run STA with 4addr bridging? If so then
>> >> make sure you use recent ath10k as this was known to be a problem.
>> >>
>> > Yes I'm testing with 4 addr bridging because I need to bridge this
>> interface. I' ll try without this option.
>> > I'm testing with commit number 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0
>> from kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware. It is the
>> latest version in openwrt.
>> >
>> >> Can you also provide ath10k traces or debug logs, please?
>> >>
>> > I'll send a trace.
>>
> I'm using the compat wireless from Openwrt.
> Compat wireless version 2014-05-22, but we updated the firmware with the latest version provided by openwrt (commit number 38eeda3ae6f90fde5546bdd48ee4ff3090f238c0 from kernel.org/pub/scm/linux/kernel/git/firmare/linux-firmware)

The fix for 4addr STA bridging is in the driver, not the firmware.

The compat version you're using doesn't contain the required fix. I'm
pretty sure openwrt compat 2014-09-26 contains it.


Michał

2014-10-15 13:06:18

by Cedric VONCKEN

[permalink] [raw]
Subject: RE: ath10k firmware crash

> > I did some tests with a linksys WRT1900AC and I have ~950 mbps OTA easily.
>
> You mean ath10k (STA) VS WRT1900AC get up ~950mbps?
> If so, could you say what's the HW, FW version you use?
>
My test platform is one WRT1900AC set in bridge mode with a computer.

If I use the WRT1900AC in AP mode with another computer, I have 950 mbps
If I use the cavium octon III dev plateform + ath10k driver in AP mode, I have around 700 mbps

I'm using the latest compat wireless (2014-09-26) from openwrt.
The wireless card is the WLE900VX from compex or DAXA-O1 from Unex.

The WRT1900AC have mimo 4x4 with 3 streams, and my wireless card have mimo 3x3 with 3 streams. Maybe that explains the difference.

Cedric Voncken.
> --
> Bartosz
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected] More majordomo info at
> http://vger.kernel.org/majordomo-info.html