Bug 37082

Summary: Atheros AR9285 Rev:2 locks up my system
Product: Drivers Reporter: Lonicerae (lonicerae)
Component: network-wirelessAssignee: drivers_network-wireless (drivers_network-wireless)
Status: CLOSED CODE_FIX    
Severity: high CC: alan, ath9k-devel, florian, linville, lonicerae, stf_xl
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.38.6, 2.6.38.7, 2.6.39.1 Subsystem:
Regression: No Bisected commit-id:
Attachments: 0001-ath9k-skip-config_pci_powersave-quirks-if-PCIe-port-.patch

Description Lonicerae 2011-06-10 03:54:35 UTC
Hi,

i installed Fedora 15 on my Lenovo G475 notebook, which has a Atheros AR9285 wireless adapter. if i turn on the wireless card in my bios, my system hangs after boot everytime. then i disable the wireless, my system works well. i've tried different kernel, eg. 2.6.38.6, 2.6.38.7, 2.6.39.1, all of them have the same problem.

i've report the bug to Redhat, but it seems that they cann't solve it. 
https://bugzilla.redhat.com/show_bug.cgi?id=707276

and i've tried the methods which are described on debian and archlinux bug lists.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611946
https://bugs.archlinux.org/task/20735

but the problem still there...

Flos
Comment 1 Lonicerae 2011-06-10 04:07:08 UTC
another thread, maybe the same problem...
https://bugs.mageia.org/show_bug.cgi?id=144
Comment 2 Stanislaw Gruszka 2011-06-10 08:40:41 UTC
Possibly related too:
https://lists.ath9k.org/pipermail/ath9k-devel/2011-June/thread.html#6250
Comment 3 Stanislaw Gruszka 2011-06-14 08:56:43 UTC
There is also patch-workoround available:
http://marc.info/?l=linux-wireless&m=130768848626799&w=2
Comment 4 Lonicerae 2011-06-15 13:53:07 UTC
Hi Stanislaw,

mine is FC15, so i cannot use your srpm or rpm directory. i downloaded the
patch you told us and the compat-wireless-2010-08-21.tar.gz which is stable
enough as pepole on the archlinux buzilla said.
i patched the compat-wireless source and made some small changes, and then i
build the modules for my 2.6.38.7-30.fc15.x86_64 kernel.
i installed the modules and enabled my ar9285 card again, so far, it works
smoothly!

my patch for FC15:
https://bugzilla.redhat.com/show_bug.cgi?id=697157

thanks!

Flos
Comment 5 Lonicerae 2011-06-21 15:48:22 UTC
Hi all,
if i start my notebook for the first time after completely poweroff,
although i've using my patched compat-wireless 'compat-wireless-2010-08-21',
the system still hangs... if i reboot into my WinXP, then reboot to FC15, the
system will not freeze. very strange! so the problem do not completely resolve.

Flos
Comment 6 Stanislaw Gruszka 2011-07-19 09:59:33 UTC
Created attachment 65992 [details]
0001-ath9k-skip-config_pci_powersave-quirks-if-PCIe-port-.patch

Please test this patch. I plan to post it as fix for that bug. I'm looking for confirmation if it works.
Comment 7 Stanislaw Gruszka 2011-07-22 13:56:09 UTC
Posted another patches:
http://thread.gmane.org/gmane.linux.kernel.wireless.general/73834
Comment 8 Florian Mickler 2011-08-08 08:24:16 UTC
A patch referencing this bug report has been merged in Linux v3.1-rc1:

commit d4930086bdd0c08a8b3a4d66a9c702297cb74a99
Author: Stanislaw Gruszka <sgruszka@redhat.com>
Date:   Fri Jul 29 15:59:08 2011 +0200

    ath9k: skip ->config_pci_powersave() if PCIe port has ASPM disabled