Linux wireless drivers development
 help / color / mirror / Atom feed
* Re: Getting ath5k driver working with Thinkpad T61 [168c:1014]
@ 2008-06-16 15:24 Bob Copeland
  0 siblings, 0 replies; 14+ messages in thread
From: Bob Copeland @ 2008-06-16 15:24 UTC (permalink / raw)
  To: Zack Weinberg, Nick Kossifidis, linux-wireless

> Attached.  This has two attempts at 'iwlist wlan0 scan' in there
> before I shut it back down again.  I see an awful lot of repetitive
> writes of the same value at the same address, but I don't know what
> this stuff means...

Thanks for the update.  I haven't had a chance to look at this until 
now, as I've been traveling the last couple of weeks.  I'll go through 
it this evening to see if anything jumps out.

FWIW, here's how to read the dump.  Given a line like:

    R 4 48.700287 1 0xdf3f9860 0x9d1a 0x0 0

>From left to right that would be:

Read 4 bytes at time 48.700287 (map id=1) the address 0xdf3f9860, and
receive the value 0x9d1a (the other two 0s are meaningless for now).  
Writes look the same except start with W.

>From the address, you can figure out the register: in this case it is 
0x9860 since the MMIO base address is 0xdf3f0000.  Now you can look in 
reg.h to find the name of that register if we know it (here it is
AR5K_PHY_AGCCTL).

Then you can look at the source for where that register is being used to
get an idea of what is going on.  In the above case, we're reading the
register until the hardware completes AGC calibration and sets 
AR5K_PHY_AGCCTL_CAL (bit 0) low - that eventually happens .02 seconds 
later when the value 0x9d18 is read.

-- 
Bob Copeland %% www.bobcopeland.com



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Getting ath5k driver working with Thinkpad T61 [168c:1014]
@ 2008-05-14 17:24 Zack Weinberg
  2008-05-14 18:38 ` Bob Copeland
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Zack Weinberg @ 2008-05-14 17:24 UTC (permalink / raw)
  To: linux-wireless

I have a shiny new Thinkpad T61 and I'd like to get its wireless
chipset working with the ath5k driver.  I have tried
compat-wireless-2008-05-07 on top of kernel 2.6.25.1 -- I get this in
dmesg:

# modprobe ath5k
[15497.699573] ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level,
low) -> IRQ 17
[15497.699607] PCI: Setting latency timer of device 0000:03:00.0 to 64
[15497.699665] ath5k_pci 0000:03:00.0: registered as 'phy0'
[15498.709122] ath5k phy0: failed to wakeup the MAC Chip
[15498.709195] ACPI: PCI interrupt for device 0000:03:00.0 disabled
[15498.709205] ath5k_pci: probe of 0000:03:00.0 failed with error -5

# lspci -vnn -s 0000:03:00.0
03:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR5212
802.11abg NIC [168c:1014] (rev 01)
	Subsystem: IBM Device [1014:058a]
	Flags: fast devsel, IRQ 17
	Memory at df3f0000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
	Capabilities: [60] Express Legacy Endpoint, MSI 00
	Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
	Capabilities: [100] Advanced Error Reporting <?>
	Capabilities: [140] Virtual Channel <?>
	Kernel modules: ath5k

ath_info does not work:
# ath_info df3f0000
Unable to read EEPROM Magic value!

The old madwifi drivers don't work with this chip either:
# modprobe ath_pci
[  392.367300] ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111,
RF5112, RF2413, RF5413)
[  392.379623] wlan: 0.9.4
[  392.381431] ath_pci: 0.9.4
[  392.381466] PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
[  392.381472] ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level,
low) -> IRQ 17
[  392.381488] PCI: Setting latency timer of device 0000:03:00.0 to 64
[  392.385856] wifi%d: unable to attach hardware: 'Hardware didn't
respond as expected' (HAL status 3)
[  392.385870] ACPI: PCI interrupt for device 0000:03:00.0 disabled

What can I do to help make this chip work in the near future?

zw

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

end of thread, other threads:[~2008-06-16 15:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 15:24 Getting ath5k driver working with Thinkpad T61 [168c:1014] Bob Copeland
  -- strict thread matches above, loose matches on Subject: below --
2008-05-14 17:24 Zack Weinberg
2008-05-14 18:38 ` Bob Copeland
2008-05-14 18:45   ` Zack Weinberg
2008-05-14 19:09     ` Bob Copeland
2008-05-15 14:41       ` Zack Weinberg
2008-05-15 16:45         ` Bob Copeland
2008-05-15 16:53           ` Zack Weinberg
2008-05-15 20:44             ` Bob Copeland
2008-05-15 19:44 ` Nick Kossifidis
2008-05-15 19:53   ` Zack Weinberg
2008-05-16  0:50 ` Nick Kossifidis
2008-06-03 21:45   ` Zack Weinberg
2008-06-05 21:50     ` Bob Copeland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox