From: Gabor Juhos <juhosg@openwrt.org>
To: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Cc: Adrian Chadd <adrian.chadd@gmail.com>,
Mohammed Shafi <shafi.wireless@gmail.com>,
linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org,
openwrt-devel@lists.openwrt.org,
Marek Lindner <lindner_marek@yahoo.de>,
sven@narfation.org
Subject: Re: AR9330 hornet board stops beaconing after a few days (0xdeadbeef)
Date: Thu, 23 Aug 2012 19:10:41 +0200 [thread overview]
Message-ID: <50366411.6000408@openwrt.org> (raw)
In-Reply-To: <20120823092831.GA25818@pandem0nium>
2012.08.23. 11:28 keltezéssel, Simon Wunderlich írta:
> Hello Adrian,
>
> thanks for your comments!
>
> On Wed, Aug 22, 2012 at 11:57:04AM -0700, Adrian Chadd wrote:
>> Yeah. The deadbeef means "something's turned off."
>>
>> I'd start with the SoC reset register and see if the MAC/WMAC bits are
>> correctly set. Ie, that something hasn't gone and reset the wireless
>> bits behind your back.
>
> Sure, but which register would that be? How can I find out? Is it included
> in regdump of ath9k debugfs?
It is the AR933X_RESET_REG_RESET_MODULE register (0x1806001c), and the reset of
the WMAC chip is controlled by the AR933X_RESET_WMAC bit. You can find the
definitions in arch/mips/include/asm/mach-ath79/ar71xx_regs.h.
The platform device registration code pulls the WMAC chip out of reset before
registering the device. See the 'ar933x_wmac_setup' function in
'arch/mips/ath79/dev-wmac.c'. Then only the ath9k driver controls the hardware
reset line indirectly via ah->external_reset.
However, I doubt that the 0xdeadbeef values are caused by this. If the
AR933X_RESET_WMAC bit is set in the reset register, the WMAC chip is not
accessible at all. If the AR933X_RESET_WMAC bit is set and the driver tries to
access the WMAC registers, the board locks up completely, or reboots itself. At
least I have experienced this earlier.
-Gabor
next prev parent reply other threads:[~2012-08-23 17:10 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 16:53 AR9330 hornet board stops beaconing after a few days (0xdeadbeef) Simon Wunderlich
2012-08-19 22:04 ` Simon Wunderlich
2012-08-22 5:20 ` Mohammed Shafi
2012-08-22 18:57 ` Adrian Chadd
2012-08-23 9:28 ` Simon Wunderlich
2012-08-23 17:10 ` Gabor Juhos [this message]
2012-08-23 19:26 ` Adrian Chadd
2012-08-23 14:59 ` Mohammed Shafi
2012-08-23 15:19 ` Sven Eckelmann
2012-08-23 15:27 ` Sven Eckelmann
2012-09-02 20:01 ` [ath9k-devel] " Simon Wunderlich
2012-09-02 20:01 ` Simon Wunderlich
2012-09-03 13:53 ` [ath9k-devel] " Mohammed Shafi
2012-09-03 13:53 ` Mohammed Shafi
2012-09-03 14:34 ` [ath9k-devel] " Sven Eckelmann
2012-09-03 14:34 ` Sven Eckelmann
2012-09-04 17:12 ` [ath9k-devel] " Simon Wunderlich
2012-09-04 17:12 ` Simon Wunderlich
2012-09-05 5:12 ` [ath9k-devel] " Mohammed Shafi
2012-09-05 5:12 ` Mohammed Shafi
2012-09-05 14:08 ` [ath9k-devel] " Adrian Chadd
2012-09-05 14:08 ` Adrian Chadd
2012-09-05 14:20 ` [ath9k-devel] " Sven Eckelmann
2012-09-05 14:20 ` Sven Eckelmann
2012-09-13 16:51 ` [ath9k-devel] " Simon Wunderlich
2012-09-13 16:51 ` Simon Wunderlich
2012-09-13 16:59 ` [ath9k-devel] " Adrian Chadd
2012-09-13 16:59 ` Adrian Chadd
2012-09-13 17:55 ` [ath9k-devel] [OpenWrt-Devel] " Felix Fietkau
2012-09-13 17:55 ` Felix Fietkau
2012-09-14 9:47 ` [ath9k-devel] [RFC] ath9k: Work around complete stuck of hw Sven Eckelmann
2012-09-14 9:47 ` Sven Eckelmann
2012-09-14 11:33 ` [ath9k-devel] " Felix Fietkau
2012-09-14 11:33 ` Felix Fietkau
2012-09-23 10:04 ` [ath9k-devel] " Sven Eckelmann
2012-09-23 10:04 ` Sven Eckelmann
2013-11-20 20:57 ` [ath9k-devel] [OpenWrt-Devel] AR9330 hornet board stops beaconing after a few days (0xdeadbeef) Bastian Bittorf
2013-11-20 20:57 ` Bastian Bittorf
2013-11-20 21:00 ` [ath9k-devel] " Sven Eckelmann
2013-11-20 21:00 ` Sven Eckelmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50366411.6000408@openwrt.org \
--to=juhosg@openwrt.org \
--cc=adrian.chadd@gmail.com \
--cc=ath9k-devel@lists.ath9k.org \
--cc=lindner_marek@yahoo.de \
--cc=linux-wireless@vger.kernel.org \
--cc=openwrt-devel@lists.openwrt.org \
--cc=shafi.wireless@gmail.com \
--cc=simon.wunderlich@s2003.tu-chemnitz.de \
--cc=sven@narfation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.