From owner-freebsd-usb@FreeBSD.ORG Sun Sep 6 21:14:57 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 228C01065679 for ; Sun, 6 Sep 2009 21:14:57 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 6CD118FC0C for ; Sun, 6 Sep 2009 21:14:56 +0000 (UTC) Received: (qmail invoked by alias); 06 Sep 2009 21:14:54 -0000 Received: from port-92-192-46-159.dynamic.qsc.de (EHLO zock.doris.net) [92.192.46.159] by mail.gmx.net (mp070) with SMTP; 06 Sep 2009 23:14:54 +0200 X-Authenticated: #1682771 X-Provags-ID: V01U2FsdGVkX19KWUYeBYVKrRjOcL/E/cbpb4r6DeK3r0SSFtpums K5XW4dx3vUF92/ From: Dorian =?iso-8859-1?q?B=FCttner?= To: freebsd-usb@freebsd.org Date: Sun, 6 Sep 2009 23:14:54 +0200 User-Agent: KMail/1.12.1 (FreeBSD/8.0-BETA4; KDE/4.3.1; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200909062314.54270.dorian.buettner@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 Subject: Asus M2A-VP, SB600 usb chip and keyboard attached during boot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2009 21:14:57 -0000 Hi usb list, am actually running 8-Beta4 and experience uncomfortability during system boot. If I already have a keyboard attached to usb during boot, it will fail like this: Sep 5 19:02:55 zock kernel: usb_alloc_device:1586: set address 2 failed (USB_ER R_TIMEOUT, ignored) Sep 5 19:02:55 zock kernel: usb_alloc_device:1624: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT! Sep 5 19:02:55 zock kernel: usbd_req_re_enumerate:1539: addr=2, set address fai led! (USB_ERR_TIMEOUT, ignored) Sep 5 19:02:56 zock kernel: usbd_req_re_enumerate:1553: getting device descript or at addr 2 failed, USB_ERR_TIMEOUT! Sep 5 19:02:58 zock kernel: usbd_req_re_enumerate:1539: addr=2, set address fai led! (USB_ERR_TIMEOUT, ignored) Sep 5 19:02:59 zock kernel: usbd_req_re_enumerate:1553: getting device descript or at addr 2 failed, USB_ERR_TIMEOUT! Sep 5 19:02:59 zock kernel: ugen2.2: <(null)> at usbus2 (disconnected) Sep 5 19:02:59 zock kernel: uhub_reattach_port:435: could not allocate new devi ce! It is however possible to make it 'awake' by attaching to one of the other usb socket blocks at the rear. How do you call the blocks, the board has 2x2 usb sockets mounted, others availabe via pci slot extensions. When attaching after boot has run, it would read like this: Sep 6 22:45:15 zock kernel: ugen0.2: at usbus0 Sep 6 22:45:15 zock kernel: uhub6: on usbus0 Sep 6 22:45:16 zock kernel: uhub6: 4 ports with 2 removable, bus powered Sep 6 22:45:17 zock root: Unknown USB device: vendor 0x046d product 0xc221 bus uhub6 Sep 6 22:45:17 zock kernel: ugen0.3: at usbus0 Sep 6 22:45:17 zock kernel: ukbd0: on usbus0 Sep 6 22:45:17 zock kernel: kbd2 at ukbd0 Sep 6 22:45:17 zock kernel: uhid0: on usbus0 Sep 6 22:45:18 zock kernel: ugen0.4: at usbus0 Sep 6 22:45:19 zock kernel: ums0: on usbus0 Sep 6 22:45:19 zock kernel: ums0: 7 buttons and [XYZ] coordinates ID=0 Sep 6 22:45:19 zock kernel: ukbd1: on usbus0 Sep 6 22:45:19 zock kernel: kbd3 at ukbd1 Sep 6 22:45:19 zock kernel: ukbd_set_leds_callback:696: error=USB_ERR_STALLED Sep 6 22:45:19 zock root: Unknown USB device: vendor 0x046d product 0xc222 bus uhub6 Sep 6 22:45:19 zock kernel: ugen0.5: at usbus0 Sep 6 22:45:19 zock kernel: hid_get_item:364: Number of items truncated to 255 Sep 6 22:45:19 zock last message repeated 2 times Sep 6 22:45:19 zock kernel: uhid1: on usbus0 Sep 6 22:45:20 zock kernel: hid_get_item:364: Number of items truncated to 255 Sep 6 22:45:20 zock last message repeated 2 times Sep 6 22:45:23 zock ntpd[861]: ntpd 4.2.4p5-a (1) Sep 6 22:45:29 zock login: ROOT LOGIN (root) ON ttyv0 Sep 6 22:45:30 zock ntpd[862]: time reset +0.413423 s Sep 6 22:45:30 zock ntpd[862]: kernel time sync status change 2001 Sep 6 22:45:44 zock kernel: ukbd_set_leds_callback:696: error=USB_ERR_STALLED Sep 6 22:45:45 zock last message repeated 2 times (It's a gaming keyboard with a mouse attached to it, but the error would be the same with a dumb cherry kb attached). It is, however, way better then in 7.2 http://www.freebsd.org/cgi/query- pr.cgi?pr=usb/107827 Not sure if this patch originated at the netbsd would be related to it? http://marc.info/?l=openbsd-tech&m=124574838020563&w=2 Anything to test or similar welcome, but not within the next 2 days, I won't have access to the machine then. By the way, there seems to be some problem with the kbd leds, kde4 will hang when num lock is active during start phase. Here is complete dmesg: Copyright (c) 1992-2009 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 8.0-BETA4 #11: Sat Sep 5 13:51:35 CEST 2009 root@zock.doris.net:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ (2999.91-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x40f33 Stepping = 3 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f real memory = 6442450944 (6144 MB) avail memory = 6178377728 (5892 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cfde0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 device_attach: acpi_hpet0 attach returned 12 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 vgapci0: port 0xdf00-0xdf7f mem 0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 18 at device 0.0 on pci1 pcib2: at device 7.0 on pci0 pci2: on pcib2 re0: port 0xee00-0xeeff mem 0xfddff000-0xfddfffff irq 19 at device 0.0 on pci2 re0: Using 1 MSI messages re0: Chip rev. 0x38000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1b:fc:73:9e:b8 re0: [FILTER] atapci0: port 0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f mem 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI v1.10 controller with 4 3Gbps ports, PM supported ata2: on atapci0 ata2: port is not ready (timeout 0ms) tfd = 000001d0 ata2: software reset clear timeout ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ohci0: mem 0xfe02e000-0xfe02efff irq 16 at device 19.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: mem 0xfe02d000-0xfe02dfff irq 17 at device 19.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ohci2: mem 0xfe02c000-0xfe02cfff irq 18 at device 19.2 on pci0 ohci2: [ITHREAD] usbus2: on ohci2 ohci3: mem 0xfe02b000-0xfe02bfff irq 17 at device 19.3 on pci0 ohci3: [ITHREAD] usbus3: on ohci3 ohci4: mem 0xfe02a000-0xfe02afff irq 18 at device 19.4 on pci0 ohci4: [ITHREAD] usbus4: on ohci4 ehci0: mem 0xfe029000-0xfe0290ff irq 19 at device 19.5 on pci0 ehci0: [ITHREAD] usbus5: EHCI version 1.0 usbus5: on ehci0 pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf900-0xf90f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 pcm0: port 0xcf00-0xcf1f irq 21 at device 6.0 on pci3 pcm0: pcm0: [ITHREAD] acpi_tz0: on acpi0 ACPI Warning: \\_TZ_.THRM._PSL: Return Package type mismatch at index 0 - found [NULL Object Descriptor], expected Reference 20090521 nspredef-1058 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: [ITHREAD] lpt0: on ppbus0 lpt0: [ITHREAD] lpt0: Interrupt-driven port ppi0: on ppbus0 atrtc0: port 0x70-0x73 on acpi0 cpu0: on acpi0 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 device_attach: acpi_hpet0 attach returned 12 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 acd0: DVDR at ata0-master UDMA66 ad4: 305245MB at ata2-master SATA300 SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. GEOM: ad4s2: geometry does not match label (255h,63s != 16h,63s). GEOM: ad4s3: geometry does not match label (255h,63s != 16h,63s). uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered Root mount waiting for: usbus5 Root mount waiting for: usbus5 Root mount waiting for: usbus5 uhub5: 10 ports with 10 removable, self powered Trying to mount root from ufs:/dev/ad4s3a re0: link state changed to UP re0: link state changed to DOWN re0: link state changed to UP re0: link state changed to DOWN re0: link state changed to UP ugen0.2: at usbus0 uhub6: on usbus0 uhub6: 4 ports with 2 removable, bus powered ugen0.3: at usbus0 ukbd0: on usbus0 kbd2 at ukbd0 uhid0: on usbus0 ugen0.4: at usbus0 ums0: on usbus0 ums0: 7 buttons and [XYZ] coordinates ID=0 ukbd1: on usbus0 kbd3 at ukbd1 ukbd_set_leds_callback:696: error=USB_ERR_STALLED ugen0.5: at usbus0 hid_get_item:364: Number of items truncated to 255 hid_get_item:364: Number of items truncated to 255 hid_get_item:364: Number of items truncated to 255 uhid1: on usbus0 hid_get_item:364: Number of items truncated to 255 hid_get_item:364: Number of items truncated to 255 hid_get_item:364: Number of items truncated to 255 ukbd_set_leds_callback:696: error=USB_ERR_STALLED ukbd_set_leds_callback:696: error=USB_ERR_STALLED ukbd_set_leds_callback:696: error=USB_ERR_STALLED lock order reversal: 1st 0xffffff807bad1f68 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2559 2nd 0xffffff003d1e7000 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:285 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _sx_xlock() at _sx_xlock+0x55 ufsdirhash_acquire() at ufsdirhash_acquire+0x33 ufsdirhash_add() at ufsdirhash_add+0x19 ufs_direnter() at ufs_direnter+0x88b ufs_makeinode() at ufs_makeinode+0x2a7 VOP_CREATE_APV() at VOP_CREATE_APV+0x8d vn_open_cred() at vn_open_cred+0x468 kern_openat() at kern_openat+0x179 syscall() at syscall+0x1af Xfast_syscall() at Xfast_syscall+0xe1 --- syscall (5, FreeBSD ELF64, open), rip = 0x80336ee0c, rsp = 0x7fffffffc7c8, rbp = 0x8068021c0 --- ukbd_set_leds_callback:696: error=USB_ERR_STALLED ukbd_set_leds_callback:696: error=USB_ERR_STALLED ukbd_set_leds_callback:696: error=USB_ERR_STALLED ukbd_set_leds_callback:696: error=USB_ERR_STALLED ukbd_set_leds_callback:696: error=USB_ERR_STALLED