From owner-freebsd-mobile@FreeBSD.ORG Thu Oct 19 16:50:22 2006 Return-Path: X-Original-To: mobile@freebsd.org Delivered-To: freebsd-mobile@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72ED616A403 for ; Thu, 19 Oct 2006 16:50:22 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18EE343D45 for ; Thu, 19 Oct 2006 16:50:21 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id XAR10321 for ; Thu, 19 Oct 2006 09:50:21 -0700 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 3CA6B4504D for ; Thu, 19 Oct 2006 09:50:20 -0700 (PDT) To: mobile@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1161276620_43143P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 19 Oct 2006 09:50:20 -0700 From: "Kevin Oberman" Message-Id: <20061019165020.3CA6B4504D@ptavv.es.net> Cc: Subject: No psm with if_ath on current X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2006 16:50:22 -0000 --==_Exmh_1161276620_43143P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 49d52 < io: 64a68,69 > io: > 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: at device 2.0 (no driver attached) --- > ath0: 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: irq 12 on acpi0 < psm0: current command byte:0047 < psm0: 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: irq 12 on acpi0 549d563 < acpi_ibm0: 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@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1161276620_43143P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFFN6zMkn3rs5h7N1ERAlnHAJ4m4eB+TdiIPm8R5Sd5/LJsMC2zmgCfcB42 0fLqLa2zYR8/j4HQH3/2AKY= =3kdp -----END PGP SIGNATURE----- --==_Exmh_1161276620_43143P--