Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 2003 15:59:48 -0700 (PDT)
From:      wpaul@FreeBSD.ORG (Bill Paul)
To:        current@freebsd.org
Cc:        ticso@cicely9.cicely.de
Subject:   Possible EHCI bugs
Message-ID:  <20030615225948.4E9DD37B404@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

I was recently contacted by an individual at Transmeta who was trying
to use FreeBSD current with a board containing an EHCI USB controller
and encountered some problems with it. He original intent was to use
FreeBSD's USB 2.0 support and the if_axe driver to help debug a problem
with said hardware combination with another OS which shall remain
nameless. Along the way, he discovered the following:

- The USB_ATTACH() routine in if_axe.c would lead to a panic because
  uaa->iface was NULL. I consider this a bit peculiar because a) with
  my own test setup (my laptop, with UHCI controller), uaa->iface is
  always populated, and b) uaa->iface is set to something during
  the USB_PROBE() routine (it must be, otherwise the probe would fail).
  I worked around this by grabbing the interface handle using
  usbd_device2interface_handle(), but having the EHCI driver behave
  inconsistently with respect to the UHCI and OHCI driver seems a
  bit counterintuitive.

- The system panics under load. In this case, the load was induced
  by running bonnie on an NFS filesystem mount over the axe0 interface.
  Below is the console output with stack trace:

stray irq 7
Copyright (c) 1992-2003 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 5.1-CURRENT #3: Fri Jun 13 00:40:59 PDT 2003
     root@freebsd-maddox.transmeta.com:/usr/src/sys/i386/compile/EHCI
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0722000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0722294.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 800032593 Hz
CPU: Transmeta Proprietary/Confidential-NDA Required (800.03-MHz 686-class CPU)
   Origin = "GenuineTMx86"  Id = 0xf24
real memory  = 233766912 (222 MB)
avail memory = 219463680 (209 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD    RSDT  > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 12 entries at 0xc00fdf00
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
acpi0: power button is handled as a fixed feature programming model.
acpi0: sleep button is handled as a fixed feature programming model.
Timecounter "ACPI-safe"  frequency 3579545 Hz
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_tz0: <thermal zone> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 4 INTA is routed to irq 11
pcib0: slot 14 INTB is routed to irq 10
pcib0: slot 15 INTA is routed to irq 11
pcib0: slot 15 INTB is routed to irq 10
pcib0: slot 15 INTD is routed to irq 7
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci2: <ACPI PCI bus> on pcib2
isab0: <PCI-ISA bridge> at device 3.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge, PCI-unknown> at device 3.1 (no driver attached)
pci0: <multimedia, audio> at device 4.0 (no driver attached)
atapci0: <AcerLabs Aladdin UDMA100 controller> port 0x80a0-0x80af,0x374-0x377,0x170-0x17f,0x3f4-0x3f7,0x1f0-0x1ff at device 14.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <network, ethernet> at device 14.1 (no driver attached)
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xe0000-0xe0fff irq 11 at device 15.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: device problem, disabling port 2
ohci1: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xe8002000-0xe8002fff irq 10 at device 15.1 on pci0
usb1: OHCI version 1.0, legacy support
usb1: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xe8003400-0xe80034ff irq 7 at device 15.3 on pci0
ehci_pci_attach: companion usb0
ehci_pci_attach: companion usb1
usb2: EHCI version 1.0
usb2: companion controllers, 2 ports each: usb0 usb1
usb2: <EHCI (generic) USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: AcerLabs EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 6 ports with 6 removable, self powered
### axe_attach: uaa->iface = 0xc2281360, uaa->device = 0xc22dec00
### axe_attach: sc->axe_iface = 0xc22813a0
### axe_attach: id = 0xc22dcb89
axe0: D-Link 10/100 ethernet adapter, rev 2.00/0.01, addr 2
axe0: phyIDs: 0xe0 0x4
axe0: Ethernet address: 00:40:05:8f:50:73
axe0: phy readreg: phy: 0x0 reg: 0x1 val: 0x7809
axe0: phy readreg: phy: 0x0 reg: 0x1 val: 0x780d
axe0: phy readreg: phy: 0x0 reg: 0x2 val: 0x40
axe0: phy readreg: phy: 0x0 reg: 0x3 val: 0x61e4
miibus0: <MII bus> on axe0
bmtphy0: <BCM5221 10/100baseTX PHY> on miibus0
axe0: phy readreg: phy: 0x0 reg: 0x0 val: 0x3000
axe0: phy readreg: phy: 0x0 reg: 0x1 val: 0x7809
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.AC__._STA] (Node 0xc227d4c0), AE_AML_REGION_LIMIT
acpi_acad0: <AC adapter> on acpi0
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
acpi_cmbat0: <Control method Battery> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
ppc0 port 0x278-0x27f irq 5 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
orm0: <Option ROMs> at iomem 0xdc000-0xdffff,0xcf000-0xd07ff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._PSR] (Node 0xc227d4e0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
ad0: 19569MB <WDC WD205AA-00BAA0> [39761/16/63] at ata0-master UDMA66
acd0: CD-RW <TOSHIBA DVD-ROM SD-R1202> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
Loading configuration files.
Entropy harvesting: interrupts ethernet point_to_point.
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._PSR] (Node 0xc227d4e0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.AC__._PSR] (Node 0xc227d4e0), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-1287: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
     ACPI-0175: *** Error: Method execution failed [\_SB_.PCI0.BATT._STA] (Node 0xc227d400), AE_AML_REGION_LIMIT
swapon: adding /dev/ad0s1b as swap device
Starting file system checks:
/dev/ad0s1a: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1a: clean, 92577 free (233 frags, 11543 blocks, 0.2% fragmentation)
/dev/ad0s1e: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1e: clean, 128911 free (23 frags, 16111 blocks, 0.0% fragmentation)
/dev/ad0s1f: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1f: clean, 7870017 free (35137 frags, 979360 blocks, 0.4% fragmentation)
/dev/ad0s1d: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1d: clean, 125348 free (588 frags, 15595 blocks, 0.5% fragmentation)
Setting hostname: freebsd-maddox.transmeta.com.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
	inet 127.0.0.1 netmask 0xff000000
Additional routing options:.
hw.bus.devctl_disable: 0 -> 1
Mounting NFS file systems:.
Starting syslogd.
Jun 13 01:01:00  syslogd: /var/log/debug.log: No such file or directory
Jun 13 01:01:00 freebsd-maddox syslogd: kernel boot file is /boot/kernel/kernel
ELF ldconfig path: /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
NFS access cache time=2
Starting usbd.
Starting local daemons:.
Updating motd.
Configuring syscons: blanktime.
Starting sshd.
Starting sendmail.
Initial i386 initialization:.
Additional ABI support:.
Starting cron.
Local package initialization:.
Additional TCP options:.
Starting background file system checks in 60 seconds.

Fri Jun 13 01:01:06 PDT 2003
Jaxe0: read PHY failed
axe0: read PHY failed
axe0: read PHY failed
axe0: read PHY failed
Memory modified after free 0xc22e8310(12)
panic: Most recently used by USB

Debugger("panic")
Stopped at      Debugger+0x54:  xchgl   %ebx,in_Debugger.0
db> where
Debugger(c050426c,c05c6ca0,c051ae00,cbe11a48,1) at Debugger+0x54
panic(c051ae00,c04fc329,c,c083aa44,c083aa20) at panic+0xab
mtrash_ctor(c22e8310,10,0,554,0) at mtrash_ctor+0x5d
uma_zalloc_arg(c083aa20,0,1,0,0) at uma_zalloc_arg+0x17f
malloc(2,c05527a0,1,c23bd200,cbe11af8) at malloc+0xd4
ehci_allocm(c22e0400,c23bd23c,2,c0321dbc,c23bd24c) at ehci_allocm+0x27
usbd_transfer(c23bd200,cbe11b48,c02b9b7d,c23bd200,c22dec00) at usbd_transfer+0x5c
usbd_sync_transfer(c23bd200,c22dec00,0,1388,cbe11ba0) at usbd_sync_transfer+0x1c
usbd_do_request_flags_pipe(c22dec00,c22deb80,cbe11ba0,cbe11bce,0) at usbd_do_request_flags_pipe+0x7d
usbd_do_request_flags(c22dec00,cbe11ba0,cbe11bce,0,0) at usbd_do_request_flags+0x3c
usbd_do_request(c22dec00,cbe11ba0,cbe11bce,7c0,20001) at usbd_do_request+0x37
axe_cmd(c22e2000,2007,1,0,cbe11bce) at axe_cmd+0x92
axe_miibus_readreg(c22deb00,0,1,c21ad1f0,c22de780) at axe_miibus_readreg+0x9a
MIIBUS_READREG(c22deb00,0,1,cbe11c28,c024c256) at MIIBUS_READREG+0x56
miibus_readreg(c22de780,0,1,c22dcac0,c22dca40) at miibus_readreg+0x27
MIIBUS_READREG(c22de780,0,1,c22de780,c22814a0) at MIIBUS_READREG+0x56
bmtphy_status(c22dca40,0,c0de184c,c05ca1c8,c22dca40) at bmtphy_status+0x3c
bmtphy_service(c22dca40,c22dcac0,1,c22dcac0,c22e2000) at bmtphy_service+0xe8
mii_tick(c22dcac0,c050379c,7,7,c22e2000) at mii_tick+0x32
axe_tick(c22e2000,0,c050526d,d0,1) at axe_tick+0x2f
softclock(0,0,c05020e3,231,c0de1790) at softclock+0x1b8
ithread_loop(c0de0100,cbe11d48,c0501fa8,30c,65d7c) at ithread_loop+0x182
fork_exit(c02fef90,c0de0100,cbe11d48) at fork_exit+0xc0
fork_trampoline() at fork_trampoline+0x1a
--- trap 0x1, eip = 0, esp = 0xcbe11d7c, ebp = 0 ---
db>


This seems to indicate something in the USB code is re-using a
free()ed memory buffer. Unfortunately, I don't have this particular
hardware available to me, and I don't know how much debugging support
the individual at Transmeta will be able to offer. (He has his own
problems.) Hopefully this will at least help spur some investigation.

-Bill

--
=============================================================================
-Bill Paul            (510) 749-2329 | Senior Engineer, Master of Unix-Fu
                 wpaul@windriver.com | Wind River Systems
=============================================================================
      "If stupidity were a handicap, you'd have the best parking spot."
=============================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030615225948.4E9DD37B404>