Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2009 16:20:17 -0400
From:      Andrey Shuvikov <mr.hyro@gmail.com>
To:        Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
Cc:        usb@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Zero size allocation with Yealink VOIP USB Phone, 7.2-RELEASE  (Was: Re: hald: kmem_malloc error)
Message-ID:  <24393ae80907181320y152bba49m28bac22aaa070710@mail.gmail.com>
In-Reply-To: <200907181029.00939.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
References:  <24393ae80907171959u62705d8akb1e0aaec1d2f2c44@mail.gmail.com> <200907172202.43824.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <24393ae80907180929x71d2cf1frb8f1c900bf79c46a@mail.gmail.com> <200907181029.00939.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 18, 2009 at 2:29 PM, Mel
Flynn<mel.flynn+fbsd.questions@mailing.thruhere.net> wrote:
> [ Adding usb@ and keeping long context for that purpose ]
>
> On Saturday 18 July 2009 08:29:32 Andrey Shuvikov wrote:
>> On Sat, Jul 18, 2009 at 2:02 AM, Mel
>>
>> Flynn<mel.flynn+fbsd.questions@mailing.thruhere.net> wrote:
>> > On Friday 17 July 2009 18:59:49 Andrey Shuvikov wrote:
>> >> I'm trying to configure X and according to the manual enabled DBUS an=
d
>> >> HALD. But when hald is starting up I get kernel panic:
>> >>
>> >> kmem_malloc: entry not found or misaligned
>> >>
>> >> Does anyone know what could be wrong? I have memory dump if it can
>> >> help but it's big (173M).
>> >
>> > If you have a file /var/crash/vmcore.0, you will want to run the
>> > following command:
>> > kgdb /boot/kernel/kernel /var/crash/vmcore.0
>> > Then type bt at the prompt and paste output here.
>> >
>> > More info:
>> > <http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/=
ker
>> >neldebug.html>
>> >
>> > uname -a and dmesg output also help in diagnosing this problem.
>> > --
>> > Mel
>>
>> The uname output is:
>>
>> FreeBSD foxtrot.home 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May =A01
>> 08:49:13 UTC 2009
>> root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC =A0i386
>>
>> The kgdb output:
>>
>> GNU gdb 6.1.1 [FreeBSD]
>> Copyright 2004 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you
>> are welcome to change it and/or distribute copies of it under certain
>> conditions. Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB. =A0Type "show warranty" for det=
ails.
>> This GDB was configured as "i386-marcel-freebsd"...
>>
>> Unread portion of the kernel message buffer:
>> panic: kmem_malloc: entry not found or misaligned
>> cpuid =3D 0
>> Uptime: 52s
>> Physical memory: 2034 MB
>> Dumping 176 MB: 161 145 129 113 97 81 65 49 33 17 1
>>
>> Reading symbols from /boot/kernel/linux.ko...Reading symbols from
>> /boot/kernel/linux.ko.symbols...done.
>> done.
>> Loaded symbols for /boot/kernel/linux.ko
>> #0 =A0doadump () at pcpu.h:196
>> 196 =A0 pcpu.h: No such file or directory.
>> =A0 =A0 =A0 in pcpu.h
>> (kgdb) bt
>> #0 =A0doadump () at pcpu.h:196
>> #1 =A00xc07e25a7 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdow=
n.c:418
>> #2 =A00xc07e2879 in panic (fmt=3DVariable "fmt" is not available.
>> ) at /usr/src/sys/kern/kern_shutdown.c:574
>> #3 =A00xc0a1cdc0 in kmem_malloc (map=3D0xc147108c, size=3D0, flags=3D2)
>> =A0 =A0 at /usr/src/sys/vm/vm_kern.c:381
>> #4 =A00xc0a13357 in page_alloc (zone=3D0x0, bytes=3D0, pflag=3D0xe7b6497=
f "\002",
>> =A0 =A0 wait=3D2) at /usr/src/sys/vm/uma_core.c:952
>> #5 =A00xc0a15e20 in uma_large_malloc (size=3D0, wait=3D2)
>> =A0 =A0 at /usr/src/sys/vm/uma_core.c:2706
>> #6 =A00xc07d16f8 in malloc (size=3D0, mtp=3D0xc0c46580, flags=3D2)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^
>> =A0 =A0 at /usr/src/sys/kern/kern_malloc.c:393
>> #7 =A00xc0743044 in uhidopen (dev=3D0xc5713000, flag=3D1, mode=3D8192,
>> p=3D0xc5c6a460) at /usr/src/sys/dev/usb/uhid.c:428
> In kgdb can you print the entire softcell as follows:
> f 7
> p *sc
>
> Hopefully that will provide sufficient information for the usb developers=
 to
> fix this problem.
>
>> #8 =A00xc07a56a0 in giant_open (dev=3D0xc5713000, oflags=3D1, devtype=3D=
8192,
>> =A0 =A0 td=3D0xc5c6a460) at /usr/src/sys/kern/kern_conf.c:332
>> #9 =A00xc076e1fc in devfs_open (ap=3D0xe7b64a88)
>> =A0 =A0 at /usr/src/sys/fs/devfs/devfs_vnops.c:908
>> #10 0xc0af88d2 in VOP_OPEN_APV (vop=3D0xc0c47ee0, a=3D0xe7b64a88)
>> =A0 =A0 at vnode_if.c:371
>> #11 0xc0870829 in vn_open_cred (ndp=3D0xe7b64b7c, flagp=3D0xe7b64c78, cm=
ode=3D0,
>> =A0 =A0 cred=3D0xc5470100, fp=3D0xc5b57da8) at vnode_if.h:199
>> #12 0xc0870973 in vn_open (ndp=3D0xe7b64b7c, flagp=3D0xe7b64c78, cmode=
=3D0,
>> =A0 =A0 fp=3D0xc5b57da8) at /usr/src/sys/kern/vfs_vnops.c:94
>> #13 0xc086e0a3 in kern_open (td=3D0xc5c6a460,
>> =A0 =A0 path=3D0xbfbfe90c <Address 0xbfbfe90c out of bounds>,
>> =A0 =A0 pathseg=3DUIO_USERSPACE, flags=3D1, mode=3D0)
>> =A0 =A0 at /usr/src/sys/kern/vfs_syscalls.c:1042
>> #14 0xc086e610 in open (td=3D0xc5c6a460, uap=3D0xe7b64cfc)
>> =A0 =A0 at /usr/src/sys/kern/vfs_syscalls.c:1009
>> #15 0xc0ae4495 in syscall (frame=3D0xe7b64d38)
>> =A0 =A0 at /usr/src/sys/i386/i386/trap.c:1090
>> #16 0xc0ac9260 in Xint0x80_syscall ()
>> =A0 =A0 at /usr/src/sys/i386/i386/exception.s:255
>> #17 0x00000033 in ?? ()
>> Previous frame inner to this frame (corrupt stack?)
>> (kgdb) q
>>
>> The dmesg:
>>
>> Copyright (c) 1992-2009 The FreeBSD Project.
>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>> =A0 =A0 =A0 The Regents of the University of California. All rights rese=
rved.
>> FreeBSD is a registered trademark of The FreeBSD Foundation.
>> FreeBSD 7.2-RELEASE #0: Fri May =A01 08:49:13 UTC 2009
>> =A0 =A0 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
>> Timecounter "i8254" frequency 1193182 Hz quality 0
>> CPU: Intel(R) Core(TM)2 Duo CPU =A0 =A0 E8400 =A0@ 3.00GHz (2999.67-MHz =
686-class
>> CPU) Origin =3D "GenuineIntel" =A0Id =3D 0x10676 =A0Stepping =3D 6
>>
>> Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P=
GE,MC
>>A,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>> Features2=3D0x8e3fd<SSE3,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xT=
PR,PD
>>CM,SSE4.1> AMD Features=3D0x20100000<NX,LM>
>> =A0 AMD Features2=3D0x1<LAHF>
>> =A0 Cores per package: 2
>> real memory =A0=3D 2146893824 (2047 MB)
>> avail memory =3D 2091225088 (1994 MB)
>> ACPI APIC Table: <A_M_I_ OEMAPIC >
>> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>> =A0cpu0 (BSP): APIC ID: =A00
>> =A0cpu1 (AP): APIC ID: =A01
>> ioapic0 <Version 2.0> irqs 0-23 on motherboard
>> kbd1 at kbdmux0
>> acpi0: <A_M_I_ OEMRSDT> on motherboard
>> acpi0: [ITHREAD]
>> acpi0: Power Button (fixed)
>> acpi0: reservation of 0, a0000 (3) failed
>> acpi0: reservation of 100000, 7ff00000 (3) failed
>> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
>> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
>> acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on
>> acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900
>> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
>> pci0: <ACPI PCI bus> on pcib0
>> pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
>> pci1: <ACPI PCI bus> on pcib1
>> vgapci0: <VGA-compatible display> port 0xc000-0xc0ff mem
>> 0xd0000000-0xdfffffff,0xfe8e0000-0xfe8effff irq 16 at device 0.0 on
>> pci1
>> pci1: <multimedia, HDA> at device 0.1 (no driver attached)
>> uhci0: <UHCI (generic) USB controller> port 0xb800-0xb81f irq 16 at
>> device 26.0 on pci0
>> uhci0: [GIANT-LOCKED]
>> uhci0: [ITHREAD]
>> usb0: <UHCI (generic) USB controller> on uhci0
>> usb0: USB revision 1.0
>> uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
>> uhub0: 2 ports with 2 removable, self powered
>> uhci1: <UHCI (generic) USB controller> port 0xb880-0xb89f irq 21 at
>> device 26.1 on pci0
>> uhci1: [GIANT-LOCKED]
>> uhci1: [ITHREAD]
>> usb1: <UHCI (generic) USB controller> on uhci1
>> usb1: USB revision 1.0
>> uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
>> uhub1: 2 ports with 2 removable, self powered
>> uhci2: <UHCI (generic) USB controller> port 0xbc00-0xbc1f irq 18 at
>> device 26.2 on pci0
>> uhci2: [GIANT-LOCKED]
>> uhci2: [ITHREAD]
>> usb2: <UHCI (generic) USB controller> on uhci2
>> usb2: USB revision 1.0
>> uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
>> uhub2: 2 ports with 2 removable, self powered
>> ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe7ffc00-0xfe7fffff
>> irq 18 at device 26.7 on pci0
>> ehci0: [GIANT-LOCKED]
>> ehci0: [ITHREAD]
>> usb3: EHCI version 1.0
>> usb3: companion controllers, 2 ports each: usb0 usb1 usb2
>> usb3: <EHCI (generic) USB 2.0 controller> on ehci0
>> usb3: USB revision 2.0
>> uhub3: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
>> uhub3: 6 ports with 6 removable, self powered
>> umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/1.00, addr 2> =
on
>> uhub3 pci0: <multimedia, HDA> at device 27.0 (no driver attached)
>> pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
>> pci4: <ACPI PCI bus> on pcib2
>> pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0
>> pci3: <ACPI PCI bus> on pcib3
>> atapci0: <Marvell 88SX6121 UDMA133 controller> port
>> 0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0xe400-0xe40f
>> mem 0xfeaffc00-0xfeafffff irq 16 at device 0.0 on pci3
>> atapci0: [ITHREAD]
>> ata2: <ATA channel 0> on atapci0
>> ata2: [ITHREAD]
>> pcib4: <ACPI PCI-PCI bridge> irq 16 at device 28.5 on pci0
>> pci2: <ACPI PCI bus> on pcib4
>> ale0: <Atheros AR8121/AR8113/AR8114 PCIe Ethernet> port 0xdc00-0xdc7f
>> mem 0xfe9c0000-0xfe9fffff irq 17 at device 0.0 on pci2
>> ale0: 960 Tx FIFO, 1024 Rx FIFO
>> ale0: Using 1 MSI messages.
>> miibus0: <MII bus> on ale0
>> atphy0: <Atheros F1 10/100/1000 PHY> PHY 0 on miibus0
>> atphy0: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX=
,
>> auto ale0: Ethernet address: 00:22:15:5a:67:e8
>> ale0: [FILTER]
>> uhci3: <UHCI (generic) USB controller> port 0xb080-0xb09f irq 23 at
>> device 29.0 on pci0
>> uhci3: [GIANT-LOCKED]
>> uhci3: [ITHREAD]
>> usb4: <UHCI (generic) USB controller> on uhci3
>> usb4: USB revision 1.0
>> uhub4: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb4
>> uhub4: 2 ports with 2 removable, self powered
>> uhci4: <UHCI (generic) USB controller> port 0xb400-0xb41f irq 19 at
>> device 29.1 on pci0
>> uhci4: [GIANT-LOCKED]
>> uhci4: [ITHREAD]
>> usb5: <UHCI (generic) USB controller> on uhci4
>> usb5: USB revision 1.0
>> uhub5: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb5
>> uhub5: 2 ports with 2 removable, self powered
>> uhci5: <UHCI (generic) USB controller> port 0xb480-0xb49f irq 18 at
>> device 29.2 on pci0
>> uhci5: [GIANT-LOCKED]
>> uhci5: [ITHREAD]
>> usb6: <UHCI (generic) USB controller> on uhci5
>> usb6: USB revision 1.0
>> uhub6: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb6
>> uhub6: 2 ports with 2 removable, self powered
>> ehci1: <EHCI (generic) USB 2.0 controller> mem 0xfe7ff800-0xfe7ffbff
>> irq 23 at device 29.7 on pci0
>> ehci1: [GIANT-LOCKED]
>> ehci1: [ITHREAD]
>> usb7: EHCI version 1.0
>> usb7: companion controllers, 2 ports each: usb4 usb5 usb6
>> usb7: <EHCI (generic) USB 2.0 controller> on ehci1
>> usb7: USB revision 2.0
>> uhub7: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb7
>> uhub7: 6 ports with 6 removable, self powered
>> ugen0: <Microsoft Microsoft LifeCam VX-5000, class 239/2, rev
>> 2.00/1.00, addr 2> on uhub7
>> pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0
>> pci5: <ACPI PCI bus> on pcib5
>> fwohci0: <Lucent FW322/323> mem 0xfebff000-0xfebfffff irq 19 at device
>> 3.0 on pci5
>> fwohci0: [FILTER]
>> fwohci0: OHCI version 1.0 (ROM=3D1)
>> fwohci0: No. of Isochronous channels is 8.
>> fwohci0: EUI64 00:1e:8c:00:01:63:47:d0
>> fwohci0: Phy 1394a available S400, 2 ports.
>> fwohci0: Link S400, max_rec 2048 bytes.
>> firewire0: <IEEE1394(FireWire) bus> on fwohci0
>> fwe0: <Ethernet over FireWire> on firewire0
>> if_fwe0: Fake Ethernet address: 02:1e:8c:63:47:d0
>> fwe0: Ethernet address: 02:1e:8c:63:47:d0
>> fwip0: <IP over FireWire> on firewire0
>> fwip0: Firewire address: 00:1e:8c:00:01:63:47:d0 @ 0xfffe00000000,
>> S400, maxrec 2048
>> sbp0: <SBP-2/SCSI over FireWire> on firewire0
>> dcons_crom0: <dcons configuration ROM> on firewire0
>> dcons_crom0: bus_addr 0x12e4000
>> fwohci0: Initiate bus reset
>> fwohci0: BUS reset
>> fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode
>> isab0: <PCI-ISA bridge> at device 31.0 on pci0
>> isa0: <ISA bus> on isab0
>> atapci1: <Intel ICH10 SATA300 controller> port
>> 0xa000-0xa007,0x9c00-0x9c03,0x9880-0x9887,0x9800-0x9803,0x9480-0x948f,0x=
940
>>0-0x940f irq 19 at device 31.2 on pci0
>> atapci1: [ITHREAD]
>> ata3: <ATA channel 0> on atapci1
>> ata3: [ITHREAD]
>> ata4: <ATA channel 1> on atapci1
>> ata4: [ITHREAD]
>> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
>> atapci2: <Intel ICH10 SATA300 controller> port
>> 0xb000-0xb007,0xac00-0xac03,0xa880-0xa887,0xa800-0xa803,0xa480-0xa48f,0x=
a40
>>0-0xa40f irq 19 at device 31.5 on pci0
>> atapci2: [ITHREAD]
>> ata5: <ATA channel 0> on atapci2
>> ata5: [ITHREAD]
>> ata6: <ATA channel 1> on atapci2
>> ata6: [ITHREAD]
>> acpi_button0: <Power Button> on acpi0
>> fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq
>> 2 on acpi0
>> fdc0: [FILTER]
>> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
>> sio0: configured irq 4 not in bitmap of probed irqs 0
>> sio0: port may not be enabled
>> sio0: configured irq 4 not in bitmap of probed irqs 0
>> sio0: port may not be enabled
>> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
>> acpi0 sio0: type 16550A
>> sio0: [FILTER]
>> atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
>> atkbd0: <AT Keyboard> irq 1 on atkbdc0
>> kbd0 at atkbd0
>> atkbd0: [GIANT-LOCKED]
>> atkbd0: [ITHREAD]
>> psm0: <PS/2 Mouse> irq 12 on atkbdc0
>> psm0: [GIANT-LOCKED]
>> psm0: [ITHREAD]
>> psm0: model IntelliMouse, device ID 3
>> cpu0: <ACPI CPU> on acpi0
>> ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] - =A0EE,
>> should be E5 [20070320]
>> est0: <Enhanced SpeedStep Frequency Control> on cpu0
>> p4tcc0: <CPU Frequency Thermal Control> on cpu0
>> cpu1: <ACPI CPU> on acpi0
>> est1: <Enhanced SpeedStep Frequency Control> on cpu1
>> est: CPU supports Enhanced Speedstep, but is not recognized.
>> est: cpu_vendor GenuineIntel, msr 618092006000920
>> device_attach: est1 attach returned 6
>> p4tcc1: <CPU Frequency Thermal Control> on cpu1
>> pmtimer0 on isa0
>> orm0: <ISA Option ROM> at iomem 0xd0000-0xd27ff pnpid ORM0000 on isa0
>> ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
>> ata0: [ITHREAD]
>> ata1 at port 0x170-0x177,0x376 irq 15 on isa0
>> ata1: [ITHREAD]
>> ppc0: parallel port not found.
>> sc0: <System console> at flags 0x100 on isa0
>> sc0: VGA <16 virtual consoles, flags=3D0x300>
>> 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 isa=
0
>> uhid0: <Yealink Network Technology Ltd. VOIP USB Phone, class 0/0, rev
>> 1.01/0.00, addr 2> on uhub5
>> Timecounters tick every 1.000 msec
>> firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me)
>> firewire0: bus manager 0 (me)
>> acd0: DVDR <PLEXTOR DVDR PX-712A/1.04> at ata2-master UDMA33
>> ad6: 152627MB <WDC WD1600JS-00SGB0 20.06C03> at ata3-master SATA300
>> ad8: 305245MB <WDC WD3200AAKS-00VYA0 12.01B02> at ata4-master SATA300
>> GEOM_LABEL: Label for provider ad6s1 is msdosfs/FREEDOS.
>> GEOM_LABEL: Label for provider ad8s1 is ntfs/New Volume.
>> GEOM_LABEL: Label for provider ad6s3a is ufsid/4a5a61fa90383ccc.
>> GEOM_LABEL: Label for provider ad6s3d is ufsid/4a5a61fc87a6c3a0.
>> GEOM_LABEL: Label for provider ad6s3e is ufsid/4a5a61fa5b9a9e33.
>> GEOM_LABEL: Label for provider ad6s3f is ufsid/4a5a61fb3ef7459f.
>> GEOM_LABEL: Label for provider ad6s3g is ufsid/4a5a61fa4e22975e.
>> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
>> (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
>> (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
>> (probe0:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0
>> (probe0:umass-sim0:0:0:0): Medium not present
>> (probe0:umass-sim0:0:0:0): Unretryable error
>> (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0
>> (probe0:umass-sim0:0:0:1): CAM Status: SCSI Status Error
>> (probe0:umass-sim0:0:0:1): SCSI Status: Check Condition
>> (probe0:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0
>> (probe0:umass-sim0:0:0:1): Medium not present
>> (probe0:umass-sim0:0:0:1): Unretryable error
>> (probe0:umass-sim0:0:0:2): TEST UNIT READY. CDB: 0 40 0 0 0 0
>> (probe0:umass-sim0:0:0:2): CAM Status: SCSI Status Error
>> (probe0:umass-sim0:0:0:2): SCSI Status: Check Condition
>> (probe0:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0
>> (probe0:umass-sim0:0:0:2): Medium not present
>> (probe0:umass-sim0:0:0:2): Unretryable error
>> (probe0:umass-sim0:0:0:3): TEST UNIT READY. CDB: 0 60 0 0 0 0
>> (probe0:umass-sim0:0:0:3): CAM Status: SCSI Status Error
>> (probe0:umass-sim0:0:0:3): SCSI Status: Check Condition
>> (probe0:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0
>> (probe0:umass-sim0:0:0:3): Medium not present
>> (probe0:umass-sim0:0:0:3): Unretryable error
>> SMP: AP CPU #1 Launched!
>> da0 at umass-sim0 bus 0 target 0 lun 0
>> da0: <Generic USB SD Reader 1.00> Removable Direct Access SCSI-0 device
>> da0: 40.000MB/s transfers
>> da0: Attempt to query device size failed: NOT READY, Medium not present
>> da1 at umass-sim0 bus 0 target 0 lun 1
>> da1: <Generic USB CF Reader 1.01> Removable Direct Access SCSI-0 device
>> da1: 40.000MB/s transfers
>> da1: Attempt to query device size failed: NOT READY, Medium not present
>> da2 at umass-sim0 bus 0 target 0 lun 2
>> da2: <Generic USB xD/SM Reader 1.02> Removable Direct Access SCSI-0 devi=
ce
>> da2: 40.000MB/s transfers
>> da2: Attempt to query device size failed: NOT READY, Medium not present
>> da3 at umass-sim0 bus 0 target 0 lun 3
>> da3: <Generic USB MS Reader 1.03> Removable Direct Access SCSI-0 device
>> da3: 40.000MB/s transfers
>> da3: Attempt to query device size failed: NOT READY, Medium not present
>> Trying to mount root from ufs:/dev/ad6s3a
>> GEOM_LABEL: Label ufsid/4a5a61fa90383ccc removed.
>> GEOM_LABEL: Label for provider ad6s3a is ufsid/4a5a61fa90383ccc.
>> GEOM_LABEL: Label ufsid/4a5a61fa4e22975e removed.
>> GEOM_LABEL: Label for provider ad6s3g is ufsid/4a5a61fa4e22975e.
>> GEOM_LABEL: Label ufsid/4a5a61fa5b9a9e33 removed.
>> GEOM_LABEL: Label for provider ad6s3e is ufsid/4a5a61fa5b9a9e33.
>> GEOM_LABEL: Label ufsid/4a5a61fb3ef7459f removed.
>> GEOM_LABEL: Label for provider ad6s3f is ufsid/4a5a61fb3ef7459f.
>> GEOM_LABEL: Label ufsid/4a5a61fc87a6c3a0 removed.
>> GEOM_LABEL: Label for provider ad6s3d is ufsid/4a5a61fc87a6c3a0.
>> GEOM_LABEL: Label ufsid/4a5a61fa90383ccc removed.
>> GEOM_LABEL: Label ufsid/4a5a61fa4e22975e removed.
>> GEOM_LABEL: Label ufsid/4a5a61fa5b9a9e33 removed.
>> GEOM_LABEL: Label ufsid/4a5a61fb3ef7459f removed.
>> GEOM_LABEL: Label ufsid/4a5a61fc87a6c3a0 removed.
>> GEOM_LABEL: Label msdosfs/FREEDOS removed.
>> GEOM_LABEL: Label for provider ad6s1 is msdosfs/FREEDOS.
>> GEOM_LABEL: Label msdosfs/FREEDOS removed.
>>
>> Thanks,
>> Andrey
>
> --
> Mel
>

Below is the output of the kgdb. When I detach this device there is no
panic on hald startup. How did you know it's Yealink? Just because
it's the only uhid device?

At least I can continue now.
Thanks a lot!
Andrey

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you ar=
e
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:
panic: kmem_malloc: entry not found or misaligned
cpuid =3D 0
Uptime: 52s
Physical memory: 2034 MB
Dumping 176 MB: 161 145 129 113 97 81 65 49 33 17 1

Reading symbols from /boot/kernel/linux.ko...Reading symbols from
/boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
#0  doadump () at pcpu.h:196
196	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) f 7
#7  0xc0743044 in uhidopen (dev=3D0xc5713000, flag=3D1, mode=3D8192, p=3D0x=
c5c6a460)
    at /usr/src/sys/dev/usb/uhid.c:428
428	/usr/src/sys/dev/usb/uhid.c: No such file or directory.
	in /usr/src/sys/dev/usb/uhid.c
(kgdb) p *sc
$1 =3D {sc_dev =3D 0xc570da00, sc_udev =3D 0xc570d800, sc_iface =3D 0xc570e=
054,
  sc_intrpipe =3D 0x0, sc_ep_addr =3D 129, sc_isize =3D -15, sc_osize =3D -=
15,
  sc_fsize =3D 0, sc_iid =3D 0 '\0', sc_oid =3D 0 '\0', sc_fid =3D 0 '\0',
  sc_ibuf =3D 0x0, sc_obuf =3D 0x0, sc_repdesc =3D 0xc571bc80,
  sc_repdesc_size =3D 39, sc_q =3D {c_cc =3D 0, c_cbcount =3D 0, c_cbmax =
=3D 11,
    c_cbreserved =3D 11, c_cf =3D 0x0, c_cl =3D 0x0}, sc_rsel =3D {si_thrli=
st =3D {
      tqe_next =3D 0x0, tqe_prev =3D 0x0}, si_thread =3D 0x0, si_note =3D {=
kl_list =3D {
        slh_first =3D 0x0}, kl_lock =3D 0, kl_unlock =3D 0, kl_locked =3D 0=
,
      kl_lockarg =3D 0x0}, si_flags =3D 0}, sc_async =3D 0x0, sc_state =3D =
1 '\001',
  sc_refcnt =3D 0, sc_dying =3D 0 '\0', dev =3D 0xc5713000}
(kgdb) q



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