All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] need help debugging/pinning down obscure freezes/hangs using AR9287
@ 2011-10-11 18:38 Philipp Raich
  2011-10-12  6:59 ` Mohammed Shafi
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Philipp Raich @ 2011-10-11 18:38 UTC (permalink / raw)
  To: ath9k-devel

Hi.

When using the ath9k module my system freezes in less than a few minutes, and I'm not able to find out why. Could someone help me by telling me where to find useful information on where or why this happens? (Or should i begin to insert my own debugging-output in the code???)

The crashes almost disappear if i crank the TX-Power up and thus improve the signal quality (i think this could be a hint), and almost only appear when the connection is under "heavy load" (firing up a youtube-video works reliably most of the time), but may also appear at any given time. [To me it sounds like something the module expects to be there gets "lost"... (null-pointer anyone?)]

Even worse, I do not have a working SysRq-Key on this machine (remapping other key did not work, PS/2-keyboard won't work), but I think it would be useless anyway, the tty running Xorg usually shows a beautiful color-pattern as soon as the crashes occur, when running a serial console as it happens, the screen just freezes.

I used the almost recent version of ath9k (via compat-wireless tarball '2011-10-10') and enabled debugging as far as I could get it to work (I see the nodes under /sys/kernel/debug/ieee80211/phy0/ath9k but could not find anything really helpful there... Mostly because I have no idea where to look and what the numbers mean I was not able to find any insightful documentation).

What would be most interesting to me is, what happens before the crashes occur? What is ath9k doing? The usual kernel-debugging stuff... I thought I saw debug-printks in the code, and hoped to enable it via 'modprobe ath9k debug=0xffffffff', but with no luck. Was it disabled in the recent past? Did I miss a step in enabling it?

Can somebody give me a little guidance on what to do next? I would really like to improve the situation for me and everyone else, or at least help as much as I can, and I think I need a hint.

Thanks,
Philipp Raich

^ permalink raw reply	[flat|nested] 31+ messages in thread
* [ath9k-devel] need help debugging/pinning down obscure freezes/hangs using AR9287
@ 2011-12-26 22:46 Malcom Haak
  2011-12-27  3:43 ` Adrian Chadd
  0 siblings, 1 reply; 31+ messages in thread
From: Malcom Haak @ 2011-12-26 22:46 UTC (permalink / raw)
  To: ath9k-devel

>Oh wait. I wonder if this would be a side-effect of "PCI MAC and SMP
>is painful".
>
>Try editing drivers/net/wireless/ath/ath9k/hw.c:__ath9k_hw_init():
>
>        if (ah->config.serialize_regmode == SER_REG_MODE_AUTO) {
>                if (ah->hw_version.macVersion == AR_SREV_VERSION_5416_PCI ||
>                    ((AR_SREV_9160(ah) || AR_SREV_9280(ah)) &&
>                     !ah->is_pciexpress)) {
>                        ah->config.serialize_regmode =
>                                SER_REG_MODE_ON;
>                } else {
>                        ah->config.serialize_regmode =
>                                SER_REG_MODE_OFF;
>                }
>        }
>
>Change this:
>
>                    ((AR_SREV_9160(ah) || AR_SREV_9280(ah)) &&
>
>to
>
>                    ((AR_SREV_9160(ah) || AR_SREV_9287(ah) ||
>AR_SREV_9280(ah)) &&
>
>.. so the PCI bus glue fix gets applied for AR9227 NICs.
>
>
>Adrian

Hi all,

I was having this exact set off issues with the exact same hardware.
I applied this change to the 3.0.9 kernel and it resolved all my issues.

Can this change be added to the upstream driver?

Thanks in advance

Malcolm Haak

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2011-12-27  3:47 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11 18:38 [ath9k-devel] need help debugging/pinning down obscure freezes/hangs using AR9287 Philipp Raich
2011-10-12  6:59 ` Mohammed Shafi
2011-10-12 12:21   ` Philipp Raich
2011-10-12 15:37     ` Mohammed Shafi
2011-10-12 19:19       ` Philipp Raich
2011-10-12 19:35         ` Ben Greear
2011-10-13 16:26           ` Philipp Raich
2011-10-13 17:04             ` Ben Greear
2011-10-13 19:32               ` Philipp Raich
2011-11-14 18:10                 ` Philipp Raich
2011-11-15  3:16                   ` Adrian Chadd
2011-10-12 13:53 ` Peter Stuge
2011-10-12 14:09   ` Mohammed Shafi
2011-10-12 14:56     ` Peter Stuge
2011-10-12 15:15       ` Mohammed Shafi
2011-10-12 15:35         ` Peter Stuge
2011-10-12 16:51           ` Felix Fietkau
2011-10-12 17:23             ` Peter Stuge
2011-10-12 18:36               ` Felix Fietkau
2011-10-13  0:42             ` Adrian Chadd
2011-10-12 15:29       ` Adrian Chadd
2011-10-12 16:01         ` Peter Stuge
2011-10-12 18:19           ` Luca Olivetti
2011-10-13  0:44 ` Adrian Chadd
2011-10-13 15:50   ` Philipp Raich
2011-10-14  1:23     ` Adrian Chadd
2011-10-14 10:23       ` Philipp Raich
2011-10-14 11:36         ` Adrian Chadd
  -- strict thread matches above, loose matches on Subject: below --
2011-12-26 22:46 Malcom Haak
2011-12-27  3:43 ` Adrian Chadd
2011-12-27  3:47   ` Malcom Haak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.