All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jorge Boncompte [DTI2] <jorge@dti2.net>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] D-Link DWA-547 completely freezes system
Date: Fri, 22 Jan 2010 19:26:50 +0100	[thread overview]
Message-ID: <4B59EDEA.3090001@dti2.net> (raw)
In-Reply-To: <1264182734.12386.12.camel@mj>

El 22/01/2010 18:52, Pavel Roskin escribi?:
> On Fri, 2010-01-22 at 10:58 +0100, Khashayar Naderehvandi wrote:
> 
>>> I can confirm that 0xdeadbeef comes from the chip, not from some random
>>> place in memory.  Even the supported Ubiquiti SR71-15 returns 0xdeadbeef
>>> when reading from the register 0x00ac (AR_IMR_S2).
>>>
>>> The fact that SR71-12 only works if installed in a slot below SR71-15 is
>>> very intriguing.  I checked the modules with nm for possible static
>>> variables, but I cannot spot anything wrong.  I'm going to try
>>> mmiotrace.
>>>
>> Pavel, this is way too technical for me to understand :)
> 
> Sorry, it was meant for Luis.
> 
> Ubiquiti SR71-15 is the only AR9220 card I know that works with ath9k.
> It's a 5GHz-only card, so maybe that's the reason.
> 
> Ubiquiti SR71-12 is a 2GHz card and it doesn't work.  However, if
> SR71-15 is present in the same system and has a lower PCI address so
> that it's initialized first, SR71-12 would work.  This makes me think
> that the initialization of SR71-15 changes something in the state of the
> driver.  The state should be separate for every device, so it may be a
> bug.
> 
> I discovered that reading from some registers gives 0xdeadbeef.  Even
> for SR71-15 reading from one register gives 0xdeadbeef.  0xdeadbeef is a
> number commonly used to indicate uninitialized data.  But it comes from
> the device.  So we are doing something wrong.  Maybe the register in
> question (AR_IMR_S2) should be initialized, or maybe the whole chip
> initialization is wrong.

	Hi Pavel, i had done some tests and did found that my SR71-12 does works if I
change in hw.c::ath9k_hw_init_11a_eeprom_fix()...

if ((ah->hw_version.devid == AR9280_DEVID_PCI) &&
	test_bit(ATH9K_MODE_11A, ah->caps.wireless_modes)) {

to...

if (ah->hw_version.devid == AR9280_DEVID_PCI) {

	Unfortunately, I don't know what that 'fix' fixes :-)

-- 
==============================================================
Jorge Boncompte - Ingenieria y Gestion de RED
DTI2 - Desarrollo de la Tecnologia de las Comunicaciones
--------------------------------------------------------------
C/ Abogado Enriquez Barrios, 5   14004 CORDOBA (SPAIN)
Tlf: +34 957 761395 / FAX: +34 957 450380
==============================================================
- Sin pistachos no hay Rock & Roll...
- Without wicker a basket cannot be made.
==============================================================

  reply	other threads:[~2010-01-22 18:26 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-08 12:42 [ath9k-devel] D-Link DWA-547 completely freezes system Khashayar Naderehvandi
2010-01-21 21:44 ` Khashayar Naderehvandi
2010-01-21 22:00   ` Pavel Roskin
2010-01-21 22:26     ` Luis R. Rodriguez
2010-01-22  2:53       ` Pavel Roskin
2010-01-22  9:58         ` Khashayar Naderehvandi
2010-01-22 17:52           ` Pavel Roskin
2010-01-22 18:26             ` Jorge [this message]
2010-01-22 22:17               ` Pavel Roskin
2010-01-22 22:23                 ` Luis R. Rodriguez
2010-01-22 22:42                   ` Felix Fietkau
2010-01-22 22:44                   ` Pavel Roskin
2010-01-22 18:43             ` Luis R. Rodriguez
2010-01-22 18:49               ` Luis R. Rodriguez
2010-01-22 19:34                 ` pat-lkml at erley.org
2010-01-22 19:09             ` Khashayar Naderehvandi
  -- strict thread matches above, loose matches on Subject: below --
2010-01-27 18:06 Michael Pronath
2010-01-27 21:09 ` Michael Pronath
2010-01-27 21:47 ` Pavel Roskin
2010-01-28 18:23   ` Khashayar Naderehvandi
2010-01-28 21:01     ` Michael Pronath
2010-01-31  9:39   ` Khashayar Naderehvandi
2010-01-31 14:48     ` Pavel Roskin
2010-01-31 16:52 Brian Walker
2010-07-08  5:50 Robert Kosten
2010-07-08 16:23 ` Pavel Roskin
2010-07-08 21:11   ` Robert Kosten
2010-08-05 17:06     ` Pavel Roskin

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=4B59EDEA.3090001@dti2.net \
    --to=ath9k-devel@lists.ath9k.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.