Bug 196043
Summary: | ath9k freezes suspend resume Ubuntu 17.04 with kernel 4.10 to 4.12 | ||
---|---|---|---|
Product: | Drivers | Reporter: | freeseek (giulio.genovese) |
Component: | network-wireless | Assignee: | drivers_network-wireless (drivers_network-wireless) |
Status: | RESOLVED CODE_FIX | ||
Severity: | high | ||
Priority: | P1 | ||
Hardware: | Intel | ||
OS: | Linux | ||
Kernel Version: | 4.12.0-041200rc4-generic | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
dmesg kernel 4.12.0-041200rc4-generic
dmesg kernel 4.8.6-040806-generic |
Description
freeseek
2017-06-12 14:14:03 UTC
I performed some testing, and while I cannot be 100% sure, I do believe that the problem lies within driver ath9k. If I remove module ath9k, suspending and resuming the laptop works all the time and I cannot reproduce the bug. After dissecting the kernel, it seems very likely that the problem was introduced between kernel release 4.8.6 and release 4.8.7 (using builds from http://kernel.ubuntu.com/~kernel-ppa/mainline/). However, I have no idea what piece of code could be responsible. There are only two files changed within the ath9k driver across these two releases: drivers/net/wireless/ath/ath9k/ar9003_calib.c drivers/net/wireless/ath/ath9k/hw.h I tried to recompile the ath9k driver in kernel 4.8.7 by reverting the changes in those two files, but reverting the changes does not fix the bug. My guess is that the bug was pre-existing in the ath9k driver but was not triggered before release 4.8.7. Created attachment 256979 [details]
dmesg kernel 4.8.6-040806-generic
Nevermind, I was able to reproduce the bug with kernel 4.8.6. It is just much harder to reproduce with previous kernels, that is, the bug is less likely to trigger.
Many thanks to Miaoqing Pan for writing a patch for this bug: https://patchwork.kernel.org/patch/9803211/ While the fix did not make it into kernel 4.12, it made it into kernel 4.13-rc1: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v4.13-rc1&id=07246c115801c27652700e3679bb58661ef7ed65 |