No psm with if_ath on current

Kevin Oberman oberman at es.net
Thu Oct 19 16:50:22 UTC 2006


I sent this off to current@ over aweek ago with no response. It's way too
far into the kernel glop for me to have any idea what might be going on,
but I can confirm that I still see in on a current system updated on
Oct. 15.

If I boot with if_ath loaded, my laptop does not find the mouse. If I
load if_ath after boot, everything seems to be fine.

I am running on a Lenovo T43. No APIC since that used to break it, but I
plan to try apic again soon as it has had some work done to it recently.

I compared 'boot -v' output I found some big clues as to what is
happening, but I am not sure if I am seeing a cause or an effect.

First, the diff:
8,17c8,20
< Preloaded elf kernel "/boot/kernel/kernel" at 0xc0846000.
< Preloaded elf module "/boot/kernel/vesa.ko" at 0xc0846234.
< Preloaded elf module "/boot/kernel/snd_ich.ko" at 0xc08462e0.
< Preloaded elf module "/boot/kernel/sound.ko" at 0xc084638c.
< Preloaded elf module "/boot/kernel/acpi_video.ko" at 0xc0846438.
< Preloaded elf module "/boot/kernel/acpi.ko" at 0xc08464e8.
< Preloaded elf module "/boot/kernel/cpufreq.ko" at 0xc0846594.
< Preloaded elf module "/boot/kernel/acpi_ibm.ko" at 0xc0846640.
< Preloaded elf module "/boot/kernel/wlan_wep.ko" at 0xc08466f0.
< Calibrating clock(s) ... i8254 clock: 1193180 Hz
---
> Preloaded elf kernel "/boot/kernel/kernel" at 0xc088d000.
> Preloaded elf module "/boot/kernel/vesa.ko" at 0xc088d234.
> Preloaded elf module "/boot/kernel/snd_ich.ko" at 0xc088d2e0.
> Preloaded elf module "/boot/kernel/sound.ko" at 0xc088d38c.
> Preloaded elf module "/boot/kernel/acpi_video.ko" at 0xc088d438.
> Preloaded elf module "/boot/kernel/acpi.ko" at 0xc088d4e8.
> Preloaded elf module "/boot/kernel/cpufreq.ko" at 0xc088d594.
> Preloaded elf module "/boot/kernel/acpi_ibm.ko" at 0xc088d640.
> Preloaded elf module "/boot/kernel/wlan_wep.ko" at 0xc088d6f0.
> Preloaded elf module "/boot/kernel/if_ath.ko" at 0xc088d7a0.
> Preloaded elf module "/boot/kernel/ath_hal.ko" at 0xc088d84c.
> Preloaded elf module "/boot/kernel/ath_rate.ko" at 0xc088d8f8.
> Calibrating clock(s) ... i8254 clock: 1193175 Hz

Loads the kernel at a much higher address when ath is loaded. I have no
idea why or if it has any significance.

47a51
> ath_rate: version 1.2 <SampleRate bit-rate selection algorithm>
49d52
< io: <I/O>
64a68,69
> io: <I/O>
> ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)

Well, ath_rate and ath_hal probe when they are loaded and I/O probes at
a slightly different point, but it does not look significant.

124c129
< ACPI timer: 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/2 -> 10
---
> ACPI timer: 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 -> 10

I have no idea what, if anything this means.

470c475,491
< pci11: <network, ethernet> at device 2.0 (no driver attached)
---
> ath0: <Atheros 5212> mem 0xb4000000-0xb400ffff irq 11 at device 2.0 on pci11
> ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xb4000000
> ath0: [MPSAFE]
> ath0: bpf attached
> ath0: Ethernet address: 00:14:a4:60:f2:e3
> ath0: bpf attached
> ath0: bpf attached
> ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> ath0: mac 5.9 phy 4.3 radio 3.6
> ath0: Use hw queue 1 for WME_AC_BE traffic
> ath0: Use hw queue 0 for WME_AC_BK traffic
> ath0: Use hw queue 2 for WME_AC_VI traffic
> ath0: Use hw queue 3 for WME_AC_VO traffic
> ath0: Use hw queue 8 for CAB traffic
> ath0: Use hw queue 9 for beacons

if_ath is loaded and probes the card as expected.

490,491c511,512
< pcm0: sndbuf_setmap 3e68f000, 4000; 0xe3cbb000 -> 3e68f000
< pcm0: sndbuf_setmap 3e68b000, 4000; 0xe3cbf000 -> 3e68b000
---
> pcm0: sndbuf_setmap 3e667000, 4000; 0xe3ce4000 -> 3e667000
> pcm0: sndbuf_setmap 3e65e000, 4000; 0xe3ce8000 -> 3e65e000

Slightly different mapping, but probably of no significance.

527,533c548
< psmcpnp0: <PS/2 mouse port> irq 12 on acpi0
< psm0: current command byte:0047
< psm0: <PS/2 Mouse> flags 0x2000 irq 12 on atkbdc0
< psm0: [GIANT-LOCKED]
< psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons
< psm0: config:00002000, flags:00000008, packet size:3
< psm0: syncmask:c0, syncbits:00
---
> acpi_ibm0: <IBM ThinkPad ACPI Extras> irq 12 on acpi0
549d563
< acpi_ibm0: <IBM ThinkPad ACPI Extras> on acpi0

psm only is probed if if_ath is not.

The final one is acpi_ibm0. When ath is loaded, it grabs IRQ12 which
should handle psm0. If ath is not present, it is already tied to psm0
and acpi_ibm lists no IRQ at all. With or without an IRQ, it seems to
work fine.

I don't know exactly when this first showed up as I don't often boot
with if_ath loaded...mostly whan on travel...as I have other stuff
(profile.sh) which loads it only as needed when I am at home or in an
office. 

Can anyone suggest what might be going on here?

I'd be happy to provide other data if you can tell me what would help.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 224 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mobile/attachments/20061019/97add174/attachment.pgp


More information about the freebsd-mobile mailing list