From owner-freebsd-i386@FreeBSD.ORG Fri Jul 13 16:50:02 2007 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1215516A402 for ; Fri, 13 Jul 2007 16:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E301B13C491 for ; Fri, 13 Jul 2007 16:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6DGo1ud080229 for ; Fri, 13 Jul 2007 16:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6DGo1Qg080228; Fri, 13 Jul 2007 16:50:01 GMT (envelope-from gnats) Resent-Date: Fri, 13 Jul 2007 16:50:01 GMT Resent-Message-Id: <200707131650.l6DGo1Qg080228@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Grow Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4BF616A400 for ; Fri, 13 Jul 2007 16:40:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id B48D013C4A7 for ; Fri, 13 Jul 2007 16:40:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l6DGeYpY021644 for ; Fri, 13 Jul 2007 16:40:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l6DGeYoc021643; Fri, 13 Jul 2007 16:40:34 GMT (envelope-from nobody) Message-Id: <200707131640.l6DGeYoc021643@www.freebsd.org> Date: Fri, 13 Jul 2007 16:40:34 GMT From: Alan Grow To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: i386/114562: [acpi] cardbus is dead after s3 X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 16:50:02 -0000 >Number: 114562 >Category: i386 >Synopsis: [acpi] cardbus is dead after s3 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 13 16:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Alan Grow >Release: 6.2 >Organization: >Environment: FreeBSD scalar 7.0-CURRENT FreeBSD 7.0-CURRENT #9: Fri Jul 13 00:44:41 EDT 2007 root@scalar:/usr/obj/usr/src/sys/SCALAR i386 >Description: I've tracked it down to a failed pci_read_device() call during cardbus_attach_card(). It seems we can't even read off the vendor id: db> s [thread pid 33 tid 100037 ] Stopped at pcireg_cfgread+0x215: inl %dx,%eax db> s [thread pid 33 tid 100037 ] Stopped at pcireg_cfgread+0x216: movl %eax,%ebx db> p $eax ffffffff db> p $edx cfc Same problem on both 6.2 and -CURRENT. The machine is a Thinkpad T43 with a TI1510 CardBus Bridge. Here's some more info. $ pciconf -l hostb0@pci0:0:0: class=0x060000 card=0x05751014 chip=0x25908086 rev=0x03 hdr=0x00 vgapci0@pci0:2:0: class=0x030000 card=0x05821014 chip=0x25928086 rev=0x03 hdr=0x00 vgapci1@pci0:2:1: class=0x038000 card=0x05821014 chip=0x27928086 rev=0x03 hdr=0x00 pcib1@pci0:28:0: class=0x060400 card=0x00000000 chip=0x26608086 rev=0x03 hdr=0x01 pcib2@pci0:28:2: class=0x060400 card=0x00000000 chip=0x26648086 rev=0x03 hdr=0x01 uhci0@pci0:29:0: class=0x0c0300 card=0x05651014 chip=0x26588086 rev=0x03 hdr=0x00 uhci1@pci0:29:1: class=0x0c0300 card=0x05651014 chip=0x26598086 rev=0x03 hdr=0x00 uhci2@pci0:29:2: class=0x0c0300 card=0x05651014 chip=0x265a8086 rev=0x03 hdr=0x00 uhci3@pci0:29:3: class=0x0c0300 card=0x05651014 chip=0x265b8086 rev=0x03 hdr=0x00 ehci0@pci0:29:7: class=0x0c0320 card=0x05661014 chip=0x265c8086 rev=0x03 hdr=0x00 pcib3@pci0:30:0: class=0x060401 card=0x00000000 chip=0x24488086 rev=0xd3 hdr=0x01 pcm0@pci0:30:2: class=0x040100 card=0x05671014 chip=0x266e8086 rev=0x03 hdr=0x00 none0@pci0:30:3: class=0x070300 card=0x05761014 chip=0x266d8086 rev=0x03 hdr=0x00 isab0@pci0:31:0: class=0x060100 card=0x05681014 chip=0x26418086 rev=0x03 hdr=0x00 atapci0@pci0:31:2: class=0x010180 card=0x056a1014 chip=0x26538086 rev=0x03 hdr=0x00 none1@pci0:31:3: class=0x0c0500 card=0x056b1014 chip=0x266a8086 rev=0x03 hdr=0x00 bge0@pci2:0:0: class=0x020000 card=0x05771014 chip=0x167d14e4 rev=0x11 hdr=0x00 cbb0@pci4:0:0: class=0x060700 card=0x05281014 chip=0xac56104c rev=0x00 hdr=0x02 iwi0@pci4:2:0: class=0x028000 card=0x27118086 chip=0x42208086 rev=0x05 hdr=0x00 $ dmesg Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-CURRENT #9: Fri Jul 13 00:44:41 EDT 2007 root@scalar:/usr/obj/usr/src/sys/SCALAR ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1.86GHz (798.06-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8 Features=0xafe9fbff Features2=0x180 AMD Features=0x100000 real memory = 527302656 (502 MB) avail memory = 502288384 (479 MB) ACPI Warning (tbfadt-0505): Optional field "Gpe1Block" has zero address or length: 0 102C/0 [20070320] ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 acpi_perf0: on cpu0 acpi_throttle0: on cpu0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0x90080000-0x900fffff,0xb0000000-0xbfffffff,0x90000000-0x9003ffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 7932k stolen memory agp0: aperture size is 256M vgapci1: at device 2.1 on pci0 pcib1: irq 20 at device 28.0 on pci0 pci2: on pcib1 pci2:0:0: bad VPD cksum, remain 14 bge0: mem 0x90100000-0x9010ffff irq 16 at device 0.0 on pci2 miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0: Ethernet address: 00:16:41:11:09:3d bge0: [ITHREAD] pcib2: irq 22 at device 28.2 on pci0 pci3: on pcib2 uhci0: port 0x1820-0x183f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1840-0x185f irq 17 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1860-0x187f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1880-0x189f irq 19 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0x90040000-0x900403ff irq 19 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered pcib3: at device 30.0 on pci0 pci4: on pcib3 cbb0: mem 0x90300000-0x90300fff irq 16 at device 0.0 on pci4 cbb0: Found memory at 90300000 cbb0: Secondary bus is 5 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] iwi0: mem 0x90301000-0x90301fff irq 21 at device 2.0 on pci4 iwi0: Ethernet address: 00:16:6f:1a:58:10 iwi0: [ITHREAD] pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem 0x90040800-0x900409ff,0x90040400-0x900404ff irq 22 at device 30.2 on pci0 pcm0: [ITHREAD] pcm0: pci0: at device 30.3 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.2 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] ppc0: port 0x3bc-0x3be irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] battery0: on acpi0 acpi_acad0: on acpi0 pmtimer0 on isa0 orm0: at iomem 0xd1000-0xd1fff,0xdc000-0xdffff,0xe0000-0xeffff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 798057355 Hz quality 800 Timecounters tick every 1.000 msec Status is 0x30000820 cbb0: card inserted: event=0x00000000, state=30000820 cbb0: cbb_power: 3V ad0: 95396MB at ata0-master UDMA100 acd0: CDRW at ata1-master UDMA33 ath0: mem 0x90310000-0x9031ffff irq 16 at device 0.0 on cardbus0 ath0: [ITHREAD] ath0: using obsoleted if_watchdog interface ath0: Ethernet address: 00:13:46:c4:d9:9a ath0: mac 7.8 phy 4.5 radio 5.6 Trying to mount root from ufs:/dev/ad0s1a drm0: on vgapci0 info: [drm] AGP at 0x90080000 0MB info: [drm] Initialized i915 1.5.0 20060119 drm0: [ITHREAD] ath0: detached cbb0: cbb_power: 0V cbb0: PCI Memory allocated: 90300000 wakeup from sleeping state (slept 00:00:06) Status is 0x30000820 cbb0: card inserted: event=0x00000000, state=30000820 cbb0: cbb_power: 3V cbb0: cbb_power: 0V >How-To-Repeat: $ acpiconf -s 3 $ # wakeup $ # insert new cardbus card >Fix: >Release-Note: >Audit-Trail: >Unformatted: