All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: "Douglass, Woodrow" <Woodrow.Douglass@QinetiQ-NA.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Kernel oops in ath9k
Date: Thu, 19 Nov 2009 22:24:56 -0500	[thread overview]
Message-ID: <1258687496.12864.35.camel@ct> (raw)
In-Reply-To: <712C9C7AD151C847B09F32EDA56A94CF0115C555@WALQNAOMAIL1T.qnao.net>

On Thu, 2009-11-19 at 09:54 -0500, Douglass, Woodrow wrote:
> Hi all,
> 
> I'm not sure if this is the right place to post this, but I may have a
> bug report for the ath9k driver.

You may want to post to ath9k-devel@lists.ath9k.org, as the problem
seems to be specific to the Atheros driver.

> I'm running a single board computer with a 600Mhz celeron processor. On
> the minipci bus I have a Ubiquiti SR71-12 802.11n card.

It would be helpful if you also specified the exact version of the
kernel.

>  Also attached is
> a shell script with the commands I run to cause the oops. Note that the
> first time the ifconfig line in this script is run, a "SIOCSIFFLAGS:
> Input/Output Error" is triggered, the kernel oops happens about 5
> seconds after the ifconfig line is run a second time.

I can reproduce "Input/Output Error" with SR71-12, but not the oops with
the current linux-wireless.

I know that it's caused by returning false in this code in file
drivers/net/wireless/ath/ath9k/calib.c, function ath9k_hw_init_cal():

                /* Poll for offset calibration complete */
                if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL,
                                   0, AH_WAIT_TIMEOUT)) {
                        ath_print(common, ATH_DBG_CALIBRATE,
                                  "offset calibration failed to "
                                  "complete in 1ms; noisy environment?\n");
                        return false;
                }

With full debugging (modprobe ath9k debug=0xffffffff), the kernel
messages are (with some context):

ath: Reset TXQ, inactive queue: 7
ath: Reset TX queue: 8
ath: tx ok 0x0 err 0x0 desc 0x10f eol 0x10f urn 0x0
ath: Reset TX queue: 9
ath: tx ok 0x0 err 0x0 desc 0x10f eol 0x10f urn 0x0
ath: ah->misc_mode 0x4
ath: timeout (100000 us) on reg 0x9860: 0xdeadbeef & 0x00000001 != 0x00000000
ath: offset calibration failed to complete in 1ms; noisy environment?
ath: Unable to reset hardware; reset status -5 (freq 2412 MHz)

I have access to various Ubiquiti cards, but SR71-12 is the only one
that fails.  I know that it works in Windows XP with the Ubiquiti driver
for other SR71 cards (the inf file should be tweaked to recognize the
revision of SR71-12).  That makes me think the problem is not in the
hardware and not in the noisy environment.

ath9k identifies the card as:

phy0: Atheros AR9280 Rev:2 mem=0xffffc90010da0000, irq=18

# lspci -vnn -s 03:01.0
03:01.0 Network controller [0280]: Atheros Communications Inc. AR922X
Wireless Network Adapter [168c:0029] (rev 01)
        Subsystem: Device [0777:4002]
        Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 18
        Memory at fe3f0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [44] Power Management version 2
        Kernel driver in use: ath9k
        Kernel modules: ath9k

-- 
Regards,
Pavel Roskin

  reply	other threads:[~2009-11-20  3:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-19 14:54 Kernel oops in ath9k Douglass, Woodrow
2009-11-20  3:24 ` Pavel Roskin [this message]
2009-11-20 13:56   ` Douglass, Woodrow
2009-11-20 14:54     ` Luis R. Rodriguez
2009-11-20 16:13       ` Douglass, Woodrow
2009-11-20 16:40         ` Luis R. Rodriguez
2009-11-20 20:54           ` Douglass, Woodrow

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=1258687496.12864.35.camel@ct \
    --to=proski@gnu.org \
    --cc=Woodrow.Douglass@QinetiQ-NA.com \
    --cc=linux-wireless@vger.kernel.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.