Bug 107861 - iwlwifi: 7260: TFD queue hang when 11n is enabled
Summary: iwlwifi: 7260: TFD queue hang when 11n is enabled
Status: CLOSED DUPLICATE of bug 107471
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: DO NOT USE - assign "network-wireless-intel" component instead
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-14 20:42 UTC by Linas Zvirblis
Modified: 2015-12-29 07:02 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (90.52 KB, text/x-log)
2015-11-14 20:42 UTC, Linas Zvirblis
Details
lspci (9.94 KB, text/x-log)
2015-11-14 20:43 UTC, Linas Zvirblis
Details
ethtool (241 bytes, text/x-log)
2015-11-14 20:44 UTC, Linas Zvirblis
Details
Core14 FW with uSniffer (1.00 MB, application/octet-stream)
2015-11-15 07:01 UTC, Emmanuel Grumbach
Details
trace (843.33 KB, application/pgp-encrypted)
2015-11-15 14:17 UTC, Linas Zvirblis
Details
coredump (190.18 KB, application/pgp-encrypted)
2015-11-15 14:18 UTC, Linas Zvirblis
Details
dmesg-iwlwifi-17 (80.28 KB, text/x-log)
2015-11-15 14:38 UTC, Linas Zvirblis
Details
dmesg-powersave-off (73.66 KB, text/x-log)
2015-11-20 22:14 UTC, Linas Zvirblis
Details
Core14 FW with uSniffer with TX_MNG probes (1.00 MB, application/octet-stream)
2015-11-23 07:28 UTC, Emmanuel Grumbach
Details
dmesg1 (74.12 KB, text/x-log)
2015-11-29 13:25 UTC, Linas Zvirblis
Details
modprobe1 (59 bytes, application/octet-stream)
2015-11-29 13:25 UTC, Linas Zvirblis
Details
dump1 (671.06 KB, application/pgp-encrypted)
2015-11-29 13:26 UTC, Linas Zvirblis
Details
trace1 (2.77 MB, application/pgp-encrypted)
2015-11-29 13:26 UTC, Linas Zvirblis
Details
dmesg2 (74.12 KB, text/x-log)
2015-11-29 13:27 UTC, Linas Zvirblis
Details
modprobe2 (107 bytes, application/octet-stream)
2015-11-29 13:27 UTC, Linas Zvirblis
Details
dump2 (661.46 KB, application/pgp-encrypted)
2015-11-29 13:28 UTC, Linas Zvirblis
Details
trace2 (1.50 MB, application/pgp-encrypted)
2015-11-29 13:28 UTC, Linas Zvirblis
Details
dmesg3 (72.69 KB, text/x-log)
2015-11-29 13:28 UTC, Linas Zvirblis
Details
modprobe3 (88 bytes, application/octet-stream)
2015-11-29 13:29 UTC, Linas Zvirblis
Details
trace3 (2.01 MB, application/pgp-encrypted)
2015-11-29 13:32 UTC, Linas Zvirblis
Details
Core13 FW with uSniffer with TX_MNG probes (1.00 MB, application/octet-stream)
2015-11-29 17:51 UTC, Emmanuel Grumbach
Details
dmesg4 (89.19 KB, text/x-log)
2015-11-29 18:16 UTC, Linas Zvirblis
Details
modprobe4 (200 bytes, application/octet-stream)
2015-11-29 18:16 UTC, Linas Zvirblis
Details
trace4 (809.43 KB, application/pgp-encrypted)
2015-11-29 18:17 UTC, Linas Zvirblis
Details
dump4 (2.99 KB, application/pgp-encrypted)
2015-11-29 18:17 UTC, Linas Zvirblis
Details

Description Linas Zvirblis 2015-11-14 20:42:55 UTC
Created attachment 192961 [details]
dmesg

802.11n connection becomes extremely unreliable with iwlwifi driver on Intel Wireless 7260 when not in direct line of sight of the router. Disabling 802.11n by adding 11n_disable=1 module parameter and running 802.11g instead makes the connection perfectly stable.

I tried various permutations of 11n_disable=N, swcrypto=1, and different 802.11n settings on the router, and did not observe any noticeable difference. Neither did any firmware from iwlwifi-7260-14 to 17 make any difference.

The last more or less usable configuration for me is kernel 4.2 with iwlwifi-7260-12 firmware. It was not stable either, but less so.

Please say if you need more information.
Comment 1 Linas Zvirblis 2015-11-14 20:43:59 UTC
Created attachment 192971 [details]
lspci
Comment 2 Linas Zvirblis 2015-11-14 20:44:19 UTC
Created attachment 192981 [details]
ethtool
Comment 3 Emmanuel Grumbach 2015-11-15 07:01:25 UTC
Created attachment 192991 [details]
Core14 FW with uSniffer

Please reproduce with the firmware attached.

Please run with fw_restart=0
This means that we won't recover after the first failure. This will allow me to correlate between the different logs.
1) Tracing
2) The dump file that will be created when the FW crashes

Information on how to collect this is available here:
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/debugging

please read the note about privacy.

Can you please try to disable bluetooth and say if it helps?

Thank you.
Comment 4 Linas Zvirblis 2015-11-15 14:17:47 UTC
Created attachment 193021 [details]
trace
Comment 5 Linas Zvirblis 2015-11-15 14:18:11 UTC
Created attachment 193031 [details]
coredump
Comment 6 Linas Zvirblis 2015-11-15 14:37:11 UTC
I attached the trace and the dump.

Turning Bluetooth off in the GNOME settings makes no difference. Unless you mean something more specific I should do here?
Comment 7 Linas Zvirblis 2015-11-15 14:38:15 UTC
Created attachment 193041 [details]
dmesg-iwlwifi-17
Comment 8 Emmanuel Grumbach 2015-11-19 07:48:53 UTC
Can you please try to disable power save and report back?

sudo iw wlan0 set power_save off

If that works, I'd like to collect fw dump with a different firmware to get more logs. Let me know.

thanks.
Comment 9 Linas Zvirblis 2015-11-20 22:14:05 UTC
I think it is off by default, so no difference. See dmesg.

I don't know if this is in any way relevant, but it seems I can trigger the crash quite reliably by placing the laptop in a certain point in the room, and holding it sideways. I am pretty sure I am not imagining this.

It also seems that the closer I get to the router the more stable the connection is. If I am in the same room as the router, I usually do not even notice that something is wrong, but dmesg reveals that is does crash like once an hour anyway.

No such bizarre behavior when running 11g.
Comment 10 Linas Zvirblis 2015-11-20 22:14:58 UTC
Created attachment 195081 [details]
dmesg-powersave-off
Comment 11 Emmanuel Grumbach 2015-11-23 07:28:04 UTC
Created attachment 195181 [details]
Core14 FW with uSniffer with TX_MNG probes

Hi,

can you please recreate a dump with the firmware attached?
It would be nice to have a dump with 11n_disable=1 and another one without so that we can compare the 2.
In order to create a dump when the firmware does not crash, you can do:

echo 1 > /sys/kernel/debug/iwlwifi/0000\:0X\:00.0/iwlmvm/fw_restart

Make sure to run with fw_restart=0 to avoid confusion.

Thanks!
Comment 12 Emmanuel Grumbach 2015-11-25 10:12:20 UTC
can you try to set cfg80211_disable_40mhz_24ghz to true?
This is module parameter to the cfg80211 module.

Thanks.
Comment 13 Linas Zvirblis 2015-11-29 13:25:26 UTC
Created attachment 195831 [details]
dmesg1
Comment 14 Linas Zvirblis 2015-11-29 13:25:43 UTC
Created attachment 195841 [details]
modprobe1
Comment 15 Linas Zvirblis 2015-11-29 13:26:04 UTC
Created attachment 195851 [details]
dump1
Comment 16 Linas Zvirblis 2015-11-29 13:26:26 UTC
Created attachment 195861 [details]
trace1
Comment 17 Linas Zvirblis 2015-11-29 13:27:16 UTC
Created attachment 195871 [details]
dmesg2
Comment 18 Linas Zvirblis 2015-11-29 13:27:39 UTC
Created attachment 195881 [details]
modprobe2
Comment 19 Linas Zvirblis 2015-11-29 13:28:02 UTC
Created attachment 195891 [details]
dump2
Comment 20 Linas Zvirblis 2015-11-29 13:28:26 UTC
Created attachment 195901 [details]
trace2
Comment 21 Linas Zvirblis 2015-11-29 13:28:52 UTC
Created attachment 195911 [details]
dmesg3
Comment 22 Linas Zvirblis 2015-11-29 13:29:11 UTC
Created attachment 195921 [details]
modprobe3
Comment 23 Emmanuel Grumbach 2015-11-29 13:31:19 UTC
thanks. This is the same as the original bug though.
I'll forward the information to the firmware team.

Thank you.
Comment 24 Linas Zvirblis 2015-11-29 13:32:24 UTC
Created attachment 195931 [details]
trace3
Comment 25 Linas Zvirblis 2015-11-29 13:37:23 UTC
Unfortunately there is no dump for the third one which does not crash. I do not have /sys/kernel/debug/iwlwifi directory, and cannot find any kernel option that would enable it:

CONFIG_IWLWIFI=m
CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLWIFI_OPMODE_MODULAR=y
# CONFIG_IWLWIFI_BCAST_FILTERING is not set
# CONFIG_IWLWIFI_UAPSD is not set
CONFIG_IWLWIFI_DEBUG=y
CONFIG_IWLWIFI_DEBUG_EXPERIMENTAL_UCODE=y
CONFIG_IWLWIFI_DEVICE_TRACING=y

Am I missing something?
Comment 26 Emmanuel Grumbach 2015-11-29 14:10:19 UTC
The third one didn't crash and hence you didn't get any dump. This is fine.
I am a bit concerned by the fact that you have 2 different issues: hang queues and ASSERT 100C.
We'll see what the firmware team says about 100C, they may need other logs for this type of failures. I'll let you know.
Thank you for the info provided so far.
Comment 27 Emmanuel Grumbach 2015-11-29 14:18:32 UTC
I talked to the firmware team. They are already handling this issue.
I'll provided soon a firmware on an earlier code base that don't seem to have this issue.

Thank!
Comment 28 Emmanuel Grumbach 2015-11-29 17:51:27 UTC
Created attachment 195941 [details]
Core13 FW with uSniffer with TX_MNG probes

Please try with this firmware.
Note that you'll need to delete -17.ucode to work this firmware since it is an older code base.

Thanks!
Comment 29 Linas Zvirblis 2015-11-29 18:15:03 UTC
Oh my, this is much worse. The 16.ucode crashes as soon as I turn the wifi on, both with 11n and 11g. Dump coming up.
Comment 30 Linas Zvirblis 2015-11-29 18:16:15 UTC
Created attachment 195951 [details]
dmesg4
Comment 31 Linas Zvirblis 2015-11-29 18:16:34 UTC
Created attachment 195961 [details]
modprobe4
Comment 32 Linas Zvirblis 2015-11-29 18:17:04 UTC
Created attachment 195971 [details]
trace4
Comment 33 Linas Zvirblis 2015-11-29 18:17:20 UTC
Created attachment 195981 [details]
dump4
Comment 34 Emmanuel Grumbach 2015-11-29 18:48:59 UTC
Ah - That's because of the debug probes. I'll get back to you tomorrow. Sorry for the noise.
Comment 35 Emmanuel Grumbach 2015-12-21 08:03:49 UTC
We already have a few reports in the same area. Closing as duplicate.

*** This bug has been marked as a duplicate of bug 107471 ***

Note You need to log in before you can comment on or make changes to this bug.