From owner-freebsd-usb@FreeBSD.ORG Sun Aug 5 05:03:22 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DC1116A41A for ; Sun, 5 Aug 2007 05:03:22 +0000 (UTC) (envelope-from arun.sharma@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 4548113C468 for ; Sun, 5 Aug 2007 05:03:22 +0000 (UTC) (envelope-from arun.sharma@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1496031waf for ; Sat, 04 Aug 2007 22:03:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:x-google-sender-auth; b=J/JY0JpdGcMZ6XfaTkNLGqajaUy+M6bRUu54weGuOCAW01ZRl0Vf9giaJPI0J1eBbIZj3O/V+69bPpnMyml1p69dY5yBwTEwHGCkJTe/4nT3Ieier/V/RDSMz/wYcyPIWjhOM4QyPiENjk+PL4ldAjqdzduwXoQFVQXzt7DPUkY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:x-google-sender-auth; b=hFzwVbRRZvNAt9Dj1CUePIdJg16NNMi6NDehWmcCo7rUvQLYbCWJ/Em5LBmcn5ajAFhC/dg5BDIExcydIQEd0a4Df/sfEKCzuJ49qN2ghVbExh7voFvuyzcTnFpyZvEv/75pLYuWBZDCq3cM1rb6JUrcovYH1AfZqdnAA4crMKg= Received: by 10.115.90.1 with SMTP id s1mr4446190wal.1186288603632; Sat, 04 Aug 2007 21:36:43 -0700 (PDT) Received: by 10.114.47.1 with HTTP; Sat, 4 Aug 2007 21:36:43 -0700 (PDT) Message-ID: Date: Sat, 4 Aug 2007 21:36:43 -0700 From: "Arun Sharma" Sender: arun.sharma@gmail.com To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_84622_14685575.1186288603556" X-Google-Sender-Auth: c3885f3cc373af02 Cc: freebsd-amd64@freebsd.org Subject: usb related panic on amd64 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, 05 Aug 2007 05:03:22 -0000 ------=_Part_84622_14685575.1186288603556 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline This is on a Dell C521 booting from an IDE disk in an external USB 2.0 enclosure. 6.2-RELEASE works fine, but I get a panic with 7.0-CURRENT. general protection fault at: usb_start_transfer+0x1a5 However, if I turn on USB_DEBUG, things work ok. My guess is that there is a timing related issue somewhere in this code. Attached is the dmesg when the machine booted successfully. umass0:0:0:-1: Attached to scbus0 ehci_freex: !isdone >>> I get a panic here without USB_DEBUG << ehci_activate_qh: unexpected next ptr I don't know if ehci_activate_qh message is indicative of the problem. Another data point: the BIOS doesn't reliably detect the external USB drive every time. However, if I reset the box, it manages to detect it correctly the second time. I also ran into a couple of other ddb issues while trying to gather information that might help resolve the issue. The machine doesn't have a atkbd and doesn't have a serial port. So ddb+ukbd is the easiest option for me. Although it might be possible to add a serial port to the machine via an expansion slot - it'd be nice to have the ukbd work with the debugger. -Arun ------=_Part_84622_14685575.1186288603556 Content-Type: text/plain; name=dmesg.txt; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_f4z1fx0w Content-Disposition: attachment; filename="dmesg.txt" Q29weXJpZ2h0IChjKSAxOTkyLTIwMDcgVGhlIEZyZWVCU0QgUHJvamVjdC4KQ29weXJpZ2h0IChj KSAxOTc5LCAxOTgwLCAxOTgzLCAxOTg2LCAxOTg4LCAxOTg5LCAxOTkxLCAxOTkyLCAxO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ZW1vdmFibGUgRGlyZWN0 IEFjY2VzcyBTQ1NJLTAgZGV2aWNlIApkYTE6IDQwLjAwME1CL3MgdHJhbnNmZXJzCmRhMTogQXR0 ZW1wdCB0byBxdWVyeSBkZXZpY2Ugc2l6ZSBmYWlsZWQ6IE5PVCBSRUFEWSwgTWVkaXVtIG5vdCBw cmVzZW50CmRhMiBhdCB1bWFzcy1zaW0wIGJ1cyAwIHRhcmdldCAwIGx1biAyCmRhMjogPFRFQUMg VVNCICAgSFMtTVMgQ2FyZCA0LjAwPiBSZW1vdmFibGUgRGlyZWN0IEFjY2VzcyBTQ1NJLTAgZGV2 aWNlIApkYTI6IDQwLjAwME1CL3MgdHJhbnNmZXJzCmRhMjogQXR0ZW1wdCB0byBxdWVyeSBkZXZp Y2Ugc2l6ZSBmYWlsZWQ6IE5PVCBSRUFEWSwgTWVkaXVtIG5vdCBwcmVzZW50CmRhMyBhdCB1bWFz cy1zaW0wIGJ1cyAwIHRhcmdldCAwIGx1biAzCmRhMzogPFRFQUMgVVNCICAgSFMtU0QgQ2FyZCA0 LjAwPiBSZW1vdmFibGUgRGlyZWN0IEFjY2VzcyBTQ1NJLTAgZGV2aWNlIApkYTM6IDQwLjAwME1C L3MgdHJhbnNmZXJzCmRhMzogQXR0ZW1wdCB0byBxdWVyeSBkZXZpY2Ugc2l6ZSBmYWlsZWQ6IE5P VCBSRUFEWSwgTWVkaXVtIG5vdCBwcmVzZW50ClRyeWluZyB0byBtb3VudCByb290IGZyb20gdWZz Oi9kZXYvZGE0czFhCg== ------=_Part_84622_14685575.1186288603556-- From owner-freebsd-usb@FreeBSD.ORG Mon Aug 6 09:37:33 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E6C416A420 for ; Mon, 6 Aug 2007 09:37:33 +0000 (UTC) (envelope-from coumarin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD5913C491 for ; Mon, 6 Aug 2007 09:37:32 +0000 (UTC) (envelope-from coumarin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so1621579fka for ; Mon, 06 Aug 2007 02:37:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=RZmgWCj21o55v+go8vq8Apao32hxaONefPwUQkOUBbfM/PceBQsfmU0azTtKwDcpYjbe3fjEjg7NJTYLQayt4CsR1ecfCO/47spRE3UgI2oKMtykua6+rCs0AzINCPHkRy1/em7aMeSJB//5coaMOM4mHgt9c3r9zAgOyZlMMzk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=BFfyS1aeL12GCir9Heq4KypKJeKwR9XHoAkgvEr0yn6eoPm0ycOrGCQfS/IgH6aJrUR94n+2SyZLyO6feGJcl+poud7rExjTAdxjAYnNsUs3+aQLDZWY8bZAGVoo3Re8gtMjtGLFGWD2hmUR+JnNNv5Qh04HnFe3w5pHX4uTe0k= Received: by 10.82.111.8 with SMTP id j8mr5299693buc.1186391486762; Mon, 06 Aug 2007 02:11:26 -0700 (PDT) Received: from aix-lame.hackers ( [159.93.51.52]) by mx.google.com with ESMTPS id 7sm3384681nfv.2007.08.06.02.11.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Aug 2007 02:11:25 -0700 (PDT) Message-ID: <46B6E5A8.20002@gmail.com> Date: Mon, 06 Aug 2007 13:11:04 +0400 From: Alexander Shiryaev User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: freebsd-usb@freebsd.org, pldrouin@cyberfingers.net Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Problem with libusb on FreeBSD? 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, 06 Aug 2007 09:37:33 -0000 I have the same problem, with other device model. If do not touch control endpoint for interrupt and bulk endpoints search (i.e. open /dev/ugen0.1 and /dev/igen0.2 immediately), then there is no problems. For example, this test will be passed: #include #include #include #include #include #include #include #include #include #define OUT_BULK_DEV "/dev/ugen0.2" #define IN_INTR_DEV "/dev/ugen0.1" #define IN_BULK_DEV "/dev/ugen0.3" struct packet { u_int8_t packet_type; u_int8_t reserved1[3]; u_int16_t packet_id; u_int8_t reserved2[2]; u_int32_t data_size; }; #define USB_PROTOCOL_LAYER 0 #define APPLICATION_LAYER 20 #define PID_DATA_AVAILABLE 2 #define PID_START_SESSION 5 #define PID_SESSION_STARTED 6 #define PID_PROTOCOL_ARRAY 253 #define PID_PRODUCT_RQST 254 #define PID_PRODUCT_DATA 255 static u_int8_t const START_SESSION_REQ[] = { USB_PROTOCOL_LAYER, 0, 0, 0, PID_START_SESSION, 0, 0, 0, 0, 0, 0, 0 }; static u_int8_t const A000_REQ[] = { APPLICATION_LAYER, 0, 0, 0, PID_PRODUCT_RQST, 0, 0, 0, 0, 0, 0, 0 }; #define BUF_SIZE 1024 static int out, in_intr, in_bulk; static void dump (u_int8_t buf[], u_int32_t len) { u_int32_t i; if (len == 0) { printf("EMPTY\n"); } else { for (i = 0; i < len; i++) { printf("%2x", buf[i]); if (i % 16 == 15) printf("\n"); else printf(" "); } if (len % 16 != 0) printf("\n"); } } static void send_req (u_int8_t const req[], int len) { size_t done; done = write(out, req, len); if (done == -1) err(1, NULL); printf("write: %d\n", done); assert(done == len); } static int response_received (u_int8_t packet_type, u_int16_t packet_id, u_int8_t data[], int len) { switch (packet_type) { case USB_PROTOCOL_LAYER: switch (packet_id) { case PID_DATA_AVAILABLE: printf("data available\n"); errx(1, "not implemented"); /* TODO: switch input to in_bulk */ break; case PID_SESSION_STARTED: printf("session started\n"); send_req(A000_REQ, sizeof(A000_REQ)); break; default: errx(1, "invalid packet id"); } break; case APPLICATION_LAYER: switch (packet_id) { case PID_PRODUCT_DATA: break; case PID_PROTOCOL_ARRAY: return 1; break; default: errx(1, "invalid packet id"); } break; default: errx(1, "invalid packet type"); } return 0; } static size_t read1 (int in, void *buf, int len) { int done, d; done = 0; while (done < len) { d = read(in, buf, len - done); printf("read1: %d\n", d); done += d; }; return done; } static void start_loop () { int terminate = 0; size_t done; struct packet packet; u_int8_t buf[BUF_SIZE]; do { done = read1(in_intr, buf, sizeof(packet)); if (done == -1) err(1, NULL); printf("intr read: %d\n", done); assert(done == sizeof(packet)); dump(buf, done); memcpy(&packet, buf, done); if ((packet.reserved1[0] != 0) || (packet.reserved1[1] != 0) || (packet.reserved1[2] != 0) || (packet.reserved2[0] != 0) || (packet.reserved2[1] != 0)) { errx(1, "inalid packet"); } done = read1(in_intr, buf, packet.data_size); if (done == -1) err(1, NULL); printf("intr expected: %d, intr read: %d\n", packet.data_size, done); assert(done == packet.data_size); dump(buf, done); terminate = response_received(packet.packet_type, packet.packet_id, buf, packet.data_size); } while (!terminate); } int main () { out = open(OUT_BULK_DEV, O_WRONLY); if (out == -1) err(1, OUT_BULK_DEV); in_intr = open(IN_INTR_DEV, O_RDONLY); if (in_intr == -1) err(1, IN_INTR_DEV); in_bulk = open(IN_BULK_DEV, O_RDONLY); if (in_bulk == -1) err(1, IN_BULK_DEV); send_req(START_SESSION_REQ, sizeof(START_SESSION_REQ)); start_loop(); printf("all done\n"); return 0; } Best regards, Alexander. From owner-freebsd-usb@FreeBSD.ORG Mon Aug 6 11:08:41 2007 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53CDA16A607 for ; Mon, 6 Aug 2007 11:08:41 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4397113C45A for ; Mon, 6 Aug 2007 11:08:41 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l76B8fJw030054 for ; Mon, 6 Aug 2007 11:08:41 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l76B8ef8030050 for freebsd-usb@FreeBSD.org; Mon, 6 Aug 2007 11:08:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 6 Aug 2007 11:08:40 GMT Message-Id: <200708061108.l76B8ef8030050@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats 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, 06 Aug 2007 11:08:41 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/57085 usb [umass] umass0 problems, with Sony Vio/USB memory stic o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb [panic] kernel panic on USB device disconnect o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb [uhci] UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit a usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [patch] mounting of usb-stick fails o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected s usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb [umass] [panic] EHCI: I/O stuck in state 'physrd'/pani o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] [patch] bogus "slice starts beyond end of the di o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89954 usb [usb] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [hang] FreeBSD hangs while booting with USB legacy sup o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [irq] device ehci causes interrupt storm on this MSI a o usb/93828 usb [panic] ohci causes panic on boot (HP Pavillion d4100e o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/95131 usb [install] Boot/setup process does not accept key strok o usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb [mouse] USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb [panic] fatback on umass = reboot o usb/97286 usb [mouse] MS Wireless Intellimouse Explorer 2.0 doesn't o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb [patch] /usr/sbin/usbd does not handle multiple device o usb/103025 usb [usb] wrong detection of USB device for FreeBSD 6.1 an o usb/104292 usb [hang] system lockup on forced umount of usb-storage d o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [hang] USB Floppy on D1950 10 min Hang on Insert w/o F o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [panic] ohci_add_done addr not found o usb/107848 usb [umass] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/112568 usb USB mode may wrong when mounting Playstation Pro o usb/112631 usb [panic] Problem with SONY DSC-S80 camera o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] FreeBSD could not start on Core2Duo notebook fr o usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM o usb/113977 usb [feature request] Need a way to set mode of USB disk's o usb/114310 usb [panic] USB hub attachment panics kernel during libusb o usb/114682 usb USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco 101 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [usb] USB HP CDW8200 does not work o usb/48342 usb [PATCH] usbd dynamic device list. f usb/51958 usb [urio] [patch] update for urio driver o usb/52026 usb [usb] feature request: umass driver support for InSyst o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio o usb/62257 usb [umass] card reader UCR-61S2B is only half-supported o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o usb/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o usb/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/74453 usb [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chip o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch f usb/78984 usb [patch] Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92852 usb [mouse] [patch] Vertical scroll not working properly o o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/95173 usb [umass] [patch] cannot mount external usb harddisk VIA o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/97175 usb [hang] USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera cause panic o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb Rave C-201 MP3 player does not communicate o usb/105065 usb [sata] SATA - USB Bridge f usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb [usbd] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [patch] QUIRK: Super Top IDE DEVICE (depends on usb/11 o usb/112461 usb [ehci] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb problem with Samsung USB DVD writer, libscg and FreeBS o usb/112944 usb [patch] Bi-directional access to HP LaserJet 1010 prin o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb WARNING: attempt to net_add_domain(netgraph) after dom o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass p usb/114860 usb if_udav / ShanTou ST268 USB NIC o usb/114916 usb USB Maxtor drive (L300RO) requires quirk. o usb/114938 usb can't attach eli-devices on external hd o usb/115080 usb using a Hercules HWGUSB2-54-V2 wifi usb adapter 96 problems total. From owner-freebsd-usb@FreeBSD.ORG Wed Aug 8 08:20:01 2007 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B758B16A41B for ; Wed, 8 Aug 2007 08:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 85DD213C45B for ; Wed, 8 Aug 2007 08:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l788K1pq088389 for ; Wed, 8 Aug 2007 08:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l788K1I3088388; Wed, 8 Aug 2007 08:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 8 Aug 2007 08:20:01 GMT Resent-Message-Id: <200708080820.l788K1I3088388@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, Jonathan Hanna Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64A2F16A41A for ; Wed, 8 Aug 2007 08:18:07 +0000 (UTC) (envelope-from jhanna@pangolin-systems.com) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 3BC8813C459 for ; Wed, 8 Aug 2007 08:18:07 +0000 (UTC) (envelope-from jhanna@pangolin-systems.com) Received: from pd3mr2so.prod.shaw.ca (pd3mr2so-qfe3.prod.shaw.ca [10.0.141.178]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JMG006RQ1M6P020@l-daemon> for FreeBSD-gnats-submit@freebsd.org; Wed, 08 Aug 2007 01:18:06 -0600 (MDT) Received: from pn2ml1so.prod.shaw.ca ([10.0.121.145]) by pd3mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JMG00AR81M6CB40@pd3mr2so.prod.shaw.ca> for FreeBSD-gnats-submit@freebsd.org; Wed, 08 Aug 2007 01:18:06 -0600 (MDT) Received: from gbh.pangolin-systems.com ([24.82.249.159]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JMG00HFK1M5NEN0@l-daemon> for FreeBSD-gnats-submit@freebsd.org; Wed, 08 Aug 2007 01:18:06 -0600 (MDT) Received: from gbh.pangolin-systems.com (localhost [127.0.0.1]) by gbh.pangolin-systems.com (8.14.1/8.14.1) with ESMTP id l787I5Xp001758 for ; Wed, 08 Aug 2007 00:18:05 -0700 Received: (from jhanna@localhost) by gbh.pangolin-systems.com (8.14.1/8.14.1/Submit) id l787I5rY001757; Wed, 08 Aug 2007 00:18:05 -0700 (PDT envelope-from jhanna) Message-Id: <200708080718.l787I5rY001757@gbh.pangolin-systems.com> Date: Wed, 08 Aug 2007 00:18:05 -0700 (PDT) From: Jonathan Hanna To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/115298: Turning off USB printer panics kernel X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jonathan Hanna List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2007 08:20:01 -0000 >Number: 115298 >Category: usb >Synopsis: Turning off USB printer panics kernel >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 08 08:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jonathan Hanna >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD gbh.pangolin-systems.com 7.0-CURRENT FreeBSD 7.0-CURRENT #16: Wed Aug 1 18:50:29 PDT 2007 jhanna@gbh.pangolin-systems.com:/usr/obj/usr/src/sys/GBH i386 >Description: When a USB printer was turned off, perhaps while lpd was printing to it, the kernel paniced with: ulpt0: at uhub1 port 7 (addr 6) disconnected ulpt0: detached panic: Bad tailq NEXT(0xd5924db8->tqh_last) != NULL cpuid = 0 KDB: enter: panic [thread pid 13 tid 100001 ] Stopped at kdb_enter+0x32: leave db> bt Tracing pid 13 tid 100001 td 0xc5915e00 kdb_enter(c0a910d8,0,c0a47d72,e016fc48,0,..) at kdb_enter+0x32 panic(c0a47d72,d5924db8,c0a92274,1ac,c5908c00,...) at panic+0x124 callout_reset(c0b78f28,a,c0558f70,c5908c00,...) at callout_reset+0x169 dcons_timeout(c5908c00,0,c0a92274,f8,0,...) at dcons_timeout+0x81 softcock(0,0,c0a8dd07,471,c59543e4,...) at softclock+0x299 ithread_loop(c5913400,e016fd38,c0a8da7b,315,c59142ac,...) at ithread_loop+0x1b5 fork_exit(c072f5d0,c5913400,e016fd38) at fork_exit+0xb8 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xe016fd70, ebp = 0 --- db> >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Aug 8 18:13:17 2007 Return-Path: Delivered-To: usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBAD916A468; Wed, 8 Aug 2007 18:13:17 +0000 (UTC) (envelope-from remko@elvandar.org) Received: from guardian.elvandar.org (evilcoder.xs4all.nl [195.64.94.120]) by mx1.freebsd.org (Postfix) with ESMTP id 729CA13C4CE; Wed, 8 Aug 2007 18:13:17 +0000 (UTC) (envelope-from remko@elvandar.org) Received: by guardian.elvandar.org (Postfix, from userid 1001) id 8457B7EDE49; Wed, 8 Aug 2007 19:54:14 +0200 (CEST) Date: Wed, 8 Aug 2007 19:54:14 +0200 From: Remko Lodder To: David Southwell Message-ID: <20070808175414.GC51816@elvandar.org> References: <200708081620.l78GK69W018680@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708081620.l78GK69W018680@freefall.freebsd.org> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: usb@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/114667: [umass] UMASS device error log problem 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: Wed, 08 Aug 2007 18:13:17 -0000 On Wed, Aug 08, 2007 at 04:20:06PM +0000, David Southwell wrote: > The following reply was made to PR kern/114667; it has been noted by GNATS. > > From: David Southwell > To: bug-followup@freebsd.org, > david@vizion2000.net > Cc: > Subject: Re: kern/114667: [umass] UMASS device error log problem > Date: Wed, 8 Aug 2007 09:27:59 -0700 > > Hi > > Just wondered if anyone might have the time to look at this -- it really is a > nuisance. > > Thanks Hello David, I just checked the PR itself and I personally do not think this is something we should handle though, the messages get in the logfile because you ask for information on a 'heavily removable' device, it mostly has multiple ports and the device has no knowledge to see what 'port' is being used [if at all used]. That said; this is my private opinion, others might ofcourse disagree with me, please feel free to continue to discuss this, but in addittion I also think this is not worth a PR ticket. Cheers remko -- Kind regards, Remko Lodder ** remko@elvandar.org FreeBSD ** remko@FreeBSD.org /* Quis custodiet ipsos custodes */ From owner-freebsd-usb@FreeBSD.ORG Wed Aug 8 22:02:29 2007 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC85116A41B; Wed, 8 Aug 2007 22:02:29 +0000 (UTC) (envelope-from david@vizion2000.net) Received: from dns1.vizion2000.net (77-99-36-42.cable.ubr04.chap.blueyonder.co.uk [77.99.36.42]) by mx1.freebsd.org (Postfix) with ESMTP id A291B13C467; Wed, 8 Aug 2007 22:02:29 +0000 (UTC) (envelope-from david@vizion2000.net) Received: by dns1.vizion2000.net (Postfix, from userid 1007) id 365281CC3D; Wed, 8 Aug 2007 15:02:15 -0700 (PDT) From: David Southwell Organization: Voice and Vision To: Remko Lodder Date: Wed, 8 Aug 2007 15:02:14 -0700 User-Agent: KMail/1.9.7 References: <200708081620.l78GK69W018680@freefall.freebsd.org> <20070808175414.GC51816@elvandar.org> In-Reply-To: <20070808175414.GC51816@elvandar.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708081502.14940.david@vizion2000.net> Cc: usb@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: kern/114667: [umass] UMASS device error log problem 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: Wed, 08 Aug 2007 22:02:30 -0000 On Wednesday 08 August 2007 10:54:14 Remko Lodder wrote: > On Wed, Aug 08, 2007 at 04:20:06PM +0000, David Southwell wrote: > > The following reply was made to PR kern/114667; it has been noted by > > GNATS. > > > > From: David Southwell > > To: bug-followup@freebsd.org, > > david@vizion2000.net > > Cc: > > Subject: Re: kern/114667: [umass] UMASS device error log problem > > Date: Wed, 8 Aug 2007 09:27:59 -0700 > > > > Hi > > > > Just wondered if anyone might have the time to look at this -- it really > > is a nuisance. > > > > Thanks > > Hello David, > > I just checked the PR itself and I personally do not think this is > something we should handle though, the messages get in the logfile because > you ask for information on a 'heavily removable' device, it mostly has > multiple ports and the device has no knowledge to see what 'port' is being > used [if at all used]. > > That said; this is my private opinion, others might ofcourse disagree with > me, please feel free to continue to discuss this, but in addittion I also > think this is not worth a PR ticket. > > Cheers > remko Sorry but I and a number of others who have complained about the same problem do agree it is worth a PR. basically we seem to have an uncontrollable worthless message generator. If you can tell me how to stop the messages for this device it would make a PR unnecessary but as things stand none seems to be able to answer the question "How do we stop the messages?" David From owner-freebsd-usb@FreeBSD.ORG Wed Aug 8 22:19:23 2007 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B0BB16A46B; Wed, 8 Aug 2007 22:19:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 0D24E13C45A; Wed, 8 Aug 2007 22:19:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l78MGsNi067681; Wed, 8 Aug 2007 16:16:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 08 Aug 2007 16:17:06 -0600 (MDT) Message-Id: <20070808.161706.635731737.imp@bsdimp.com> To: david@vizion2000.net From: "M. Warner Losh" In-Reply-To: <200708081502.14940.david@vizion2000.net> References: <200708081620.l78GK69W018680@freefall.freebsd.org> <20070808175414.GC51816@elvandar.org> <200708081502.14940.david@vizion2000.net> X-Mailer: Mew version 5.2 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]); Wed, 08 Aug 2007 16:16:55 -0600 (MDT) Cc: usb@freebsd.org, freebsd-bugs@freebsd.org, remko@elvandar.org Subject: Re: kern/114667: [umass] UMASS device error log problem 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: Wed, 08 Aug 2007 22:19:23 -0000 In message: <200708081502.14940.david@vizion2000.net> David Southwell writes: : On Wednesday 08 August 2007 10:54:14 Remko Lodder wrote: : > On Wed, Aug 08, 2007 at 04:20:06PM +0000, David Southwell wrote: : > > The following reply was made to PR kern/114667; it has been noted by : > > GNATS. : > > : > > From: David Southwell : > > To: bug-followup@freebsd.org, : > > david@vizion2000.net : > > Cc: : > > Subject: Re: kern/114667: [umass] UMASS device error log problem : > > Date: Wed, 8 Aug 2007 09:27:59 -0700 : > > : > > Hi : > > : > > Just wondered if anyone might have the time to look at this -- it really : > > is a nuisance. : > > : > > Thanks : > : > Hello David, : > : > I just checked the PR itself and I personally do not think this is : > something we should handle though, the messages get in the logfile because : > you ask for information on a 'heavily removable' device, it mostly has : > multiple ports and the device has no knowledge to see what 'port' is being : > used [if at all used]. : > : > That said; this is my private opinion, others might ofcourse disagree with : > me, please feel free to continue to discuss this, but in addittion I also : > think this is not worth a PR ticket. : > : > Cheers : > remko : Sorry but I and a number of others who have complained about the same problem : do agree it is worth a PR. basically we seem to have an uncontrollable : worthless message generator. : : If you can tell me how to stop the messages for this device it would make a PR : unnecessary but as things stand none seems to be able to answer the : question "How do we stop the messages?" The messages are from CAM. It likes to get extremely verbose when it can't do something. There's currently no way to 'fix' this short of hacking the source. Warner From owner-freebsd-usb@FreeBSD.ORG Thu Aug 9 07:01:11 2007 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2727B16A421; Thu, 9 Aug 2007 07:01:11 +0000 (UTC) (envelope-from david@vizion2000.net) Received: from dns1.vizion2000.net (77-99-36-42.cable.ubr04.chap.blueyonder.co.uk [77.99.36.42]) by mx1.freebsd.org (Postfix) with ESMTP id D12B113C4D3; Thu, 9 Aug 2007 07:01:10 +0000 (UTC) (envelope-from david@vizion2000.net) Received: by dns1.vizion2000.net (Postfix, from userid 1007) id C23731CC3D; Thu, 9 Aug 2007 00:16:07 -0700 (PDT) From: David Southwell Organization: Voice and Vision To: "M. Warner Losh" Date: Thu, 9 Aug 2007 00:16:06 -0700 User-Agent: KMail/1.9.7 References: <200708081620.l78GK69W018680@freefall.freebsd.org> <200708081502.14940.david@vizion2000.net> <20070808.161706.635731737.imp@bsdimp.com> In-Reply-To: <20070808.161706.635731737.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708090016.07548.david@vizion2000.net> Cc: usb@freebsd.org, freebsd-bugs@freebsd.org, remko@elvandar.org Subject: Re: kern/114667: [umass] UMASS device error log problem 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, 09 Aug 2007 07:01:11 -0000 On Wednesday 08 August 2007 15:17:06 M. Warner Losh wrote: > In message: <200708081502.14940.david@vizion2000.net> > > David Southwell writes: > : On Wednesday 08 August 2007 10:54:14 Remko Lodder wrote: > : > On Wed, Aug 08, 2007 at 04:20:06PM +0000, David Southwell wrote: > : > > The following reply was made to PR kern/114667; it has been noted by > : > > GNATS. > : > > > : > > From: David Southwell > : > > To: bug-followup@freebsd.org, > : > > david@vizion2000.net > : > > Cc: > : > > Subject: Re: kern/114667: [umass] UMASS device error log problem > : > > Date: Wed, 8 Aug 2007 09:27:59 -0700 > : > > > : > > Hi > : > > > : > > Just wondered if anyone might have the time to look at this -- it > : > > really is a nuisance. > : > > > : > > Thanks > : > > : > Hello David, > : > > : > I just checked the PR itself and I personally do not think this is > : > something we should handle though, the messages get in the logfile > : > because you ask for information on a 'heavily removable' device, it > : > mostly has multiple ports and the device has no knowledge to see what > : > 'port' is being used [if at all used]. > : > > : > That said; this is my private opinion, others might ofcourse disagree > : > with me, please feel free to continue to discuss this, but in addittion > : > I also think this is not worth a PR ticket. > : > > : > Cheers > : > remko > : > : Sorry but I and a number of others who have complained about the same > : problem do agree it is worth a PR. basically we seem to have an > : uncontrollable worthless message generator. > : > : If you can tell me how to stop the messages for this device it would make > : a PR unnecessary but as things stand none seems to be able to answer the > : question "How do we stop the messages?" > > The messages are from CAM. It likes to get extremely verbose when it > can't do something. There's currently no way to 'fix' this short of > hacking the source. > > Warner That is precisely why I have put in a PR. CAM is pretty ancient and IMHO it is time it was revisited to get rid of this tiresome behaviour. Unfortunatley I do not have the capability to do it myself. In this case "hacking the source" iand "bug fixing" are synonyms. It needs fixing - and therefore a PR is IMHO most appropriate. David From owner-freebsd-usb@FreeBSD.ORG Thu Aug 9 08:00:05 2007 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8149516A417; Thu, 9 Aug 2007 08:00:05 +0000 (UTC) (envelope-from remko@elvandar.org) Received: from galain.elvandar.org (redqueen.elvandar.org [217.148.169.55]) by mx1.freebsd.org (Postfix) with ESMTP id 3845A13C48D; Thu, 9 Aug 2007 08:00:05 +0000 (UTC) (envelope-from remko@elvandar.org) Received: from localhost ([127.0.0.1] helo=galain.elvandar.org) by galain.elvandar.org with esmtp (Exim 4.67) (envelope-from ) id 1IJ28u-000Ena-Nm; Thu, 09 Aug 2007 09:09:12 +0200 Received: from 194.74.82.3 (SquirrelMail authenticated user remko) by galain.elvandar.org with HTTP; Thu, 9 Aug 2007 09:09:12 +0200 (CEST) Message-ID: <57428.194.74.82.3.1186643352.squirrel@galain.elvandar.org> In-Reply-To: <200708090016.07548.david@vizion2000.net> References: <200708081620.l78GK69W018680@freefall.freebsd.org> <200708081502.14940.david@vizion2000.net> <20070808.161706.635731737.imp@bsdimp.com> <200708090016.07548.david@vizion2000.net> Date: Thu, 9 Aug 2007 09:09:12 +0200 (CEST) From: "Remko Lodder" To: "David Southwell" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: usb@freebsd.org, freebsd-bugs@freebsd.org, scottl@FreeBSD.org Subject: Re: kern/114667: [umass] UMASS device error log problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: remko@elvandar.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2007 08:00:05 -0000 On Thu, August 9, 2007 9:16 am, David Southwell wrote: >> Warner > > That is precisely why I have put in a PR. CAM is pretty ancient and IMHO > it is > time it was revisited to get rid of this tiresome behaviour. Unfortunatley > I > do not have the capability to do it myself. In this case "hacking the > source" > iand "bug fixing" are synonyms. > > It needs fixing - and therefore a PR is IMHO most appropriate. > > David > With all due respect, I think this is -your- opinion, which you are entitled to ofcourse. Others might not be as convinced that this should be revised as you are. The PR database is for getting reports about problems, but as shown in this discussion, the PRoblem here is still under discussion. Especially since nobody replied to this, it gives me the feeling that this is just someone a few people want. I included Scott Long in the discussion who has more clue about CAM that I do ;-): Scott, what do you think about the proposal? ("CAM should be less verbose when you issue a camcontrol devlist for example"). thanks, remko -- Kind regards, Remko Lodder ** remko@elvandar.org FreeBSD ** remko@FreeBSD.org /* Quis custodiet ipsos custodes */ From owner-freebsd-usb@FreeBSD.ORG Thu Aug 9 17:48:42 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB1B916A469 for ; Thu, 9 Aug 2007 17:48:42 +0000 (UTC) (envelope-from rec@RCousins.com) Received: from colo7.rcousins.com (colo7.rcousins.com [69.36.229.232]) by mx1.freebsd.org (Postfix) with ESMTP id DE17E13C46B for ; Thu, 9 Aug 2007 17:48:42 +0000 (UTC) (envelope-from rec@RCousins.com) Received: from [10.0.2.5] (m206-32.dsl.tsoft.com [198.144.206.32]) by colo7.rcousins.com (Postfix) with ESMTP id 140C739DC45 for ; Thu, 9 Aug 2007 10:21:04 -0700 (PDT) Message-ID: <46BB4D21.1040202@RCousins.com> Date: Thu, 09 Aug 2007 10:21:37 -0700 From: Robert Cousins User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to talk to a USB Device 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, 09 Aug 2007 17:48:43 -0000 Hello: I've got several USB devices which I'd like to talk to from a program. They are Phigets -- a servo controller, an RFID reader, etc. Could someone please give me a hint as to the best starting point for learning how to use libusb and the associated facilities? I've been lurking for a while on this list and haven't seen/heard what I think I need to know. Thanx Bob Cousins From owner-freebsd-usb@FreeBSD.ORG Thu Aug 9 21:40:11 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC4A816A41A for ; Thu, 9 Aug 2007 21:40:11 +0000 (UTC) (envelope-from sven-freebsd@hazejager.nl) Received: from chainsoftware.nl (hazejager.demon.nl [83.160.136.100]) by mx1.freebsd.org (Postfix) with ESMTP id 2EB2113C4A8 for ; Thu, 9 Aug 2007 21:40:10 +0000 (UTC) (envelope-from sven-freebsd@hazejager.nl) Received: from chainsoftware.nl (localhost [127.0.0.1]) by chainsoftware.nl (8.13.8/8.13.8) with ESMTP id l79LOYU9033658 for ; Thu, 9 Aug 2007 23:24:34 +0200 (CEST) (envelope-from sven-freebsd@hazejager.nl) Received: from localhost (sven@localhost) by chainsoftware.nl (8.13.8/8.13.8/Submit) with ESMTP id l79LOYLc033655 for ; Thu, 9 Aug 2007 23:24:34 +0200 (CEST) (envelope-from sven-freebsd@hazejager.nl) X-Authentication-Warning: proxy.chain.loc: sven owned process doing -bs Date: Thu, 9 Aug 2007 23:24:34 +0200 (CEST) From: Sven Hazejager To: freebsd-usb@freebsd.org Message-ID: <07080923185142.-1077952816@somehost.domainz.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, hits=-3.977 tests=ALL_TRUSTED,BAYES_00,UPPERCASE_25_50 X-Scanned-By: MIMEDefang 2.56 on 192.168.0.1 Subject: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE? 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, 09 Aug 2007 21:40:11 -0000 Hi all, Is there a tool under FreeBSD 6.2 that properly stops a USB device, equivalent to Windows XPs Safely Remove Hardware? I noticed that Windows sends a IRP_MN_REMOVE_DEVICE command, after which my LaCie external HDD spins down. I would like to do this under FreeBSD too. So, the question really is: how to send a IRP_MN_REMOVE_DEVICE command? Thanks, Sven From owner-freebsd-usb@FreeBSD.ORG Fri Aug 10 04:32:24 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DC9C16A46E for ; Fri, 10 Aug 2007 04:32:24 +0000 (UTC) (envelope-from gcr+freebsd-usb@tharned.org) Received: from xm17.infosec.fedex.com (xm17.infosec.fedex.com [199.81.216.41]) by mx1.freebsd.org (Postfix) with ESMTP id 16A6113C457 for ; Fri, 10 Aug 2007 04:32:24 +0000 (UTC) (envelope-from gcr+freebsd-usb@tharned.org) X-AuditID: c751805b-a5dbbbb000005d78-a2-46bbdcc2aa3d Received: from inet04.prod.fedex.com (inet04.prod.fedex.com [199.81.10.44]) by xm17.infosec.fedex.com (FedEx MX) with ESMTP id 05D6C4E4002 for ; Thu, 9 Aug 2007 22:34:26 -0500 (CDT) Received: from nc8000.tharned.org ([172.18.80.15]) by inet04.prod.fedex.com (8.12.11/8.12.11) with ESMTP id l7A3YK2w002292 for ; Thu, 9 Aug 2007 22:34:25 -0500 (CDT) Received: from nc8000.tharned.org (gcr@localhost [127.0.0.1]) by nc8000.tharned.org (8.14.1/8.14.1) with ESMTP id l7A3YHua049260; Thu, 9 Aug 2007 22:34:17 -0500 (CDT) (envelope-from gcr+freebsd-usb@tharned.org) Received: from localhost (gcr@localhost) by nc8000.tharned.org (8.14.1/8.14.1/Submit) with ESMTP id l7A3YGop049257; Thu, 9 Aug 2007 22:34:17 -0500 (CDT) (envelope-from gcr+freebsd-usb@tharned.org) Date: Thu, 9 Aug 2007 22:34:16 -0500 (CDT) From: Greg Rivers Sender: gcr@tharned.org To: Sven Hazejager In-Reply-To: <07080923185142.-1077952816@somehost.domainz.com> Message-ID: <20070809222720.T950@nc8000.tharned.org> References: <07080923185142.-1077952816@somehost.domainz.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Brightmail-Tracker: AAAAAA== Cc: freebsd-usb@freebsd.org Subject: Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE? 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, 10 Aug 2007 04:32:24 -0000 On Thu, 9 Aug 2007, Sven Hazejager wrote: > Is there a tool under FreeBSD 6.2 that properly stops a USB device, > equivalent to Windows XPs Safely Remove Hardware? I noticed that Windows > sends a IRP_MN_REMOVE_DEVICE command, after which my LaCie external HDD > spins down. I would like to do this under FreeBSD too. > > So, the question really is: how to send a IRP_MN_REMOVE_DEVICE command? > See camcontrol(8). `camcontrol eject` should do the trick in this case, but only if the device supports it. `camcontrol stop` works to spin down many hard drives, but in my experience is more likely to work on firewire than USB drives. -- Greg From owner-freebsd-usb@FreeBSD.ORG Fri Aug 10 20:27:19 2007 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A218516A421; Fri, 10 Aug 2007 20:27:19 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7907813C461; Fri, 10 Aug 2007 20:27:19 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7AKRJCD033388; Fri, 10 Aug 2007 20:27:19 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7AKRJuk033384; Fri, 10 Aug 2007 20:27:19 GMT (envelope-from linimon) Date: Fri, 10 Aug 2007 20:27:19 GMT Message-Id: <200708102027.l7AKRJuk033384@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/115400: [ehci] Problem with EHCI on ASUS M2N4-SLI 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, 10 Aug 2007 20:27:19 -0000 Old Synopsis: Problem with EHCI on ASUS M2N4-SLI New Synopsis: [ehci] Problem with EHCI on ASUS M2N4-SLI Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Aug 10 20:26:48 UTC 2007 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=115400 From owner-freebsd-usb@FreeBSD.ORG Fri Aug 10 22:50:13 2007 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A01316A4C1 for ; Fri, 10 Aug 2007 22:50:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C67F813C461 for ; Fri, 10 Aug 2007 22:50:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7AMo6r7048053 for ; Fri, 10 Aug 2007 22:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7AMo6L8048052; Fri, 10 Aug 2007 22:50:06 GMT (envelope-from gnats) Date: Fri, 10 Aug 2007 22:50:06 GMT Message-Id: <200708102250.l7AMo6L8048052@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Garrett Wollman Cc: Subject: Re: usb/115400: [ehci] Problem with EHCI on ASUS M2N4-SLI X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Garrett Wollman List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 22:50:13 -0000 The following reply was made to PR usb/115400; it has been noted by GNATS. From: Garrett Wollman To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: usb/115400: [ehci] Problem with EHCI on ASUS M2N4-SLI Date: Fri, 10 Aug 2007 18:23:12 -0400 (EDT) >Old Synopsis: Problem with EHCI on ASUS M2N4-SLI >New Synopsis: [ehci] Problem with EHCI on ASUS M2N4-SLI Sorry to tag along here, but I feel the need to note that EHCI has *never* worked for me, on any hardware platform. On my 6.2 machines, attempting to use a USB 2.0 mass-storage device reliably results in a CPU reset (presumably by way of a triple fault). The symptoms were the same in 5.x. The only workaround I've found has been to compile a custom kernel without the ehci driver, but it would be nice if this worked some day. FWIW, these are all AMD machines, and the symptoms are the same on VIA (ASUS A8V), NVIDIA (ASUS A8N-E), and SIS (Acer Aspire 5002) chipsets. The machine with the NVIDIA chipset runs in 32-bit mode, and replaced an earlier ASUS A7something with a VIA chipset and the same symptoms. -GAWollman From owner-freebsd-usb@FreeBSD.ORG Sat Aug 11 04:45:57 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50F3616A41B for ; Sat, 11 Aug 2007 04:45:57 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id 2B37313C480 for ; Sat, 11 Aug 2007 04:45:57 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1167534waf for ; Fri, 10 Aug 2007 21:45:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Uj0XfMYgmhtwGwZGuTDk72XrA0hdji6gn0SePzEZrdFk58kt7xFQz4mhNbna2alatBr57dUoi9X/sC4b7kbt/KKBle/WfN5L83f5opBtu+/AxEaBw3VBBDIdontwKKIVz5MuXxanZ+x5b+62ZEpYHb8tvBxyvLiGkOOiAko4uVY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Aan6vpbWSFXNpRTss7ifruWoAvrTpopkDC4OIbTpQA43sdAH6p2QiBupjXPb9S4+cgr+OY5j29q2YSvBWSh1OykaLYQyAL2++ZimDkVT5mJfGe3s6Izk4O8HJg1BJZ9X8LAtCaVcyUV/Vk4x4G3NZtzsV2MpBGmzimIoOLHWjdE= Received: by 10.114.57.1 with SMTP id f1mr3222785waa.1186807556673; Fri, 10 Aug 2007 21:45:56 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Fri, 10 Aug 2007 21:45:56 -0700 (PDT) Message-ID: Date: Sat, 11 Aug 2007 12:45:56 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200707151118.28211.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707091835.50445.hselasky@c2i.net> <200707151118.28211.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under FreeBSD 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, 11 Aug 2007 04:45:57 -0000 On 7/15/07, Hans Petter Selasky wrote: > On Saturday 14 July 2007 00:33, Xiaofan Chen wrote: > > Sorry that I have three more questions: > > 1) What is the correct method to correctly respond to clear halt feature > > request in the firmware so that it can still recover from the stall? > > The USB 2.0 specification is not very clear about what the clear-stall command > should do. It almost says that this is device dependant. > > I think that clear-stall should only clear the data-toggle ! It should not > clear any buffers. That should be done by a seperate control transfer. > > > 2) For the host, how does it know that the buffer data is still correct if > > the buffer is not cleared? > > Clear stall should only clear the data toggle! > > You need a second control command to reset the buffers and/or the protocol! > > > 2) What cause the stall to happen in the first place? > > It is either a wrong data-toggle bit or a protocol error. The device can send > stall at any time! > I guess that the stall might be related to the different behavior of Linux and FreeBSD implementation. http://lists.alioth.debian.org/pipermail/libhid-discuss/2007-April/000121.html Charles Lepple mentioned the following. "The limitations that I have seen are due to different interpretations of interrupt requests. Linux usbfs submits one URB per libusb usb_interrupt_read/write request, and *BSD ugen seems to set up a recurring transfer (and libusb reads the buffer that is filled by those transfers). This is fine as long as the libusb client program reads the buffer fast enough, but it does not allow you to submit interrupt requests at a slower rate than the descriptor specifies in *BSD." Is this the possible reason causing the STALL? Xiaofan From owner-freebsd-usb@FreeBSD.ORG Sat Aug 11 04:48:13 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EEBB16A417 for ; Sat, 11 Aug 2007 04:48:13 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id 194F213C442 for ; Sat, 11 Aug 2007 04:48:12 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1168014waf for ; Fri, 10 Aug 2007 21:48:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GQkP+cr5w31v9dTQmUBrF3w2lePmtHgo8eXlb09Aa2R/N5Yt/iIvCAbAYdmav6NJGGed7FTgD8sL2FisHQDqjMpAJvbnNWBcGjMsaPJRP0vXnOV+yq6Llw8wNapCgWPQFnYbrsqUJ2coq6LEcCtMd6Wm9o0SuD5kKvzLeRb8GeQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K1ThS7cOGXUtF2nphSo4f0x+ibh3PDoSciq5uQvtLriSdAfP/yMUA6yxVLmTAd43bd/PH5iCFfGzp3SVMK8RvDSTks8qa6MkiSap9FxGtAuT0rG9GLDEBuSLru/MBeyQp+3bS6juSATE3tzLKkM6AQfUYVYlqJQzFSJ7LxV0sBw= Received: by 10.115.15.1 with SMTP id s1mr3221686wai.1186807691668; Fri, 10 Aug 2007 21:48:11 -0700 (PDT) Received: by 10.114.176.17 with HTTP; Fri, 10 Aug 2007 21:48:11 -0700 (PDT) Message-ID: Date: Sat, 11 Aug 2007 12:48:11 +0800 From: "Xiaofan Chen" To: "Robert Cousins" In-Reply-To: <46BB4D21.1040202@RCousins.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46BB4D21.1040202@RCousins.com> Cc: freebsd-usb@freebsd.org Subject: Re: How to talk to a USB Device 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, 11 Aug 2007 04:48:13 -0000 On 8/10/07, Robert Cousins wrote: > Hello: > I've got several USB devices which I'd like to talk to from a program. > They are Phigets -- a servo controller, an RFID reader, etc. > Could someone please give me a hint as to the best starting point > for learning > how to use libusb and the associated facilities? I've been lurking for a > while on this > list and haven't seen/heard what I think I need to know. > You might want to look at libhid/libphidgets. http://libhid.alioth.debian.org/ http://libphidgets.alioth.debian.org/ Take note that you have to disable uhid and use ugen. Regards, Xiaofan