From owner-freebsd-usb@FreeBSD.ORG Sun Aug 6 11:49:00 2006 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 4380B16A4DF; Sun, 6 Aug 2006 11:49:00 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECA6A43D58; Sun, 6 Aug 2006 11:48:59 +0000 (GMT) (envelope-from bms@FreeBSD.org) Received: from freefall.freebsd.org (bms@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k76Bmx95070881; Sun, 6 Aug 2006 11:48:59 GMT (envelope-from bms@freefall.freebsd.org) Received: (from bms@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k76BmxFd070877; Sun, 6 Aug 2006 11:48:59 GMT (envelope-from bms) Date: Sun, 6 Aug 2006 11:48:59 GMT From: Bruce M Simpson Message-Id: <200608061148.k76BmxFd070877@freefall.freebsd.org> To: volkmann@inode.at, bms@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/92462: [patch] Add support for Epson CX3500/3600/3650 scanners. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2006 11:49:00 -0000 Synopsis: [patch] Add support for Epson CX3500/3600/3650 scanners. State-Changed-From-To: feedback->open State-Changed-By: bms State-Changed-When: Sun Aug 6 11:47:06 UTC 2006 State-Changed-Why: I can reproduce the reported condition(s) both with and without the patch -- without patch, scanner functions of a CX3650 are not recognised. With patch, they are. With ulpt loaded, the ulpt function of the printer is detected first, and uscanner is not bound to the usb device. Proposed resolution: I will most likely commit this change so that people have working scanners (though they will have to unload unlpt first). At the moment I'm just trying to print with one of these damn things! http://www.freebsd.org/cgi/query-pr.cgi?pr=92462 From owner-freebsd-usb@FreeBSD.ORG Sun Aug 6 12:02:02 2006 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 6FEA516A518; Sun, 6 Aug 2006 12:02:02 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D69643D60; Sun, 6 Aug 2006 12:01:57 +0000 (GMT) (envelope-from bms@FreeBSD.org) Received: from freefall.freebsd.org (bms@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k76C1vuc072137; Sun, 6 Aug 2006 12:01:57 GMT (envelope-from bms@freefall.freebsd.org) Received: (from bms@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k76C1vGQ072133; Sun, 6 Aug 2006 12:01:57 GMT (envelope-from bms) Date: Sun, 6 Aug 2006 12:01:57 GMT From: Bruce M Simpson Message-Id: <200608061201.k76C1vGQ072133@freefall.freebsd.org> To: volkmann@inode.at, bms@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/92462: [patch] Add support for Epson CX3500/3600/3650 scanners. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2006 12:02:02 -0000 Synopsis: [patch] Add support for Epson CX3500/3600/3650 scanners. State-Changed-From-To: open->patched State-Changed-By: bms State-Changed-When: Sun Aug 6 12:01:46 UTC 2006 State-Changed-Why: Patch good and applied on HEAD http://www.freebsd.org/cgi/query-pr.cgi?pr=92462 From owner-freebsd-usb@FreeBSD.ORG Sun Aug 6 14:03:20 2006 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 A245C16A4E1 for ; Sun, 6 Aug 2006 14:03:20 +0000 (UTC) (envelope-from Alex.Kovalenko@verizon.net) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D1D343D70 for ; Sun, 6 Aug 2006 14:03:19 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([70.21.186.106]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J3K008OAXOQ5DV9@vms042.mailsrvcs.net> for freebsd-usb@freebsd.org; Sun, 06 Aug 2006 09:02:52 -0500 (CDT) Date: Sun, 06 Aug 2006 10:02:27 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <200608052056.56407.hselasky@c2i.net> To: Hans Petter Selasky Message-id: <1154872947.913.12.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <200608051152.35219.hselasky@c2i.net> <200608051746.03387.hselasky@c2i.net> <1154799595.947.18.camel@RabbitsDen> <200608052056.56407.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Testers wanted (again) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2006 14:03:20 -0000 On Sat, 2006-08-05 at 20:56 +0200, Hans Petter Selasky wrote: > On Saturday 05 August 2006 19:39, Alexandre "Sunny" Kovalenko wrote: ... > > I can certainly wait until Christmas. Just for my education -- what kind > > of devices did you want tested? > > Today, just ADMtek AN986 Pegasus USB Ethernet devices and IDE mass storage > devices, not "device umass", but "device atausb". But if you want, you can > test USB functionality in general. > > --HPS Oops, I am being silly here -- to quote Release Notes: "The ata(4) driver now supports USB mass storage class devices. To enable it, a line device atausb in the kernel configuration file or loading the atausb kernel module is needed. Note that this functionality cannot coexist with the umass(4) driver." ... sigh. So I have built a kernel with the device atausb inside -- configuration is available at http://members.verizon.net/~akovalenko/Misc/USB It seems to recognize the bus: Aug 6 09:37:33 RabbitsDen kernel: atausb0: Aug 6 09:37:33 RabbitsDen kernel: atausb0: using SCSI over Bulk-Only Aug 6 09:37:33 RabbitsDen kernel: ata2: on atausb0 or, for the different device: Aug 6 09:33:38 RabbitsDen kernel: atausb0: Aug 6 09:33:38 RabbitsDen kernel: atausb0: using SCSI over Bulk-Only Aug 6 09:33:38 RabbitsDen kernel: ata2: on atausb0 but not the device: RabbitsDen# atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI revision 6 Slave: no device present ATA channel 1: Master: acd0 ATA/ATAPI revision 5 Slave: no device present ATA channel 2: Master: no device present Slave: no device present RabbitsDen# atacontrol info ata2 Master: no device present Slave: no device present RabbitsDen# atacontrol reinit ata2 atacontrol: ioctl(IOCATAREINIT): Device not configured Master: no device present Slave: no device present RabbitsDen# and attempt to do atacontrol attach ata2 crashes kernel with the following trace: RabbitsDen# kgdb ./usr/src/sys/USB/kernel.debug /var/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined sym bol "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 = 0x4 fault code = supervisor read, page not present instruction pointer = 0x20:0xc059fd56 stack pointer = 0x28:0xd90e1b08 frame pointer = 0x28:0xd90e1b08 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 = 868 (atacontrol) Physical memory: 599 MB Dumping 54 MB: 39 23 7 #0 doadump () at pcpu.h:166 166 pcpu.h: No such file or directory. in pcpu.h (kgdb) where #0 doadump () at pcpu.h:166 #1 0xc04778bc in db_fncall (dummy1=0, dummy2=0, dummy3=1999, dummy4=0xd90e18c8 " w\202��\030\016�") at /usr/src/sys/ddb/db_command.c:481 #2 0xc0477665 in db_command (last_cmdp=0xc0826e24, cmd_table=0x0) at /usr/src/sys/ddb/db_command.c:396 #3 0xc047773a in db_command_loop () at /usr/src/sys/ddb/db_command.c:448 #4 0xc0479835 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:221 #5 0xc059aac5 in kdb_trap (type=0, code=0, tf=0x0) at /usr/src/sys/kern/subr_kdb.c:502 #6 0xc07774fc in trap_fatal (frame=0xd90e1ac8, eva=4) at /usr/src/sys/i386/i386/trap.c:858 #7 0xc0777205 in trap_pfault (frame=0xd90e1ac8, usermode=0, eva=4) at /usr/src/sys/i386/i386/trap.c:776 #8 0xc0776d63 in trap (frame= {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = -1025473280, tf_esi = -1023739392, tf_ ebp = -653387000, tf_isp = -653387020, tf_ebx = -1025473280, tf_edx = -1065420148, tf_ecx = -1031237632, tf_eax = 0, tf_trapno = 12, tf_err = 4, tf_eip = -1067844266, tf_cs = 32, tf_eflags = 66178, tf_esp = -653386896, tf_ss = -1068859020}) at /usr/src/sys/i386/i386/trap.c:461 #9 0xc07619ea in calltrap () at /usr/src/sys/i386/i386/exception.s:138 #10 0xc059fd56 in rman_get_bustag (r=0x0) at /usr/src/sys/kern/subr_rman.c:722 #11 0xc04a8174 in ata_generic_reset (dev=0xc2e08500) at bus.h:515 #12 0xc049203a in ata_attach (dev=0xc2e08500) at ata_if.h:55 #13 0xc0492caa in ata_ioctl (dev=0xc2886400, cmd=0, data=0xc07efa8c "\224�~�@\201J�:", flag=3, td=0xc2be5bd0) at /usr/src/sys/dev/ata/ata-all.c:383 #14 0xc05452b8 in giant_ioctl (dev=0xc2886400, cmd=0, data=0x0, fflag=0, td=0x0) at /usr/src/sys/kern/kern_conf.c:288 #15 0xc0517d29 in devfs_ioctl_f (fp=0xc2e0cb40, com=2147770627, data=0xc2992970, cred=0xc2e0d400, td=0xc2be5bd0) at /usr/src/sys/fs/devfs/devfs_vnops.c:410 #16 0xc05a7061 in kern_ioctl (td=0xc2be5bd0, fd=3, com=2147770627, data=0xc2992970 "\002") at file.h:265 #17 0xc05a6be7 in ioctl (td=0x0, uap=0xd90e1d04) at /usr/src/sys/kern/sys_generic.c:575 #18 0xc07778da in syscall (frame= {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 134521610, tf_esi = -1077940770, tf_e bp = -1077941048, tf_isp = -653386396, tf_ebx = -1077941644, tf_edx = 2, tf_ecx = 0, tf_e ax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 672530327, tf_cs = 51, tf_eflags = 582, tf_ esp = -1077941700, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:1006 #19 0xc0761a3f in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:191 #20 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) Admittedly, I am unfamiliar with atausb and so far I have not found much to read up on it, so it is quite possible this is the pilot error. Before, I dig into it much further, i would really like to know that I am doing something useful this time around, though :) -- Alexandre Kovalenko (Олександр Коваленко) From owner-freebsd-usb@FreeBSD.ORG Sun Aug 6 18:31:54 2006 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 90B2C16A50E for ; Sun, 6 Aug 2006 18:31:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C1E043FE6 for ; Sun, 6 Aug 2006 18:29:01 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.217.36.254] (HELO [10.0.0.249]) by mailfe13.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 80201690; Sun, 06 Aug 2006 20:28:10 +0200 From: Hans Petter Selasky To: "Alexandre \"Sunny\" Kovalenko" Date: Sun, 6 Aug 2006 20:28:19 +0200 User-Agent: KMail/1.7 References: <200608051152.35219.hselasky@c2i.net> <200608052056.56407.hselasky@c2i.net> <1154872947.913.12.camel@RabbitsDen> In-Reply-To: <1154872947.913.12.camel@RabbitsDen> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200608062028.20804.hselasky@c2i.net> Cc: =?utf-8?q?S=C3=B8ren_Schmidt?= , freebsd-usb@freebsd.org Subject: Re: Testers wanted (again) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2006 18:31:54 -0000 On Sunday 06 August 2006 16:02, Alexandre "Sunny" Kovalenko wrote: > On Sat, 2006-08-05 at 20:56 +0200, Hans Petter Selasky wrote: > > On Saturday 05 August 2006 19:39, Alexandre "Sunny" Kovalenko wrote: > > ... > > > > I can certainly wait until Christmas. Just for my education -- what > > > kind of devices did you want tested? > > > > Today, just ADMtek AN986 Pegasus USB Ethernet devices and IDE mass > > storage devices, not "device umass", but "device atausb". But if you > > want, you can test USB functionality in general. > > > > --HPS > > Oops, I am being silly here -- to quote Release Notes: > "The ata(4) driver now supports USB mass storage class devices. To > enable it, a line device atausb in the kernel configuration file or > loading the atausb kernel module is needed. Note that this functionality > cannot coexist with the umass(4) driver." ... sigh. > > So I have built a kernel with the device atausb inside -- configuration > is available at > Ok. Interesting. I found some bugs in "ata-usb.c" which I have now fixed and committed to SV= N.=20 You still cannot do "atacontrol attach ata2" nor "atacontrol detach ata2" o= n=20 USB devices. I hope that SOS can fix this. Could you have done a "svn update", then re-copy "ata-usb.c" to=20 "/usr/src/sys/dev/ata/", then rebuild your kernel and try again? In "ata-usb.c" there is a variable, "atausbdebug" which you can set non-zer= o=20 to enable debugging, if the driver does not work. =2D-HPS =46or SOS: > RabbitsDen# > > and attempt to do atacontrol attach ata2 > > crashes kernel with the following trace: > > RabbitsDen# kgdb ./usr/src/sys/USB/kernel.debug /var/crash/vmcore.0 > [GDB will not be able to debug user-mode > threads: /usr/lib/libthread_db.so: Undefined sym bol > "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 =3D 0x4 > fault code =3D supervisor read, page not present > instruction pointer =3D 0x20:0xc059fd56 > stack pointer =3D 0x28:0xd90e1b08 > frame pointer =3D 0x28:0xd90e1b08 > 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 868 (atacontrol) > Physical memory: 599 MB > Dumping 54 MB: 39 23 7 > > #0 doadump () at pcpu.h:166 > 166 pcpu.h: No such file or directory. > in pcpu.h > (kgdb) where > #0 doadump () at pcpu.h:166 > #1 0xc04778bc in db_fncall (dummy1=3D0, dummy2=3D0, dummy3=3D1999, > dummy4=3D0xd90e18c8 " w\202=EF=BF=BD=EF=BF=BD\030\016=EF=BF=BD") > at /usr/src/sys/ddb/db_command.c:481 > #2 0xc0477665 in db_command (last_cmdp=3D0xc0826e24, cmd_table=3D0x0) > at /usr/src/sys/ddb/db_command.c:396 > #3 0xc047773a in db_command_loop () > at /usr/src/sys/ddb/db_command.c:448 > #4 0xc0479835 in db_trap (type=3D12, code=3D0) > at /usr/src/sys/ddb/db_main.c:221 > #5 0xc059aac5 in kdb_trap (type=3D0, code=3D0, tf=3D0x0) > at /usr/src/sys/kern/subr_kdb.c:502 > #6 0xc07774fc in trap_fatal (frame=3D0xd90e1ac8, eva=3D4) > at /usr/src/sys/i386/i386/trap.c:858 > #7 0xc0777205 in trap_pfault (frame=3D0xd90e1ac8, usermode=3D0, eva=3D4) > at /usr/src/sys/i386/i386/trap.c:776 > #8 0xc0776d63 in trap (frame=3D > {tf_fs =3D 8, tf_es =3D 40, tf_ds =3D 40, tf_edi =3D -1025473280, t= f_esi =3D > -1023739392, tf_ ebp =3D -653387000, tf_isp =3D -653387020, tf_ebx =3D > -1025473280, tf_edx =3D -1065420148, tf_ecx =3D -1031237632, tf_eax =3D = 0, > tf_trapno =3D 12, tf_err =3D 4, tf_eip =3D -1067844266, tf_cs =3D 32, tf= _eflags > =3D 66178, tf_esp =3D -653386896, tf_ss =3D -1068859020}) > at /usr/src/sys/i386/i386/trap.c:461 > #9 0xc07619ea in calltrap () at /usr/src/sys/i386/i386/exception.s:138 > #10 0xc059fd56 in rman_get_bustag (r=3D0x0) > at /usr/src/sys/kern/subr_rman.c:722 > #11 0xc04a8174 in ata_generic_reset (dev=3D0xc2e08500) at bus.h:515 > #12 0xc049203a in ata_attach (dev=3D0xc2e08500) at ata_if.h:55 > #13 0xc0492caa in ata_ioctl (dev=3D0xc2886400, cmd=3D0, data=3D0xc07efa8c > "\224=EF=BF=BD~=EF=BF=BD@\201J=EF=BF=BD:", > flag=3D3, td=3D0xc2be5bd0) at /usr/src/sys/dev/ata/ata-all.c:383 > #14 0xc05452b8 in giant_ioctl (dev=3D0xc2886400, cmd=3D0, data=3D0x0, ffl= ag=3D0, > td=3D0x0) > at /usr/src/sys/kern/kern_conf.c:288 > #15 0xc0517d29 in devfs_ioctl_f (fp=3D0xc2e0cb40, com=3D2147770627, > data=3D0xc2992970, > cred=3D0xc2e0d400, td=3D0xc2be5bd0) > at /usr/src/sys/fs/devfs/devfs_vnops.c:410 > #16 0xc05a7061 in kern_ioctl (td=3D0xc2be5bd0, fd=3D3, com=3D2147770627, > data=3D0xc2992970 "\002") at file.h:265 > #17 0xc05a6be7 in ioctl (td=3D0x0, uap=3D0xd90e1d04) > at /usr/src/sys/kern/sys_generic.c:575 > #18 0xc07778da in syscall (frame=3D > {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 134521610, tf= _esi =3D > -1077940770, tf_e bp =3D -1077941048, tf_isp =3D -653386396, tf_ebx =3D > -1077941644, tf_edx =3D 2, tf_ecx =3D 0, tf_e ax =3D 54, tf_trapno =3D 12, > tf_err =3D 2, tf_eip =3D 672530327, tf_cs =3D 51, tf_eflags =3D 582, tf_ = esp =3D > -1077941700, tf_ss =3D 59}) at /usr/src/sys/i386/i386/trap.c:1006 > #19 0xc0761a3f in Xint0x80_syscall () > at /usr/src/sys/i386/i386/exception.s:191 > #20 0x00000033 in ?? () > Previous frame inner to this frame (corrupt stack?) > (kgdb) From owner-freebsd-usb@FreeBSD.ORG Tue Aug 8 04:20:26 2006 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 1A15816A4DE for ; Tue, 8 Aug 2006 04:20:26 +0000 (UTC) (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 2D72243D5A for ; Tue, 8 Aug 2006 04:20:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k784KPCd021987 for ; Tue, 8 Aug 2006 04:20:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k784KP1w021986; Tue, 8 Aug 2006 04:20:25 GMT (envelope-from gnats) Date: Tue, 8 Aug 2006 04:20:25 GMT Message-Id: <200608080420.k784KP1w021986@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Ganbold Cc: Subject: Re: usb/93389 : Digital Camera Pentax S60 don't work X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ganbold List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 04:20:26 -0000 The following reply was made to PR usb/93389; it has been noted by GNATS. From: Ganbold To: bug-followup@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: support@spectrum.ru Subject: Re: usb/93389 : Digital Camera Pentax S60 don't work Date: Tue, 08 Aug 2006 13:16:26 +0900 Hi, I have Pentax Optio S60 and I got it working in Dell D620 under FreeBSD-6.1-STABLE by patching umass.c and scsi_da.c. # uname -an FreeBSD devil.micom.mng.net 6.1-STABLE FreeBSD 6.1-STABLE #7: Tue Aug 8 12:52:48 ULAST 2006 tsgan@devil.micom.mng.net:/usr/obj/usr/src/sys/DEVIL i386 Aug 8 12:59:39 devil kernel: umass0: PENTAX product 0x0047, rev 1.10/0.00, addr 2 Aug 8 12:59:40 devil kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 8 12:59:40 devil kernel: da0: Removable Direct Access SCSI-0 device Aug 8 12:59:40 devil kernel: da0: 1.000MB/s transfers Aug 8 12:59:40 devil kernel: da0: 243MB (498176 512 byte sectors: 64H 32S/T 243C) # usbdevs -v ... Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, product 0x0047(0x0047), PENTAX(0x0a17), rev 0.00 ... Patches are here: ----------------------------------------------------------------------------------- --- /usr/src/sys/dev/usb/umass.c-orig Tue Aug 8 12:54:25 2006 +++ /usr/src/sys/dev/usb/umass.c Tue Aug 8 12:55:37 2006 @@ -321,7 +321,7 @@ Static struct umass_devdescr_t umass_devdescrs[] = { { USB_VENDOR_ASAHIOPTICAL, PID_WILDCARD, RID_WILDCARD, - UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, + UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, RS_NO_CLEAR_UA }, { USB_VENDOR_ADDON, USB_PRODUCT_ADDON_ATTACHE, RID_WILDCARD, ----------------------------------------------------------------------------------- --- /usr/src/sys/cam/scsi/scsi_da.c-orig Tue Aug 8 12:53:37 2006 +++ /usr/src/sys/cam/scsi/scsi_da.c Tue Aug 8 12:47:15 2006 @@ -436,6 +436,11 @@ "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { + /* PENTAX Optio S60. */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "PENTAX", "DIGITAL_CAMERA", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, + { /* * Genesys 6-in-1 Card Reader * PR: usb/94647 hth, Ganbold From owner-freebsd-usb@FreeBSD.ORG Tue Aug 8 10:26:14 2006 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 133AE16A4DD for ; Tue, 8 Aug 2006 10:26:14 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from mash.minjust.gov.ua (mash.minjust.gov.ua [193.111.173.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8993043D46 for ; Tue, 8 Aug 2006 10:26:13 +0000 (GMT) (envelope-from triosoft@triosoft.com.ua) Received: from [10.2.113.65] (helo=zk.informjust.ua) by mash.minjust.gov.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GAOmo-000OxX-FU for freebsd-usb@FreeBSD.org; Tue, 08 Aug 2006 13:26:11 +0300 Received: from sigterm.zk.informjust.ua ([10.2.113.30]) by zk.informjust.ua with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1GAOmX-0009nC-SU for freebsd-usb@FreeBSD.org; Tue, 08 Aug 2006 13:25:53 +0300 Message-ID: <44D86745.7050304@triosoft.com.ua> Date: Tue, 08 Aug 2006 13:28:21 +0300 From: "Alexander V. Ribchansky" User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: usb keyboard ( ukbd ) and multimedia keys don't work 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, 08 Aug 2006 10:26:14 -0000 Hello! I have a Logitech Cordless Internet Pro kb+mouse. Everything works fine with appropriate drivers ukbd and ums, but there is no reaction on multimedia keys on keyboard. In xev I don't see any reaction. As far as I understand the problem is in ukbd driver (keyboards with ps/2 and atkbd works fine with mmedia keys) Is there any plan to add support of multimedia keys to ukbd driver? I try to do it myself, but my knowledge isn't enough to do this. How to add translation of USB HID codes from page OC ( page 07 is already translated) ??? In Linux there is no problem with usb keyboard and multimedia keys, but I don't like Linux.. I like FreeBSD :o) HELP with advice or even patch!!! :o) -- With best regards, Alexander V. Ribchansky Uzhgorod, Ukraine From owner-freebsd-usb@FreeBSD.ORG Thu Aug 10 14:00:49 2006 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 C8A2716A4DD for ; Thu, 10 Aug 2006 14:00:49 +0000 (UTC) (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 7848C43D46 for ; Thu, 10 Aug 2006 14:00:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7AE0cP2052823 for ; Thu, 10 Aug 2006 14:00:38 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7AE0cHh052822; Thu, 10 Aug 2006 14:00:38 GMT (envelope-from gnats) Resent-Date: Thu, 10 Aug 2006 14:00:38 GMT Resent-Message-Id: <200608101400.k7AE0cHh052822@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, Dmitry Marakasov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5571516A4E1 for ; Thu, 10 Aug 2006 13:51:48 +0000 (UTC) (envelope-from amdmi3@mail.ru) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE22543D55 for ; Thu, 10 Aug 2006 13:51:47 +0000 (GMT) (envelope-from amdmi3@mail.ru) Received: from [213.148.29.33] (port=2989 helo=nexii.panopticon) by mx2.mail.ru with esmtp id 1GBAws-000AI6-00 for FreeBSD-gnats-submit@freebsd.org; Thu, 10 Aug 2006 17:51:46 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id AB6651703D for ; Thu, 10 Aug 2006 17:51:25 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id A61D841C2; Thu, 10 Aug 2006 17:51:50 +0400 (MSD) Message-Id: <20060810135150.A61D841C2@hades.panopticon> Date: Thu, 10 Aug 2006 17:51:50 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/101757: [patch] uhid.4: correct structure field names to match dev/usb/usb.h X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 14:00:50 -0000 >Number: 101757 >Category: usb >Synopsis: [patch] uhid.4: correct structure field names to match dev/usb/usb.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 10 14:00:37 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 6.1-RELEASE-p3 i386 >Organization: >Environment: System: FreeBSD hades.panopticon 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #1: Tue Aug 8 17:11:07 MSD 2006 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386 >Description: usb_ctl_report_desc and usb_ctl_report structures are mentioned in uhid(4), but fields names in the man page differ from actual ones in the header file sys/usb/usb.h (in man, fields are named size instead of ucrd_size, data instead of ucrd_data etc.). This introduces confusion when copypasting field names from man page. The patch brings man page in sync with header file and also corrects identation. >How-To-Repeat: >Fix: --- uhid.4.patch begins here --- --- src/share/man/man4/uhid.4.orig Thu Aug 10 17:41:57 2006 +++ src/share/man/man4/uhid.4 Thu Aug 10 17:43:30 2006 @@ -65,8 +65,8 @@ without any processing. .Bd -literal struct usb_ctl_report_desc { - int size; - u_char data[1024]; /* filled data size will vary */ + int ucrd_size; + u_char ucrd_data[1024]; /* filled data size will vary */ }; .Ed .It Dv USB_SET_IMMED Pq Vt int @@ -94,8 +94,8 @@ This call may fail if the device does not support this feature. .Bd -literal struct usb_ctl_report { - int report; - u_char data[1024]; /* used data size will vary */ + int ucr_report; + u_char ucr_data[1024]; /* used data size will vary */ }; .Ed .It Dv USB_SET_REPORT Pq Vt "struct usb_ctl_report" --- uhid.4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Aug 10 14:50:25 2006 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 80EE116A4DE for ; Thu, 10 Aug 2006 14:50:25 +0000 (UTC) (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 C1B0643D4C for ; Thu, 10 Aug 2006 14:50: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.4/8.13.4) with ESMTP id k7AEoOCq057174 for ; Thu, 10 Aug 2006 14:50:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7AEoODt057173; Thu, 10 Aug 2006 14:50:24 GMT (envelope-from gnats) Resent-Date: Thu, 10 Aug 2006 14:50:24 GMT Resent-Message-Id: <200608101450.k7AEoODt057173@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, Dmitry Marakasov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1F7B16A4DE for ; Thu, 10 Aug 2006 14:46:49 +0000 (UTC) (envelope-from amdmi3@mail.ru) Received: from mx7.mail.ru (mx7.mail.ru [194.67.23.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D3D243D4C for ; Thu, 10 Aug 2006 14:46:47 +0000 (GMT) (envelope-from amdmi3@mail.ru) Received: from [213.148.29.33] (port=12545 helo=nexii.panopticon) by mx7.mail.ru with esmtp id 1GBBo5-000G4n-00 for FreeBSD-gnats-submit@freebsd.org; Thu, 10 Aug 2006 18:46:45 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id DAB4F1703D for ; Thu, 10 Aug 2006 18:46:23 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id EA56C417F; Thu, 10 Aug 2006 18:46:48 +0400 (MSD) Message-Id: <20060810144648.EA56C417F@hades.panopticon> Date: Thu, 10 Aug 2006 18:46:48 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/101761: [patch] usb.h: increase maximal size of report descriptor X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 14:50:25 -0000 >Number: 101761 >Category: usb >Synopsis: [patch] usb.h: increase maximal size of report descriptor >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: Thu Aug 10 14:50:24 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 6.1-RELEASE-p3 i386 >Organization: >Environment: System: FreeBSD hades.panopticon 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #1: Tue Aug 8 17:11:07 MSD 2006 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386 >Description: In the struct usb_ctl_report_desc there's hardcoded limit to report descriptor size (1024 bytes). That's theoretically bad, as maximum descriptor size is not defined in the HID spec and descriptor may not fit into 1024 bytes. In practice, I have at least one device that has descriptor size > 1024. That's `uhid1: Microsoft SideWinder Force Feedback 2 Joystick, rev 1.10/a.00, addr 3, iclass 3/0', and it has 1343 byte long report descriptor. So, as a temporal fix, I suggest to double maximum report size. Maybe the number should be risen even more (64k should be enough for any sane report descriptor), as I don't know if there's any way to dynamically allocate buffer for the descriptor. Note, that this change will break ABI compatibility (as value of USB_GET_REPORT_DESC depends of sizeof(struct usb_ctl_report_desc)), and all software that includes should be recompiled, so UPDATING entry should be added. >How-To-Repeat: >Fix: --- usb.h.patch begins here --- --- src/sys/dev/usb/usb.h.orig Thu Aug 10 18:22:01 2006 +++ src/sys/dev/usb/usb.h Thu Aug 10 18:21:32 2006 @@ -589,7 +589,7 @@ struct usb_ctl_report_desc { int ucrd_size; - u_char ucrd_data[1024]; /* filled data size will vary */ + u_char ucrd_data[2048]; /* filled data size will vary */ }; typedef struct { u_int32_t cookie; } usb_event_cookie_t; --- usb.h.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Aug 10 15:37:38 2006 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 063E416A4DA; Thu, 10 Aug 2006 15:37:38 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B590243D72; Thu, 10 Aug 2006 15:37:37 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7AFbbqA061264; Thu, 10 Aug 2006 15:37:37 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7AFbbNl061260; Thu, 10 Aug 2006 15:37:37 GMT (envelope-from linimon) Date: Thu, 10 Aug 2006 15:37:37 GMT From: Mark Linimon Message-Id: <200608101537.k7AFbbNl061260@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/101752: [panic] 6.1-RELEASE kernel panic on usb device insertion 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, 10 Aug 2006 15:37:38 -0000 Synopsis: [panic] 6.1-RELEASE kernel panic on usb device insertion Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu Aug 10 15:37:16 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=101752 From owner-freebsd-usb@FreeBSD.ORG Thu Aug 10 19:40:20 2006 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 3216516A4ED for ; Thu, 10 Aug 2006 19:40:20 +0000 (UTC) (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 6E53543D60 for ; Thu, 10 Aug 2006 19:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7AJeHEp082304 for ; Thu, 10 Aug 2006 19:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7AJeHFv082303; Thu, 10 Aug 2006 19:40:17 GMT (envelope-from gnats) Resent-Date: Thu, 10 Aug 2006 19:40:17 GMT Resent-Message-Id: <200608101940.k7AJeHFv082303@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, Dmitry Marakasov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC2BE16A4DF for ; Thu, 10 Aug 2006 19:35:15 +0000 (UTC) (envelope-from amdmi3@mail.ru) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FCFD43D45 for ; Thu, 10 Aug 2006 19:35:15 +0000 (GMT) (envelope-from amdmi3@mail.ru) Received: from [213.148.29.33] (port=1749 helo=nexii.panopticon) by mx1.mail.ru with esmtp id 1GBGJF-000P0D-00 for FreeBSD-gnats-submit@freebsd.org; Thu, 10 Aug 2006 23:35:13 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id 23EBF17054 for ; Thu, 10 Aug 2006 23:34:52 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 904804181; Thu, 10 Aug 2006 23:35:17 +0400 (MSD) Message-Id: <20060810193517.904804181@hades.panopticon> Date: Thu, 10 Aug 2006 23:35:17 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/101775: [libusbhid] [patch] possible error in report descriptor parsing X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 19:40:20 -0000 >Number: 101775 >Category: usb >Synopsis: [libusbhid] [patch] possible error in report descriptor parsing >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: Thu Aug 10 19:40:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 6.1-RELEASE-p3 i386 >Organization: >Environment: System: FreeBSD hades.panopticon 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #1: Tue Aug 8 17:11:07 MSD 2006 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386 >Description: Currently, when parsing HID report descriptor, libusbhid treats global items with both tag=3 and tag=4 as `physical maximum', while tag=3 actually is `physical minimum'. >How-To-Repeat: >Fix: --- parse.c.patch begins here --- --- src/lib/libusbhid/parse.c.orig Thu Aug 10 23:27:17 2006 +++ src/lib/libusbhid/parse.c Thu Aug 10 23:27:59 2006 @@ -321,7 +321,7 @@ c->logical_maximum = dval; break; case 3: - c->physical_maximum = dval; + c->physical_minimum = dval; break; case 4: c->physical_maximum = dval; --- parse.c.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Aug 11 06:20:20 2006 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 C523A16A4DA for ; Fri, 11 Aug 2006 06:20:20 +0000 (UTC) (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 16F1643D49 for ; Fri, 11 Aug 2006 06:20:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7B6KJV9047602 for ; Fri, 11 Aug 2006 06:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7B6KJIR047601; Fri, 11 Aug 2006 06:20:19 GMT (envelope-from gnats) Date: Fri, 11 Aug 2006 06:20:19 GMT Message-Id: <200608110620.k7B6KJIR047601@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Mike Wesson" Cc: Subject: Re: usb/94166: btx halted with a flashcard plugged X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mike Wesson List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2006 06:20:20 -0000 The following reply was made to PR usb/94166; it has been noted by GNATS. From: "Mike Wesson" To: , Cc: Subject: Re: usb/94166: btx halted with a flashcard plugged Date: Fri, 11 Aug 2006 00:17:01 -0600 Having the same issue with a USB CD drive. Tried with FreeBSD 5.4, 5.5 and 6.1 install CDs with the same results. Supermicro machine with Intel 945 chipset. Can provide any additional details upon request. Was able to boot Debian and Fedora CDs with this configuration without any problems. --- Mike Wesson mw@phatservers.net http://www.phatservers.net