All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Kazior <michal.kazior@tieto.com>
To: Vu Hai NGUYEN <vh.nguyen@actiasodielec.fr>
Cc: Patrick CARNEIRO RODRIGUEZ <p.carneiro@actiasodielec.fr>,
	"ath10k@lists.infradead.org" <ath10k@lists.infradead.org>
Subject: Re: RE : ath10k: firmware crash in station mode
Date: Mon, 19 May 2014 08:59:22 +0200	[thread overview]
Message-ID: <CA+BoTQnsLGHLHjnr+aFm44qwkPQxNcpuCg0oo75iD=QVsh4U7w@mail.gmail.com> (raw)
In-Reply-To: <EE97821C81277E459BEA5C6384C6F241012F109978D0@srvexch01.SODIELEC.local>

On 15 May 2014 15:27, Vu Hai NGUYEN <vh.nguyen@actiasodielec.fr> wrote:
>>This is NULL dereference in firmware. I suspect it's an incomplete
>>driver-firmware setup (i.e. some commands weren't issued or were
>>invalid).
>
>>Can you enable debug logs ( echo 0xffffff3f | sudo tee /sys/module/ath10k_core/parameters/debug_mask ) before you try to
>>associate and post logs, please? I'd like to see command sequence sent
>>to firmware before the crash happens.
>
> I enable directly the debug_mask when I load the module "modprobe ath10k_core.ko debug_mask=0x0xffffff3f" (I thought it is the same thing like what you do, right?).
> You can found de debug mess in the attached file (debug_10-1.txt). (line 3007: wlan0: associated and then in line 3008: ath10k: firmware crashed!)

Yeah. Loading core module with debug_mask pre-set is fine too. I just
tend to tune the debug_mask during runtime myself.

Thanks for capturing the logs!

Apparently 10.1 crashes right after ath10k tries to submit a frame tx command.

The 636 crashes because the interface is in promiscuous mode (it's
either put in a bridge or you have tcpdump running on it?). This won't
work with 636. See mailing list archives. 636 has broken monitor mode
and it crashes often.

Can you please retry with debug_mask=0xffffffff to get full dumps and
see what kind of frame is being sent? I guess it's an ipv6 neighbour
solicitation but the request itself might be malformed for some reason
causing firmware to crash unexpectedly.

Also, can you try the test without making wlan interface promiscuous
(on both firmwares, with debug_mask=0xffffffff) too, please?


>>Can you post the crash logs (as noted above) when you try the 999
>>branch too, please? It seems 999 crashes sooner than 10.1. It might be
>>helpful to see the different crash points.
>
> Yes it crashed sooner. There are no wlan0: associated in the debug message. (attached file: debug_999.txt).
>
>>I have no idea what version of kernel you're using. Perhaps you broke
>>your source tree when merging/rebasing/cherry-picking/backporting?
>>What's your git head commit?
>
>>I can associate ath10k with both firmware branches without a problem.
>
> Actually I'm compiling ath10k from backports version 3.15 for linux kernel 3.2.36 (provided for my chipset Marvell Armada 370). And I replace the folder /driver/net/wireless/ath from the one of master branch of ath10k (I can not see the information from debug file "fw_stats"  with the version ath10k of backport). I also applied the patch for get/set antennas too.

Do I understand correctly that you replace drivers/net/wireless/ath in
the *backports tree* with the drivers/net/wireless/ath found in
github.com/kvalo/ath master branch?

This is a bad idea. I'm not sure how *exactly* you replace the
directory but I hope you're aware backports rename ifdefs in the code
and Makefiles. This means Kconfig flags such as ATH10K_DFS_CERTIFIED
might not compile code you want even if you select them in `make
menuconfig`. This might explain why you're having problems with DFS.

Ideally you should generate backports tree yourself from a given
kernel tree (e.g. kvalo's ath master branch). See
https://backports.wiki.kernel.org/index.php/Documentation/backports/hacking
for more details on this.


>>Yes, this works (or at least it should). It might be tricky to get it
>>right for someone who's not familiar with regulatory shenanigans in
>>some cases.
>
>>Recently there was a bug introduced that broke DFS (see linux-wireless
>>mailing list; it's in the process of being fixed), but since you
>>haven't provided any information what your kernel tree is I can't tell
>>if that's the actual problem or not.
>
> My kernel tree is 3.2.36 (sorry if I don't get what you mean). Please feel free to ask me more information if you need.

I'm not sure if your backports have the offending patch that breaks
DFS or not. If so you might need to cherry-pick it to your backports
tree manually or regenerate backports.

If you use backports 3.15-rc1-1 (as found on
http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/) then
there's no DFS bug there unless you tried to replace net/mac80211 and
net/wireless (as you've done with drivers/net/wireless/ath/ ...).

If you generate backports with kvalo/ath master branch then DFS won't
work as it is now (due to the bug I've mentioned earlier). Kalle
doesn't have the patch that deals with it, yet. You'll need to
cherry-pick the following 2 patches before generating backports from
kvalo/ath:

  https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/commit/?id=67ae07a109f3d518085e3b81aa48740e8c5cc3f7
  https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/commit/?id=00ec75fc5a6499d8fdeb6ec9f8f5df68b9291c74


Michał

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  reply	other threads:[~2014-05-19  6:59 UTC|newest]

Thread overview: 134+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-08 16:18 [PATCH v2 2/2] ath10k: support get/set antenna configurations greearb
2014-05-08 16:18 ` greearb
2014-05-12 15:43 ` RE : " Vu Hai NGUYEN
2014-05-12 16:17   ` Ben Greear
2014-05-13  0:49     ` Avery Pennarun
2014-05-13  3:36       ` Ben Greear
2014-05-13 13:08         ` ath10k: set channel by command "iw" not from hostapd and DFS support of firmware-2.bin_10.1.467.2-1 Vu Hai NGUYEN
2014-05-14  9:32           ` Matti Laakso
2014-05-14 11:56             ` RE : " Vu Hai NGUYEN
2014-05-15  8:02               ` Matti Laakso
2014-05-15 10:41                 ` RE : " Vu Hai NGUYEN
2014-05-15 11:11                   ` Janusz Dziedzic
2014-05-15 13:36                     ` RE : " Vu Hai NGUYEN
2014-05-15 16:08                       ` Vu Hai NGUYEN
2014-05-16  6:52                         ` Janusz Dziedzic
2014-05-16  7:01                           ` RE : " Vu Hai NGUYEN
2014-05-16  7:35                             ` Janusz Dziedzic
2014-05-16  7:46                               ` Bartosz Markowski
2014-05-16  8:03                                 ` RE : " Vu Hai NGUYEN
2014-05-16  8:13                                   ` Bartosz Markowski
2014-05-16  9:41                                     ` RE : " Vu Hai NGUYEN
2014-05-16 11:39                                       ` Janusz Dziedzic
2014-05-16 11:50                                         ` Janusz Dziedzic
2014-05-16 13:17                                           ` RE : RE " Vu Hai NGUYEN
2014-05-16 17:40                                             ` Janusz Dziedzic
2014-05-19  9:39                                               ` Vu Hai NGUYEN
2014-05-19 10:42                                                 ` Janusz Dziedzic
2014-05-16 13:00                               ` RE : RE : RE : RE : " Kalle Valo
2014-05-16 14:03                                 ` Janusz Dziedzic
2014-05-16 14:12                                   ` Kalle Valo
2014-05-16  7:41                             ` Matti Laakso
2014-05-15  7:07           ` ath10k: firmware crash in station mode Vu Hai NGUYEN
2014-05-15  7:53             ` Janusz Dziedzic
2014-05-15 10:57             ` Michal Kazior
2014-05-15 13:27               ` RE : " Vu Hai NGUYEN
2014-05-19  6:59                 ` Michal Kazior [this message]
2014-05-19  9:47                   ` RE : " Vu Hai NGUYEN
2014-05-19 12:51                     ` Michal Kazior
2014-05-20  6:44                       ` ath10k: firmware crash in station mode & problem DFS Vu Hai NGUYEN
2014-05-20  8:15                         ` RE : " Vu Hai NGUYEN
2014-05-20 17:59                           ` Janusz Dziedzic
2014-05-21  9:43                             ` RE : " Vu Hai NGUYEN
2014-05-21 14:03                               ` Janusz Dziedzic
2014-05-22  7:54                                 ` RE : " Vu Hai NGUYEN
2014-05-22  8:06                                   ` Vu Hai NGUYEN
2014-05-22 12:18                                     ` Janusz Dziedzic
2014-05-22 12:25                                       ` Janusz Dziedzic
2014-05-22 14:40                                         ` RE : " Vu Hai NGUYEN
2014-05-22 14:45                                           ` Vu Hai NGUYEN
2014-05-22 16:44                                           ` RE : " Kalle Valo
     [not found]                                             ` <EE97821C81277E459BEA5C6384C6F241012F109978E8@srvexch01.SODIELEC.local>
     [not found]                                               ` <EE97821C81277E459BEA5C6384C6F241012F109978E9@srvexch01.SODIELEC.local>
2014-05-23  7:40                                                 ` Kalle Valo
2014-05-23  7:52                                                 ` RE : " Vu Hai NGUYEN
2014-05-26  8:34                                                   ` Janusz Dziedzic
2014-05-26 13:45                                                     ` Vu Hai NGUYEN
     [not found]                                                       ` <CAFED-j=i5uhjqaJYL+dm_ui48EFeHG3isHYSSSo=+3gk-Wa5YQ@mail.gmail.com>
2014-05-27  6:50                                                         ` Janusz Dziedzic
2014-05-27  9:21                                                           ` Vu Hai NGUYEN
2014-05-27 16:36                                                           ` Vu Hai NGUYEN
2014-05-28 15:25                                                             ` Vu Hai NGUYEN
2014-05-28 15:49                                                               ` Ben Greear
2014-05-30  9:10                                                                 ` Vu Hai NGUYEN
2014-05-30 14:49                                                                   ` Ben Greear
2014-06-02 16:16                                                                     ` Vu Hai NGUYEN
2014-06-02 16:48                                                                       ` Ben Greear
2014-06-03  6:51                                                                         ` Vu Hai NGUYEN
2014-06-04  4:14                                                                           ` Ben Greear
2014-06-04  9:20                                                                             ` Vu Hai NGUYEN
2014-06-04 16:20                                                                               ` Ben Greear
2014-06-04 21:40                                                                               ` Ben Greear
2014-06-05  8:41                                                                                 ` RE : " Vu Hai NGUYEN
2014-06-05 15:43                                                                                   ` Ben Greear
2014-06-05 17:33                                                                                   ` Ben Greear
2014-06-06  9:05                                                                                     ` RE : " Vu Hai NGUYEN
2014-06-06 15:50                                                                                       ` Ben Greear
2014-06-10  7:15                                                                                         ` Vu Hai NGUYEN
2014-06-10 15:51                                                                                           ` Ben Greear
2014-06-11  7:19                                                                                             ` Vu Hai NGUYEN
2014-06-11 17:05                                                                                               ` Ben Greear
2014-06-12  8:48                                                                                                 ` RE : " Vu Hai NGUYEN
2014-06-12 17:54                                                                                                   ` Ben Greear
2014-06-12 20:22                                                                                                   ` Ben Greear
2014-06-13  8:50                                                                                                     ` Vu Hai NGUYEN
2014-06-13 14:34                                                                                                       ` Ben Greear
2014-06-13 17:04                                                                                                       ` Ben Greear
2014-06-16  7:16                                                                                                         ` Vu Hai NGUYEN
2014-06-16 14:47                                                                                                           ` Ben Greear
2014-06-17  7:25                                                                                                             ` Vu Hai NGUYEN
2014-06-23  9:03                                                                                                               ` Warning message in bridge mode Vu Hai NGUYEN
2014-06-23 21:33                                                                                                                 ` Ben Greear
2014-06-23 21:47                                                                                                                   ` Bruno Antunes
2014-06-24  7:39                                                                                                                     ` RE : " Vu Hai NGUYEN
2014-06-24 15:10                                                                                                                       ` Ben Greear
2014-06-26 14:17                                                                                                                         ` Vu Hai NGUYEN
2014-06-26 14:34                                                                                                                           ` Ben Greear
2014-06-27 15:52                                                                                                                             ` Vu Hai NGUYEN
2014-06-27 15:59                                                                                                                               ` Ben Greear
2014-06-30  8:14                                                                                                                                 ` Vu Hai NGUYEN
2014-06-07  0:28                                                                                       ` RE : RE : RE : RE : RE : ath10k: firmware crash in station mode & problem DFS Ben Greear
2014-05-28 17:19                                                               ` Janusz Dziedzic
2014-05-28 18:40                                                                 ` Janusz Dziedzic
2014-05-30 11:55                                                                   ` Vu Hai NGUYEN
2014-06-02  7:03                                                                     ` Janusz Dziedzic
2014-05-23  7:18                                           ` Michal Kazior
2014-05-23  9:15                       ` RE : RE : ath10k: firmware crash in station mode Yeoh Chun-Yeow
2014-05-23 11:35                         ` RE : " Vu Hai NGUYEN
2014-05-23 14:27                           ` Yeoh Chun-Yeow
2014-05-23 14:55                 ` TR " Vu Hai NGUYEN
2014-05-23 15:36                   ` Yeoh Chun-Yeow
2014-05-23 16:03                     ` Ben Greear
2014-05-24  6:29                       ` Tim Harvey
2014-05-24 16:14                         ` Ben Greear
2014-05-27 19:13                           ` Ben Greear
2014-05-25  7:26                         ` Kalle Valo
2014-05-24  5:49                     ` Tim Harvey
2014-05-24 16:46                       ` Yeoh Chun-Yeow
2014-05-13  0:52     ` [PATCH] ath10k: support get/set antenna configurations Avery Pennarun
2014-05-13 18:10       ` Kalle Valo
2014-05-13 18:15         ` Ben Greear
2014-05-13 21:03           ` Avery Pennarun
2014-05-14 12:28             ` Kalle Valo
2014-05-15  4:04               ` Yeoh Chun-Yeow
2014-05-15  5:47                 ` Avery Pennarun
2014-05-15  6:51                   ` Yeoh Chun-Yeow
2014-05-15  7:11                 ` Kalle Valo
2014-05-13 21:11       ` [PATCH v3] " Avery Pennarun
2014-05-14  6:20         ` Yeoh Chun-Yeow
2014-05-14  6:21           ` Avery Pennarun
2014-05-14  6:25             ` Yeoh Chun-Yeow
2014-05-14  7:18               ` Avery Pennarun
2014-05-14  7:22                 ` Yeoh Chun-Yeow
2014-05-14  7:33                   ` Yeoh Chun-Yeow
2014-05-16 12:30         ` Kalle Valo
2014-05-16 13:00           ` Ben Greear
2014-05-22 16:56         ` Kalle Valo
2014-05-13 17:50     ` RE : [PATCH v2 2/2] " Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+BoTQnsLGHLHjnr+aFm44qwkPQxNcpuCg0oo75iD=QVsh4U7w@mail.gmail.com' \
    --to=michal.kazior@tieto.com \
    --cc=ath10k@lists.infradead.org \
    --cc=p.carneiro@actiasodielec.fr \
    --cc=vh.nguyen@actiasodielec.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.