All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] Sparklan WPEA-121N AR9382 168c:abcd
@ 2011-04-12  6:01 Alex Hacker
  0 siblings, 0 replies; 65+ messages in thread
From: Alex Hacker @ 2011-04-12  6:01 UTC (permalink / raw)
  To: ath9k-devel

Adrian Chadd wrote:
> Is there an easy way to get an EEPROM/OTP contents dump in ath9k?

For AR93xx you can try to use the following script:

#!/usr/bin/perl -w

my $debugPath = '/debug/ath9k/phy0';

sub RegGet($)
{
  open(F,">$debugPath/regidx") or die("Unable to open $debugPath/regidx.");
  printf(F "0x%x\n",shift());
  close(F);

  open(F,"$debugPath/regval") or die("Unable to open $debugPath/regval.");
  local $val = <F>;
  $val =~ s/\s+$//g;
  close(F);

  return hex($val);
}

sub EepromRead($)
{
  RegGet(0x2000 + ((shift()/2) << 2));
  while ((RegGet(0x4084) & 0x50000) != 0) {}
  return RegGet(0x4084);
}

for (local $addr = 0; $addr < 0x400; $addr += 2)
{
  printf("\n%04x:",$addr) if ($addr%16 == 0);
  local $val = EepromRead($addr);
  printf(" %02x %02x",$val >> 8,$val & 0xff);
}
printf("\n");

^ permalink raw reply	[flat|nested] 65+ messages in thread
* [ath9k-devel] Sparklan WPEA-121N AR9382 168c:abcd
@ 2013-03-27 18:34 Steffen Dettmer
  2013-03-27 21:31 ` Adrian Chadd
  0 siblings, 1 reply; 65+ messages in thread
From: Steffen Dettmer @ 2013-03-27 18:34 UTC (permalink / raw)
  To: ath9k-devel

Hi,

some time ago there was a thread "Sparklan WPEA-121N AR9382 168c:abcd" about the issue that the mentioned device was erroneously reported as device ID 0xabcd. There were EEPROM issues assumed and BIOS issues reported that could cause this effect (by resetting the PCI bus at system power on) and a proposed workaround to add the wrong ID to the driver to make it load - it had been reported working.

I'm facing such a situation with embedded devices (I assume BIOS updates probably are at least very difficult) and a WPEA-127N and would like to know whether there were new findings and share mine in case they'd be of some interest.

Are there any news on that?

Is the proposed workaround adding 0xabcd to the driver still best way of handling this?

On my board it happens /from time to time/ that the device reports 0xabcd - but not always.

I made 20 tests were I saw 4 such failures. All those failures appeared after cold boot, but none after warm boot. After cold boot sometimes one of two installed devices appeared with wrong device ID but other correctly, and at other times both were working. Of course the number of tests is insufficient to draw conclusions, I write it just in case it rings a bell.

It is some Intel atom board running Linux (for example, Debian 7). Can I provide information that could help (and if so, how do I get those)?

Best regards,
Steffen

Some test results:

root at nomad:~# lspci|grep -i ath
01:00.0 Ethernet controller: Atheros Communications Inc. Device abcd (rev 01)
07:00.0 Ethernet controller: Atheros Communications Inc. Device abcd (rev 01)
root at nomad:~# grep '' /sys/devices/pci0000:00/0000:00:1c.*/0000:0{1,7}:00.0/{vendor,device}
/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/vendor:0x168c
/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/device:0xabcd
/sys/devices/pci0000:00/0000:00:1c.2/0000:07:00.0/vendor:0x168c
/sys/devices/pci0000:00/0000:00:1c.2/0000:07:00.0/device:0xabcd
root at nomad:~# reboot
[ssh...]
root at nomad:~# lspci|grep -i ath
01:00.0 Network controller: Atheros Communications Inc. AR9300 Wireless LAN adaptor (rev 01)
07:00.0 Network controller: Atheros Communications Inc. AR9300 Wireless LAN adaptor (rev 01)
root at nomad:~# grep '' /sys/devices/pci0000:00/0000:00:1c.*/0000:0{1,7}:00.0/{vendor,device}
/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/vendor:0x168c
/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/device:0x0030
/sys/devices/pci0000:00/0000:00:1c.2/0000:07:00.0/vendor:0x168c
/sys/devices/pci0000:00/0000:00:1c.2/0000:07:00.0/device:0x0030


root at nomad:/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0# grep '' *
broken_parity_status:0
class:0x020000
Binary file config matches
consistent_dma_mask_bits:32
device:0xabcd
dma_mask_bits:32
enable:0
grep: firmware_node: Is a directory
irq:10
local_cpulist:0-31
local_cpus:ffffffff
modalias:pci:v0000168Cd0000ABCDsv00000000sd00000000bc02sc00i00
grep: power: Is a directory
grep: remove: Permission denied
grep: rescan: Permission denied
grep: reset: Permission denied
resource:0x00000000fdfe0000 0x00000000fdffffff 0x0000000000140204
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x00000000fdfd0000 0x00000000fdfdffff 0x000000000004e200
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
resource:0x0000000000000000 0x0000000000000000 0x0000000000000000
grep: resource0: Input/output error
grep: rom: Invalid argument
grep: subsystem: Is a directory
subsystem_device:0x0000
subsystem_vendor:0x0000
uevent:PCI_CLASS=20000
uevent:PCI_ID=168C:ABCD
uevent:PCI_SUBSYS_ID=0000:0000
uevent:PCI_SLOT_NAME=0000:01:00.0
uevent:MODALIAS=pci:v0000168Cd0000ABCDsv00000000sd00000000bc02sc00i00
vendor:0x168c

^ permalink raw reply	[flat|nested] 65+ messages in thread
* [ath9k-devel] Sparklan WPEA-121N AR9382 168c:abcd
@ 2011-04-08 20:30 Hasan Rashid
  2011-04-10 12:09 ` Mohammed Shafi
  0 siblings, 1 reply; 65+ messages in thread
From: Hasan Rashid @ 2011-04-08 20:30 UTC (permalink / raw)
  To: ath9k-devel

Hello All,
 
I recently purchased a Sparklan WPEA-121N, it uses the AR9382 chipset.
It is mentioned as supported on the device list, however, when I load
that ath9k modules nothing comes up. 
 
Does ath9k support this chipset? I compiled compat-wirless on Ubuntu
10.10 on an x86 Core2Duo machine.
 
lspci -vvvnn returns the following:
 

02:00.0 Ethernet controller [0200]: Atheros Communications Inc. Device
[168c:abcd] (rev 01)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 15
        Region 0: Memory at fc8e0000 (64-bit, non-prefetchable)
[size=128K]
        Expansion ROM@fc8d0000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2- AuxCurrent=375mA
PME(D0+,D1+,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
                Address: 0000000000000000  Data: 0000
                Masking: 00000000  Pending: 00000000
        Capabilities: [70] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s
<1us, L1 <8us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal-
Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr-
TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1,
Latency L0 <2us, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain-
CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance-
SpeedDis-, Selectable De-emphasis: -6dB
                         Transmit Margin: Normal Operating Range,
EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt-
UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt-
UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt-
UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout-
NonFatalErr+
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout-
NonFatalErr+
                AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap-
ChkEn-
        Capabilities: [140 v1] Virtual Channel
                Caps:   LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb:    Fixed- WRR32- WRR64- WRR128-
                Ctrl:   ArbSelect=Fixed
                Status: InProgress-
                VC0:    Caps:   PATOffset=00 MaxTimeSlots=1
RejSnoopTrans-
                        Arb:    Fixed- WRR32- WRR64- WRR128- TWRR128-
WRR256-
                        Ctrl:   Enable+ ID=0 ArbSelect=Fixed TC/VC=01
                        Status: NegoPending- InProgress-
        Capabilities: [300 v1] Device Serial Number
00-00-00-00-00-00-00-00

 
Hasan R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110408/44ed6a26/attachment.htm 

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

end of thread, other threads:[~2013-04-01 13:05 UTC | newest]

Thread overview: 65+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12  6:01 [ath9k-devel] Sparklan WPEA-121N AR9382 168c:abcd Alex Hacker
  -- strict thread matches above, loose matches on Subject: below --
2013-03-27 18:34 Steffen Dettmer
2013-03-27 21:31 ` Adrian Chadd
2013-03-27 21:57   ` Peter Stuge
2013-03-27 22:33     ` Adrian Chadd
2013-03-27 22:46       ` Michael Schwingen
2013-03-27 23:11         ` Peter Stuge
2013-03-27 23:04       ` Peter Stuge
2013-03-28  1:02         ` Adrian Chadd
2013-04-01 13:05         ` Daniel Smith
2013-03-28 15:04   ` Steffen Dettmer
2013-03-28 18:44     ` Michael Schwingen
2011-04-08 20:30 Hasan Rashid
2011-04-10 12:09 ` Mohammed Shafi
2011-04-10 12:14   ` Mohammed Shafi
2011-04-10 14:32     ` Peter Stuge
2011-04-10 15:01       ` Mohammed Shafi
2011-04-10 15:11         ` Peter Stuge
2011-04-10 15:17           ` Mohammed Shafi
2011-04-10 15:34             ` Adrian Chadd
2011-04-10 15:41               ` Mohammed Shafi
2011-04-11  1:28                 ` Hasan Rashid
2011-04-11  1:45                   ` Peter Stuge
2011-04-11 16:05                   ` Mohammed Shafi
2011-04-11 16:10                     ` Hasan Rashid
2011-04-11 16:18                       ` Mohammed Shafi
2011-04-11 16:20                         ` Peter Stuge
2011-04-11 17:54                           ` Hasan Rashid
2011-04-12 11:46                             ` Mohammed Shafi
2011-04-12 15:04                               ` Hasan Rashid
2011-04-12 22:58                                 ` Adrian Chadd
2011-04-12 16:32                               ` Hasan Rashid
2011-04-19  4:21                                 ` Mohammed Shafi
2011-04-19 15:24                                   ` Hasan Rashid
2011-04-19 16:12                                     ` Mohammed Shafi
2012-01-10 16:19                                 ` Manuel Sáez
2012-01-10 16:36                                   ` Hasan Rashid
2012-01-10 17:36                                     ` Adrian Chadd
2012-01-10 18:17                                       ` Hasan Rashid
2012-01-10 18:36                                         ` Adrian Chadd
2012-01-10 20:45                                           ` Hasan Rashid
2012-01-10 21:11                                             ` Adrian Chadd
2012-01-10 21:23                                               ` Hasan Rashid
2012-01-10 21:53                                                 ` Adrian Chadd
2012-01-10 21:25                                             ` Daniel Smith
2012-01-10 21:37                                               ` Hasan Rashid
2012-01-11 13:48                                                 ` Manuel Sáez
2012-01-11 16:33                                                 ` Adrian Chadd
2012-01-11 17:39                                                   ` Hasan Rashid
2012-01-11 21:04                                                     ` Adrian Chadd
2012-01-10 21:54                                               ` Adrian Chadd
2012-01-11 12:57                                                 ` Daniel Smith
2012-01-11 16:23                                                   ` Adrian Chadd
2013-03-27 22:10                                                   ` Peter Stuge
2013-03-27 22:34                                                     ` Adrian Chadd
2011-04-11 17:48                         ` Hasan Rashid
2011-04-11  1:09     ` Hasan Rashid
2011-04-11  2:19       ` Adrian Chadd
2011-04-11 14:06         ` Hasan Rashid
2011-04-11 16:18         ` Peter Stuge
2011-04-11 14:13       ` Mohammed Shafi
2011-04-11 14:24         ` Hasan Rashid
2011-04-11 14:32           ` Mohammed Shafi
2011-04-11 14:57         ` Hasan Rashid
2011-04-11 16:10           ` Mohammed Shafi

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.