From owner-freebsd-usb@FreeBSD.ORG Sun Nov 27 14:10:06 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BA4916A41F for ; Sun, 27 Nov 2005 14:10:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2F1643D5D for ; Sun, 27 Nov 2005 14:10:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAREA5Ju014911 for ; Sun, 27 Nov 2005 14:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAREA54l014910; Sun, 27 Nov 2005 14:10:05 GMT (envelope-from gnats) Date: Sun, 27 Nov 2005 14:10:05 GMT Message-Id: <200511271410.jAREA54l014910@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anders Nordby Cc: Subject: Re: usb/84608: Sony digital camera DSC-P100, rev 2.00/5.00 is not usable. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anders Nordby List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 14:10:06 -0000 The following reply was made to PR usb/84608; it has been noted by GNATS. From: Anders Nordby To: bug-followup@FreeBSD.org, pedrotao@hotmail.com, iedowse@FreeBSD.org Cc: Subject: Re: usb/84608: Sony digital camera DSC-P100, rev 2.00/5.00 is not usable. Date: Sun, 27 Nov 2005 15:09:18 +0100 Hi, The patch works fine on my Sony DSC-W12 camera. Usbdevs shows: port 2 addr 2: high speed, self powered, config 1, Sony DSC(0x0010), Sony(0x054c), rev 5.00 From my console log: Nov 27 15:05:53 lappy kernel: umass0: Sony Sony DSC, rev 2.00/5.00, addr 2 Nov 27 15:05:53 lappy kernel: umass0: RBC over CBI; quirks = 0x1000 Nov 27 15:05:53 lappy kernel: umass0:1:0:-1: Attached to scbus1 Nov 27 15:05:53 lappy kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Nov 27 15:05:53 lappy kernel: da0: Removable Direct Access SCSI-0 device Nov 27 15:05:53 lappy kernel: da0: 40.000MB/s transfers Nov 27 15:05:53 lappy kernel: da0: 951MB (1947648 512 byte sectors: 64H 32S/T 951C) The SCSI device appears instantly, I can mount and copy data just fine. Thanks a bunch! Regards, -- Anders. From owner-freebsd-usb@FreeBSD.ORG Sun Nov 27 15:29:37 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC4BF16A41F for ; Sun, 27 Nov 2005 15:29:37 +0000 (GMT) (envelope-from flag@longino.wired.org) Received: from mail.oltrelinux.com (krisma.oltrelinux.com [194.242.226.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id C02BD43D7E for ; Sun, 27 Nov 2005 15:29:24 +0000 (GMT) (envelope-from flag@longino.wired.org) Received: from longino.wired.org (ip-79-185.sn1.eutelia.it [62.94.79.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.oltrelinux.com (Postfix) with ESMTP id 1F33311AE58 for ; Sun, 27 Nov 2005 16:29:16 +0100 (CET) Received: from longino.wired.org (localhost.wired.org [127.0.0.1]) by longino.wired.org (8.13.4/8.13.4) with ESMTP id jARFT7Nq000987 for ; Sun, 27 Nov 2005 16:29:07 +0100 (CET) (envelope-from flag@longino.wired.org) Received: (from flag@localhost) by longino.wired.org (8.13.4/8.13.4/Submit) id jARFT7Y8000986 for freebsd-usb@freebsd.org; Sun, 27 Nov 2005 16:29:07 +0100 (CET) (envelope-from flag) Date: Sun, 27 Nov 2005 16:29:07 +0100 From: Paolo Pisati To: FreeBSD_Usb Message-ID: <20051127152907.GA973@tin.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at krisma.oltrelinux.com Subject: [patch] Tapwave Zodiac PDA support 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, 27 Nov 2005 15:29:37 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, attached are the product and vendor id for usbdevs and uvisor.c. It still doesn't work, but that will be the subject of another mail... :) -- Paolo --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="usbdevs.patch" *** usbdevs.orig Sat Nov 26 21:04:24 2005 --- usbdevs Sat Nov 26 21:07:31 2005 *************** *** 536,541 **** --- 536,542 ---- vendor SITECOM 0x6189 Sitecom vendor INTEL 0x8086 Intel vendor HP2 0xf003 Hewlett Packard + vendor TAPWAVE 0x12EF Tapwave /* * List of known products. Grouped by vendor. *************** *** 1498,1503 **** --- 1499,1507 ---- /* Taugagreining products */ product TAUGA CAMERAMATE 0x0005 CameraMate (DPCM_USB) + + /* Tapwave products */ + product TAPWAVE ZODIAC 0x0100 Zodiac /* TDK products */ product TDK UPA9664 0x0115 USB-PDC Adapter UPA9664 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="uvisor.patch" *** uvisor.c.orig Sat Nov 26 21:08:11 2005 --- uvisor.c Sat Nov 26 20:50:07 2005 *************** *** 241,246 **** --- 241,247 ---- {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_S360 }, PALM4 }, {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_NX60 }, PALM4 }, {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_35 }, PALM35 }, + {{ USB_VENDOR_TAPWAVE, USB_PRODUCT_TAPWAVE_ZODIAC }, PALM4 }, /* {{ USB_VENDOR_SONY, USB_PRODUCT_SONY_CLIE_25 }, PALM4 },*/ }; #define uvisor_lookup(v, p) ((const struct uvisor_type *)usb_lookup(uvisor_devs, v, p)) --h31gzZEtNLTqOjlF-- From owner-freebsd-usb@FreeBSD.ORG Sun Nov 27 16:45:35 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5B6016A41F for ; Sun, 27 Nov 2005 16:45:35 +0000 (GMT) (envelope-from flag@longino.wired.org) Received: from mail.oltrelinux.com (krisma.oltrelinux.com [194.242.226.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B48E43D5A for ; Sun, 27 Nov 2005 16:45:33 +0000 (GMT) (envelope-from flag@longino.wired.org) Received: from longino.wired.org (ip-79-185.sn1.eutelia.it [62.94.79.185]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.oltrelinux.com (Postfix) with ESMTP id 1568711AE45 for ; Sun, 27 Nov 2005 17:45:30 +0100 (CET) Received: from longino.wired.org (localhost.wired.org [127.0.0.1]) by longino.wired.org (8.13.4/8.13.4) with ESMTP id jARGjQEU000696 for ; Sun, 27 Nov 2005 17:45:26 +0100 (CET) (envelope-from flag@longino.wired.org) Received: (from flag@localhost) by longino.wired.org (8.13.4/8.13.4/Submit) id jARGjPnr000695 for freebsd-usb@freebsd.org; Sun, 27 Nov 2005 17:45:25 +0100 (CET) (envelope-from flag) Date: Sun, 27 Nov 2005 17:45:25 +0100 From: Paolo Pisati To: FreeBSD_Usb Message-ID: <20051127164524.GA621@tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at krisma.oltrelinux.com Subject: [panic] FreeBSD 6.x, Palm PDA and ucom/uvisor 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, 27 Nov 2005 16:45:36 -0000 Hi, i'm an happy owner of a Palm PDA (Tapwave Zodiac/PalmOS 5.2) and since yesterday i'm trying to sync it with my laptop running FreeBSD 6.x, but so far no luck. First i googled around for some infos about the process of hotsyncing palms in freebsd, but found only outdated docs/emails. This looks the best one: http://gja.space4me.com/things/Palm_TungstenC_FreeBSD.html It says to load uvisor and ucom together, connect the pda via usb, press the hotsync button and the pda should appear as ucom0. First i patched usbdevs and uvisor.c to recognize my pda and recompiled everything just in case (see other email), then: $ sudo kldload uvisor [flag@longino ~] $ kldstat Id Refs Address Size Name 1 29 0xc0400000 353dd0 kernel 2 1 0xc0754000 60c4 snd_ich.ko 3 2 0xc075b000 205a8 sound.ko 4 1 0xc077c000 9080 ng_ubt.ko 5 2 0xc0786000 d568 netgraph.ko 6 1 0xc0794000 aea0 if_iwi.ko 7 2 0xc079f000 20cf0 wlan.ko 8 1 0xc07c0000 66074 acpi.ko 9 1 0xc36d8000 33000 nfsclient.ko 10 2 0xc3742000 1a000 linux.ko 11 1 0xc37a1000 2000 rtc.ko 12 1 0xc3898000 7000 umass.ko 13 1 0xc38b0000 4000 ums.ko 14 1 0xc3a3b000 5000 ugen.ko 15 1 0xc3cb1000 3000 uvisor.ko 16 1 0xc3cf6000 3000 ucom.ko (uvisor brings in ucom) and when i press the hotsync button: Nov 27 16:54:05 longino kernel: ucom0: Tapwave, Inc. Tapwave Handheld, rev 1.10/1.00, addr 3 Nov 27 16:54:15 longino kernel: Nov 27 16:54:15 longino kernel: ucom0: failed to set configuration, err=TIMEOUT Nov 27 16:54:15 longino kernel: device_attach: ucom0 attach returned 6 Nov 27 16:54:20 longino kernel: uhub3: port 2, set config at addr 3 failed Nov 27 16:54:20 longino kernel: uhub3: device problem (TIMEOUT), disabling port 2 and no ucom appears in /dev. And all the subsequents pression of hotsync button i get: Nov 27 16:56:21 longino kernel: ucom1: Tapwave, Inc. Tapwave Handheld, rev 1.10/1.00, addr 3 Nov 27 16:56:31 longino kernel: Nov 27 16:56:31 longino kernel: ucom1: failed to set configuration, err=TIMEOUT Nov 27 16:56:31 longino kernel: device_attach: ucom1 attach returned 6 Nov 27 16:56:36 longino kernel: uhub3: port 2, set config at addr 3 failed Nov 27 16:56:36 longino kernel: uhub3: device problem (TIMEOUT), disabling port and so on. I tried unloading stuff, detaching all the usb gears from my laptop but no luck. Another 'funny' side effect i found while playing with usb was: 1) compile a kernel with minimal usb support: # USB support device uhci # UHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) 2) kldload ucom 3) press the hotsync button [nothing happens] 4) kldload uvisor 5) kernel panic $ sudo kgdb ./kernel.debug /var/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] 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. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0490418 stack pointer = 0x28:0xd66608a0 frame pointer = 0x28:0xd66609c8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 545 (kldload) trap number = 12 panic: page fault Uptime: 21s Dumping 503 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 503MB (128723 pages) 487 471 455 439 423 407 391 375 359 343 327 311 295 279 263 247 231 215 199 183 167 151 135 119 103 87 71 55 39 23 7 #0 doadump () at pcpu.h:165 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) bt full No locals. #1 0xc04edd50 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:399 first_buf_printf = 1 #2 0xc04ee099 in panic (fmt=0xc067ca1c "%s") at /usr/src/sys/kern/kern_shutdown.c:555 td = (struct thread *) 0xc3861180 bootopt = 260 newpanic = 0 ap = 0xc3861180 "\030T\206ÃÀ@\206Ã" buf = "page fault", '\0' #3 0xc0659fec in trap_fatal (frame=0xd6660860, eva=0) at /usr/src/sys/i386/i386/trap.c:831 code = 40 type = 12 ss = 40 esp = 0 softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, ssd_dpl = 0, ssd_p = 1, ssd_xx = 0, ssd_xx1 = 0, ssd_def32 = 1, ssd_gran = 1} #4 0xc0659cc2 in trap_pfault (frame=0xd6660860, usermode=0, eva=0) at /usr/src/sys/i386/i386/trap.c:742 va = 0 vm = (struct vmspace *) 0x0 map = 0x1 rv = 1 ftype = 1 '\001' td = (struct thread *) 0xc3861180 p = (struct proc *) 0xc3865418 #5 0xc065987f in trap (frame= {tf_fs = -1068105720, tf_es = 40, tf_ds = 40, tf_edi = -697955700, tf_esi = 61, tf_ebp = -697955896, tf_isp = -697956212, tf_ebx = -1019352192, tf_edx = -1019352136, tf_ecx = 0, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1068956648, tf_cs = 32, tf_eflags = 590470, tf_esp = -1014623872, tf_ss = -1014606824}) at /usr/src/sys/i386/i386/trap.c:432 td = (struct thread *) 0xc3861180 p = (struct proc *) 0xc3865418 sticks = 3597011082 i = 0 ucode = 0 type = 12 code = 0 eva = 0 #6 0xc06469aa in calltrap () at /usr/src/sys/i386/i386/exception.s:139 No locals. #7 0xc0490418 in usbd_get_string (dev=0xc33deb80, si=61, buf=0xd6660a8c "H×\004Á") at /usr/src/sys/dev/usb/usbdi.c:1195 swap = 16843009 us = {bLength = 1 '\001', bDescriptorType = 1 '\001', bString = { "\001\001" , "\001", "\001\001" , "àc", "\037Ã", "\001", "\000", "D\v", "fÖ", "È\t", "fÖ", "¿\"", "QÀ"}} s = 0xc33deb80 "map" i = 61 n = -697955700 c = 0 err = USBD_NORMAL_COMPLETION size = 16843009 #8 0xc048d56e in usbd_devinfo_vp (dev=0xc33deb80, v=0xd6660a8c "H×\004Á", p=0xd6660a0c "l\nfÖ8\aJÍ\005", usedev=1) at /usr/src/sys/dev/usb/usb_subr.c:230 udd = (usb_device_descriptor_t *) 0xc33debb8 vendor = 0x0 product = 0x0 #9 0xc048d6e2 in usbd_devinfo (dev=0xc33deb80, showclass=0, cp=0xc33ce000 "/usr/local/modules/rtc.ko") at /usr/src/sys/dev/usb/usb_subr.c:293 udd = (usb_device_descriptor_t *) 0xc33debb8 iface = 0xa vendor = "H×\004Á\000×\004ÁÀ\nfÖ¤j`À`é\004Á\000\000\000\000\020\000\000\000À\nfÖR\006NÀÜ\nfÖ\020\000\000\000\000\000\000\000p¸?ÃHÚ\004Á\000Ú\004Áô\nfÖ¤j`Àè\nfÖ\006\000\000\000\000\004\000\000ô\nfÖR\006NÀP:>Ã\000\004\000\000\006\000\000\000\000à<Ã\030\vfÖa\aNÀ kjÀ\000\004\000\000\006\000\000\000 í\004Á" product = "l\nfÖ8\aJÍ\005\000\000\000\000\000\000\000\000@\000 ", '\0' , "\001", '\0' , "H×\004Á\000×\004Á\210\nfÖ¤j`À\205ÐgÀ\000\000\000\000\020\000\000\000\210\nfÖR\006NÀ¤\nfÖ\020\000\000\000\000\000\000\0000;>ì\nfÖ" bcdDevice = -697955828 bcdUSB = -697955700 id = (usb_interface_descriptor_t *) 0x0 #10 0xc38a3bb0 in ?? () No symbol table info available. #11 0xc33deb80 in ?? () No symbol table info available. #12 0x00000000 in ?? () No symbol table info available. #13 0xc33ce000 in ?? () No symbol table info available. #14 0xc33deacc in ?? () No symbol table info available. #15 0xc33e3a50 in ?? () No symbol table info available. #16 0xd6660b4c in ?? () No symbol table info available. #17 0xc050cb7e in kobj_lookup_method_mi (cls=0xc33dea80, desc=0xc33ce000) at /usr/src/sys/kern/subr_kobj.c:202 ce = (kobj_method_t *) 0x0 basep = (kobj_class_t *) 0xc33dea80 #18 0xc0507c9a in device_attach (dev=0xc33dea80) at device_if.h:177 error = 0 #19 0xc0507c11 in device_probe_and_attach (dev=0xc33dea80) at /usr/src/sys/kern/subr_bus.c:2336 error = -1016358912 #20 0xc0508ae4 in bus_generic_driver_added (dev=0xc332f080, driver=0xc38a5380) at /usr/src/sys/kern/subr_bus.c:3069 child = 0xc33dea80 #21 0xc0506570 in devclass_add_driver (dc=0xc327d240, driver=0xc38a5380) at bus_if.h:183 dl = 0xc332f080 i = 3 #22 0xc0509d85 in driver_module_handler (mod=0xc386a640, what=-1014344832, arg=0xc38a5398) at /usr/src/sys/kern/subr_bus.c:3697 error = -1020800448 dmd = (struct driver_module_data *) 0xc38a5398 bus_devclass = 0xc327d240 driver = 0xc38a5380 #23 0xc04e2181 in module_register_init (arg=0xc38a53ac) at /usr/src/sys/kern/kern_module.c:121 data = (const moduledata_t *) 0xc38a53ac error = -1016306816 mod = 0xc386a640 #24 0xc04db530 in linker_file_sysinit (lf=0x0) at /usr/src/sys/kern/kern_linker.c:194 start = (struct sysinit **) 0xc38a4338 stop = (struct sysinit **) 0xc38a433c sipp = (struct sysinit **) 0xc38a4338 xipp = (struct sysinit **) 0x0 save = (struct sysinit *) 0xc33debb8 #25 0xc04db8c8 in linker_load_file ( filename=0xc36c6380 "/boot/kernel/uvisor.ko", result=0xd6660c94) at /usr/src/sys/kern/kern_linker.c:367 lc = 0xc06b0860 lf = 0xc3894100 foundfile = 1 error = 0 #26 0xc04de4f9 in linker_load_module ( kldname=0xc36c6380 "/boot/kernel/uvisor.ko", modname=0xc33cf400 "uvisor", parent=0x0, verinfo=0x0, lfpp=0xd6660cc0) at /usr/src/sys/kern/kern_linker.c:1712 lfdep = 0xc104ed20 filename = 0x0 pathname = 0xc36c6380 "/boot/kernel/uvisor.ko" error = 17 #27 0xc04dc56a in kldload (td=0xc3861180, uap=0x0) at /usr/src/sys/kern/kern_linker.c:785 kldname = 0x0 modname = 0xc33debb8 "\021" pathname = 0xc33cf400 "uvisor" lf = 0xd6660d38 error = 0 #28 0xc065a3e0 in syscall (frame= {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 0, tf_esi = -1077940908, tf_ebp = -1077940952, tf_isp = -697954972, tf_ebx = 0, tf_edx = -1, tf_ecx = -1077940704, tf_eax = 304, tf_trapno = 12, tf_err = 2, tf_eip = 671906511, tf_cs = 51, tf_eflags = 531, tf_esp = -1077941012, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:976 params = 0xbfbfecf0
callp = (struct sysent *) 0xc06aaac0 td = (struct thread *) 0xc3861180 p = (struct proc *) 0xc3865418 lf = 0xd6660d38 error = 0 #28 0xc065a3e0 in syscall (frame= {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 0, tf_esi = -1077940908, tf_ebp = -1077940952, tf_isp = -697954972, tf_ebx = 0, tf_edx = -1, tf_ecx = -1077940704, tf_eax = 304, tf_trapno = 12, tf_err = 2, tf_eip = 671906511, tf_cs = 51, tf_eflags = 531, tf_esp = -1077941012, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:976 params = 0xbfbfecf0
callp = (struct sysent *) 0xc06aaac0 td = (struct thread *) 0xc3861180 p = (struct proc *) 0xc3865418 orig_tf_eflags = 531 sticks = 0 error = 0 narg = 1 args = {-1077940704, 12, 0, 0, -1014606824, 0, 0, 0} code = 304 #29 0xc06469ff in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200 No locals. #30 0x00000033 in ?? () No symbol table info available. (kgdb) Hope this helps... bye -- Paolo ps any Palm user out there that hotsync with freebsd? did i do everything right? From owner-freebsd-usb@FreeBSD.ORG Mon Nov 28 11:03:06 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4223516A422 for ; Mon, 28 Nov 2005 11:03:06 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2504943D92 for ; Mon, 28 Nov 2005 11:02:22 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jASB2H8K088366 for ; Mon, 28 Nov 2005 11:02:17 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jASB2GAN088360 for freebsd-usb@freebsd.org; Mon, 28 Nov 2005 11:02:16 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 28 Nov 2005 11:02:16 GMT Message-Id: <200511281102.jASB2GAN088360@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 28 Nov 2005 11:03:06 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/08/10] usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_ 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] usb/40792 usb signals lead to data loss on device ugen o [2002/12/10] usb/46176 usb [panic] umass causes kernel panic if devi o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2003/08/13] usb/55555 usb [ums] system freezes with access to /dev/ o [2003/09/06] usb/56513 usb [ugen] [panic] panic in ugen w/ moused -p o [2003/09/26] bin/57255 usb usbd and multi-function devices s [2003/12/15] usb/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/20] usb/61627 usb [usb] [patch] New USB printer not support o [2004/01/30] usb/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/02/03] usb/62309 usb [ugen] [panic] panic: ugen(4) driver o [2004/03/01] usb/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/07/13] usb/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] usb/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] usb/73307 usb [panic] Kernel panics on USB disconnect o [2004/12/04] usb/74690 usb [umass] [patch] support for SanDisk 8-in- o [2004/12/06] usb/74771 usb [umass] mounting write-protected umass de o [2005/01/01] usb/75705 usb [panic] da0 attach / Optio S4 (with backt o [2005/01/04] usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, o [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " o [2005/01/21] usb/76554 usb Panram "yoyo" USB MP3 player causes panic o [2005/01/25] usb/76684 usb [hang] Toshiba PDR-M4 camera connected vi o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse o [2005/02/23] usb/77940 usb [patch] [panic] insertion of usb keyboard o [2005/03/01] i386/78218 usb [kue] kue not detected on Sony PCG-F370 V o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via o [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f o [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond o [2005/05/04] usb/80628 usb recent USB MFCs cause panics o [2005/05/06] usb/80685 usb panic in usb_cold_explore() at begining o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb [patch] USB locking issues: missing some o [2005/05/20] usb/81308 usb [ugen] [patch] polling a ugen(4) control o [2005/05/26] usb/81524 usb panic: usb_cold_explore: busses to explor o [2005/06/01] usb/81774 usb 2nd generation iPod mini cannot be mounte o [2005/06/13] usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 o [2005/06/15] usb/82272 usb Can not recognize Casio camera EX-Z40 as o [2005/06/17] usb/82350 usb [usb] null pointer dereference in USB sta o [2005/06/22] usb/82520 usb Reboot when USL101 connected o [2005/06/26] usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o [2005/07/15] usb/83504 usb [usb] SpeedTouch USB stop working on rece o [2005/07/16] usb/83563 usb [panic] Page Fault while detaching Mpman o [2005/07/18] usb/83677 usb [usb] usb controller often not detected ( o [2005/07/19] usb/83756 usb Microsoft Intellimouse Explorer 4.0A does o [2005/07/23] usb/83942 usb [patch] QUIRK: Langel USB flash mp3 playe o [2005/07/24] usb/83977 usb [ucom] [panic] ucom1: open bulk out error o [2005/07/30] usb/84326 usb [umass] Panic trying to connect SCSI tape o [2005/07/30] usb/84336 usb [usb] [reboot] instant system reboot when o [2005/08/07] usb/84649 usb [quirk] [patch] kernel panic after insert o [2005/08/15] usb/84936 usb install - usb keyboard not recognized o [2005/09/06] usb/85814 usb Microsoft Wireless Mouse doesnt work o [2005/09/12] usb/86031 usb need support usb nic rt2500 in my 5.4 STA o [2005/09/30] usb/86767 usb [usb] bogus "slice starts beyond end of t o [2005/10/08] usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not o [2005/10/16] usb/87519 usb [kbd] cannot install on USB-only system o [2005/10/17] usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS car o [2005/11/03] usb/88445 usb [panic] computer reboots after printing C o [2005/11/09] usb/88743 usb [hang] USB makes kernel hang at boot (reg o [2005/11/14] usb/88966 usb kldunload ucom.ko returns "Device busy" e o [2005/11/18] usb/89218 usb flash disk o [2005/11/24] usb/89509 usb [uscanner] [patch] CanoScan LIDE 25 not s o [2005/11/26] usb/89598 usb FLASH DISK 1.00 cause page fault 72 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m o [2001/12/09] usb/32652 usb [uscanner] [patch] A new ioctl to uscanne s [2001/12/09] usb/32653 usb Added patches to improve USB scanner supp o [2002/07/24] usb/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] usb/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] usb/48342 usb [PATCH] usbd dynamic device list. o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo o [2003/06/08] usb/53025 usb [ugen] [patch] ugen does not allow O_NONB o [2003/08/28] usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fai o [2003/12/15] usb/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] usb/61234 usb [usb] [patch] usbhidaction(1) doesn't sup o [2004/03/06] usb/63837 usb [uhid] [patch] USB: hid_is_collection() o o [2004/04/11] usb/65436 usb [umass] [patch] add quirk for PNY Attache o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops f [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/23] usb/68232 usb [ugen] [patch] ugen(4) isochronous handli o [2004/06/27] usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/08/16] usb/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] usb/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] usb/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] usb/71605 usb [umass] [patch] umass doesn't recognize m o [2004/10/05] usb/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 o [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/15] usb/72732 usb [patch] Kyocera 7135 quirk. o [2004/10/15] usb/72733 usb Kyocera 7135 Palm OS connection problem. o [2004/10/23] usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/21] usb/74211 usb USB flash drive causes CAM status 0x4 on o [2004/11/25] usb/74358 usb [umass] unplugging at boot time an umass o [2004/11/27] usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/02] usb/74609 usb [usb] [patch] allowing cdma modems to wor o [2004/12/08] usb/74849 usb [usb] [patch] Samsung SPH-i500 does not a o [2004/12/09] usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm o [2004/12/12] usb/74989 usb (regression) Lost USB support between 5.2 o [2004/12/28] usb/75578 usb [patch] QUIRK: PNY USB flash key o [2005/01/04] usb/75800 usb ucom1: init failed STALLED error in time o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/08] usb/75970 usb [usb] [patch] support for Sandisk Cruzer o [2005/01/19] usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4 o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch o [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails o [2005/03/07] usb/78543 usb [patch] Support for Trip-Lite USB 2 Seria o [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/03/23] usb/79164 usb [usb] [patch] QUIRK: Qware BeatZkey! Pro o [2005/04/07] usb/79649 usb [usb] [patch] quirk: Gembird MP3 player o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [usb] [patch] USB device speed is not dou o [2005/04/14] usb/79893 usb [umass] [patch] new usbdevs/umass quirks o [2005/04/16] usb/80010 usb [aue] [patch] add support for the AEI USB o [2005/04/27] usb/80383 usb [uhid] [patch] Add quirk for uhid to igno o [2005/04/27] usb/80420 usb atapicam stops iPod functionality o [2005/04/30] usb/80487 usb [usb] [patch] quirk: United MP 5512 Porta o [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb [udav] UDAV device driver shouldn't use u o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [umass] [patch] fix umass NO_GETMAXLUN qu o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to o [2005/05/29] usb/81621 usb external hd hangs under load on ehci o [2005/05/30] usb/81656 usb umass problem with Minolta DiMage S414 Di o [2005/06/03] usb/81846 usb [cam] [patch] Quirks for Time DPA20B 1GB o [2005/06/20] usb/82436 usb [patch] USL101 Host-to-Host bridge suppor o [2005/06/30] usb/82839 usb [patch] add support for Aceeca Mez1000 de o [2005/07/05] usb/83022 usb ALI USB 2.0 EHCI Controller is not detect o [2005/07/11] usb/83247 usb [cdce] [patch] if_cdce.c doesn't emit USB o [2005/07/12] usb/83353 usb [ums] [patch] ums driver limits number of o [2005/07/21] usb/83863 usb Communication problem between opensc/open f [2005/08/06] usb/84608 usb Sony digital camera DSC-P100, rev 2.00/5. o [2005/08/18] usb/85067 usb Cannot attach ScanJet 4300C to usb device o [2005/09/11] usb/85992 usb [uhid] [patch] USB stops working when try o [2005/09/13] usb/86094 usb [uscanner] [patch] Support for Epson 2480 o [2005/09/16] usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECO o [2005/09/18] usb/86298 usb Known good USB mouse won't work with corr o [2005/09/21] usb/86438 usb Fix for non-working iPod over USB is in N o [2005/10/10] usb/87224 usb Cannot mount USB Zip750 o [2005/10/13] usb/87395 usb [uscanner] [patch] Adding support for Can o [2005/10/19] usb/87648 usb [mouse] Logitech USB-optical mouse proble o [2005/11/02] usb/88408 usb axe0 read PHY failed o [2005/11/13] usb/88939 usb Fix cheapy Myson USB-IDE adapter o [2005/11/15] usb/89087 usb usb external harddrive hangs with BBB res o [2005/11/17] usb/89196 usb [umass] [patch] Kingston DataTraveler 2.0 o [2005/11/19] usb/89269 usb usb headset does not work with uaudio mod 87 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Nov 29 16:20:14 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2701C16A420 for ; Tue, 29 Nov 2005 16:20:14 +0000 (GMT) (envelope-from pdquilty@adelphia.net) Received: from pdq-laptop.us.nextel.com (va-sterling-u1-c5c-h-9.chvlva.adelphia.net [67.22.215.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFBEA43D62 for ; Tue, 29 Nov 2005 16:20:08 +0000 (GMT) (envelope-from pdquilty@adelphia.net) Received: from pdq-laptop.us.nextel.com (localhost [127.0.0.1]) by pdq-laptop.us.nextel.com (8.13.4/8.13.1) with ESMTP id jATGK61I070010; Tue, 29 Nov 2005 11:20:06 -0500 (EST) (envelope-from pdquilty@adelphia.net) Received: (from quilty@localhost) by pdq-laptop.us.nextel.com (8.13.4/8.13.1/Submit) id jATGK6YW070009; Tue, 29 Nov 2005 11:20:06 -0500 (EST) (envelope-from pdquilty@adelphia.net) X-Authentication-Warning: pdq-laptop.us.nextel.com: quilty set sender to pdquilty@adelphia.net using -f From: "Peter D. Quilty" To: Paolo Pisati In-Reply-To: <20051127164524.GA621@tin.it> References: <20051127164524.GA621@tin.it> Date: Tue, 29 Nov 2005 11:20:04 -0500 Message-Id: <1133281205.1164.9.camel@pdq-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD_Usb Subject: Re: [panic] FreeBSD 6.x, Palm PDA and ucom/uvisor X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Peter D. Quilty" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 16:20:14 -0000 Paolo, I have a Tungsten C that I sync with Evolution on FreeBSD 6.0-RELEASE. You have to load ucom & uvisor first and then press the hotsync button. The Palm should show up as /dev/cuaU0. With the new tty driver in 6.x, you don't access /dev/ucom0 any longer, but instead use /dev/cuaU0. >From the 6.0 Release Notes: The generic tty(4) driver interface has been added and many device drivers including cx(4) ({tty,cua}x), cy(4) ({tty,cua}c), digi(4) ({tty,cua}D), rc(4) ({tty,cua}m), rp(4) ({tty,cua}R), sab(4) ({tty,cua}z), si(4) ({tty,cua}A), sio(4) ({tty,cua}d), sx ({tty,cua}G), uart(4) ({tty,cua}u), ubser(4) ({tty,cua}y), ucom(4) ({tty,cua}U), and ucycom(4) ({tty,cua}y) have been rewritten to use it. Note that /etc/remote and /etc/ttys have been updated as well. I hope this helps. --=20 Peter D. Quilty pdquilty@adelphia.net GnuPG Key: http://users.adelphia.net/~pdquilty/gpg-pubkey.asc GnuPG Key Fingerprint: A46A 0E56 D13E 5617 4696 2B04 0D0C E34D CB6D D107 On Sun, 2005-11-27 at 17:45 +0100, Paolo Pisati wrote: > Hi, >=20 > i'm an happy owner of a Palm PDA (Tapwave Zodiac/PalmOS 5.2) > and since yesterday i'm trying to sync it with my=20 > laptop running FreeBSD 6.x, but so far no luck. >=20 > First i googled around for some infos about the process of > hotsyncing palms in freebsd, but found only outdated docs/emails. > This looks the best one: >=20 > http://gja.space4me.com/things/Palm_TungstenC_FreeBSD.html >=20 >=20 > It says to load uvisor and ucom together, connect the pda via usb, > press the hotsync button and the pda should appear as ucom0. > First i patched usbdevs and uvisor.c to recognize my pda and=20 > recompiled everything just in case (see other email), then: >=20 > $ sudo kldload uvisor > [flag@longino ~] > $ kldstat=20 > Id Refs Address Size Name > 1 29 0xc0400000 353dd0 kernel > 2 1 0xc0754000 60c4 snd_ich.ko > 3 2 0xc075b000 205a8 sound.ko > 4 1 0xc077c000 9080 ng_ubt.ko > 5 2 0xc0786000 d568 netgraph.ko > 6 1 0xc0794000 aea0 if_iwi.ko > 7 2 0xc079f000 20cf0 wlan.ko > 8 1 0xc07c0000 66074 acpi.ko > 9 1 0xc36d8000 33000 nfsclient.ko > 10 2 0xc3742000 1a000 linux.ko > 11 1 0xc37a1000 2000 rtc.ko > 12 1 0xc3898000 7000 umass.ko > 13 1 0xc38b0000 4000 ums.ko > 14 1 0xc3a3b000 5000 ugen.ko > 15 1 0xc3cb1000 3000 uvisor.ko > 16 1 0xc3cf6000 3000 ucom.ko >=20 > (uvisor brings in ucom) >=20 > and when i press the hotsync button: >=20 > Nov 27 16:54:05 longino kernel: ucom0: Tapwave, Inc. Tapwave Handheld, re= v 1.10/1.00, addr 3 > Nov 27 16:54:15 longino kernel:=20 > Nov 27 16:54:15 longino kernel: ucom0: failed to set configuration, err= =3DTIMEOUT > Nov 27 16:54:15 longino kernel: device_attach: ucom0 attach returned 6 > Nov 27 16:54:20 longino kernel: uhub3: port 2, set config at addr 3 faile= d > Nov 27 16:54:20 longino kernel: uhub3: device problem (TIMEOUT), disablin= g port 2 >=20 > and no ucom appears in /dev. > And all the subsequents pression of hotsync button i get: >=20 > Nov 27 16:56:21 longino kernel: ucom1: Tapwave, Inc. Tapwave Handheld, re= v 1.10/1.00, addr 3 > Nov 27 16:56:31 longino kernel:=20 > Nov 27 16:56:31 longino kernel: ucom1: failed to set configuration, err= =3DTIMEOUT > Nov 27 16:56:31 longino kernel: device_attach: ucom1 attach returned 6 > Nov 27 16:56:36 longino kernel: uhub3: port 2, set config at addr 3 faile= d > Nov 27 16:56:36 longino kernel: uhub3: device problem (TIMEOUT), disablin= g port=20 >=20 > and so on. > I tried unloading stuff, detaching all the usb gears from my laptop > but no luck. > Another 'funny' side effect i found while playing with usb was: >=20 > 1) compile a kernel with minimal usb support: >=20 > # USB support > device uhci # UHCI PCI->USB interface > device ehci # EHCI PCI->USB interface (USB 2.0) > device usb # USB Bus (required) >=20 > 2) kldload ucom >=20 > 3) press the hotsync button [nothing happens] >=20 > 4) kldload uvisor >=20 > 5) kernel panic >=20 > $ sudo kgdb ./kernel.debug /var/crash/vmcore.0=20 > [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.s= o: Undefined symbol "ps_pglobal_lookup"] > 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 conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "i386-marcel-freebsd". >=20 > Unread portion of the kernel message buffer: >=20 >=20 > Fatal trap 12: page fault while in kernel mode > fault virtual address =3D 0x0 > fault code =3D supervisor read, page not present > instruction pointer =3D 0x20:0xc0490418 > stack pointer =3D 0x28:0xd66608a0 > frame pointer =3D 0x28:0xd66609c8 > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, def32 1, gran 1 > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > current process =3D 545 (kldload) > trap number =3D 12 > panic: page fault > Uptime: 21s > Dumping 503 MB (2 chunks) > chunk 0: 1MB (159 pages) ... ok > chunk 1: 503MB (128723 pages) 487 471 455 439 423 407 391 375 359 343 3= 27 311 295 279 263 247 231 215 199 183 167 151 135 119 103 87 71 55 39 23 7 >=20 > #0 doadump () at pcpu.h:165 > 165 __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td)); > (kgdb) bt full > No locals. > #1 0xc04edd50 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c= :399 > first_buf_printf =3D 1 > #2 0xc04ee099 in panic (fmt=3D0xc067ca1c "%s") > at /usr/src/sys/kern/kern_shutdown.c:555 > td =3D (struct thread *) 0xc3861180 > bootopt =3D 260 > newpanic =3D 0 > ap =3D 0xc3861180 "\030T\206@\206" > buf =3D "page fault", '\0' > #3 0xc0659fec in trap_fatal (frame=3D0xd6660860, eva=3D0) > at /usr/src/sys/i386/i386/trap.c:831 > code =3D 40 > type =3D 12 > ss =3D 40 > esp =3D 0 > softseg =3D {ssd_base =3D 0, ssd_limit =3D 1048575, ssd_type =3D = 27,=20 > ssd_dpl =3D 0, ssd_p =3D 1, ssd_xx =3D 0, ssd_xx1 =3D 0, ssd_def32 =3D = 1, ssd_gran =3D 1} > #4 0xc0659cc2 in trap_pfault (frame=3D0xd6660860, usermode=3D0, eva=3D0) > at /usr/src/sys/i386/i386/trap.c:742 > va =3D 0 > vm =3D (struct vmspace *) 0x0 > map =3D 0x1 > rv =3D 1 > ftype =3D 1 '\001' > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > #5 0xc065987f in trap (frame=3D > {tf_fs =3D -1068105720, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D -697= 955700, tf_esi =3D 61, tf_ebp =3D -697955896, tf_isp =3D -697956212, tf_ebx= =3D -1019352192, tf_edx =3D -1019352136, tf_ecx =3D 0, tf_eax =3D 0, tf_tr= apno =3D 12, tf_err =3D 0, tf_eip =3D -1068956648, tf_cs =3D 32, tf_eflags = =3D 590470, tf_esp =3D -1014623872, tf_ss =3D -1014606824}) at /usr/src/sys= /i386/i386/trap.c:432 > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > sticks =3D 3597011082 > i =3D 0 > ucode =3D 0 > type =3D 12 > code =3D 0 > eva =3D 0 > #6 0xc06469aa in calltrap () at /usr/src/sys/i386/i386/exception.s:139 > No locals. > #7 0xc0490418 in usbd_get_string (dev=3D0xc33deb80, si=3D61,=20 > buf=3D0xd6660a8c "H\004") at /usr/src/sys/dev/usb/usbdi.c:1195 >=20 > swap =3D 16843009 > us =3D {bLength =3D 1 '\001', bDescriptorType =3D 1 '\001', bStri= ng =3D { > "\001\001" , "\001", "\001\001" ,= =20 > "c", "\037", "\001", "\000", "D\v", "f", "\t", "f", "\"", "Q"}} > s =3D 0xc33deb80 "map" > i =3D 61 > n =3D -697955700 > c =3D 0 > err =3D USBD_NORMAL_COMPLETION > size =3D 16843009 > #8 0xc048d56e in usbd_devinfo_vp (dev=3D0xc33deb80, v=3D0xd6660a8c "H\00= 4",=20 > p=3D0xd6660a0c "l\nf8\aJ\005", usedev=3D1) > at /usr/src/sys/dev/usb/usb_subr.c:230 > udd =3D (usb_device_descriptor_t *) 0xc33debb8 > vendor =3D 0x0 > product =3D 0x0 > #9 0xc048d6e2 in usbd_devinfo (dev=3D0xc33deb80, showclass=3D0,=20 > cp=3D0xc33ce000 "/usr/local/modules/rtc.ko") > at /usr/src/sys/dev/usb/usb_subr.c:293 > udd =3D (usb_device_descriptor_t *) 0xc33debb8 > iface =3D 0xa > vendor =3D "H\004\000\004\nf=D6=A4j``\004\000\000\000\000\020\000= \000\000\nfR\006N\nf\020\000\000\000\000\000\000\000p?H\004\000\004\nf=D6= =A4j`\nf\006\000\000\000\000\004\000\000\nfR\006NP:>\000\004\000\000\006\00= 0\000\000\000<\030\vfa\aN kj\000\004\000\000\006\000\000\000 \004" > product =3D "l\nf8\aJ\005\000\000\000\000\000\000\000\000@\000 ",= '\0' , "\001", '\0' , "H\004\000\004\2= 10\nf=D6=A4j`\205g\000\000\000\000\020\000\000\000\210\nfR\006N$\nf\020\000= \000\000\000\000\000\0000;>=C3=AC\nf" > bcdDevice =3D -697955828 > bcdUSB =3D -697955700 > id =3D (usb_interface_descriptor_t *) 0x0 > #10 0xc38a3bb0 in ?? () > No symbol table info available. > #11 0xc33deb80 in ?? () > No symbol table info available. > #12 0x00000000 in ?? () > No symbol table info available. > #13 0xc33ce000 in ?? () > No symbol table info available. > #14 0xc33deacc in ?? () > No symbol table info available. > #15 0xc33e3a50 in ?? () > No symbol table info available. > #16 0xd6660b4c in ?? () > No symbol table info available. > #17 0xc050cb7e in kobj_lookup_method_mi (cls=3D0xc33dea80, desc=3D0xc33ce= 000) > at /usr/src/sys/kern/subr_kobj.c:202 > ce =3D (kobj_method_t *) 0x0 > basep =3D (kobj_class_t *) 0xc33dea80 > #18 0xc0507c9a in device_attach (dev=3D0xc33dea80) at device_if.h:177 > error =3D 0 > #19 0xc0507c11 in device_probe_and_attach (dev=3D0xc33dea80) > at /usr/src/sys/kern/subr_bus.c:2336 > error =3D -1016358912 > #20 0xc0508ae4 in bus_generic_driver_added (dev=3D0xc332f080, driver=3D0x= c38a5380) > at /usr/src/sys/kern/subr_bus.c:3069 > child =3D 0xc33dea80 > #21 0xc0506570 in devclass_add_driver (dc=3D0xc327d240, driver=3D0xc38a53= 80) > at bus_if.h:183 > dl =3D 0xc332f080 > i =3D 3 > #22 0xc0509d85 in driver_module_handler (mod=3D0xc386a640, what=3D-101434= 4832,=20 > arg=3D0xc38a5398) at /usr/src/sys/kern/subr_bus.c:3697 > error =3D -1020800448 > dmd =3D (struct driver_module_data *) 0xc38a5398 > bus_devclass =3D 0xc327d240 > driver =3D 0xc38a5380 > #23 0xc04e2181 in module_register_init (arg=3D0xc38a53ac) > at /usr/src/sys/kern/kern_module.c:121 > data =3D (const moduledata_t *) 0xc38a53ac > error =3D -1016306816 > mod =3D 0xc386a640 > #24 0xc04db530 in linker_file_sysinit (lf=3D0x0) > at /usr/src/sys/kern/kern_linker.c:194 > start =3D (struct sysinit **) 0xc38a4338 > stop =3D (struct sysinit **) 0xc38a433c > sipp =3D (struct sysinit **) 0xc38a4338 > xipp =3D (struct sysinit **) 0x0 > save =3D (struct sysinit *) 0xc33debb8 > #25 0xc04db8c8 in linker_load_file ( > filename=3D0xc36c6380 "/boot/kernel/uvisor.ko", result=3D0xd6660c94) > at /usr/src/sys/kern/kern_linker.c:367 > lc =3D 0xc06b0860 > lf =3D 0xc3894100 > foundfile =3D 1 > error =3D 0 > #26 0xc04de4f9 in linker_load_module ( > kldname=3D0xc36c6380 "/boot/kernel/uvisor.ko", modname=3D0xc33cf400 "= uvisor",=20 > parent=3D0x0, verinfo=3D0x0, lfpp=3D0xd6660cc0) > at /usr/src/sys/kern/kern_linker.c:1712 > lfdep =3D 0xc104ed20 > filename =3D 0x0 > pathname =3D 0xc36c6380 "/boot/kernel/uvisor.ko" > error =3D 17 > #27 0xc04dc56a in kldload (td=3D0xc3861180, uap=3D0x0) > at /usr/src/sys/kern/kern_linker.c:785 > kldname =3D 0x0 > modname =3D 0xc33debb8 "\021" > pathname =3D 0xc33cf400 "uvisor" > lf =3D 0xd6660d38 > error =3D 0 > #28 0xc065a3e0 in syscall (frame=3D > {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 0, tf_esi =3D= -1077940908, tf_ebp =3D -1077940952, tf_isp =3D -697954972, tf_ebx =3D 0, = tf_edx =3D -1, tf_ecx =3D -1077940704, tf_eax =3D 304, tf_trapno =3D 12, tf= _err =3D 2, tf_eip =3D 671906511, tf_cs =3D 51, tf_eflags =3D 531, tf_esp = =3D -1077941012, tf_ss =3D 59}) > at /usr/src/sys/i386/i386/trap.c:976 > params =3D 0xbfbfecf0
> callp =3D (struct sysent *) 0xc06aaac0 > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > lf =3D 0xd6660d38 > error =3D 0 > #28 0xc065a3e0 in syscall (frame=3D > {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 0, tf_esi =3D= -1077940908, tf_ebp =3D -1077940952, tf_isp =3D -697954972, tf_ebx =3D 0, = tf_edx =3D -1, tf_ecx =3D -1077940704, tf_eax =3D 304, tf_trapno =3D 12, tf= _err =3D 2, tf_eip =3D 671906511, tf_cs =3D 51, tf_eflags =3D 531, tf_esp = =3D -1077941012, tf_ss =3D 59}) > at /usr/src/sys/i386/i386/trap.c:976 > params =3D 0xbfbfecf0
> callp =3D (struct sysent *) 0xc06aaac0 > td =3D (struct thread *) 0xc3861180 > p =3D (struct proc *) 0xc3865418 > orig_tf_eflags =3D 531 > sticks =3D 0 > error =3D 0 > narg =3D 1 > args =3D {-1077940704, 12, 0, 0, -1014606824, 0, 0, 0} > code =3D 304 > #29 0xc06469ff in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception= .s:200 > No locals. > #30 0x00000033 in ?? () > No symbol table info available. > (kgdb)=20 >=20 > Hope this helps... >=20 > bye From owner-freebsd-usb@FreeBSD.ORG Tue Nov 29 21:50:51 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4306F16A41F; Tue, 29 Nov 2005 21:50:51 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22A0843D75; Tue, 29 Nov 2005 21:50:44 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2828839 for multiple; Tue, 29 Nov 2005 16:50:27 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jATLoZ77074918; Tue, 29 Nov 2005 16:50:38 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: jpeg@thilelli.net Date: Tue, 29 Nov 2005 16:50:06 -0500 User-Agent: KMail/1.8.2 References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200504150217.37985.jhb@FreeBSD.org> <60391.192.168.1.18.1113571878.squirrel@webmail.thilelli.net> In-Reply-To: <60391.192.168.1.18.1113571878.squirrel@webmail.thilelli.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511291650.08922.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. 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: Tue, 29 Nov 2005 21:50:51 -0000 On Friday 15 April 2005 09:31 am, Julien Gabel wrote: > >> I made some progress here. After playing with BIOS settings, i am now > >> able to: > >> - Boot with ACPI enable (shutdown -p works as expected now); > >> - Use USB devices. > >> > >> In order to do that, i had to totally disable "APIC Function" in the > >> BIOS. With "APIC Function" enabled, neither version 1.4 nor 1.1 of the > >> "MPS Table Version" settings solved my problem. > >> > >> So, although i need to disable "APIC Function", all seems to works > >> correctly together: ACPI support and USB support. As a side note, i > >> did not encountered anymore the interrupt storm on the uhci USB host > >> controller driver. > >> > >> Maybe can someone explain me what may be wrong with "APIC Function", > >> and if there is some drawbacks to disable it (or what is the purpose > >> of this setting)? > > > > APIC is used to route interrupts differently. You can also disable it > > from the loader with 'hint.apic.0.disabled=1'. I've looked at your > > dmesg's, and the problem is that in the ACPI case the IRQ 10 that your > > USB controllers are using is configured as an ISA IRQ (edge/high). For > > now you can either disable APIC or ACPI as a workaround until I figure > > out a better solution. > > Thanks. I effectively prefer turn APIC off via the loader configuration > than from the BIOS settings, i think it is far more easily to remember > what i have done from this place. > > I can try patch(es) or make test(s) without problem on this machine, if > any. Thanks a lot. Actually, can you try this patch: Index: acpi_pci_link.c =================================================================== RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v retrieving revision 1.48 diff -u -r1.48 acpi_pci_link.c --- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 @@ -859,7 +859,18 @@ if (!link->l_routed && PCI_INTERRUPT_VALID(link->l_irq)) { link->l_routed = TRUE; + /* + * Some BIOSen are broken and actually set + * some interrupts to active-high with level + * trigger. Workaround this by hard-coding + * active-low and level-trigger. + */ +#if 0 acpi_config_intr(dev, resource); +#else + BUS_CONFIG_INTR(dev, link->l_irq, + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); +#endif pci_link_interrupt_weights[link->l_irq] += link->l_references; } -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Tue Nov 29 22:00:26 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 008A316A420 for ; Tue, 29 Nov 2005 22:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5331E43D70 for ; Tue, 29 Nov 2005 22:00:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jATM0CSU017212 for ; Tue, 29 Nov 2005 22:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jATM0CC8017211; Tue, 29 Nov 2005 22:00:12 GMT (envelope-from gnats) Date: Tue, 29 Nov 2005 22:00:12 GMT Message-Id: <200511292200.jATM0CC8017211@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: John Baldwin Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 22:00:26 -0000 The following reply was made to PR usb/74989; it has been noted by GNATS. From: John Baldwin To: jpeg@thilelli.net Cc: freebsd-acpi@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Date: Tue, 29 Nov 2005 16:50:06 -0500 On Friday 15 April 2005 09:31 am, Julien Gabel wrote: > >> I made some progress here. After playing with BIOS settings, i am now > >> able to: > >> - Boot with ACPI enable (shutdown -p works as expected now); > >> - Use USB devices. > >> > >> In order to do that, i had to totally disable "APIC Function" in the > >> BIOS. With "APIC Function" enabled, neither version 1.4 nor 1.1 of the > >> "MPS Table Version" settings solved my problem. > >> > >> So, although i need to disable "APIC Function", all seems to works > >> correctly together: ACPI support and USB support. As a side note, i > >> did not encountered anymore the interrupt storm on the uhci USB host > >> controller driver. > >> > >> Maybe can someone explain me what may be wrong with "APIC Function", > >> and if there is some drawbacks to disable it (or what is the purpose > >> of this setting)? > > > > APIC is used to route interrupts differently. You can also disable it > > from the loader with 'hint.apic.0.disabled=1'. I've looked at your > > dmesg's, and the problem is that in the ACPI case the IRQ 10 that your > > USB controllers are using is configured as an ISA IRQ (edge/high). For > > now you can either disable APIC or ACPI as a workaround until I figure > > out a better solution. > > Thanks. I effectively prefer turn APIC off via the loader configuration > than from the BIOS settings, i think it is far more easily to remember > what i have done from this place. > > I can try patch(es) or make test(s) without problem on this machine, if > any. Thanks a lot. Actually, can you try this patch: Index: acpi_pci_link.c =================================================================== RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v retrieving revision 1.48 diff -u -r1.48 acpi_pci_link.c --- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 @@ -859,7 +859,18 @@ if (!link->l_routed && PCI_INTERRUPT_VALID(link->l_irq)) { link->l_routed = TRUE; + /* + * Some BIOSen are broken and actually set + * some interrupts to active-high with level + * trigger. Workaround this by hard-coding + * active-low and level-trigger. + */ +#if 0 acpi_config_intr(dev, resource); +#else + BUS_CONFIG_INTR(dev, link->l_irq, + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); +#endif pci_link_interrupt_weights[link->l_irq] += link->l_references; } -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Tue Nov 29 22:47:46 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADE5816A41F for ; Tue, 29 Nov 2005 22:47:46 +0000 (GMT) (envelope-from flag@longino.wired.org) Received: from mail.oltrelinux.com (krisma.oltrelinux.com [194.242.226.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 972CC43D66 for ; Tue, 29 Nov 2005 22:47:39 +0000 (GMT) (envelope-from flag@longino.wired.org) Received: from longino.wired.org (ip-79-218.sn1.eutelia.it [62.94.79.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.oltrelinux.com (Postfix) with ESMTP id 9431611AE51; Tue, 29 Nov 2005 23:47:35 +0100 (CET) Received: from longino.wired.org (localhost.wired.org [127.0.0.1]) by longino.wired.org (8.13.4/8.13.4) with ESMTP id jATMlPaP002055; Tue, 29 Nov 2005 23:47:25 +0100 (CET) (envelope-from flag@longino.wired.org) Received: (from flag@localhost) by longino.wired.org (8.13.4/8.13.4/Submit) id jATMlNMw002054; Tue, 29 Nov 2005 23:47:23 +0100 (CET) (envelope-from flag) Date: Tue, 29 Nov 2005 23:47:23 +0100 From: Paolo Pisati To: "Peter D. Quilty" Message-ID: <20051129224722.GA1953@tin.it> References: <20051127164524.GA621@tin.it> <1133281205.1164.9.camel@pdq-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1133281205.1164.9.camel@pdq-laptop> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at krisma.oltrelinux.com Cc: FreeBSD_Usb Subject: Re: [panic] FreeBSD 6.x, Palm PDA and ucom/uvisor 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: Tue, 29 Nov 2005 22:47:46 -0000 On Tue, Nov 29, 2005 at 11:20:04AM -0500, Peter D. Quilty wrote: > Paolo, > I have a Tungsten C that I sync with Evolution on FreeBSD 6.0-RELEASE. > You have to load ucom & uvisor first and then press the hotsync button. > The Palm should show up as /dev/cuaU0. With the new tty driver in 6.x, > you don't access /dev/ucom0 any longer, but instead use /dev/cuaU0. yes, but my problem is at lower level, my pda doesn't 'attach'... :) $ kldstat Id Refs Address Size Name 1 29 0xc0400000 36c780 kernel 2 1 0xc076d000 6144 snd_ich.ko 3 2 0xc0774000 205a8 sound.ko 4 1 0xc0795000 51ec ugen.ko 5 1 0xc079b000 420c ums.ko 6 1 0xc07a0000 80b4 umass.ko 7 1 0xc07a9000 90e0 ng_ubt.ko 8 2 0xc07b3000 d568 netgraph.ko 9 1 0xc07c1000 af00 if_iwi.ko 10 2 0xc07cc000 20cf0 wlan.ko 11 1 0xc07ed000 66114 acpi.ko 12 1 0xc385c000 33000 nfsclient.ko 13 2 0xc38bc000 1a000 linux.ko 14 1 0xc3928000 2000 rtc.ko 15 1 0xc3e8a000 3000 uvisor.ko 16 1 0xc3e8d000 3000 ucom.ko [press hotsync button, and from dmesg] ucom0: Tapwave, Inc. Tapwave Handheld, rev 1.10/1.00, addr 3 ucom0: failed to set configuration, err=TIMEOUT <| device_attach: ucom0 attach returned 6 <| uhub3: port 2, set config at addr 3 failed <| uhub3: device problem (TIMEOUT), disabling port 2 <| $ ls -la /dev/u* crw-r--r-- 1 root operator 0, 68 Nov 29 23:02 /dev/ugen0 crw-r--r-- 1 root operator 0, 69 Nov 29 23:02 /dev/ugen0.1 crw-r--r-- 1 root operator 0, 70 Nov 29 23:02 /dev/ugen0.2 crw-r--r-- 1 root operator 0, 71 Nov 29 23:02 /dev/ugen0.3 crw-r--r-- 1 root operator 0, 72 Nov 29 23:02 /dev/ums0 lrwxr-xr-x 1 root wheel 6 Jan 1 1970 /dev/urandom -> random crw-rw---- 1 root operator 0, 30 Nov 29 23:02 /dev/usb crw-rw---- 1 root operator 0, 29 Nov 29 23:02 /dev/usb0 crw-rw---- 1 root operator 0, 31 Nov 29 23:02 /dev/usb1 crw-rw---- 1 root operator 0, 32 Nov 29 23:02 /dev/usb2 crw-rw---- 1 root operator 0, 33 Nov 29 23:02 /dev/usb3 crw-rw---- 1 root operator 0, 34 Nov 29 23:02 /dev/usb4 [flag@longino ~] $ ls -la /dev/cu* ls: /dev/cu*: No such file or directory [flag@longino ~] so, no ucom* nor cu*... $ uname -a FreeBSD longino 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Nov 27 17:07:24 CET 2005 root@longino:/usr/obj/usr/src/sys/LONGINO i386 but if you say that it works with your tungsten c, it's strange it doesn't work with mine... do you laod first ucom then uvisor? or just uvisor? could you test if your box crash how i described? bye -- Paolo From owner-freebsd-usb@FreeBSD.ORG Wed Nov 30 19:49:41 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FBEA16A420; Wed, 30 Nov 2005 19:49:41 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91BD543D68; Wed, 30 Nov 2005 19:49:40 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 31A21564C2; Wed, 30 Nov 2005 20:49:38 +0100 (CET) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 50428-03-2; Wed, 30 Nov 2005 20:49:36 +0100 (CET) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id A2350564C1; Wed, 30 Nov 2005 20:49:36 +0100 (CET) Received: from 192.168.1.20 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Wed, 30 Nov 2005 20:49:36 +0100 (CET) Message-ID: <59463.192.168.1.20.1133380176.squirrel@webmail.thilelli.net> In-Reply-To: <200511291650.08922.jhb@freebsd.org> References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200504150217.37985.jhb@FreeBSD.org> <60391.192.168.1.18.1113571878.squirrel@webmail.thilelli.net> <200511291650.08922.jhb@freebsd.org> Date: Wed, 30 Nov 2005 20:49:36 +0100 (CET) From: "Julien Gabel" To: "John Baldwin" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jpeg@thilelli.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 19:49:41 -0000 >>>> I made some progress here. After playing with BIOS settings, i am now >>>> able to: >>>> - Boot with ACPI enable (shutdown -p works as expected now); >>>> - Use USB devices. >>>> >>>> In order to do that, i had to totally disable "APIC Function" in the >>>> BIOS. With "APIC Function" enabled, neither version 1.4 nor 1.1 of >>>> the "MPS Table Version" settings solved my problem. >>>> >>>> So, although i need to disable "APIC Function", all seems to works >>>> correctly together: ACPI support and USB support. As a side note, i >>>> did not encountered anymore the interrupt storm on the uhci USB host >>>> controller driver. >>>> >>>> Maybe can someone explain me what may be wrong with "APIC Function", >>>> and if there is some drawbacks to disable it (or what is the purpose >>>> of this setting)? >>> APIC is used to route interrupts differently. You can also disable it >>> from the loader with 'hint.apic.0.disabled=1'. I've looked at your >>> dmesg's, and the problem is that in the ACPI case the IRQ 10 that your >>> USB controllers are using is configured as an ISA IRQ (edge/high). >>> For now you can either disable APIC or ACPI as a workaround until I >>> figure out a better solution. >> Thanks. I effectively prefer turn APIC off via the loader configuration >> than from the BIOS settings, i think it is far more easily to remember >> what i have done from this place. >> I can try patch(es) or make test(s) without problem on this machine, if >> any. Thanks a lot. > Actually, can you try this patch: > > Index: acpi_pci_link.c > =================================================================== > RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v > retrieving revision 1.48 > diff -u -r1.48 acpi_pci_link.c > --- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 > +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 > @@ -859,7 +859,18 @@ > if (!link->l_routed && > PCI_INTERRUPT_VALID(link->l_irq)) { > link->l_routed = TRUE; > + /* > + * Some BIOSen are broken and actually set > + * some interrupts to active-high with level > + * trigger. Workaround this by hard-coding > + * active-low and level-trigger. > + */ > +#if 0 > acpi_config_intr(dev, resource); > +#else > + BUS_CONFIG_INTR(dev, link->l_irq, > + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); > +#endif > pci_link_interrupt_weights[link->l_irq] += > link->l_references; > } I applied this patch, rebuild and installed the kernel, set the loader.conf directive `hint.apic.0.disabled' to "0" and reboot on the system. Sadly, the same behaviour happened (as before), i.e. USB mouse simply hang, USB thumbdrive doesn't work, etc. The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't know if this may change something or not in this case. -- -jpeg. From owner-freebsd-usb@FreeBSD.ORG Wed Nov 30 19:50:07 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68FEF16A41F for ; Wed, 30 Nov 2005 19:50:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 238DF43D49 for ; Wed, 30 Nov 2005 19:50:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAUJo6DQ049346 for ; Wed, 30 Nov 2005 19:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAUJo63B049345; Wed, 30 Nov 2005 19:50:06 GMT (envelope-from gnats) Date: Wed, 30 Nov 2005 19:50:06 GMT Message-Id: <200511301950.jAUJo63B049345@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Julien Gabel" Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Julien Gabel List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2005 19:50:07 -0000 The following reply was made to PR usb/74989; it has been noted by GNATS. From: "Julien Gabel" To: "John Baldwin" Cc: freebsd-acpi@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Date: Wed, 30 Nov 2005 20:49:36 +0100 (CET) >>>> I made some progress here. After playing with BIOS settings, i am now >>>> able to: >>>> - Boot with ACPI enable (shutdown -p works as expected now); >>>> - Use USB devices. >>>> >>>> In order to do that, i had to totally disable "APIC Function" in the >>>> BIOS. With "APIC Function" enabled, neither version 1.4 nor 1.1 of >>>> the "MPS Table Version" settings solved my problem. >>>> >>>> So, although i need to disable "APIC Function", all seems to works >>>> correctly together: ACPI support and USB support. As a side note, i >>>> did not encountered anymore the interrupt storm on the uhci USB host >>>> controller driver. >>>> >>>> Maybe can someone explain me what may be wrong with "APIC Function", >>>> and if there is some drawbacks to disable it (or what is the purpose >>>> of this setting)? >>> APIC is used to route interrupts differently. You can also disable it >>> from the loader with 'hint.apic.0.disabled=1'. I've looked at your >>> dmesg's, and the problem is that in the ACPI case the IRQ 10 that your >>> USB controllers are using is configured as an ISA IRQ (edge/high). >>> For now you can either disable APIC or ACPI as a workaround until I >>> figure out a better solution. >> Thanks. I effectively prefer turn APIC off via the loader configuration >> than from the BIOS settings, i think it is far more easily to remember >> what i have done from this place. >> I can try patch(es) or make test(s) without problem on this machine, if >> any. Thanks a lot. > Actually, can you try this patch: > > Index: acpi_pci_link.c > =================================================================== > RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v > retrieving revision 1.48 > diff -u -r1.48 acpi_pci_link.c > --- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 > +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 > @@ -859,7 +859,18 @@ > if (!link->l_routed && > PCI_INTERRUPT_VALID(link->l_irq)) { > link->l_routed = TRUE; > + /* > + * Some BIOSen are broken and actually set > + * some interrupts to active-high with level > + * trigger. Workaround this by hard-coding > + * active-low and level-trigger. > + */ > +#if 0 > acpi_config_intr(dev, resource); > +#else > + BUS_CONFIG_INTR(dev, link->l_irq, > + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); > +#endif > pci_link_interrupt_weights[link->l_irq] += > link->l_references; > } I applied this patch, rebuild and installed the kernel, set the loader.conf directive `hint.apic.0.disabled' to "0" and reboot on the system. Sadly, the same behaviour happened (as before), i.e. USB mouse simply hang, USB thumbdrive doesn't work, etc. The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't know if this may change something or not in this case. -- -jpeg. From owner-freebsd-usb@FreeBSD.ORG Thu Dec 1 17:08:52 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54BD216A41F; Thu, 1 Dec 2005 17:08:52 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 362AA43D5F; Thu, 1 Dec 2005 17:08:51 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 2948484 for multiple; Thu, 01 Dec 2005 12:06:46 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB1H8dLQ090530; Thu, 1 Dec 2005 12:08:41 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: jpeg@thilelli.net Date: Thu, 1 Dec 2005 12:03:15 -0500 User-Agent: KMail/1.8.2 References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200511291650.08922.jhb@freebsd.org> <59463.192.168.1.20.1133380176.squirrel@webmail.thilelli.net> In-Reply-To: <59463.192.168.1.20.1133380176.squirrel@webmail.thilelli.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512011203.17304.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. 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: Thu, 01 Dec 2005 17:08:52 -0000 On Wednesday 30 November 2005 02:49 pm, Julien Gabel wrote: > >>>> I made some progress here. After playing with BIOS settings, i am now > >>>> able to: > >>>> - Boot with ACPI enable (shutdown -p works as expected now); > >>>> - Use USB devices. > >>>> > >>>> In order to do that, i had to totally disable "APIC Function" in the > >>>> BIOS. With "APIC Function" enabled, neither version 1.4 nor 1.1 of > >>>> the "MPS Table Version" settings solved my problem. > >>>> > >>>> So, although i need to disable "APIC Function", all seems to works > >>>> correctly together: ACPI support and USB support. As a side note, i > >>>> did not encountered anymore the interrupt storm on the uhci USB host > >>>> controller driver. > >>>> > >>>> Maybe can someone explain me what may be wrong with "APIC Function", > >>>> and if there is some drawbacks to disable it (or what is the purpose > >>>> of this setting)? > >>> > >>> APIC is used to route interrupts differently. You can also disable it > >>> from the loader with 'hint.apic.0.disabled=1'. I've looked at your > >>> dmesg's, and the problem is that in the ACPI case the IRQ 10 that your > >>> USB controllers are using is configured as an ISA IRQ (edge/high). > >>> For now you can either disable APIC or ACPI as a workaround until I > >>> figure out a better solution. > >> > >> Thanks. I effectively prefer turn APIC off via the loader configuration > >> than from the BIOS settings, i think it is far more easily to remember > >> what i have done from this place. > >> > >> I can try patch(es) or make test(s) without problem on this machine, if > >> any. Thanks a lot. > > > > Actually, can you try this patch: > > > > Index: acpi_pci_link.c > > =================================================================== > > RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v > > retrieving revision 1.48 > > diff -u -r1.48 acpi_pci_link.c > > --- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 > > +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 > > @@ -859,7 +859,18 @@ > > if (!link->l_routed && > > PCI_INTERRUPT_VALID(link->l_irq)) { > > link->l_routed = TRUE; > > + /* > > + * Some BIOSen are broken and actually set > > + * some interrupts to active-high with level > > + * trigger. Workaround this by hard-coding > > + * active-low and level-trigger. > > + */ > > +#if 0 > > acpi_config_intr(dev, resource); > > +#else > > + BUS_CONFIG_INTR(dev, link->l_irq, > > + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); > > +#endif > > pci_link_interrupt_weights[link->l_irq] += > > link->l_references; > > } > > I applied this patch, rebuild and installed the kernel, set the loader.conf > directive `hint.apic.0.disabled' to "0" and reboot on the system. Sadly, > the same behaviour happened (as before), i.e. USB mouse simply hang, USB > thumbdrive doesn't work, etc. > > The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your > last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't > know if this may change something or not in this case. Well, I can't get to your dmesg's anymore. If I understand correctly, USB works for you so long as you have APIC disabled, both with ACPI enabled and disabled correct? And USB is broken if you have both ACPI and APIC enabled. Have you tried booting with ACPI disabled (hint.acpi.0.disabled=1) but with APIC enabled? Does it work then or break? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Thu Dec 1 17:10:09 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D75D916A41F for ; Thu, 1 Dec 2005 17:10:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70ACC43D64 for ; Thu, 1 Dec 2005 17:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB1HA7c0050198 for ; Thu, 1 Dec 2005 17:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB1HA7ae050197; Thu, 1 Dec 2005 17:10:07 GMT (envelope-from gnats) Date: Thu, 1 Dec 2005 17:10:07 GMT Message-Id: <200512011710.jB1HA7ae050197@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: John Baldwin Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 17:10:10 -0000 The following reply was made to PR usb/74989; it has been noted by GNATS. From: John Baldwin To: jpeg@thilelli.net Cc: freebsd-acpi@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Date: Thu, 1 Dec 2005 12:03:15 -0500 On Wednesday 30 November 2005 02:49 pm, Julien Gabel wrote: > >>>> I made some progress here. After playing with BIOS settings, i am now > >>>> able to: > >>>> - Boot with ACPI enable (shutdown -p works as expected now); > >>>> - Use USB devices. > >>>> > >>>> In order to do that, i had to totally disable "APIC Function" in the > >>>> BIOS. With "APIC Function" enabled, neither version 1.4 nor 1.1 of > >>>> the "MPS Table Version" settings solved my problem. > >>>> > >>>> So, although i need to disable "APIC Function", all seems to works > >>>> correctly together: ACPI support and USB support. As a side note, i > >>>> did not encountered anymore the interrupt storm on the uhci USB host > >>>> controller driver. > >>>> > >>>> Maybe can someone explain me what may be wrong with "APIC Function", > >>>> and if there is some drawbacks to disable it (or what is the purpose > >>>> of this setting)? > >>> > >>> APIC is used to route interrupts differently. You can also disable it > >>> from the loader with 'hint.apic.0.disabled=1'. I've looked at your > >>> dmesg's, and the problem is that in the ACPI case the IRQ 10 that your > >>> USB controllers are using is configured as an ISA IRQ (edge/high). > >>> For now you can either disable APIC or ACPI as a workaround until I > >>> figure out a better solution. > >> > >> Thanks. I effectively prefer turn APIC off via the loader configuration > >> than from the BIOS settings, i think it is far more easily to remember > >> what i have done from this place. > >> > >> I can try patch(es) or make test(s) without problem on this machine, if > >> any. Thanks a lot. > > > > Actually, can you try this patch: > > > > Index: acpi_pci_link.c > > =================================================================== > > RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v > > retrieving revision 1.48 > > diff -u -r1.48 acpi_pci_link.c > > --- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 > > +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 > > @@ -859,7 +859,18 @@ > > if (!link->l_routed && > > PCI_INTERRUPT_VALID(link->l_irq)) { > > link->l_routed = TRUE; > > + /* > > + * Some BIOSen are broken and actually set > > + * some interrupts to active-high with level > > + * trigger. Workaround this by hard-coding > > + * active-low and level-trigger. > > + */ > > +#if 0 > > acpi_config_intr(dev, resource); > > +#else > > + BUS_CONFIG_INTR(dev, link->l_irq, > > + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); > > +#endif > > pci_link_interrupt_weights[link->l_irq] += > > link->l_references; > > } > > I applied this patch, rebuild and installed the kernel, set the loader.conf > directive `hint.apic.0.disabled' to "0" and reboot on the system. Sadly, > the same behaviour happened (as before), i.e. USB mouse simply hang, USB > thumbdrive doesn't work, etc. > > The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your > last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't > know if this may change something or not in this case. Well, I can't get to your dmesg's anymore. If I understand correctly, USB works for you so long as you have APIC disabled, both with ACPI enabled and disabled correct? And USB is broken if you have both ACPI and APIC enabled. Have you tried booting with ACPI disabled (hint.acpi.0.disabled=1) but with APIC enabled? Does it work then or break? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Thu Dec 1 21:34:30 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9D5E16A41F; Thu, 1 Dec 2005 21:34:30 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id D14A543D60; Thu, 1 Dec 2005 21:34:29 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 0D651564C2; Thu, 1 Dec 2005 22:34:28 +0100 (CET) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24991-01-2; Thu, 1 Dec 2005 22:34:24 +0100 (CET) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 857A3564C1; Thu, 1 Dec 2005 22:34:24 +0100 (CET) Received: from 192.168.1.20 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Thu, 1 Dec 2005 22:34:24 +0100 (CET) Message-ID: <49547.192.168.1.20.1133472864.squirrel@webmail.thilelli.net> In-Reply-To: <200512011203.17304.jhb@freebsd.org> References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200511291650.08922.jhb@freebsd.org> <59463.192.168.1.20.1133380176.squirrel@webmail.thilelli.net> <200512011203.17304.jhb@freebsd.org> Date: Thu, 1 Dec 2005 22:34:24 +0100 (CET) From: "Julien Gabel" To: "John Baldwin" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jpeg@thilelli.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 21:34:30 -0000 >> I applied this patch, rebuild and installed the kernel, set the >> loader.conf directive `hint.apic.0.disabled' to "0" and reboot on the >> system. Sadly, the same behaviour happened (as before), i.e. USB mouse >> simply hang, USB thumbdrive doesn't work, etc. >> >> The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your >> last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't >> know if this may change something or not in this case. > Well, I can't get to your dmesg's anymore. If I understand correctly, Yes, sorry: the layout of the website was changed recently. Here are the corresponding files (using RELENG_5 at this time): http://www.thilelli.net/~jgabel/store/pub/PR/74989/ > USB works for you so long as you have APIC disabled, both with ACPI > enabled and disabled correct? And USB is broken if you have both ACPI > and APIC enabled. Have you tried booting with ACPI disabled > (hint.acpi.0.disabled=1) but with APIC enabled? Does it work then or > break? More precisely, here is a little tab... to be more accurate (i hope): --------------------------------------- USB support | ACPI | APIC | ------------------------ | on | off | on | off | --------------------------------------- KO! | XX | | XX | | --------------------------------------- ok | XX | | | XX | --------------------------------------- ok | | XX | XX | | --------------------------------------- Did not boot(*)| | XX | | XX | --------------------------------------- (*) The boot disk seems not be able to be used for the root mount, i.e. ufs:/dev/ad0s1a in my case. Note: this box currently run the RELENG_6 branch, build at Wed Nov 30 07:12:41 CET 2005. -- -jpeg. From owner-freebsd-usb@FreeBSD.ORG Thu Dec 1 21:40:10 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C251616A509 for ; Thu, 1 Dec 2005 21:40:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6112E43D4C for ; Thu, 1 Dec 2005 21:40:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB1LeAUK083719 for ; Thu, 1 Dec 2005 21:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB1LeAHU083718; Thu, 1 Dec 2005 21:40:10 GMT (envelope-from gnats) Date: Thu, 1 Dec 2005 21:40:10 GMT Message-Id: <200512012140.jB1LeAHU083718@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Julien Gabel" Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Julien Gabel List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 21:40:10 -0000 The following reply was made to PR usb/74989; it has been noted by GNATS. From: "Julien Gabel" To: "John Baldwin" Cc: freebsd-acpi@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Date: Thu, 1 Dec 2005 22:34:24 +0100 (CET) >> I applied this patch, rebuild and installed the kernel, set the >> loader.conf directive `hint.apic.0.disabled' to "0" and reboot on the >> system. Sadly, the same behaviour happened (as before), i.e. USB mouse >> simply hang, USB thumbdrive doesn't work, etc. >> >> The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your >> last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't >> know if this may change something or not in this case. > Well, I can't get to your dmesg's anymore. If I understand correctly, Yes, sorry: the layout of the website was changed recently. Here are the corresponding files (using RELENG_5 at this time): http://www.thilelli.net/~jgabel/store/pub/PR/74989/ > USB works for you so long as you have APIC disabled, both with ACPI > enabled and disabled correct? And USB is broken if you have both ACPI > and APIC enabled. Have you tried booting with ACPI disabled > (hint.acpi.0.disabled=1) but with APIC enabled? Does it work then or > break? More precisely, here is a little tab... to be more accurate (i hope): --------------------------------------- USB support | ACPI | APIC | ------------------------ | on | off | on | off | --------------------------------------- KO! | XX | | XX | | --------------------------------------- ok | XX | | | XX | --------------------------------------- ok | | XX | XX | | --------------------------------------- Did not boot(*)| | XX | | XX | --------------------------------------- (*) The boot disk seems not be able to be used for the root mount, i.e. ufs:/dev/ad0s1a in my case. Note: this box currently run the RELENG_6 branch, build at Wed Nov 30 07:12:41 CET 2005. -- -jpeg. From owner-freebsd-usb@FreeBSD.ORG Thu Dec 1 21:40:15 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 772CE16A41F for ; Thu, 1 Dec 2005 21:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5D2843D68 for ; Thu, 1 Dec 2005 21:40:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB1LeEew083739 for ; Thu, 1 Dec 2005 21:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB1LeEvJ083738; Thu, 1 Dec 2005 21:40:14 GMT (envelope-from gnats) Date: Thu, 1 Dec 2005 21:40:14 GMT Message-Id: <200512012140.jB1LeEvJ083738@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anish Mistry Cc: Subject: Re: usb/84608: Sony digital camera DSC-P100, rev 2.00/5.00 is not usable. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anish Mistry List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2005 21:40:15 -0000 The following reply was made to PR usb/84608; it has been noted by GNATS. From: Anish Mistry To: "Undisclosed.Recipients": ; Cc: bug-followup@freebsd.org Subject: Re: usb/84608: Sony digital camera DSC-P100, rev 2.00/5.00 is not usable. Date: Thu, 1 Dec 2005 16:40:54 -0500 --nextPart1282101.oJnYjCB2ET Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Works fine for my sony camera on CURRENT. Only the third hunk=20 succeeded since the rest is already in current. umass0: Sony Sony DSC, rev 2.00/5.00, addr 2 umass0: RBC over CBI; quirks =3D 0x1000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device=20 da0: 1.000MB/s transfers da0: 469MB (960512 512 byte sectors: 64H 32S/T 469C) =2D-=20 Anish Mistry --nextPart1282101.oJnYjCB2ET Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDj23zxqA5ziudZT0RApP5AKCMxaTaK8+0w19EWixKFBcqdLzcpwCguExX fYVj9ibAQghBZOJHZTbQr1c= =Icpf -----END PGP SIGNATURE----- --nextPart1282101.oJnYjCB2ET-- From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 06:09:12 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77DD516A41F for ; Fri, 2 Dec 2005 06:09:12 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id D352243D5C for ; Fri, 2 Dec 2005 06:09:11 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so368316wxc for ; Thu, 01 Dec 2005 22:09:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=YbTztFERC/ZHZLRvCqFn72oiReKJLjyJxtrovnEjEKrQHJiHVVd1jYlz7grkfDxYwHMTpdme8NJ5MUusxYEb0U9Ysi/NGPhb6HSO5DVUpZ4Xvs11SRy+lcIDGn10Ce0yDscpJFtHdtoYleLuZ67QnJDKRpPiaboDG8ZgMFcQOfo= Received: by 10.70.14.11 with SMTP id 11mr3177565wxn; Thu, 01 Dec 2005 22:09:11 -0800 (PST) Received: by 10.70.18.16 with HTTP; Thu, 1 Dec 2005 22:09:11 -0800 (PST) Message-ID: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> Date: Fri, 2 Dec 2005 14:09:11 +0800 From: kylin To: John Baldwin , freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 06:09:12 -0000 sir : I am now working on the pci e hotplug of freebsd ,and reading code of the relative part in linux. i have never touch the field of USB . now i wonder the mechanism of USB hotplug and the scsi hotplug . in linux and my working on freebsd ,there r specail mechanism to waiting for the hotplug event ,and the IRQ and MEM IO resource allocation is complex . i am fresh to the USB and the even complex SCSI driver arch , could u give me some advise ? thank u:) -- we who r about to die,salute u! From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 06:14:54 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F84816A41F; Fri, 2 Dec 2005 06:14:54 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB49343D53; Fri, 2 Dec 2005 06:14:53 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jB26Du9C066352; Thu, 1 Dec 2005 23:13:56 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 01 Dec 2005 23:14:33 -0700 (MST) Message-Id: <20051201.231433.32736713.imp@bsdimp.com> To: fierykylin@gmail.com From: "M. Warner Losh" In-Reply-To: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> References: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 01 Dec 2005 23:13:56 -0700 (MST) Cc: freebsd-usb@freebsd.org, jhb@freebsd.org Subject: Re: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 06:14:54 -0000 In message: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> kylin writes: : sir : : I am now working on the pci e hotplug of freebsd ,and reading code : of the relative part in linux. : i have never touch the field of USB . : now i wonder the mechanism of USB hotplug and the scsi hotplug . : in linux and my working on freebsd ,there r specail mechanism to : waiting for the hotplug event ,and the IRQ and MEM IO resource : allocation is complex . : i am fresh to the USB and the even complex SCSI driver arch , could u : give me some advise ? All FreeBSD devices use devd. Unlike Linux, FreeBSD's generic device architecture means that all busses automatically support hot plugging hooks. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 07:35:57 2005 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D4AF16A41F; Fri, 2 Dec 2005 07:35:57 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25BC043D55; Fri, 2 Dec 2005 07:35:56 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jB27XGXe066866; Fri, 2 Dec 2005 00:33:16 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 02 Dec 2005 00:33:53 -0700 (MST) Message-Id: <20051202.003353.21274600.imp@bsdimp.com> To: fierykylin@gmail.com From: "M. Warner Losh" In-Reply-To: <20051201.231433.32736713.imp@bsdimp.com> References: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> <20051201.231433.32736713.imp@bsdimp.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 02 Dec 2005 00:33:16 -0700 (MST) Cc: jhb@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 07:35:57 -0000 In message: <20051201.231433.32736713.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> : kylin writes: : : sir : : : I am now working on the pci e hotplug of freebsd ,and reading code : : of the relative part in linux. : : i have never touch the field of USB . : : now i wonder the mechanism of USB hotplug and the scsi hotplug . : : in linux and my working on freebsd ,there r specail mechanism to : : waiting for the hotplug event ,and the IRQ and MEM IO resource : : allocation is complex . : : i am fresh to the USB and the even complex SCSI driver arch , could u : : give me some advise ? : : All FreeBSD devices use devd. Unlike Linux, FreeBSD's generic device : architecture means that all busses automatically support hot plugging : hooks. I'll add that each bus just needs to implement what it needs to for the device's arrival and departure. See pccbb for one example. The allocation algorithms aren't that complex or difficult because FreeBSD dynamically allocates all the non-wired resources. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 08:30:09 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EB7D16A41F for ; Fri, 2 Dec 2005 08:30:09 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E04D43D5F for ; Fri, 2 Dec 2005 08:30:08 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so382870wxc for ; Fri, 02 Dec 2005 00:30:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=INhlLfS6BpDxRS++flqtAAFwocTFS+YsRgqBE3er2X3gQ5jcMmsqsD5yXla5L77eoxt/V9ijCi+/V4o9t9cuORfu7dKRXvUHUnHlsJ4GRWFs4qwyqLhn8R96Kxc+oH92zlyXqo+JMAk5Nxjtcn4gHmwvxaEb3WauNVWsjXm7m8c= Received: by 10.70.40.13 with SMTP id n13mr3167879wxn; Fri, 02 Dec 2005 00:30:07 -0800 (PST) Received: by 10.70.18.16 with HTTP; Fri, 2 Dec 2005 00:30:07 -0800 (PST) Message-ID: <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> Date: Fri, 2 Dec 2005 16:30:07 +0800 From: kylin To: "M. Warner Losh" In-Reply-To: <20051202.003353.21274600.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.com> <20051201.231433.32736713.imp@bsdimp.com> <20051202.003353.21274600.imp@bsdimp.com> Cc: jhb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 08:30:09 -0000 thank u,sir :) i have been reading ur pccbb code for a long time . really elegant.here I think my ignorace is partly because the lack of reading to the doc about the generic device architecture .but frankly ,i still haven't fount the newbus-draft :( mention to pccbb ,i wonder the reason why pccard driver is so different from the cardbus and still attach to the same pci carbus bridge level . thanks again sir :) On 12/2/05, M. Warner Losh wrote: > In message: <20051201.231433.32736713.imp@bsdimp.com> > "M. Warner Losh" writes: > : In message: <87ab37ab0512012209j1a80a3f8l2ee36567f5fbe04e@mail.gmail.co= m> > : kylin writes: > : : sir : > : : I am now working on the pci e hotplug of freebsd ,and reading code > : : of the relative part in linux. > : : i have never touch the field of USB . > : : now i wonder the mechanism of USB hotplug and the scsi hotplug . > : : in linux and my working on freebsd ,there r specail mechanism to > : : waiting for the hotplug event ,and the IRQ and MEM IO resource > : : allocation is complex . > : : i am fresh to the USB and the even complex SCSI driver arch , could u > : : give me some advise ? > : > : All FreeBSD devices use devd. Unlike Linux, FreeBSD's generic device > : architecture means that all busses automatically support hot plugging > : hooks. > > I'll add that each bus just needs to implement what it needs to for > the device's arrival and departure. See pccbb for one example. The > allocation algorithms aren't that complex or difficult because FreeBSD > dynamically allocates all the non-wired resources. > > Warner > -- we who r about to die,salute u! From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 08:59:52 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3B5316A41F; Fri, 2 Dec 2005 08:59:52 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2342443D4C; Fri, 2 Dec 2005 08:59:52 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jB28ux6V067404; Fri, 2 Dec 2005 01:57:00 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 02 Dec 2005 01:57:36 -0700 (MST) Message-Id: <20051202.015736.66169514.imp@bsdimp.com> To: fierykylin@gmail.com From: "M. Warner Losh" In-Reply-To: <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> References: <20051201.231433.32736713.imp@bsdimp.com> <20051202.003353.21274600.imp@bsdimp.com> <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 02 Dec 2005 01:57:00 -0700 (MST) Cc: jhb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 08:59:52 -0000 In message: <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> kylin writes: : thank u,sir :) : i have been reading ur pccbb code for a long time . really : elegant.here I think my ignorace is partly because the lack of reading : to the doc about the generic device architecture .but frankly ,i : still haven't fount the newbus-draft :( Your best best is to look at the source and understand it. I'll be the first to admit, however, that better docs would help here. The FreeBSD handbook has good info on this topic, even if it is a little dated. : mention to pccbb ,i wonder the reason why pccard driver is so : different from the cardbus and still attach to the same pci carbus : bridge level . pccard and cardbus are way different. The interfaces for talking to them are different, the configuraiton is different, etc. CardBus cards are just PCI cards, with a few rare exceptions. So rare, in fact, that no one has brought one to my attention as needing special handling for CardBus vs PCI. Since we inheret from the pci bus for cardbus, that makes cardbus very small. It should be a little smaller than it is today, but I've not had the time to do that. pccard has to do it all on its own, as it is nothing like PCI. Since it is basically ISA in a hotplug form factor that also allows other similar cards (memory only), there are a number of warts in the code. Since ISA has no notion of hot plug or announcing its resource needs or device activation, the CIS has to be parsed to get these details (this predates the isapnp go, but even that doesn't support hotplug). I suspect that if one were to write a hot-plug PCI bus bridge that it would mostly work similar to cbb, but with some differences due to API differences. The USB stuff, btw, is confusingly located in uhub.c. There are a number of bugs in the newbus integration of usb, and various people have tried to fix it. In usbland uhub is the bus, not the usb device, which is confusing at first, and poorly documented. The usb_port.h obfuscation also doesn't help. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 09:24:12 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7C6416A41F for ; Fri, 2 Dec 2005 09:24:12 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id D298143D60 for ; Fri, 2 Dec 2005 09:24:11 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so389027wxc for ; Fri, 02 Dec 2005 01:24:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c3Gafl9DVNGtG+97ORZs29erK91+KGFyAy3Sn4O/UQRwbINcDaID/KzpkI2XZVfmiCwmL7H3HEQjqTihNTGExzt5/NqSQtyIewRR595Zkv2vSOlPQXMFGZNgcvbzZNbI3daY2tHO8XMUEcHO+aj9N+fKA0Scgl7aNtc4dtNSHUg= Received: by 10.70.48.2 with SMTP id v2mr3229282wxv; Fri, 02 Dec 2005 01:24:11 -0800 (PST) Received: by 10.70.18.16 with HTTP; Fri, 2 Dec 2005 01:24:11 -0800 (PST) Message-ID: <87ab37ab0512020124h5e7e0112rb0811c34ec4d909f@mail.gmail.com> Date: Fri, 2 Dec 2005 17:24:11 +0800 From: kylin To: "M. Warner Losh" In-Reply-To: <20051202.015736.66169514.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051201.231433.32736713.imp@bsdimp.com> <20051202.003353.21274600.imp@bsdimp.com> <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> <20051202.015736.66169514.imp@bsdimp.com> Cc: jhb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 09:24:12 -0000 wawo ! thanks again sir :) that really benifit me alot :) On 12/2/05, M. Warner Losh wrote: > In message: <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> > I suspect that if one were to write a hot-plug PCI bus bridge that it > would mostly work similar to cbb, but with some differences due to API > differences. I found that the cbb 's bus number dynamic allocation way s need to change for the pci bridge 's hotplug ,but not sure ... acording to the spec > The USB stuff, btw, is confusingly located in uhub.c. There are a > number of bugs in the newbus integration of usb, and various people > have tried to fix it. In usbland uhub is the bus, not the usb device, > which is confusing at first, and poorly documented. The usb_port.h > obfuscation also doesn't help. > > Warner > may be usb inherited from the SCSI way :) and speak of SCSI 's hotplug ,there r so many layers -- we who r about to die,salute u! From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 13:11:54 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60F2E16A420; Fri, 2 Dec 2005 13:11:54 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id A41F043D53; Fri, 2 Dec 2005 13:11:48 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3006196 for multiple; Fri, 02 Dec 2005 08:09:46 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB2DBa7u002169; Fri, 2 Dec 2005 08:11:40 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: jpeg@thilelli.net Date: Fri, 2 Dec 2005 08:11:30 -0500 User-Agent: KMail/1.8.3 References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200512011203.17304.jhb@freebsd.org> <49547.192.168.1.20.1133472864.squirrel@webmail.thilelli.net> In-Reply-To: <49547.192.168.1.20.1133472864.squirrel@webmail.thilelli.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512020811.33720.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. 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: Fri, 02 Dec 2005 13:11:54 -0000 On Thursday 01 December 2005 04:34 pm, Julien Gabel wrote: > >> I applied this patch, rebuild and installed the kernel, set the > >> loader.conf directive `hint.apic.0.disabled' to "0" and reboot on the > >> system. Sadly, the same behaviour happened (as before), i.e. USB mouse > >> simply hang, USB thumbdrive doesn't work, etc. > >> > >> The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your > >> last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't > >> know if this may change something or not in this case. > > > > Well, I can't get to your dmesg's anymore. If I understand correctly, > > Yes, sorry: the layout of the website was changed recently. Here are > the corresponding files (using RELENG_5 at this time): > http://www.thilelli.net/~jgabel/store/pub/PR/74989/ Ok, yours is a more odd case. :) This is debatably a bug in your ASL, but = I=20 think we can work around it. It is routing your USB interrupts to IRQ 10 b= ut=20 is not using a link device to do it, and it is not including an INTR_OVERRI= DE=20 entry in the MADT to change IRQ 10 from the default of edge/trigger to=20 level/low. The patch below forces all hard-wired PCI interrupts routed via= =20 ACPI to be level/low. This patch should apply both to HEAD and 6.x and may= be=20 5.x. Index: acpi_pcib.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pcib.c,v retrieving revision 1.58 diff -u -r1.58 acpi_pcib.c =2D-- acpi_pcib.c 7 Nov 2005 21:48:45 -0000 1.58 +++ acpi_pcib.c 2 Dec 2005 13:08:16 -0000 @@ -252,9 +252,11 @@ if (bootverbose) device_printf(pcib, "slot %d INT%c hardwired to IRQ %d\n", pci_get_slot(dev), 'A' + pin, prt->SourceIndex); =2D if (prt->SourceIndex) + if (prt->SourceIndex) { interrupt =3D prt->SourceIndex; =2D else + BUS_CONFIG_INTR(dev, interrupt, INTR_TRIGGER_LEVEL, + INTR_POLARITY_LOW); + } else device_printf(pcib, "error: invalid hard-wired IRQ of 0\n"); goto out; } > More precisely, here is a little tab... to be more accurate (i hope): > > --------------------------------------- > USB support | ACPI | APIC | > ------------------------ > > | on | off | on | off | > > --------------------------------------- > Did not boot(*)| | XX | | XX | > --------------------------------------- > (*) The boot disk seems not be able to be used for the root mount, i.e. > ufs:/dev/ad0s1a in my case. If you could get a verbose dmesg for this case using a serial console I'd b= e=20 interested in looking at that too. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 13:20:06 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B2FD16A41F for ; Fri, 2 Dec 2005 13:20:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B107343D53 for ; Fri, 2 Dec 2005 13:20:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB2DK5Kl022748 for ; Fri, 2 Dec 2005 13:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB2DK5Jp022747; Fri, 2 Dec 2005 13:20:05 GMT (envelope-from gnats) Date: Fri, 2 Dec 2005 13:20:05 GMT Message-Id: <200512021320.jB2DK5Jp022747@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: John Baldwin Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 13:20:06 -0000 The following reply was made to PR usb/74989; it has been noted by GNATS. From: John Baldwin To: jpeg@thilelli.net Cc: freebsd-acpi@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Date: Fri, 2 Dec 2005 08:11:30 -0500 On Thursday 01 December 2005 04:34 pm, Julien Gabel wrote: > >> I applied this patch, rebuild and installed the kernel, set the > >> loader.conf directive `hint.apic.0.disabled' to "0" and reboot on the > >> system. Sadly, the same behaviour happened (as before), i.e. USB mouse > >> simply hang, USB thumbdrive doesn't work, etc. > >> > >> The patch was applied on src/sys/dev/acpica/acpi_pci_link.c before your > >> last commit on RELENG_6 (version 1.44.2.4, 2005/11/30 16:03:55). Don't > >> know if this may change something or not in this case. > > > > Well, I can't get to your dmesg's anymore. If I understand correctly, > > Yes, sorry: the layout of the website was changed recently. Here are > the corresponding files (using RELENG_5 at this time): > http://www.thilelli.net/~jgabel/store/pub/PR/74989/ Ok, yours is a more odd case. :) This is debatably a bug in your ASL, but = I=20 think we can work around it. It is routing your USB interrupts to IRQ 10 b= ut=20 is not using a link device to do it, and it is not including an INTR_OVERRI= DE=20 entry in the MADT to change IRQ 10 from the default of edge/trigger to=20 level/low. The patch below forces all hard-wired PCI interrupts routed via= =20 ACPI to be level/low. This patch should apply both to HEAD and 6.x and may= be=20 5.x. Index: acpi_pcib.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pcib.c,v retrieving revision 1.58 diff -u -r1.58 acpi_pcib.c =2D-- acpi_pcib.c 7 Nov 2005 21:48:45 -0000 1.58 +++ acpi_pcib.c 2 Dec 2005 13:08:16 -0000 @@ -252,9 +252,11 @@ if (bootverbose) device_printf(pcib, "slot %d INT%c hardwired to IRQ %d\n", pci_get_slot(dev), 'A' + pin, prt->SourceIndex); =2D if (prt->SourceIndex) + if (prt->SourceIndex) { interrupt =3D prt->SourceIndex; =2D else + BUS_CONFIG_INTR(dev, interrupt, INTR_TRIGGER_LEVEL, + INTR_POLARITY_LOW); + } else device_printf(pcib, "error: invalid hard-wired IRQ of 0\n"); goto out; } > More precisely, here is a little tab... to be more accurate (i hope): > > --------------------------------------- > USB support | ACPI | APIC | > ------------------------ > > | on | off | on | off | > > --------------------------------------- > Did not boot(*)| | XX | | XX | > --------------------------------------- > (*) The boot disk seems not be able to be used for the root mount, i.e. > ufs:/dev/ad0s1a in my case. If you could get a verbose dmesg for this case using a serial console I'd b= e=20 interested in looking at that too. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 14:02:35 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B175916A422; Fri, 2 Dec 2005 14:02:35 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BEA843D6E; Fri, 2 Dec 2005 14:02:34 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F66F.dip.t-dialin.net [84.165.246.111]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id jB2DZCTt034245; Fri, 2 Dec 2005 14:35:13 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id jB2E28Ib096397; Fri, 2 Dec 2005 15:02:08 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 02 Dec 2005 15:02:08 +0100 Message-ID: <20051202150208.c54xv9wnmsssoo48@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 02 Dec 2005 15:02:08 +0100 From: Alexander Leidinger To: "M. Warner Losh" References: <20051201.231433.32736713.imp@bsdimp.com> <20051202.003353.21274600.imp@bsdimp.com> <87ab37ab0512020030u2dcdc3ecj69fa27ec6840ca3b@mail.gmail.com> <20051202.015736.66169514.imp@bsdimp.com> In-Reply-To: <20051202.015736.66169514.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-usb@freebsd.org, jhb@freebsd.org Subject: Re: the mechanism of USB hotplug 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: Fri, 02 Dec 2005 14:02:35 -0000 "M. Warner Losh" wrote: > The USB stuff, btw, is confusingly located in uhub.c. There are a > number of bugs in the newbus integration of usb, and various people > have tried to fix it. In usbland uhub is the bus, not the usb device, > which is confusing at first, and poorly documented. The usb_port.h > obfuscation also doesn't help. Are the bugs you are talking about documented somewhere? Are they worth an entry in the upcomming list of projects for volunteers? Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 The best things in life are for a fee. From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 22:37:10 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7CD416A420; Fri, 2 Dec 2005 22:37:10 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id E760A43D5C; Fri, 2 Dec 2005 22:37:09 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id D3164564C1; Fri, 2 Dec 2005 23:37:07 +0100 (CET) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 88372-04-2; Fri, 2 Dec 2005 23:37:06 +0100 (CET) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 39156564C3; Fri, 2 Dec 2005 23:37:06 +0100 (CET) Received: from 192.168.1.20 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Fri, 2 Dec 2005 23:37:06 +0100 (CET) Message-ID: <62227.192.168.1.20.1133563026.squirrel@webmail.thilelli.net> In-Reply-To: <200512020811.33720.jhb@freebsd.org> References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200512011203.17304.jhb@freebsd.org> <49547.192.168.1.20.1133472864.squirrel@webmail.thilelli.net> <200512020811.33720.jhb@freebsd.org> Date: Fri, 2 Dec 2005 23:37:06 +0100 (CET) From: "Julien Gabel" To: "John Baldwin" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jpeg@thilelli.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 22:37:11 -0000 > Ok, yours is a more odd case. :) This is debatably a bug in your ASL, > but I think we can work around it. It is routing your USB interrupts > to IRQ 10 but is not using a link device to do it, and it is not > including an INTR_OVERRIDE entry in the MADT to change IRQ 10 from the > default of edge/trigger to level/low. The patch below forces all > hard-wired PCI interrupts routed via ACPI to be level/low. This patch > should apply both to HEAD and 6.x and maybe 5.x. > > Index: acpi_pcib.c > [...] Ok. I think you finally got it this time. Applied this patch against RELENG_6 and it seems to work fine now. I build and installed the kernel, set the loader.conf directives hint.acpi.0.disabled to 0 hint.apic.0.disabled to 0 and reboot on the system... it works well now, thank you ;) >> More precisely, here is a little tab... to be more accurate (i hope): >> >> --------------------------------------- >> USB support | ACPI | APIC | >> ------------------------ >> | on | off | on | off | >> --------------------------------------- >> Did not boot(*)| | XX | | XX | >> --------------------------------------- >> (*) The boot disk seems not be able to be used for the root mount, i.e. >> ufs:/dev/ad0s1a in my case. > If you could get a verbose dmesg for this case using a serial console I'd > be interested in looking at that too. Certainly! The output can be found at: http://www.thilelli.net/~jgabel/store/pub/PR/74989/serial.dmesg.boot-v Note: the kernel used for this boot was the just-previously-patched one. -- -jpeg. From owner-freebsd-usb@FreeBSD.ORG Fri Dec 2 22:40:25 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B14A16A41F for ; Fri, 2 Dec 2005 22:40:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA2C343D58 for ; Fri, 2 Dec 2005 22:40:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB2MeOmR002155 for ; Fri, 2 Dec 2005 22:40:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB2MeOg1002154; Fri, 2 Dec 2005 22:40:24 GMT (envelope-from gnats) Date: Fri, 2 Dec 2005 22:40:24 GMT Message-Id: <200512022240.jB2MeOg1002154@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Julien Gabel" Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Julien Gabel List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 22:40:25 -0000 The following reply was made to PR usb/74989; it has been noted by GNATS. From: "Julien Gabel" To: "John Baldwin" Cc: freebsd-acpi@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Date: Fri, 2 Dec 2005 23:37:06 +0100 (CET) > Ok, yours is a more odd case. :) This is debatably a bug in your ASL, > but I think we can work around it. It is routing your USB interrupts > to IRQ 10 but is not using a link device to do it, and it is not > including an INTR_OVERRIDE entry in the MADT to change IRQ 10 from the > default of edge/trigger to level/low. The patch below forces all > hard-wired PCI interrupts routed via ACPI to be level/low. This patch > should apply both to HEAD and 6.x and maybe 5.x. > > Index: acpi_pcib.c > [...] Ok. I think you finally got it this time. Applied this patch against RELENG_6 and it seems to work fine now. I build and installed the kernel, set the loader.conf directives hint.acpi.0.disabled to 0 hint.apic.0.disabled to 0 and reboot on the system... it works well now, thank you ;) >> More precisely, here is a little tab... to be more accurate (i hope): >> >> --------------------------------------- >> USB support | ACPI | APIC | >> ------------------------ >> | on | off | on | off | >> --------------------------------------- >> Did not boot(*)| | XX | | XX | >> --------------------------------------- >> (*) The boot disk seems not be able to be used for the root mount, i.e. >> ufs:/dev/ad0s1a in my case. > If you could get a verbose dmesg for this case using a serial console I'd > be interested in looking at that too. Certainly! The output can be found at: http://www.thilelli.net/~jgabel/store/pub/PR/74989/serial.dmesg.boot-v Note: the kernel used for this boot was the just-previously-patched one. -- -jpeg. From owner-freebsd-usb@FreeBSD.ORG Sat Dec 3 18:40:03 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99CB016A41F for ; Sat, 3 Dec 2005 18:40:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D699F43D49 for ; Sat, 3 Dec 2005 18:40:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB3Ie2Tf066309 for ; Sat, 3 Dec 2005 18:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB3Ie2xe066308; Sat, 3 Dec 2005 18:40:02 GMT (envelope-from gnats) Resent-Date: Sat, 3 Dec 2005 18:40:02 GMT Resent-Message-Id: <200512031840.jB3Ie2xe066308@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Wojciech A. Koszek" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBC9516A41F for ; Sat, 3 Dec 2005 18:35:34 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2029943D5A for ; Sat, 3 Dec 2005 18:35:33 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.12.10/8.12.9) with ESMTP id jB3IbPPx078995 for ; Sat, 3 Dec 2005 18:37:25 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id jB3IbO9T078994; Sat, 3 Dec 2005 18:37:24 GMT (envelope-from dunstan) Message-Id: <200512031837.jB3IbO9T078994@freebsd.czest.pl> Date: Sat, 3 Dec 2005 18:37:24 GMT From: "Wojciech A. Koszek" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/89889: [QUIRK] Motorola E398 Mobile Phone (TransFlash drive) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Wojciech A. Koszek" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 18:40:03 -0000 >Number: 89889 >Category: usb >Synopsis: [QUIRK] Motorola E398 Mobile Phone (TransFlash drive) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 03 18:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Wojciech A. Koszek >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD laptop.freebsd.czest.pl 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Dec 3 00:02:49 CET 2005 dunstan@laptop.freebsd.czest.pl:/usr/obj/usr/src/sys/LAPTOP i386 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT #1: Sat Dec 3 00:02:49 CET 2005 dunstan@laptop.freebsd.czest.pl:/usr/obj/usr/src/sys/LAPTOP WARNING: WITNESS option enabled, expect reduced performance. WARNING: DIAGNOSTIC option enabled, expect reduced performance. WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant WARNING: MPSAFE network stack disabled, expect reduced performance. acpi_alloc_wakeup_handler: can't alloc wake memory ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Mobile AMD Sempron(tm) Processor 3000+ (1795.38-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x10fc0 Stepping = 0 Features=0x78bfbff AMD Features=0xc2500800 real memory = 536084480 (511 MB) avail memory = 513728512 (489 MB) ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) acpi_ec0: port 0x62,0x66 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_perf0: invalid _PSS package [..cut to save space ] acpi_perf0: invalid _PSS package powernow0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf0000000-0xf7ffffff at device 0.0 on pci0 isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xfebfb000-0xfebfbfff irq 20 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 usbd_get_string: getting lang failed, using 0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xfebfc000-0xfebfcfff irq 20 at device 2.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 usbd_get_string: getting lang failed, using 0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered ehci0: mem 0xfebfdc00-0xfebfdcff irq 20 at device 2.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 6 ports with 6 removable, self powered usb_new_device: set address 2 failed - trying a port reset usb_new_device: set address 2 failed - trying a port reset usb_new_device: set address 2 failed - trying a port reset usb_new_device: set address 2 failed uhub_explore: usb_new_device failed, error=SET_ADDR_FAILED uhub2: device problem (SET_ADDR_FAILED), disabling port 5 pcm0: port 0xe400-0xe4ff,0xe080-0xe0ff mem 0xfebfe000-0xfebfefff irq 21 at device 6.0 on pci0 pcm0: pci0: at device 6.1 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 8.0 on pci0 ata0: on atapci0 ata1: on atapci0 pcib1: at device 10.0 on pci0 pci2: on pcib1 skc0: port 0xd800-0xd8ff mem 0xfeaf8000-0xfeafbfff irq 19 at device 0.0 on pci2 skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9) sk0: on skc0 sk0: Ethernet address: 00:11:d8:a8:10:ab miibus0: on sk0 e1000phy0: on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto skc0: [GIANT-LOCKED] cbb0: mem 0xfd200000-0xfd200fff at device 1.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci2: at device 1.1 (no driver attached) pci2: at device 1.2 (no driver attached) pci2: at device 1.3 (no driver attached) pcib2: at device 11.0 on pci0 pci1: on pcib2 drm0: port 0xb000-0xb0ff mem 0xe0000000-0xe7ffffff,0xfb9f0000-0xfb9fffff irq 17 at device 0.0 on pci1 info: [drm] AGP at 0xf0000000 128MB info: [drm] Initialized radeon 1.16.0 20050311 on minor 0 acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 ppc0: port 0x378-0x37f irq 7 drq 0 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/15 bytes threshold ppbus0: on ppc0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff 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 1795378699 Hz quality 800 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ad0: 38154MB at ata0-master UDMA100 battery0: critically low charge! cpu0: Cx states changed Expensive timeout(9) function: 0xc04cd0c8(0xc354dd00) 0.002382425 s Expensive timeout(9) function: 0xc04602d8(0xc3650a28) 0.110111201 s acd0: CDRW at ata1-master UDMA33 Trying to mount root from ufs:/dev/ad0s1a cpu0: Cx states changed sk0: link state changed to UP >Description: Motorola E398 Mobile Phone comes with TransFlash drive (64MB in default configuration). It's possible to connect to the phone via USB cable. Without patching, this is what I get: dmesg(8) output: [..] usb2: handing over full speed device on port 2 to usb0 uhub2: port 2, device disappeared after reset umass0: Motorola Inc. Motorola Phone (E398), rev 1.10/0.01, addr 2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0: Get Max Lun not supported (IOERROR) umass0:0:0:-1: Attached to scbus0 [..] usbdevs(8) -v output: Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, Motorola Phone (E398)(0x4810), Motorola Inc.(0x22b8), rev 0.01 port 3 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered After detaching the phone, I get following panic: umass0: at uhub0 port 2 (addr 2) disconnected panic: vm_fault: fault on nofault entry, addr: deadc000 KDB: stack backtrace: kdb_backtrace(100,c3420d00,0,c3423d20,2) at 0xc04c6cfd = kdb_backtrace+0x29 panic(c0647dfe,deadc000,c350d49c,0,c36b8c00) at 0xc04ac0b4 = panic+0xa8 vm_fault(c1043000,deadc000,2,0,c3420d00) at 0xc05b7734 = vm_fault+0x1e0 trap_pfault(d4433c78,0,deadc116) at 0xc05ffb73 = trap_pfault+0x117 trap(8,28,28,c36b8400,c350d400) at 0xc05ff801 = trap+0x3ed calltrap() at 0xc05ef15a = calltrap+0x5 --- trap 0xc, eip = 0xc04391b7, esp = 0xd4433cb8, ebp = 0xd4433cd0 --- camisr(c0683358) at 0xc04391b7 = camisr+0x12b ithread_execute_handlers(c3423d20,c34d7280) at 0xc0496493 = ithread_execute_handlers+0x11f ithread_loop(c3487420,d4433d38,c3487420,c0496560,0) at 0xc04965fa = ithread_loop+0x9a fork_exit(c0496560,c3487420,d4433d38) at 0xc0495588 = fork_exit+0xd4 fork_trampoline() at 0xc05ef1bc = fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xd4433d6c, ebp = 0 --- Uptime: 1m33s Dumping 510 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 511MB (130624 pages) 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 pcpu.h: No such file or directory. in pcpu.h After patching umass(4), this is what I get on 'camcontrol devlist' output: # camcontrol devlist at scbus0 target 0 lun 0 (da0,pass0) I may also safely plug in and out phone's cable: [..] umass0: Motorola Inc. Motorola Phone (E398), rev 1.10/0.01, addr 2 umass0: Get Max Lun not supported (IOERROR) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 59MB (121857 512 byte sectors: 64H 32S/T 59C) (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached [..] At this stage it's possible to mount filesystem. Because E398 doesn't like synchronizing, after any filesystem activity, ('find /mountpoint') umount(8) will hang (and later causing system to reboot). This is why quirk da(4) is needed. This is what I get after patching da(4) and umass(4) [final version of the patch attached]: dmesg(8) output: [..] umass0: Motorola Inc. Motorola Phone (E398), rev 1.10/0.01, addr 2 umass0: Get Max Lun not supported (IOERROR) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 59MB (121857 512 byte sectors: 64H 32S/T 59C) [..] usbdevs(8) -v output: Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, Motorola Phone (E398)(0x4810), Motorola Inc.(0x22b8), rev 0.01 port 3 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered root@laptop:(/home/dunstan/projects/FreeBSD/patches/motorola_e398)# camcontrol inquiry da0 pass0: Removable Direct Access SCSI-2 device pass0: 1.000MB/s transfers >How-To-Repeat: FreeBSD-CURRENT (and earlier versions) are not able to handle connecting E398 via USB cable, so all you need to get a panic is to plug the cable in and out (when umass(4) is loaded or compiled in). >Fix: http://freebsd.czest.pl/dunstan/FreeBSD/diff.0.e398 --- diff.0.e398 begins here --- (c) 2005 Patch against FreeBSD 7.0-CURRENT, kern.osreldate: 700007. diff -upr /usr/src/sys/cam/scsi/scsi_da.c src/sys/cam/scsi/scsi_da.c --- /usr/src/sys/cam/scsi/scsi_da.c Fri Nov 18 03:43:49 2005 +++ src/sys/cam/scsi/scsi_da.c Sat Dec 3 17:49:24 2005 @@ -354,6 +354,16 @@ static struct da_quirk_entry da_quirk_ta {T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston" , "DataTraveler II+", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * Motorola E398 Mobile Phone (TransFlash Drive). + * Reported by: Wojciech A. Koszek + * PR: + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "Motorola" , "Motorola Phone", + "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; diff -upr /usr/src/sys/dev/usb/umass.c src/sys/dev/usb/umass.c --- /usr/src/sys/dev/usb/umass.c Mon Nov 28 08:37:48 2005 +++ src/sys/dev/usb/umass.c Sat Dec 3 18:14:25 2005 @@ -381,6 +381,10 @@ Static struct umass_devdescr_t umass_dev UMASS_PROTO_SCSI | UMASS_PROTO_CBI, NO_TEST_UNIT_READY | NO_START_STOP }, + { USB_VENDOR_MOTOROLA2, USB_PRODUCT_MOTOROLA2_E398, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + FORCE_SHORT_INQUIRY | NO_INQUIRY_EVPD | NO_GETMAXLUN + }, { USB_VENDOR_MSYSTEMS, USB_PRODUCT_MSYSTEMS_DISKONKEY, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, IGNORE_RESIDUE | NO_GETMAXLUN | RS_NO_CLEAR_UA diff -upr /usr/src/sys/dev/usb/usbdevs src/sys/dev/usb/usbdevs --- /usr/src/sys/dev/usb/usbdevs Wed Sep 28 21:41:25 2005 +++ src/sys/dev/usb/usbdevs Sat Dec 3 15:41:50 2005 @@ -1202,6 +1202,7 @@ product MITSUMI BT_DONGLE 0x641f Bluetoo /* Motorola products */ product MOTOROLA MC141555 0x1555 MC141555 hub controller product MOTOROLA SB4100 0x4100 SB4100 USB Cable Modem +product MOTOROLA2 E398 0x4810 E398 Mobile Phone /* MultiTech products */ product MULTITECH ATLAS 0xf101 MT5634ZBA-USB modem --- diff.0.e398 ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Dec 3 21:27:33 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 933E016A41F; Sat, 3 Dec 2005 21:27:33 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD04543D49; Sat, 3 Dec 2005 21:27:16 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3086349 for multiple; Sat, 03 Dec 2005 16:25:14 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB3LR5Em020892; Sat, 3 Dec 2005 16:27:05 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: jpeg@thilelli.net Date: Sat, 3 Dec 2005 16:26:57 -0500 User-Agent: KMail/1.8.3 References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200512020811.33720.jhb@freebsd.org> <62227.192.168.1.20.1133563026.squirrel@webmail.thilelli.net> In-Reply-To: <62227.192.168.1.20.1133563026.squirrel@webmail.thilelli.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512031626.59048.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. 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: Sat, 03 Dec 2005 21:27:33 -0000 On Friday 02 December 2005 05:37 pm, Julien Gabel wrote: > > Ok, yours is a more odd case. :) This is debatably a bug in your ASL, > > but I think we can work around it. It is routing your USB interrupts > > to IRQ 10 but is not using a link device to do it, and it is not > > including an INTR_OVERRIDE entry in the MADT to change IRQ 10 from the > > default of edge/trigger to level/low. The patch below forces all > > hard-wired PCI interrupts routed via ACPI to be level/low. This patch > > should apply both to HEAD and 6.x and maybe 5.x. > > > > Index: acpi_pcib.c > > [...] > > Ok. I think you finally got it this time. Applied this patch against > RELENG_6 and it seems to work fine now. I build and installed the kernel, > set the loader.conf directives > hint.acpi.0.disabled to 0 > hint.apic.0.disabled to 0 > and reboot on the system... it works well now, thank you ;) Ok, fix committed. It will be in 6.1 as well. > >> More precisely, here is a little tab... to be more accurate (i hope): > >> > >> --------------------------------------- > >> USB support | ACPI | APIC | > >> ------------------------ > >> > >> | on | off | on | off | > >> > >> --------------------------------------- > >> Did not boot(*)| | XX | | XX | > >> --------------------------------------- > >> (*) The boot disk seems not be able to be used for the root mount, i.e. > >> ufs:/dev/ad0s1a in my case. > > > > If you could get a verbose dmesg for this case using a serial console I= 'd > > be interested in looking at that too. > > Certainly! The output can be found at: > http://www.thilelli.net/~jgabel/store/pub/PR/74989/serial.dmesg.boot-v > > Note: the kernel used for this boot was the just-previously-patched one. Ok, what happens here is that the $PIR code ends up using IRQ 14 for a=20 virgin-routed link. You can just use a tunable to override this like so: hw.pci.link.0x1.irq=3D12 That should make the vga adapter use irq 12 rather than irq 14. If you hav= e a=20 BIOS setting that says 'enable VGA irq' you could also try turning that on.= =20 However, you'd probably much rather be running with ACPI + APIC enabled=20 anyway. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Sat Dec 3 21:28:07 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB46616A420; Sat, 3 Dec 2005 21:28:07 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99D4243D5E; Sat, 3 Dec 2005 21:28:07 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from freefall.freebsd.org (jhb@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB3LS7Sq091929; Sat, 3 Dec 2005 21:28:07 GMT (envelope-from jhb@freefall.freebsd.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB3LS7T7091925; Sat, 3 Dec 2005 21:28:07 GMT (envelope-from jhb) Date: Sat, 3 Dec 2005 21:28:07 GMT From: John Baldwin Message-Id: <200512032128.jB3LS7T7091925@freefall.freebsd.org> To: jpeg@thilelli.net, jhb@FreeBSD.org, freebsd-usb@FreeBSD.org, jhb@FreeBSD.org Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. 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: Sat, 03 Dec 2005 21:28:08 -0000 Synopsis: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. State-Changed-From-To: open->patched State-Changed-By: jhb State-Changed-When: Sat Dec 3 21:27:44 GMT 2005 State-Changed-Why: Fix committed to HEAD, will MFC in a week or so. Responsible-Changed-From-To: freebsd-usb->jhb Responsible-Changed-By: jhb Responsible-Changed-When: Sat Dec 3 21:27:44 GMT 2005 Responsible-Changed-Why: Fix committed to HEAD, will MFC in a week or so. http://www.freebsd.org/cgi/query-pr.cgi?pr=74989