2016-02-15 22:55:31

by Mikael Djurfeldt

[permalink] [raw]
Subject: mwifiex driver unstable on MS Surface Pro 4

Dear list,

I'm experiencing problems with the mwifiex_pcie driver on MS Surface
Pro 4 (with the 88W8897 chip).

The symtom is that the driver only works for a few minutes during
which various error messages is shown in syslog after which the device
becomes unavailable.

I've tried a bunch of kernels from 4.3 and upwards.

I'm attaching an example syslog (filtered for mwifiex) during a run
under the 4.5.0-rc4 kernel.

I should add that I have power management on the device (as displayed
by, e.g., iwconfig) switched off in an attempt to delimit causes of
failure.

Best regards,
Mikael D.


Attachments:
mwifiex.log (53.02 kB)

2016-02-16 13:44:42

by Amitkumar Karwar

[permalink] [raw]
Subject: RE: mwifiex driver unstable on MS Surface Pro 4

SGkgTWlrYWVsLA0KDQo+IEZyb206IGxpbnV4LXdpcmVsZXNzLW93bmVyQHZnZXIua2VybmVsLm9y
ZyBbbWFpbHRvOmxpbnV4LXdpcmVsZXNzLQ0KPiBvd25lckB2Z2VyLmtlcm5lbC5vcmddIE9uIEJl
aGFsZiBPZiBNaWthZWwgRGp1cmZlbGR0DQo+IFNlbnQ6IFR1ZXNkYXksIEZlYnJ1YXJ5IDE2LCAy
MDE2IDQ6MjYgQU0NCj4gVG86IGxpbnV4LXdpcmVsZXNzQHZnZXIua2VybmVsLm9yZw0KPiBDYzog
TWlrYWVsIERqdXJmZWxkdA0KPiBTdWJqZWN0OiBtd2lmaWV4IGRyaXZlciB1bnN0YWJsZSBvbiBN
UyBTdXJmYWNlIFBybyA0DQo+IA0KPiBEZWFyIGxpc3QsDQo+IA0KPiBJJ20gZXhwZXJpZW5jaW5n
IHByb2JsZW1zIHdpdGggdGhlIG13aWZpZXhfcGNpZSBkcml2ZXIgb24gTVMgU3VyZmFjZSBQcm8N
Cj4gNCAod2l0aCB0aGUgODhXODg5NyBjaGlwKS4NCj4gDQo+IFRoZSBzeW10b20gaXMgdGhhdCB0
aGUgZHJpdmVyIG9ubHkgd29ya3MgZm9yIGEgZmV3IG1pbnV0ZXMgZHVyaW5nIHdoaWNoDQo+IHZh
cmlvdXMgZXJyb3IgbWVzc2FnZXMgaXMgc2hvd24gaW4gc3lzbG9nIGFmdGVyIHdoaWNoIHRoZSBk
ZXZpY2UgYmVjb21lcw0KPiB1bmF2YWlsYWJsZS4NCj4gDQo+IEkndmUgdHJpZWQgYSBidW5jaCBv
ZiBrZXJuZWxzIGZyb20gNC4zIGFuZCB1cHdhcmRzLg0KPiANCj4gSSdtIGF0dGFjaGluZyBhbiBl
eGFtcGxlIHN5c2xvZyAoZmlsdGVyZWQgZm9yIG13aWZpZXgpIGR1cmluZyBhIHJ1bg0KPiB1bmRl
ciB0aGUgNC41LjAtcmM0IGtlcm5lbC4NCj4gDQo+IEkgc2hvdWxkIGFkZCB0aGF0IEkgaGF2ZSBw
b3dlciBtYW5hZ2VtZW50IG9uIHRoZSBkZXZpY2UgKGFzIGRpc3BsYXllZA0KPiBieSwgZS5nLiwg
aXdjb25maWcpIHN3aXRjaGVkIG9mZiBpbiBhbiBhdHRlbXB0IHRvIGRlbGltaXQgY2F1c2VzIG9m
DQo+IGZhaWx1cmUuDQo+IA0KDQpUaGFua3MgZm9yIHJlcG9ydGluZyB0aGUgcHJvYmxlbS4gMHgx
MDcgY29tbWFuZCBoYXMgZ290IHRpbWVkIG91dCBpbiB0aGUgbG9nLg0KQ291bGQgeW91IHBsZWFz
ZSBoZWxwIGdldCB0aGUgZGV2aWNlIGR1bXAgZGF0YSB3aGVuIHByb2JsZW0gb2NjdXJzPw0KDQpJ
c3N1ZSBiZWxvdyBjb21tYW5kIGZvciB0aGlzLg0KY2F0IC9zeXMvY2xhc3MvZGV2Y29yZWR1bXAv
ZGV2Y2RYL2RhdGEgPiBkYXRhLnR4dA0KDQoNClJlZ2FyZHMsDQpBbWl0a3VtYXINCg==

2016-02-18 06:40:01

by Amitkumar Karwar

[permalink] [raw]
Subject: RE: mwifiex driver unstable on MS Surface Pro 4

Hi Mikael,

> From: [email protected] [mailto:[email protected]] On Behalf Of
> Mikael Djurfeldt
> Sent: Tuesday, February 16, 2016 9:15 PM
> To: Amitkumar Karwar
> Cc: [email protected]; Mikael Djurfeldt
> Subject: mwifiex driver unstable on MS Surface Pro 4
>
> [Resending without HTML.]
>
> Dear Amitkumar,
>
> Please find a new log + data.txt attached.
>

"invalid cmd resp" message in the log looks suspicious.

Could you apply attached change, enable driver debug and collect dmesg log for this issue?

Command to enable driver debug: echo 0xffffffff > /sys/kernel/debug/mwifiex/mlan0/debug_mask

Regards,
Amitkumar


Attachments:
CMD_CMDRESP_hexdump_v2.diff (1.01 kB)
CMD_CMDRESP_hexdump_v2.diff