Linux wireless drivers development
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Amitkumar Karwar <akarwar@marvell.com>
Cc: Nishant Sarmukadam <nishants@marvell.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"Oliver Neukum" <oneukum@suse.de>
Subject: Re: Non-working mwifiex_sdio with SD8897
Date: Thu, 08 Dec 2016 11:18:23 +0100	[thread overview]
Message-ID: <s5h8trqohao.wl-tiwai@suse.de> (raw)
In-Reply-To: <d7abecd9e9074f53bd1369cdd93d3472@SC-EXCH04.marvell.com>

[-- Attachment #1: Type: text/plain, Size: 5439 bytes --]

Hi Amitkumar,

On Thu, 08 Dec 2016 06:40:48 +0100,
Amitkumar Karwar wrote:
> 
> Hi Takashi,
> 
> > From: Takashi Iwai [mailto:tiwai@suse.de]
> > Sent: Friday, December 02, 2016 10:19 PM
> > To: Amitkumar Karwar; Nishant Sarmukadam
> > Cc: linux-wireless@vger.kernel.org; Oliver Neukum
> > Subject: Non-working mwifiex_sdio with SD8897
> > 
> > Hi,
> > 
> > we've got an Intel Cherry Trail-based system with Marvell SD8897 chip
> > over MMC (sdhci), and WiFi / BT always fails at starting (or better to
> > say, it never worked properly).
> > 
> > For avoiding the race between WiFi and BT, I blacklisted btmrvl_sdio,
> > so let's concentrate only on mwifiex_sdio now.
> > 
> > At the beginning of the driver loading, it looks fine:
> > 
> >  mwifiex_sdio mmc1:0001:1: info: FW download over, size 802164 bytes
> > mwifiex_sdio mmc1:0001:1: WLAN FW is active  mwifiex_sdio mmc1:0001:1:
> > info: MWIFIEX VERSION: mwifiex 1.0 (15.68.7.p77)  mwifiex_sdio
> > mmc1:0001:1: driver_version = mwifiex 1.0 (15.68.7.p77)
> >  cfg80211: Regulatory domain changed to country: US  .....
> > 
> > Then it gets a timeout
> > 
> >  mwifiex_sdio mmc1:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id =
> > 0x107, act = 0x0  mwifiex_sdio mmc1:0001:1: num_data_h2c_failure = 0
> > mwifiex_sdio mmc1:0001:1: num_cmd_h2c_failure = 0  mwifiex_sdio
> > mmc1:0001:1: is_cmd_timedout = 1  mwifiex_sdio mmc1:0001:1:
> > num_tx_timeout = 0  mwifiex_sdio mmc1:0001:1: last_cmd_index = 4
> > mwifiex_sdio mmc1:0001:1: last_cmd_id: 1e 00 0c 01 1e 00 20 00 07 01
> > mwifiex_sdio mmc1:0001:1: last_cmd_act: 00 00 01 00 00 00 08 00 00 00
> > mwifiex_sdio mmc1:0001:1: last_cmd_resp_index = 3  mwifiex_sdio
> > mmc1:0001:1: last_cmd_resp_id: 1e 80 0c 81 1e 80 20 80 20 80
> > mwifiex_sdio mmc1:0001:1: last_event_index = 1  mwifiex_sdio
> > mmc1:0001:1: last_event: 00 00 0b 00 00 00 00 00 00 00  mwifiex_sdio
> > mmc1:0001:1: data_sent=0 cmd_sent=0  mwifiex_sdio mmc1:0001:1:
> > ps_mode=1 ps_state=1  mwifiex_sdio mmc1:0001:1: ===mwifiex driverinfo
> > dump start===  mwifiex_sdio mmc1:0001:1: info: MWIFIEX VERSION: mwifiex
> > 1.0 (15.68.7.p77)  mwifiex_sdio mmc1:0001:1: SDIO register dump start
> > mwifiex_sdio mmc1:0001:1: SDIO Func0 (0x0-0x9): 43 03 02 02 03 02 00 02
> > 03 00  mwifiex_sdio mmc1:0001:1: SDIO Func1 (0x0-0xb): 02 ff c3 40 00
> > 00 00 00 ff ff ff ff  mwifiex_sdio mmc1:0001:1: SDIO Func1: (0x4c) 00
> > (0x50) 08 (0x54) 07 (0x55) 0c (0x58) 10 (0x59) 00 (0x5c) 00 (0x5d) 00
> > mwifiex_sdio mmc1:0001:1: SDIO Func1 (0xc0-0xca): dc fe 6c 00 10 00 3f
> > 36 36 02 20  mwifiex_sdio mmc1:0001:1: SDIO Func1 (0xc0-0xca): dc fe 76
> > 00 1a 00 3f 36 36 02 20  mwifiex_sdio mmc1:0001:1: SDIO register dump
> > end  mwifiex_sdio mmc1:0001:1: ===mwifiex driverinfo dump end===
> > mwifiex_sdio mmc1:0001:1: == mwifiex firmware dump start ==
> > mwifiex_sdio mmc1:0001:1: Ignore scan. Card removed or firmware in bad
> > state  mwifiex_sdio mmc1:0001:1: scan failed: -14  mwifiex_sdio
> > mmc1:0001:1: == mwifiex firmware dump end ==  mwifiex_sdio mmc1:0001:1:
> > == mwifiex dump information to /sys/class/devcoredump start
> > mwifiex_sdio mmc1:0001:1: == mwifiex dump information to
> > /sys/class/devcoredump end
> > 
> 
> Could you please try attached 7.p87 firmware? I will be submitting it upstream soon.

Thanks!  I tried it, but unfortunately the issue still remains.

> If it doesn't help, please share devcoredump logs for analysis.
> 
> Here is the procedure to collect it. Issue below command within 5 minutes when "mwifiex dump information to
> > /sys/class/devcoredump end" message is displayed.
> 
> cat /sys/class/devcoredump/devcd*/data > data.txt

Below is the data I got after the reboot.

One interesting thing is that sometimes the coredump isn't triggered
even after the failure, typically after the cold boot:

[    8.186609] mwifiex_sdio mmc1:0001:1: info: FW download over, size 800344 bytes
[    8.962342] mwifiex_sdio mmc1:0001:1: WLAN FW is active
[   10.560374] r8169 0000:01:00.0 eth0: link up
[   10.656031] NET: Registered protocol family 17
[   10.933670] fuse init (API version 7.23)
[   18.975002] mwifiex_sdio mmc1:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0xa9, act = 0x0
[   18.975034] mwifiex_sdio mmc1:0001:1: num_data_h2c_failure = 0
[   18.975042] mwifiex_sdio mmc1:0001:1: num_cmd_h2c_failure = 0
[   18.975050] mwifiex_sdio mmc1:0001:1: is_cmd_timedout = 1
[   18.975057] mwifiex_sdio mmc1:0001:1: num_tx_timeout = 0
[   18.975064] mwifiex_sdio mmc1:0001:1: last_cmd_index = 1
[   18.975074] mwifiex_sdio mmc1:0001:1: last_cmd_id: 00 00 a9 00 00 00 00 00 00 00
[   18.975082] mwifiex_sdio mmc1:0001:1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00
[   18.975089] mwifiex_sdio mmc1:0001:1: last_cmd_resp_index = 0
[   18.975096] mwifiex_sdio mmc1:0001:1: last_cmd_resp_id: 00 00 00 00 00 00 00 00 00 00
[   18.975106] mwifiex_sdio mmc1:0001:1: last_event_index = 0
[   18.975113] mwifiex_sdio mmc1:0001:1: last_event: 00 00 00 00 00 00 00 00 00 00
[   18.975121] mwifiex_sdio mmc1:0001:1: data_sent=1 cmd_sent=0
[   18.975131] mwifiex_sdio mmc1:0001:1: ps_mode=0 ps_state=0
[   19.026928] mwifiex_sdio mmc1:0001:1: info: mwifiex_fw_dpc: unregister device
[   19.027449] mmc1:0001:1: pending IRQ with no handler
[   19.027503] mmc1:0001:1: pending IRQ with no handler
[   19.027546] mwifiex: info: mwifiex_free_adapter: free adapter

If you need any other information, let me know.


thanks,

Takashi

---

[-- Attachment #2: mw-dump-4.9-warm-reboot.txt.gz --]
[-- Type: application/octet-stream, Size: 85263 bytes --]

[-- Attachment #3: mw-dump-4.9-warm-reboot2.txt.gz --]
[-- Type: application/octet-stream, Size: 85477 bytes --]

[-- Attachment #4: mw-dump-4.4-warm-reboot.txt.gz --]
[-- Type: application/octet-stream, Size: 84800 bytes --]

  parent reply	other threads:[~2016-12-08 10:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02 16:49 Non-working mwifiex_sdio with SD8897 Takashi Iwai
2016-12-06 16:48 ` Takashi Iwai
     [not found] ` <d7abecd9e9074f53bd1369cdd93d3472@SC-EXCH04.marvell.com>
2016-12-08 10:18   ` Takashi Iwai [this message]
2016-12-08 10:37     ` Takashi Iwai

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=s5h8trqohao.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=akarwar@marvell.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nishants@marvell.com \
    --cc=oneukum@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox