From rpaulo at freebsd.org Thu Jan 1 16:56:12 2009 From: rpaulo at freebsd.org (Rui Paulo) Date: Thu Jan 1 16:56:19 2009 Subject: New USB stack very noisy Message-ID: So, I was playing with suspend/resume on my laptop to see how well did the new USB stack cope and I was happy that it survived. However... it's really noisy. n 1 16:22:19 phi kernel: uhci_interrupt: host controller halted Jan 1 16:22:19 phi kernel: uhci_dumpregs:696: usbus2 regs: cmd=0000, sts=0020, intr=0000, frnum=061f, flbase=1edae87c, sof=0040, portsc1=0080, portsc2=0080 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b680) at 0x0157b682: h_next=0x0157b602 e_next=0x00000001 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b600) at 0x0157b602: h_next=0x0157b582 e_next=0x00000001 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b580) at 0x0157b582: h_next=0x0157b502 e_next=0x00000001 Jan 1 16:22:19 phi kernel: uhci_dump_qh:769: QH(0xc2d7b500) at 0x0157b502: h_next=0x00000001 e_next=0x0157b480 Jan 1 16:22:19 phi kernel: umass0: at ushub4, port 5, addr 2 (disconnected) This is repeated almost a hundred times before a real suspend. We are probably missing some bits in the uhci_interrupt to cope with suspend. -- Rui Paulo From hselasky at c2i.net Thu Jan 1 20:01:30 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jan 1 20:01:36 2009 Subject: New USB stack very noisy In-Reply-To: References: Message-ID: <200901012103.28488.hselasky@c2i.net> On Thursday 01 January 2009, Rui Paulo wrote: > So, I was playing with suspend/resume on my laptop to see how well did > the new USB stack cope and I was happy that it survived. However... > it's really noisy. This was fixed before Christmas, but has not been committed to -current yet. Please checkout the USB2 code from my private SVN or P4. --HPS From rpaulo at freebsd.org Thu Jan 1 21:40:24 2009 From: rpaulo at freebsd.org (Rui Paulo) Date: Thu Jan 1 21:40:55 2009 Subject: New USB stack very noisy In-Reply-To: <200901012103.28488.hselasky@c2i.net> References: <200901012103.28488.hselasky@c2i.net> Message-ID: On 1 Jan 2009, at 20:03, Hans Petter Selasky wrote: > On Thursday 01 January 2009, Rui Paulo wrote: >> So, I was playing with suspend/resume on my laptop to see how well >> did >> the new USB stack cope and I was happy that it survived. However... >> it's really noisy. > > This was fixed before Christmas, but has not been committed to - > current yet. > > Please checkout the USB2 code from my private SVN or P4. Since we are reaching a turning phase, we should be getting your code more often. Can your point of contact commit a newer version to the FreeBSD svn repo? -- Rui Paulo From hselasky at c2i.net Thu Jan 1 22:27:35 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jan 1 22:27:42 2009 Subject: New USB stack very noisy In-Reply-To: References: <200901012103.28488.hselasky@c2i.net> Message-ID: <200901012329.55389.hselasky@c2i.net> On Thursday 01 January 2009, Rui Paulo wrote: > On 1 Jan 2009, at 20:03, Hans Petter Selasky wrote: > > On Thursday 01 January 2009, Rui Paulo wrote: > >> So, I was playing with suspend/resume on my laptop to see how well > >> did > >> the new USB stack cope and I was happy that it survived. However... > >> it's really noisy. > > > > This was fixed before Christmas, but has not been committed to - > > current yet. > > > > Please checkout the USB2 code from my private SVN or P4. > > Since we are reaching a turning phase, we should be getting your code > more often. > > Can your point of contact commit a newer version to the FreeBSD svn > repo? Yes, soon. --HPS From imp at lighthouse.bsdimp.com Fri Jan 2 19:30:05 2009 From: imp at lighthouse.bsdimp.com (M. Warner Losh) Date: Fri Jan 2 19:30:17 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device Message-ID: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> >Number: 130122 >Category: usb >Synopsis: [hpsusb] DVD drive detects as 'da' device >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: M. Warner Losh >Release: FreeBSD 8.0-CURRENT amd64 >Organization: FreeBSD >Environment: System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r185338:186501M: Fri Dec 26 17:56:39 MST 2008 imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 >Description: My externeal usb DVD drive is showing up as 'da' rather than as 'cd' when using usb2_storage_mass. When I load usb2_storage_ata it shows up as a 'cd' device that's usable. mass should behave as well as ata in this case, or it should detect that it can't get it right and refuse to attach things. >How-To-Repeat: I loaded all the usb2 drivers at runtime: kldload usb2_controller_{e,o}hci kldload usb2_sotrage_mass I then plugged in the drive. This is an external DVD drive. ehci0: mem 0xc0002000-0xc0002fff irq 19 at device 19.2 on pci0 ehci0: memory enable already set. Activate PA 0xc0002000 at VA 0xffffff00c0002000 ehci0: [ITHREAD] usbus0: EHCI version 1.0 usbus0: on ehci0 usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 ushub0: on usbus0 ushub0: 8 ports with 8 removable, self powered ohci0: mem 0xc0000000-0xc0000fff irq 19 at device 19.0 on pci0 ohci0: memory enable already set. Activate PA 0xc0000000 at VA 0xffffff00c0000000 ohci0: [ITHREAD] usbus1: on ohci0 usbus1: 12Mbps Full Speed USB v1.0 ugen1.1: at usbus1 ushub1: on usbus1 ushub1: 4 ports with 4 removable, self powered ohci1: mem 0xc0001000-0xc0001fff irq 19 at device 19.1 on pci0 ohci1: memory enable already set. Activate PA 0xc0001000 at VA 0xffffff00c0001000 ohci1: [ITHREAD] usbus2: on ohci1 usbus2: 12Mbps Full Speed USB v1.0 ugen2.1: at usbus2 ushub2: on usbus2 ushub2: 4 ports with 4 removable, self powered ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0480 umass0:2:0:-1: Attached to scbus2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < > Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present It should be 'cd1'. >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Fri Jan 2 20:21:47 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Jan 2 20:21:54 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device In-Reply-To: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> References: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> Message-ID: <200901022123.57193.hselasky@c2i.net> On Friday 02 January 2009, M. Warner Losh wrote: > >Number: 130122 > >Category: usb > >Synopsis: [hpsusb] DVD drive detects as 'da' device > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: M. Warner Losh > >Release: FreeBSD 8.0-CURRENT amd64 > >Organization: > > FreeBSD > > >Environment: > > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 > > >Description: > > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' > when using usb2_storage_mass. When I load usb2_storage_ata it shows > up as a 'cd' device that's usable. mass should behave as well as ata > in this case, or it should detect that it can't get it right and > refuse to attach things. > > >How-To-Repeat: > > I loaded all the usb2 drivers at runtime: > > kldload usb2_controller_{e,o}hci > kldload usb2_sotrage_mass > > I then plugged in the drive. This is an external DVD drive. > > ehci0: mem 0xc0002000-0xc0002fff irq 19 at > device 19.2 on pci0 ehci0: memory enable already set. > Activate PA 0xc0002000 at VA 0xffffff00c0002000 > ehci0: [ITHREAD] > usbus0: EHCI version 1.0 > usbus0: on ehci0 > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > ushub0: on usbus0 > ushub0: 8 ports with 8 removable, self powered > ohci0: mem 0xc0000000-0xc0000fff irq 19 at > device 19.0 on pci0 ohci0: memory enable already set. > Activate PA 0xc0000000 at VA 0xffffff00c0000000 > ohci0: [ITHREAD] > usbus1: on ohci0 > usbus1: 12Mbps Full Speed USB v1.0 > ugen1.1: at usbus1 > ushub1: on usbus1 > ushub1: 4 ports with 4 removable, self powered > ohci1: mem 0xc0001000-0xc0001fff irq 19 at > device 19.1 on pci0 ohci1: memory enable already set. > Activate PA 0xc0001000 at VA 0xffffff00c0001000 > ohci1: [ITHREAD] > usbus2: on ohci1 > usbus2: 12Mbps Full Speed USB v1.0 > ugen2.1: at usbus2 > ushub2: on usbus2 > ushub2: 4 ports with 4 removable, self powered > ugen0.2: at usbus0 > umass0: on usbus0 > umass0: SCSI over Bulk-Only; quirks = 0x0480 > umass0:2:0:-1: Attached to scbus2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: < > Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present > > It should be 'cd1'. > > >Fix: > > Unknown. > > >Release-Note: > >Audit-Trail: > >Unformatted: Hi, Maybe the AutoInstall CD detecter is interfering with your device. Can you use "usbconfig" to dump the device and config descriptors of your CD device? You can also try: kldload usb2_quirk usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 --HPS From hselasky at c2i.net Fri Jan 2 21:30:11 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Jan 2 21:30:18 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device Message-ID: <200901022130.n02LU9vA010018@freefall.freebsd.org> The following reply was made to PR usb/130122; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "M. Warner Losh" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Fri, 2 Jan 2009 21:23:55 +0100 On Friday 02 January 2009, M. Warner Losh wrote: > >Number: 130122 > >Category: usb > >Synopsis: [hpsusb] DVD drive detects as 'da' device > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: M. Warner Losh > >Release: FreeBSD 8.0-CURRENT amd64 > >Organization: > > FreeBSD > > >Environment: > > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 > > >Description: > > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' > when using usb2_storage_mass. When I load usb2_storage_ata it shows > up as a 'cd' device that's usable. mass should behave as well as ata > in this case, or it should detect that it can't get it right and > refuse to attach things. > > >How-To-Repeat: > > I loaded all the usb2 drivers at runtime: > > kldload usb2_controller_{e,o}hci > kldload usb2_sotrage_mass > > I then plugged in the drive. This is an external DVD drive. > > ehci0: mem 0xc0002000-0xc0002fff irq 19 at > device 19.2 on pci0 ehci0: memory enable already set. > Activate PA 0xc0002000 at VA 0xffffff00c0002000 > ehci0: [ITHREAD] > usbus0: EHCI version 1.0 > usbus0: on ehci0 > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > ushub0: on usbus0 > ushub0: 8 ports with 8 removable, self powered > ohci0: mem 0xc0000000-0xc0000fff irq 19 at > device 19.0 on pci0 ohci0: memory enable already set. > Activate PA 0xc0000000 at VA 0xffffff00c0000000 > ohci0: [ITHREAD] > usbus1: on ohci0 > usbus1: 12Mbps Full Speed USB v1.0 > ugen1.1: at usbus1 > ushub1: on usbus1 > ushub1: 4 ports with 4 removable, self powered > ohci1: mem 0xc0001000-0xc0001fff irq 19 at > device 19.1 on pci0 ohci1: memory enable already set. > Activate PA 0xc0001000 at VA 0xffffff00c0001000 > ohci1: [ITHREAD] > usbus2: on ohci1 > usbus2: 12Mbps Full Speed USB v1.0 > ugen2.1: at usbus2 > ushub2: on usbus2 > ushub2: 4 ports with 4 removable, self powered > ugen0.2: at usbus0 > umass0: on usbus0 > umass0: SCSI over Bulk-Only; quirks = 0x0480 > umass0:2:0:-1: Attached to scbus2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: < > Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present > > It should be 'cd1'. > > >Fix: > > Unknown. > > >Release-Note: > >Audit-Trail: > >Unformatted: Hi, Maybe the AutoInstall CD detecter is interfering with your device. Can you use "usbconfig" to dump the device and config descriptors of your CD device? You can also try: kldload usb2_quirk usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 --HPS From imp at bsdimp.com Fri Jan 2 22:18:30 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Fri Jan 2 22:18:37 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device In-Reply-To: <200901022123.57193.hselasky@c2i.net> References: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> <200901022123.57193.hselasky@c2i.net> Message-ID: <20090102.151501.1649768486.imp@bsdimp.com> In message: <200901022123.57193.hselasky@c2i.net> Hans Petter Selasky writes: : On Friday 02 January 2009, M. Warner Losh wrote: : > >Number: 130122 : > >Category: usb : > >Synopsis: [hpsusb] DVD drive detects as 'da' device : > >Confidential: no : > >Severity: serious : > >Priority: medium : > >Responsible: freebsd-usb : > >State: open : > >Quarter: : > >Keywords: : > >Date-Required: : > >Class: sw-bug : > >Submitter-Id: current-users : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 : > >Closed-Date: : > >Last-Modified: : > >Originator: M. Warner Losh : > >Release: FreeBSD 8.0-CURRENT amd64 : > >Organization: : > : > FreeBSD : > : > >Environment: : > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 : > : > >Description: : > : > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' : > when using usb2_storage_mass. When I load usb2_storage_ata it shows : > up as a 'cd' device that's usable. mass should behave as well as ata : > in this case, or it should detect that it can't get it right and : > refuse to attach things. : > : > >How-To-Repeat: : > : > I loaded all the usb2 drivers at runtime: : > : > kldload usb2_controller_{e,o}hci : > kldload usb2_sotrage_mass : > : > I then plugged in the drive. This is an external DVD drive. : > : > ehci0: mem 0xc0002000-0xc0002fff irq 19 at : > device 19.2 on pci0 ehci0: memory enable already set. : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 : > ehci0: [ITHREAD] : > usbus0: EHCI version 1.0 : > usbus0: on ehci0 : > usbus0: 480Mbps High Speed USB v2.0 : > ugen0.1: at usbus0 : > ushub0: on usbus0 : > ushub0: 8 ports with 8 removable, self powered : > ohci0: mem 0xc0000000-0xc0000fff irq 19 at : > device 19.0 on pci0 ohci0: memory enable already set. : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 : > ohci0: [ITHREAD] : > usbus1: on ohci0 : > usbus1: 12Mbps Full Speed USB v1.0 : > ugen1.1: at usbus1 : > ushub1: on usbus1 : > ushub1: 4 ports with 4 removable, self powered : > ohci1: mem 0xc0001000-0xc0001fff irq 19 at : > device 19.1 on pci0 ohci1: memory enable already set. : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 : > ohci1: [ITHREAD] : > usbus2: on ohci1 : > usbus2: 12Mbps Full Speed USB v1.0 : > ugen2.1: at usbus2 : > ushub2: on usbus2 : > ushub2: 4 ports with 4 removable, self powered : > ugen0.2: at usbus0 : > umass0: on usbus0 : > umass0: SCSI over Bulk-Only; quirks = 0x0480 : > umass0:2:0:-1: Attached to scbus2 : > da0 at umass-sim0 bus 0 target 0 lun 0 : > da0: < > Removable Direct Access SCSI-2 device : > da0: 40.000MB/s transfers : > da0: Attempt to query device size failed: NOT READY, Medium not present : > : > It should be 'cd1'. : > : > >Fix: : > : > Unknown. : > : > >Release-Note: : > >Audit-Trail: : > >Unformatted: : : Hi, : : Maybe the AutoInstall CD detecter is interfering with your device. Hmmm... : Can you use "usbconfig" to dump the device and config descriptors of your CD : device? How? : You can also try: : : kldload usb2_quirk : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 What the heck are these different fields? vid, pid, etc? Warner From imp at bsdimp.com Fri Jan 2 22:20:04 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Fri Jan 2 22:20:10 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device Message-ID: <200901022220.n02MK3Po047295@freefall.freebsd.org> The following reply was made to PR usb/130122; it has been noted by GNATS. From: "M. Warner Losh" To: hselasky@c2i.net Cc: freebsd-usb@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Fri, 02 Jan 2009 15:15:01 -0700 (MST) In message: <200901022123.57193.hselasky@c2i.net> Hans Petter Selasky writes: : On Friday 02 January 2009, M. Warner Losh wrote: : > >Number: 130122 : > >Category: usb : > >Synopsis: [hpsusb] DVD drive detects as 'da' device : > >Confidential: no : > >Severity: serious : > >Priority: medium : > >Responsible: freebsd-usb : > >State: open : > >Quarter: : > >Keywords: : > >Date-Required: : > >Class: sw-bug : > >Submitter-Id: current-users : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 : > >Closed-Date: : > >Last-Modified: : > >Originator: M. Warner Losh : > >Release: FreeBSD 8.0-CURRENT amd64 : > >Organization: : > : > FreeBSD : > : > >Environment: : > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 : > : > >Description: : > : > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' : > when using usb2_storage_mass. When I load usb2_storage_ata it shows : > up as a 'cd' device that's usable. mass should behave as well as ata : > in this case, or it should detect that it can't get it right and : > refuse to attach things. : > : > >How-To-Repeat: : > : > I loaded all the usb2 drivers at runtime: : > : > kldload usb2_controller_{e,o}hci : > kldload usb2_sotrage_mass : > : > I then plugged in the drive. This is an external DVD drive. : > : > ehci0: mem 0xc0002000-0xc0002fff irq 19 at : > device 19.2 on pci0 ehci0: memory enable already set. : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 : > ehci0: [ITHREAD] : > usbus0: EHCI version 1.0 : > usbus0: on ehci0 : > usbus0: 480Mbps High Speed USB v2.0 : > ugen0.1: at usbus0 : > ushub0: on usbus0 : > ushub0: 8 ports with 8 removable, self powered : > ohci0: mem 0xc0000000-0xc0000fff irq 19 at : > device 19.0 on pci0 ohci0: memory enable already set. : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 : > ohci0: [ITHREAD] : > usbus1: on ohci0 : > usbus1: 12Mbps Full Speed USB v1.0 : > ugen1.1: at usbus1 : > ushub1: on usbus1 : > ushub1: 4 ports with 4 removable, self powered : > ohci1: mem 0xc0001000-0xc0001fff irq 19 at : > device 19.1 on pci0 ohci1: memory enable already set. : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 : > ohci1: [ITHREAD] : > usbus2: on ohci1 : > usbus2: 12Mbps Full Speed USB v1.0 : > ugen2.1: at usbus2 : > ushub2: on usbus2 : > ushub2: 4 ports with 4 removable, self powered : > ugen0.2: at usbus0 : > umass0: on usbus0 : > umass0: SCSI over Bulk-Only; quirks = 0x0480 : > umass0:2:0:-1: Attached to scbus2 : > da0 at umass-sim0 bus 0 target 0 lun 0 : > da0: < > Removable Direct Access SCSI-2 device : > da0: 40.000MB/s transfers : > da0: Attempt to query device size failed: NOT READY, Medium not present : > : > It should be 'cd1'. : > : > >Fix: : > : > Unknown. : > : > >Release-Note: : > >Audit-Trail: : > >Unformatted: : : Hi, : : Maybe the AutoInstall CD detecter is interfering with your device. Hmmm... : Can you use "usbconfig" to dump the device and config descriptors of your CD : device? How? : You can also try: : : kldload usb2_quirk : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 What the heck are these different fields? vid, pid, etc? Warner From hselasky at c2i.net Fri Jan 2 23:26:21 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Jan 2 23:26:28 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device In-Reply-To: <20090102.151501.1649768486.imp@bsdimp.com> References: <200901021923.n02JNhZC001422@lighthouse.bsdimp.com> <200901022123.57193.hselasky@c2i.net> <20090102.151501.1649768486.imp@bsdimp.com> Message-ID: <200901030028.38064.hselasky@c2i.net> On Friday 02 January 2009, M. Warner Losh wrote: > In message: <200901022123.57193.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Friday 02 January 2009, M. Warner Losh wrote: > : > >Number: 130122 > : > >Category: usb > : > >Synopsis: [hpsusb] DVD drive detects as 'da' device > : > >Confidential: no > : > >Severity: serious > : > >Priority: medium > : > >Responsible: freebsd-usb > : > >State: open > : > >Quarter: > : > >Keywords: > : > >Date-Required: > : > >Class: sw-bug > : > >Submitter-Id: current-users > : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 > : > >Closed-Date: > : > >Last-Modified: > : > >Originator: M. Warner Losh > : > >Release: FreeBSD 8.0-CURRENT amd64 > : > >Organization: > : > > : > FreeBSD > : > > : > >Environment: > : > > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 > : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 > : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 > : > > : > >Description: > : > > : > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' > : > when using usb2_storage_mass. When I load usb2_storage_ata it shows > : > up as a 'cd' device that's usable. mass should behave as well as ata > : > in this case, or it should detect that it can't get it right and > : > refuse to attach things. > : > > : > >How-To-Repeat: > : > > : > I loaded all the usb2 drivers at runtime: > : > > : > kldload usb2_controller_{e,o}hci > : > kldload usb2_sotrage_mass > : > > : > I then plugged in the drive. This is an external DVD drive. > : > > : > ehci0: mem 0xc0002000-0xc0002fff irq 19 > : > at device 19.2 on pci0 ehci0: memory enable already set. > : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 > : > ehci0: [ITHREAD] > : > usbus0: EHCI version 1.0 > : > usbus0: on ehci0 > : > usbus0: 480Mbps High Speed USB v2.0 > : > ugen0.1: at usbus0 > : > ushub0: on usbus0 > : > ushub0: 8 ports with 8 removable, self powered > : > ohci0: mem 0xc0000000-0xc0000fff irq 19 at > : > device 19.0 on pci0 ohci0: memory enable already set. > : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 > : > ohci0: [ITHREAD] > : > usbus1: on ohci0 > : > usbus1: 12Mbps Full Speed USB v1.0 > : > ugen1.1: at usbus1 > : > ushub1: on usbus1 > : > ushub1: 4 ports with 4 removable, self powered > : > ohci1: mem 0xc0001000-0xc0001fff irq 19 at > : > device 19.1 on pci0 ohci1: memory enable already set. > : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 > : > ohci1: [ITHREAD] > : > usbus2: on ohci1 > : > usbus2: 12Mbps Full Speed USB v1.0 > : > ugen2.1: at usbus2 > : > ushub2: on usbus2 > : > ushub2: 4 ports with 4 removable, self powered > : > ugen0.2: at usbus0 > : > umass0: on usbus0 > : > umass0: SCSI over Bulk-Only; quirks = 0x0480 > : > umass0:2:0:-1: Attached to scbus2 > : > da0 at umass-sim0 bus 0 target 0 lun 0 > : > da0: < > Removable Direct Access SCSI-2 device > : > da0: 40.000MB/s transfers > : > da0: Attempt to query device size failed: NOT READY, Medium not present > : > > : > It should be 'cd1'. > : > > : > >Fix: > : > > : > Unknown. > : > > : > >Release-Note: > : > >Audit-Trail: > : > >Unformatted: > : > : Hi, > : > : Maybe the AutoInstall CD detecter is interfering with your device. > > Hmmm... > > : Can you use "usbconfig" to dump the device and config descriptors of your > : CD device? > > How? Run "usbconfig -h". usbconfig -u xxx -a yyy dump_curr_config_desc usbconfig -u xxx -a yyy dump_device_desc > > : You can also try: > : > : kldload usb2_quirk > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 > > What the heck are these different fields? vid, pid, etc? Vendor ID, product ID, lower inclusive revision number, higher inclusive revision numer that is used when matching the quirk. --HPS From hselasky at c2i.net Sat Jan 3 00:29:46 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 00:29:52 2009 Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' In-Reply-To: <20081230223057.BA8075C86@arthur.nitro.dk> References: <20081230223057.BA8075C86@arthur.nitro.dk> Message-ID: <200901030132.03840.hselasky@c2i.net> On Tuesday 30 December 2008, Simon L. Nielsen wrote: > >Number: 130066 > >Category: usb > >Synopsis: [newusb] Serial adaptor use fail with 'unsupported speed > > XXX' Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Dec 30 22:40:00 UTC 2008 > >Closed-Date: > >Last-Modified: > >Originator: Simon L. Nielsen > >Release: FreeBSD 8.0-CURRENT i386 > >Organization: > >Environment: > > System: FreeBSD eddie.nitro.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Tue Dec > 30 22:28:33 CET 2008 > simon@eddie.nitro.dk:/FreeBSD/obj/FreeBSD/system-CURRENT/sys/EDDIE i386 > > >Description: > > When I try to use my USB to serial adaptors they fail when I try to > use the ports. cu and tip complain about problems setting the speed > to 9600 (or other speeds). > > Using the old USB stack the adaptors work fine. > > # cu -l /dev/cuaU0 > cu: unsupported speed 9600 > # cu -l /dev/cuaU1 > cu: unsupported speed 9600 > # cu -s 115200 -l /dev/cuaU1 > cu: unsupported speed 115200 > # tip ucom2 > tip: bad baud rate 9600 > > Debug info: > >From dmesg/boot: > > ugen0.2: at usbus0 > uplcom0: 1.10/3.00, addr 2> on usbus0 ugen6.2: at usbus6 > uplcom1: 0/0, rev 1.10/2.02, addr 2> on usbus6 ugen6.3: > at usbus6 > > > # usbconfig list > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.1: at usbus4, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at > usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: Intel> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen7.1: root HUB Intel> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: > at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen6.2: Prolific Technology> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > > # usbconfig dump_device_desc > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen0.2: at usbus0, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0300 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.2: at > usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0202 > iManufacturer = 0x0000 > iProduct = 0x0000 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x051d > idProduct = 0x0002 > bcdDevice = 0x0006 > iManufacturer = 0x0003 > iProduct = 0x0001 > iSerialNumber = 0x0002 > bNumConfigurations = 0x0001 > > >From my kernel config: > > # USB Support > device usb2_core # USB Core (required) > # USB Controllers > device usb2_controller # USB Controller (required) > device usb2_controller_uhci # UHCI PCI->USB interface > device usb2_controller_ohci # OHCI PCI->USB interface > device usb2_controller_ehci # EHCI PCI->USB interface (USB 2.0) > #device usb2_misc # USB Misc. (required) > #device usb2_misc_dbp # USB Double Bulk Pipe devices > # USB Input > device usb2_input # USB Input (required) > device usb2_input_hid # "Human Interface Devices" > device usb2_input_kbd # Keyboard > device usb2_input_ms # Mouse > # USB Storage > device usb2_storage > device usb2_storage_mass # Disks/Mass storage - Requires > scbus and da #device usb2_storage_rio # Diamond Rio 500 MP3 > player # USB WLAN > device usb2_wlan # USB Wlan (required) > device usb2_wlan_rum # Ralink Technology RT2501USB > wireless NICs device usb2_wlan_ral # Ralink Technology > RT2500USB wireless NICs device usb2_wlan_zyd # ZyDAS > zb1211/zb1211b wireless NICs # USB Scanners > device usb2_image # USB image (required by scanners) > device usb2_scanner # Scanners > # USB Serial devices > device usb2_serial # USB Serial (Required) > device usb2_serial_lpt # Printer > #device usb2_serial_3g # USB-based 3G modems (Option, > Huawei, Sierra) device usb2_serial_ark # Technologies > ARK3116 based serial adapters device usb2_serial_bsa # > Belkin F5U103 and compatible serial adapters device > usb2_serial_bser > device usb2_serial_chcom > device usb2_serial_cycom > device usb2_serial_foma > device usb2_serial_ftdi # For FTDI USB serial adapters > device usb2_serial_gensa # Generic Serial Adapters > device usb2_serial_ipaq # Some WinCE based devices > device usb2_serial_mct > device usb2_serial_modem # Generic USB modems > device usb2_serial_moscom > device usb2_serial_plcom # Prolific PL-2303 serial adapters > #device usb2_serial_slcom # SI Labs CP2101/CP2102 serial > adapters device usb2_serial_visor # Visor and Palm devices > device usb2_serial_vscom # USB serial support for DDI > pocket's PHS # USB Ethernet, requires miibus > device usb2_ethernet # USB Ethernet (required) > device usb2_ethernet_aue # ADMtek USB Ethernet > device usb2_ethernet_axe # ASIX Electronics USB Ethernet > device usb2_ethernet_cdce # Generic USB over Ethernet > device usb2_ethernet_cue # CATC USB Ethernet > device usb2_ethernet_kue # Kawasaki LSI USB Ethernet > device usb2_ethernet_rue # RealTek RTL8150 USB Ethernet > #device usb2_ethernet_dav # Davicom DM9601E USB > > >How-To-Repeat: > >Fix: > >Release-Note: > >Audit-Trail: > >Unformatted: > Hi, This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I will be fixed shortly. --HPS From hselasky at c2i.net Sat Jan 3 00:30:06 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 00:30:12 2009 Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Message-ID: <200901030030.n030U46r043411@freefall.freebsd.org> The following reply was made to PR usb/130066; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org, "Simon L. Nielsen" Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Date: Sat, 3 Jan 2009 01:32:01 +0100 On Tuesday 30 December 2008, Simon L. Nielsen wrote: > >Number: 130066 > >Category: usb > >Synopsis: [newusb] Serial adaptor use fail with 'unsupported speed > > XXX' Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Dec 30 22:40:00 UTC 2008 > >Closed-Date: > >Last-Modified: > >Originator: Simon L. Nielsen > >Release: FreeBSD 8.0-CURRENT i386 > >Organization: > >Environment: > > System: FreeBSD eddie.nitro.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Tue Dec > 30 22:28:33 CET 2008 > simon@eddie.nitro.dk:/FreeBSD/obj/FreeBSD/system-CURRENT/sys/EDDIE i386 > > >Description: > > When I try to use my USB to serial adaptors they fail when I try to > use the ports. cu and tip complain about problems setting the speed > to 9600 (or other speeds). > > Using the old USB stack the adaptors work fine. > > # cu -l /dev/cuaU0 > cu: unsupported speed 9600 > # cu -l /dev/cuaU1 > cu: unsupported speed 9600 > # cu -s 115200 -l /dev/cuaU1 > cu: unsupported speed 115200 > # tip ucom2 > tip: bad baud rate 9600 > > Debug info: > >From dmesg/boot: > > ugen0.2: at usbus0 > uplcom0: 1.10/3.00, addr 2> on usbus0 ugen6.2: at usbus6 > uplcom1: 0/0, rev 1.10/2.02, addr 2> on usbus6 ugen6.3: > at usbus6 > > > # usbconfig list > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.1: at usbus4, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at > usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: Intel> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen7.1: root HUB Intel> at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: > at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON ugen6.2: Prolific Technology> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > > # usbconfig dump_device_desc > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0100 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen7.1: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0009 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0001 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0000 > idProduct = 0x0000 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen0.2: at usbus0, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0300 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.2: at > usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x067b > idProduct = 0x2303 > bcdDevice = 0x0202 > iManufacturer = 0x0000 > iProduct = 0x0000 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > ugen6.3: > at usbus6, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x051d > idProduct = 0x0002 > bcdDevice = 0x0006 > iManufacturer = 0x0003 > iProduct = 0x0001 > iSerialNumber = 0x0002 > bNumConfigurations = 0x0001 > > >From my kernel config: > > # USB Support > device usb2_core # USB Core (required) > # USB Controllers > device usb2_controller # USB Controller (required) > device usb2_controller_uhci # UHCI PCI->USB interface > device usb2_controller_ohci # OHCI PCI->USB interface > device usb2_controller_ehci # EHCI PCI->USB interface (USB 2.0) > #device usb2_misc # USB Misc. (required) > #device usb2_misc_dbp # USB Double Bulk Pipe devices > # USB Input > device usb2_input # USB Input (required) > device usb2_input_hid # "Human Interface Devices" > device usb2_input_kbd # Keyboard > device usb2_input_ms # Mouse > # USB Storage > device usb2_storage > device usb2_storage_mass # Disks/Mass storage - Requires > scbus and da #device usb2_storage_rio # Diamond Rio 500 MP3 > player # USB WLAN > device usb2_wlan # USB Wlan (required) > device usb2_wlan_rum # Ralink Technology RT2501USB > wireless NICs device usb2_wlan_ral # Ralink Technology > RT2500USB wireless NICs device usb2_wlan_zyd # ZyDAS > zb1211/zb1211b wireless NICs # USB Scanners > device usb2_image # USB image (required by scanners) > device usb2_scanner # Scanners > # USB Serial devices > device usb2_serial # USB Serial (Required) > device usb2_serial_lpt # Printer > #device usb2_serial_3g # USB-based 3G modems (Option, > Huawei, Sierra) device usb2_serial_ark # Technologies > ARK3116 based serial adapters device usb2_serial_bsa # > Belkin F5U103 and compatible serial adapters device > usb2_serial_bser > device usb2_serial_chcom > device usb2_serial_cycom > device usb2_serial_foma > device usb2_serial_ftdi # For FTDI USB serial adapters > device usb2_serial_gensa # Generic Serial Adapters > device usb2_serial_ipaq # Some WinCE based devices > device usb2_serial_mct > device usb2_serial_modem # Generic USB modems > device usb2_serial_moscom > device usb2_serial_plcom # Prolific PL-2303 serial adapters > #device usb2_serial_slcom # SI Labs CP2101/CP2102 serial > adapters device usb2_serial_visor # Visor and Palm devices > device usb2_serial_vscom # USB serial support for DDI > pocket's PHS # USB Ethernet, requires miibus > device usb2_ethernet # USB Ethernet (required) > device usb2_ethernet_aue # ADMtek USB Ethernet > device usb2_ethernet_axe # ASIX Electronics USB Ethernet > device usb2_ethernet_cdce # Generic USB over Ethernet > device usb2_ethernet_cue # CATC USB Ethernet > device usb2_ethernet_kue # Kawasaki LSI USB Ethernet > device usb2_ethernet_rue # RealTek RTL8150 USB Ethernet > #device usb2_ethernet_dav # Davicom DM9601E USB > > >How-To-Repeat: > >Fix: > >Release-Note: > >Audit-Trail: > >Unformatted: > Hi, This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I will be fixed shortly. --HPS From hselasky at c2i.net Sat Jan 3 00:32:52 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 00:32:59 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <200812311256.mBVCuLT9096976@freefall.freebsd.org> References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> Message-ID: <200901030135.11461.hselasky@c2i.net> On Wednesday 31 December 2008, vwe@freebsd.org wrote: > Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a > normal user > > Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > Responsible-Changed-By: vwe > Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > Responsible-Changed-Why: > reassign > > http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 Hi, "usbconfig" will only show USB devices which the user has access to. What should be the correct display message when no devices are accessible due to innsufficient permissions? --HPS From hselasky at freebsd.org Sat Jan 3 01:30:04 2009 From: hselasky at freebsd.org (Hans Petter Selasky) Date: Sat Jan 3 01:30:09 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901030130.n031U3wg089859@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, garga@freebsd.org Cc: Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Sat, 3 Jan 2009 00:54:21 +0100 Hi, Have you tried on different computers? Is the problem the same everwhere? Are you willing to sponsor one of those keyboards for debugging purpose? Could you attach to this PR dumps of the keyboard descriptors using the usbconfig dump commands? See "usbconfig -h" if you need help. For example: usbconfig -u xxx -a yyy dump_curr_config_desc dump_device_desc And: "dmesg | grep -i usb" --HPS From hselasky at c2i.net Sat Jan 3 02:30:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 02:30:10 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device Message-ID: <200901030230.n032U3BI034410@freefall.freebsd.org> The following reply was made to PR usb/130122; it has been noted by GNATS. From: Hans Petter Selasky To: "M. Warner Losh" Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Sat, 3 Jan 2009 00:28:36 +0100 On Friday 02 January 2009, M. Warner Losh wrote: > In message: <200901022123.57193.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Friday 02 January 2009, M. Warner Losh wrote: > : > >Number: 130122 > : > >Category: usb > : > >Synopsis: [hpsusb] DVD drive detects as 'da' device > : > >Confidential: no > : > >Severity: serious > : > >Priority: medium > : > >Responsible: freebsd-usb > : > >State: open > : > >Quarter: > : > >Keywords: > : > >Date-Required: > : > >Class: sw-bug > : > >Submitter-Id: current-users > : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 > : > >Closed-Date: > : > >Last-Modified: > : > >Originator: M. Warner Losh > : > >Release: FreeBSD 8.0-CURRENT amd64 > : > >Organization: > : > > : > FreeBSD > : > > : > >Environment: > : > > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 > : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 > : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 > : > > : > >Description: > : > > : > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' > : > when using usb2_storage_mass. When I load usb2_storage_ata it shows > : > up as a 'cd' device that's usable. mass should behave as well as ata > : > in this case, or it should detect that it can't get it right and > : > refuse to attach things. > : > > : > >How-To-Repeat: > : > > : > I loaded all the usb2 drivers at runtime: > : > > : > kldload usb2_controller_{e,o}hci > : > kldload usb2_sotrage_mass > : > > : > I then plugged in the drive. This is an external DVD drive. > : > > : > ehci0: mem 0xc0002000-0xc0002fff irq 19 > : > at device 19.2 on pci0 ehci0: memory enable already set. > : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 > : > ehci0: [ITHREAD] > : > usbus0: EHCI version 1.0 > : > usbus0: on ehci0 > : > usbus0: 480Mbps High Speed USB v2.0 > : > ugen0.1: at usbus0 > : > ushub0: on usbus0 > : > ushub0: 8 ports with 8 removable, self powered > : > ohci0: mem 0xc0000000-0xc0000fff irq 19 at > : > device 19.0 on pci0 ohci0: memory enable already set. > : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 > : > ohci0: [ITHREAD] > : > usbus1: on ohci0 > : > usbus1: 12Mbps Full Speed USB v1.0 > : > ugen1.1: at usbus1 > : > ushub1: on usbus1 > : > ushub1: 4 ports with 4 removable, self powered > : > ohci1: mem 0xc0001000-0xc0001fff irq 19 at > : > device 19.1 on pci0 ohci1: memory enable already set. > : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 > : > ohci1: [ITHREAD] > : > usbus2: on ohci1 > : > usbus2: 12Mbps Full Speed USB v1.0 > : > ugen2.1: at usbus2 > : > ushub2: on usbus2 > : > ushub2: 4 ports with 4 removable, self powered > : > ugen0.2: at usbus0 > : > umass0: on usbus0 > : > umass0: SCSI over Bulk-Only; quirks = 0x0480 > : > umass0:2:0:-1: Attached to scbus2 > : > da0 at umass-sim0 bus 0 target 0 lun 0 > : > da0: < > Removable Direct Access SCSI-2 device > : > da0: 40.000MB/s transfers > : > da0: Attempt to query device size failed: NOT READY, Medium not present > : > > : > It should be 'cd1'. > : > > : > >Fix: > : > > : > Unknown. > : > > : > >Release-Note: > : > >Audit-Trail: > : > >Unformatted: > : > : Hi, > : > : Maybe the AutoInstall CD detecter is interfering with your device. > > Hmmm... > > : Can you use "usbconfig" to dump the device and config descriptors of your > : CD device? > > How? Run "usbconfig -h". usbconfig -u xxx -a yyy dump_curr_config_desc usbconfig -u xxx -a yyy dump_device_desc > > : You can also try: > : > : kldload usb2_quirk > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 > > What the heck are these different fields? vid, pid, etc? Vendor ID, product ID, lower inclusive revision number, higher inclusive revision numer that is used when matching the quirk. --HPS From upakul at gmail.com Sat Jan 3 05:04:53 2009 From: upakul at gmail.com (Upakul Barkakaty) Date: Sat Jan 3 05:05:00 2009 Subject: USB device set address failure Message-ID: Hi all, I have been facing a Set address failure when I connect a USB to the host which is connected on the PCI-Express bus(connected through a Pci-to-Pcie bridge). When I try out the same thing on a USB host connected to a PCI bus, then it works fine. Heres a snapshot of the log: usbd_new_device bus=0x60a1ccc8 port=1 depth=1 speed=1 [malloc] size = 92 [malloc] sysbrk returned p = 0x60b1ede0 ]malloc[ usbd_setup_pipe: dev=0x60b1ede8 iface=0x00000000 ep=0x60b1ee0c pipe=0x60b1edec [malloc] size = 84 [malloc] sysbrk returned p = 0x60b1ee48 ]malloc[ usb_allocmem: large alloc 6144 usb_block_allocmem: size=8192 align=16 usb_block_allocmem: no free [malloc] size = 48 [malloc] sysbrk returned p = 0x60b1eea8 ]malloc[ [malloc] size = 48 [malloc] sysbrk returned p = 0x60b1eee0 ]malloc[ usb_allocmem: use frag=0xa0695f00 size=8 usbd_alloc_xfer() = 0x60a32548 usbd_transfer: xfer=0x60a32548, flags=2, pipe=0x60b1ee50, running=0 usb_insert_transfer: pipe=0x60b1ee50 running=0 timeout=80000 usb_event_thread: woke up usb_discover usb_event_thread: woke up usb_discover usb_add_task: task=0x60a325a0 usb_task_thread: woke up task=0x60a325a0 usb_schedsoftintr: polling=0 usb_transfer_complete: pipe=0x60b1ee50 xfer=0x60a32548 status=15 actlen=0 usb_transfer_complete: repeat=0 new head=0x00000000 usbd_start_next: pipe=0x60b1ee50, xfer=0x00000000 usbd_free_xfer: 0x60a32548 ****Here**** usbd_new_device: setting device address=2 usb_new_device: set address 2 failed usbd_remove_device: 0x60b1ede8 usbd_ar_pipe: pipe=0x60b1ee50 [free] p = 0x60b1ee48 *p = 0x60b1ee48 size = 84 ]free[ [free] p = 0x60b1ede0 *p = 0x60b1ede0 size = 92 ]free[ uhub_explore: usb_new_device failed, error=SET_ADDR_FAILED uhub0: device problem, disabling port 1 ******** usbd_alloc_xfer() = 0x60a32548 usbd_transfer: xfer=0x60a32548, flags=2, pipe=0x60a31848, running=0 usb_insert_transfer: pipe=0x60a31848 running=0 timeout=80000 usb_transfer_complete: pipe=0x60a31848 xfer=0x60a32548 status=0 actlen=0 usb_transfer_complete: repeat=0 new head=0x00000000 usbd_start_next: pipe=0x60a31848, xfer=0x00000000 usbd_free_xfer: 0x60a32548 uhub_explore dev=0x60a317e0 addr=1 usbd_alloc_xfer() = 0x60a32548 usbd_transfer: xfer=0x60a32548, flags=2, pipe=0x60a31848, running=0 usb_allocmem: use frag=0xa0695ec0 size=4 usb_insert_transfer: pipe=0x60a31848 running=0 timeout=80000 usb_transfer_complete: pipe=0x60a31848 xfer=0x60a32548 status=0 actlen=4 usb_freemem: frag=0xa0695ec0 usb_transfer_complete: repeat=0 new head=0x00000000 usbd_start_next: pipe=0x60a31848, xfer=0x00000000 usbd_free_xfer: 0x60a32548 uhub_explore: uhub0 port 1 status 0x0301 0x0000 uhub_explore: port=1 !C_CONNECT_STATUS usb_event_thread: woke up usb_discover Any help in this regard will be appreciated. -- Regards, Upakul Barkakaty From imp at bsdimp.com Sat Jan 3 06:08:41 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Jan 3 06:08:48 2009 Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' In-Reply-To: <200901030132.03840.hselasky@c2i.net> References: <20081230223057.BA8075C86@arthur.nitro.dk> <200901030132.03840.hselasky@c2i.net> Message-ID: <20090102.230605.-4053934.imp@bsdimp.com> In message: <200901030132.03840.hselasky@c2i.net> Hans Petter Selasky writes: : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I think I fixed this in usb1 not too long ago. It was introduced in the mpsafetty conversion... Well, exposed might be a better word... : I will be fixed shortly. I'm sorry to hear that... Warner From imp at bsdimp.com Sat Jan 3 06:10:03 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Jan 3 06:10:09 2009 Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Message-ID: <200901030610.n036A2bR005454@freefall.freebsd.org> The following reply was made to PR usb/130066; it has been noted by GNATS. From: "M. Warner Losh" To: hselasky@c2i.net Cc: freebsd-usb@FreeBSD.org, simon@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Date: Fri, 02 Jan 2009 23:06:05 -0700 (MST) In message: <200901030132.03840.hselasky@c2i.net> Hans Petter Selasky writes: : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. I think I fixed this in usb1 not too long ago. It was introduced in the mpsafetty conversion... Well, exposed might be a better word... : I will be fixed shortly. I'm sorry to hear that... Warner From hselasky at c2i.net Sat Jan 3 11:00:45 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 11:00:51 2009 Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' In-Reply-To: <20090102.230605.-4053934.imp@bsdimp.com> References: <20081230223057.BA8075C86@arthur.nitro.dk> <200901030132.03840.hselasky@c2i.net> <20090102.230605.-4053934.imp@bsdimp.com> Message-ID: <200901031203.01803.hselasky@c2i.net> On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030132.03840.hselasky@c2i.net> > > Hans Petter Selasky writes: > : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. > > I think I fixed this in usb1 not too long ago. It was introduced in > the mpsafetty conversion... Well, exposed might be a better word... > > : I will be fixed shortly. > > I'm sorry to hear that... > > Warner s/I/it It will be fixed shortly. --HPS From hselasky at c2i.net Sat Jan 3 11:10:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 11:10:11 2009 Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Message-ID: <200901031110.n03BA33s063450@freefall.freebsd.org> The following reply was made to PR usb/130066; it has been noted by GNATS. From: Hans Petter Selasky To: "M. Warner Losh" Cc: freebsd-usb@freebsd.org, simon@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Date: Sat, 3 Jan 2009 12:03:00 +0100 On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030132.03840.hselasky@c2i.net> > > Hans Petter Selasky writes: > : This issue is cause by an IOCTL returning ENOTTY instead of ENOIOCTL. > > I think I fixed this in usb1 not too long ago. It was introduced in > the mpsafetty conversion... Well, exposed might be a better word... > > : I will be fixed shortly. > > I'm sorry to hear that... > > Warner s/I/it It will be fixed shortly. --HPS From volker at vwsoft.com Sat Jan 3 18:59:04 2009 From: volker at vwsoft.com (Volker) Date: Sat Jan 3 18:59:22 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <200901030135.11461.hselasky@c2i.net> References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> Message-ID: <495FAFC0.1020801@vwsoft.com> On 01/03/09 01:35, Hans Petter Selasky wrote: > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a >> normal user >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> Responsible-Changed-By: vwe >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> Responsible-Changed-Why: >> reassign >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > > Hi, > > "usbconfig" will only show USB devices which the user has access to. > > What should be the correct display message when no devices are accessible due > to innsufficient permissions? > > --HPS > Hans, what about "access denied" or "insufficient privileges"? Someone might have a better idea but everything should be better than silently refusing to do anything. Volker From volker at vwsoft.com Sat Jan 3 18:59:04 2009 From: volker at vwsoft.com (Volker) Date: Sat Jan 3 18:59:23 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <200901030135.11461.hselasky@c2i.net> References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> Message-ID: <495FAFDD.2050206@vwsoft.com> On 01/03/09 01:35, Hans Petter Selasky wrote: > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a >> normal user >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> Responsible-Changed-By: vwe >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> Responsible-Changed-Why: >> reassign >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > > Hi, > > "usbconfig" will only show USB devices which the user has access to. > > What should be the correct display message when no devices are accessible due > to innsufficient permissions? > > --HPS > Hans, what about "access denied" or "insufficient privileges"? Someone might have a better idea but everything should be better than silently refusing to do anything. Volker From imp at bsdimp.com Sat Jan 3 19:32:24 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Jan 3 19:32:30 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device In-Reply-To: <200901030028.38064.hselasky@c2i.net> References: <200901022123.57193.hselasky@c2i.net> <20090102.151501.1649768486.imp@bsdimp.com> <200901030028.38064.hselasky@c2i.net> Message-ID: <20090103.122938.-532678760.imp@bsdimp.com> In message: <200901030028.38064.hselasky@c2i.net> Hans Petter Selasky writes: : On Friday 02 January 2009, M. Warner Losh wrote: : > In message: <200901022123.57193.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Friday 02 January 2009, M. Warner Losh wrote: : > : > >Number: 130122 : > : > >Category: usb : > : > >Synopsis: [hpsusb] DVD drive detects as 'da' device : > : > >Confidential: no : > : > >Severity: serious : > : > >Priority: medium : > : > >Responsible: freebsd-usb : > : > >State: open : > : > >Quarter: : > : > >Keywords: : > : > >Date-Required: : > : > >Class: sw-bug : > : > >Submitter-Id: current-users : > : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 : > : > >Closed-Date: : > : > >Last-Modified: : > : > >Originator: M. Warner Losh : > : > >Release: FreeBSD 8.0-CURRENT amd64 : > : > >Organization: : > : > : > : > FreeBSD : > : > : > : > >Environment: : > : > : > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 : > : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 : > : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 : > : > : > : > >Description: : > : > : > : > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' : > : > when using usb2_storage_mass. When I load usb2_storage_ata it shows : > : > up as a 'cd' device that's usable. mass should behave as well as ata : > : > in this case, or it should detect that it can't get it right and : > : > refuse to attach things. : > : > : > : > >How-To-Repeat: : > : > : > : > I loaded all the usb2 drivers at runtime: : > : > : > : > kldload usb2_controller_{e,o}hci : > : > kldload usb2_sotrage_mass : > : > : > : > I then plugged in the drive. This is an external DVD drive. : > : > : > : > ehci0: mem 0xc0002000-0xc0002fff irq 19 : > : > at device 19.2 on pci0 ehci0: memory enable already set. : > : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 : > : > ehci0: [ITHREAD] : > : > usbus0: EHCI version 1.0 : > : > usbus0: on ehci0 : > : > usbus0: 480Mbps High Speed USB v2.0 : > : > ugen0.1: at usbus0 : > : > ushub0: on usbus0 : > : > ushub0: 8 ports with 8 removable, self powered : > : > ohci0: mem 0xc0000000-0xc0000fff irq 19 at : > : > device 19.0 on pci0 ohci0: memory enable already set. : > : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 : > : > ohci0: [ITHREAD] : > : > usbus1: on ohci0 : > : > usbus1: 12Mbps Full Speed USB v1.0 : > : > ugen1.1: at usbus1 : > : > ushub1: on usbus1 : > : > ushub1: 4 ports with 4 removable, self powered : > : > ohci1: mem 0xc0001000-0xc0001fff irq 19 at : > : > device 19.1 on pci0 ohci1: memory enable already set. : > : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 : > : > ohci1: [ITHREAD] : > : > usbus2: on ohci1 : > : > usbus2: 12Mbps Full Speed USB v1.0 : > : > ugen2.1: at usbus2 : > : > ushub2: on usbus2 : > : > ushub2: 4 ports with 4 removable, self powered : > : > ugen0.2: at usbus0 : > : > umass0: on usbus0 : > : > umass0: SCSI over Bulk-Only; quirks = 0x0480 : > : > umass0:2:0:-1: Attached to scbus2 : > : > da0 at umass-sim0 bus 0 target 0 lun 0 : > : > da0: < > Removable Direct Access SCSI-2 device : > : > da0: 40.000MB/s transfers : > : > da0: Attempt to query device size failed: NOT READY, Medium not present : > : > : > : > It should be 'cd1'. : > : > : > : > >Fix: : > : > : > : > Unknown. : > : > : > : > >Release-Note: : > : > >Audit-Trail: : > : > >Unformatted: : > : : > : Hi, : > : : > : Maybe the AutoInstall CD detecter is interfering with your device. : > : > Hmmm... : > : > : Can you use "usbconfig" to dump the device and config descriptors of your : > : CD device? : > : > How? : : Run "usbconfig -h". That doesn't tell me enough to know what you need to diagnose this problem. : usbconfig -u xxx -a yyy dump_curr_config_desc : usbconfig -u xxx -a yyy dump_device_desc How do I now the address? Is it the .Y in ugenX.Y? If so, here's what you requested: ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0004 bmAttributes = 0x00c0 bMaxPower = 0x0005 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0005 bInterfaceProtocol = 0x0050 iInterface = 0x0005 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0003 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x04cf idProduct = 0x8818 bcdDevice = 0xb007 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <100> bNumConfigurations = 0x0001 : > : > : You can also try: : > : : > : kldload usb2_quirk : > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 : > : > What the heck are these different fields? vid, pid, etc? : : Vendor ID, product ID, lower inclusive revision number, higher inclusive : revision numer that is used when matching the quirk. I'll give it a try... Warner From imp at bsdimp.com Sat Jan 3 19:40:03 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Jan 3 19:40:10 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device Message-ID: <200901031940.n03Je2EN045248@freefall.freebsd.org> The following reply was made to PR usb/130122; it has been noted by GNATS. From: "M. Warner Losh" To: hselasky@c2i.net Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Sat, 03 Jan 2009 12:29:38 -0700 (MST) In message: <200901030028.38064.hselasky@c2i.net> Hans Petter Selasky writes: : On Friday 02 January 2009, M. Warner Losh wrote: : > In message: <200901022123.57193.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Friday 02 January 2009, M. Warner Losh wrote: : > : > >Number: 130122 : > : > >Category: usb : > : > >Synopsis: [hpsusb] DVD drive detects as 'da' device : > : > >Confidential: no : > : > >Severity: serious : > : > >Priority: medium : > : > >Responsible: freebsd-usb : > : > >State: open : > : > >Quarter: : > : > >Keywords: : > : > >Date-Required: : > : > >Class: sw-bug : > : > >Submitter-Id: current-users : > : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 : > : > >Closed-Date: : > : > >Last-Modified: : > : > >Originator: M. Warner Losh : > : > >Release: FreeBSD 8.0-CURRENT amd64 : > : > >Organization: : > : > : > : > FreeBSD : > : > : > : > >Environment: : > : > : > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 : > : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 : > : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 : > : > : > : > >Description: : > : > : > : > My externeal usb DVD drive is showing up as 'da' rather than as 'cd' : > : > when using usb2_storage_mass. When I load usb2_storage_ata it shows : > : > up as a 'cd' device that's usable. mass should behave as well as ata : > : > in this case, or it should detect that it can't get it right and : > : > refuse to attach things. : > : > : > : > >How-To-Repeat: : > : > : > : > I loaded all the usb2 drivers at runtime: : > : > : > : > kldload usb2_controller_{e,o}hci : > : > kldload usb2_sotrage_mass : > : > : > : > I then plugged in the drive. This is an external DVD drive. : > : > : > : > ehci0: mem 0xc0002000-0xc0002fff irq 19 : > : > at device 19.2 on pci0 ehci0: memory enable already set. : > : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 : > : > ehci0: [ITHREAD] : > : > usbus0: EHCI version 1.0 : > : > usbus0: on ehci0 : > : > usbus0: 480Mbps High Speed USB v2.0 : > : > ugen0.1: at usbus0 : > : > ushub0: on usbus0 : > : > ushub0: 8 ports with 8 removable, self powered : > : > ohci0: mem 0xc0000000-0xc0000fff irq 19 at : > : > device 19.0 on pci0 ohci0: memory enable already set. : > : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 : > : > ohci0: [ITHREAD] : > : > usbus1: on ohci0 : > : > usbus1: 12Mbps Full Speed USB v1.0 : > : > ugen1.1: at usbus1 : > : > ushub1: on usbus1 : > : > ushub1: 4 ports with 4 removable, self powered : > : > ohci1: mem 0xc0001000-0xc0001fff irq 19 at : > : > device 19.1 on pci0 ohci1: memory enable already set. : > : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 : > : > ohci1: [ITHREAD] : > : > usbus2: on ohci1 : > : > usbus2: 12Mbps Full Speed USB v1.0 : > : > ugen2.1: at usbus2 : > : > ushub2: on usbus2 : > : > ushub2: 4 ports with 4 removable, self powered : > : > ugen0.2: at usbus0 : > : > umass0: on usbus0 : > : > umass0: SCSI over Bulk-Only; quirks = 0x0480 : > : > umass0:2:0:-1: Attached to scbus2 : > : > da0 at umass-sim0 bus 0 target 0 lun 0 : > : > da0: < > Removable Direct Access SCSI-2 device : > : > da0: 40.000MB/s transfers : > : > da0: Attempt to query device size failed: NOT READY, Medium not present : > : > : > : > It should be 'cd1'. : > : > : > : > >Fix: : > : > : > : > Unknown. : > : > : > : > >Release-Note: : > : > >Audit-Trail: : > : > >Unformatted: : > : : > : Hi, : > : : > : Maybe the AutoInstall CD detecter is interfering with your device. : > : > Hmmm... : > : > : Can you use "usbconfig" to dump the device and config descriptors of your : > : CD device? : > : > How? : : Run "usbconfig -h". That doesn't tell me enough to know what you need to diagnose this problem. : usbconfig -u xxx -a yyy dump_curr_config_desc : usbconfig -u xxx -a yyy dump_device_desc How do I now the address? Is it the .Y in ugenX.Y? If so, here's what you requested: ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0004 bmAttributes = 0x00c0 bMaxPower = 0x0005 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0005 bInterfaceProtocol = 0x0050 iInterface = 0x0005 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0003 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x04cf idProduct = 0x8818 bcdDevice = 0xb007 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <100> bNumConfigurations = 0x0001 : > : > : You can also try: : > : : > : kldload usb2_quirk : > : usbconfig add_dev_quirk_vplh UQ_CFG_INDEX_0 : > : > What the heck are these different fields? vid, pid, etc? : : Vendor ID, product ID, lower inclusive revision number, higher inclusive : revision numer that is used when matching the quirk. I'll give it a try... Warner From yanefbsd at gmail.com Sat Jan 3 20:42:45 2009 From: yanefbsd at gmail.com (Garrett Cooper) Date: Sat Jan 3 20:42:52 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <495FAFDD.2050206@vwsoft.com> References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> <495FAFDD.2050206@vwsoft.com> Message-ID: <7d6fde3d0901031212o6059edccwfd72535de5b0c3f1@mail.gmail.com> On Sat, Jan 3, 2009 at 10:35 AM, Volker wrote: > On 01/03/09 01:35, Hans Petter Selasky wrote: >> On Wednesday 31 December 2008, vwe@freebsd.org wrote: >>> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as a >>> normal user >>> >>> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >>> Responsible-Changed-By: vwe >>> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >>> Responsible-Changed-Why: >>> reassign >>> >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 >> >> Hi, >> >> "usbconfig" will only show USB devices which the user has access to. >> >> What should be the correct display message when no devices are accessible due >> to innsufficient permissions? >> >> --HPS >> > > Hans, > > what about "access denied" or "insufficient privileges"? > > Someone might have a better idea but everything should be better than > silently refusing to do anything. > > Volker Why not just simplify the problem by printing out the strerror(3) message for the actual issue -- or was that the misleading error message? Cheers, -Garrett From hselasky at c2i.net Sat Jan 3 22:06:35 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 22:06:42 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device In-Reply-To: <20090103.122938.-532678760.imp@bsdimp.com> References: <200901022123.57193.hselasky@c2i.net> <200901030028.38064.hselasky@c2i.net> <20090103.122938.-532678760.imp@bsdimp.com> Message-ID: <200901032308.51604.hselasky@c2i.net> On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030028.38064.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Friday 02 January 2009, M. Warner Losh wrote: > : > In message: <200901022123.57193.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Friday 02 January 2009, M. Warner Losh wrote: > : > : > >Number: 130122 > : > : > >Category: usb > : > : > >Synopsis: [hpsusb] DVD drive detects as 'da' device > : > : > >Confidential: no > : > : > >Severity: serious > : > : > >Priority: medium > : > : > >Responsible: freebsd-usb > : > : > >State: open > : > : > >Quarter: > : > : > >Keywords: > : > : > >Date-Required: > : > : > >Class: sw-bug > : > : > >Submitter-Id: current-users > : > : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 > : > : > >Closed-Date: > : > : > >Last-Modified: > : > : > >Originator: M. Warner Losh > : > : > >Release: FreeBSD 8.0-CURRENT amd64 > : > : > >Organization: > : > : > > : > : > FreeBSD > : > : > > : > : > >Environment: > : > : > > : > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 > : > : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 > : > : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 > : > : > > : > : > >Description: > : > : > > : > : > My externeal usb DVD drive is showing up as 'da' rather than as > : > : > 'cd' when using usb2_storage_mass. When I load usb2_storage_ata it > : > : > shows up as a 'cd' device that's usable. mass should behave as > : > : > well as ata in this case, or it should detect that it can't get it > : > : > right and refuse to attach things. > : > : > > : > : > >How-To-Repeat: > : > : > > : > : > I loaded all the usb2 drivers at runtime: > : > : > > : > : > kldload usb2_controller_{e,o}hci > : > : > kldload usb2_sotrage_mass > : > : > > : > : > I then plugged in the drive. This is an external DVD drive. > : > : > > : > : > ehci0: mem 0xc0002000-0xc0002fff irq > : > : > 19 at device 19.2 on pci0 ehci0: memory enable already set. > : > : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 > : > : > ehci0: [ITHREAD] > : > : > usbus0: EHCI version 1.0 > : > : > usbus0: on ehci0 > : > : > usbus0: 480Mbps High Speed USB v2.0 > : > : > ugen0.1: at usbus0 > : > : > ushub0: on > : > : > usbus0 ushub0: 8 ports with 8 removable, self powered > : > : > ohci0: mem 0xc0000000-0xc0000fff irq 19 > : > : > at device 19.0 on pci0 ohci0: memory enable already set. > : > : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 > : > : > ohci0: [ITHREAD] > : > : > usbus1: on ohci0 > : > : > usbus1: 12Mbps Full Speed USB v1.0 > : > : > ugen1.1: at usbus1 > : > : > ushub1: on > : > : > usbus1 ushub1: 4 ports with 4 removable, self powered > : > : > ohci1: mem 0xc0001000-0xc0001fff irq 19 > : > : > at device 19.1 on pci0 ohci1: memory enable already set. > : > : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 > : > : > ohci1: [ITHREAD] > : > : > usbus2: on ohci1 > : > : > usbus2: 12Mbps Full Speed USB v1.0 > : > : > ugen2.1: at usbus2 > : > : > ushub2: on > : > : > usbus2 ushub2: 4 ports with 4 removable, self powered > : > : > ugen0.2: at usbus0 > : > : > umass0: on usbus0 > : > : > umass0: SCSI over Bulk-Only; quirks = 0x0480 > : > : > umass0:2:0:-1: Attached to scbus2 > : > : > da0 at umass-sim0 bus 0 target 0 lun 0 > : > : > da0: < > Removable Direct Access SCSI-2 device > : > : > da0: 40.000MB/s transfers > : > : > da0: Attempt to query device size failed: NOT READY, Medium not > : > : > present > : > : > > : > : > It should be 'cd1'. > : > : > > : > : > >Fix: > : > : > > : > : > Unknown. > : > : > > : > : > >Release-Note: > : > : > >Audit-Trail: > : > : > >Unformatted: > : > : > : > : Hi, > : > : > : > : Maybe the AutoInstall CD detecter is interfering with your device. > : > > : > Hmmm... > : > > : > : Can you use "usbconfig" to dump the device and config descriptors of > : > : your CD device? > : > > : > How? > : > : Run "usbconfig -h". > > That doesn't tell me enough to know what you need to diagnose this > problem. > > : usbconfig -u xxx -a yyy dump_curr_config_desc > : usbconfig -u xxx -a yyy dump_device_desc > > How do I now the address? Is it the .Y in ugenX.Y? Yes. > > If so, here's what you requested: > Hi, I see that your CD-rom device is quirked to the wrong subclass (SCSI) in usb2/storage/umass2.c: #define UISUBCLASS_SFF8070I 5 #define UISUBCLASS_SCSI 6 bInterfaceSubClass = 0x0005 #define UIPROTO_MASS_BBB_OLD 2 /* Not in the spec anymore */ #define UIPROTO_MASS_BBB 80 /* 'P' for the Iomega Zip drive */ bInterfaceProtocol = 0x0050 Solution: Try removing or limiting the following quirk: {USB_VENDOR_MYSON, USB_PRODUCT_MYSON_HEDEN, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY | IGNORE_RESIDUE }, --HPS From hselasky at c2i.net Sat Jan 3 23:10:06 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 3 23:10:13 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device Message-ID: <200901032310.n03NA5Z4001634@freefall.freebsd.org> The following reply was made to PR usb/130122; it has been noted by GNATS. From: Hans Petter Selasky To: "M. Warner Losh" Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Sat, 3 Jan 2009 23:08:50 +0100 On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030028.38064.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Friday 02 January 2009, M. Warner Losh wrote: > : > In message: <200901022123.57193.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Friday 02 January 2009, M. Warner Losh wrote: > : > : > >Number: 130122 > : > : > >Category: usb > : > : > >Synopsis: [hpsusb] DVD drive detects as 'da' device > : > : > >Confidential: no > : > : > >Severity: serious > : > : > >Priority: medium > : > : > >Responsible: freebsd-usb > : > : > >State: open > : > : > >Quarter: > : > : > >Keywords: > : > : > >Date-Required: > : > : > >Class: sw-bug > : > : > >Submitter-Id: current-users > : > : > >Arrival-Date: Fri Jan 02 19:30:04 UTC 2009 > : > : > >Closed-Date: > : > : > >Last-Modified: > : > : > >Originator: M. Warner Losh > : > : > >Release: FreeBSD 8.0-CURRENT amd64 > : > : > >Organization: > : > : > > : > : > FreeBSD > : > : > > : > : > >Environment: > : > : > > : > : > System: FreeBSD lighthouse 8.0-CURRENT FreeBSD 8.0-CURRENT #0 > : > : > r185338:186501M: Fri Dec 26 17:56:39 MST 2008 > : > : > imp@lighthouse:/tmp/imp/obj/cache/svn/head/sys/LIGHTHOUSE amd64 > : > : > > : > : > >Description: > : > : > > : > : > My externeal usb DVD drive is showing up as 'da' rather than as > : > : > 'cd' when using usb2_storage_mass. When I load usb2_storage_ata it > : > : > shows up as a 'cd' device that's usable. mass should behave as > : > : > well as ata in this case, or it should detect that it can't get it > : > : > right and refuse to attach things. > : > : > > : > : > >How-To-Repeat: > : > : > > : > : > I loaded all the usb2 drivers at runtime: > : > : > > : > : > kldload usb2_controller_{e,o}hci > : > : > kldload usb2_sotrage_mass > : > : > > : > : > I then plugged in the drive. This is an external DVD drive. > : > : > > : > : > ehci0: mem 0xc0002000-0xc0002fff irq > : > : > 19 at device 19.2 on pci0 ehci0: memory enable already set. > : > : > Activate PA 0xc0002000 at VA 0xffffff00c0002000 > : > : > ehci0: [ITHREAD] > : > : > usbus0: EHCI version 1.0 > : > : > usbus0: on ehci0 > : > : > usbus0: 480Mbps High Speed USB v2.0 > : > : > ugen0.1: at usbus0 > : > : > ushub0: on > : > : > usbus0 ushub0: 8 ports with 8 removable, self powered > : > : > ohci0: mem 0xc0000000-0xc0000fff irq 19 > : > : > at device 19.0 on pci0 ohci0: memory enable already set. > : > : > Activate PA 0xc0000000 at VA 0xffffff00c0000000 > : > : > ohci0: [ITHREAD] > : > : > usbus1: on ohci0 > : > : > usbus1: 12Mbps Full Speed USB v1.0 > : > : > ugen1.1: at usbus1 > : > : > ushub1: on > : > : > usbus1 ushub1: 4 ports with 4 removable, self powered > : > : > ohci1: mem 0xc0001000-0xc0001fff irq 19 > : > : > at device 19.1 on pci0 ohci1: memory enable already set. > : > : > Activate PA 0xc0001000 at VA 0xffffff00c0001000 > : > : > ohci1: [ITHREAD] > : > : > usbus2: on ohci1 > : > : > usbus2: 12Mbps Full Speed USB v1.0 > : > : > ugen2.1: at usbus2 > : > : > ushub2: on > : > : > usbus2 ushub2: 4 ports with 4 removable, self powered > : > : > ugen0.2: at usbus0 > : > : > umass0: on usbus0 > : > : > umass0: SCSI over Bulk-Only; quirks = 0x0480 > : > : > umass0:2:0:-1: Attached to scbus2 > : > : > da0 at umass-sim0 bus 0 target 0 lun 0 > : > : > da0: < > Removable Direct Access SCSI-2 device > : > : > da0: 40.000MB/s transfers > : > : > da0: Attempt to query device size failed: NOT READY, Medium not > : > : > present > : > : > > : > : > It should be 'cd1'. > : > : > > : > : > >Fix: > : > : > > : > : > Unknown. > : > : > > : > : > >Release-Note: > : > : > >Audit-Trail: > : > : > >Unformatted: > : > : > : > : Hi, > : > : > : > : Maybe the AutoInstall CD detecter is interfering with your device. > : > > : > Hmmm... > : > > : > : Can you use "usbconfig" to dump the device and config descriptors of > : > : your CD device? > : > > : > How? > : > : Run "usbconfig -h". > > That doesn't tell me enough to know what you need to diagnose this > problem. > > : usbconfig -u xxx -a yyy dump_curr_config_desc > : usbconfig -u xxx -a yyy dump_device_desc > > How do I now the address? Is it the .Y in ugenX.Y? Yes. > > If so, here's what you requested: > Hi, I see that your CD-rom device is quirked to the wrong subclass (SCSI) in usb2/storage/umass2.c: #define UISUBCLASS_SFF8070I 5 #define UISUBCLASS_SCSI 6 bInterfaceSubClass = 0x0005 #define UIPROTO_MASS_BBB_OLD 2 /* Not in the spec anymore */ #define UIPROTO_MASS_BBB 80 /* 'P' for the Iomega Zip drive */ bInterfaceProtocol = 0x0050 Solution: Try removing or limiting the following quirk: {USB_VENDOR_MYSON, USB_PRODUCT_MYSON_HEDEN, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY | IGNORE_RESIDUE }, --HPS From bugmaster at FreeBSD.org Mon Jan 5 11:07:01 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jan 5 11:09:34 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200901051107.n05B70Gp002959@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/130122 usb [newusb] DVD drive detects as 'da' device o usb/130066 usb [newusb] Serial adaptor use fail with 'unsupported spe o usb/130024 usb [newusb] Sun Type 7 Unix keyboard doesn't work with us o usb/129964 usb [newusb] disconnection of ugen devices isn't logged o bin/129963 usb [newusb] usbconfig(8) fails with misleading error when o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/125072 usb [uplcom] [patch] add Mobile Action MA-620 Infrared Ada o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom][ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s o usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 295 problems total. From antik at bsd.ee Mon Jan 5 15:04:59 2009 From: antik at bsd.ee (Andrei Kolu) Date: Mon Jan 5 15:05:06 2009 Subject: old problem with APC Back-Ups ES 550 Message-ID: <49621C6D.1080103@bsd.ee> Hello, I have problem using APC Back-UPS ES 550 with FreeBSD 7.1-STABLE (same problem with 7.0 and up)- after boot kernel detects UPS and shows it like that: ------------------------------------------------------------------------------------------------------------------------ ugen0: on uhub6 ------------------------------------------------------------------------------------------------------------------------ But apcupsd does not detect it, instead it wrote into logs: ------------------------------------------------------------------------------------------------------------------------ Mon Jan 05 16:27:09 EET 2009 apcupsd FATAL ERROR in newups.c at line 103 Mutex lock failure. ERR=Resource deadlock avoided ------------------------------------------------------------------------------------------------------------------------ And I am able to use it after removal of USB cable from computer and inserting it back into same usb connector: ------------------------------------------------------------------------------------------------------------------------ Jan 5 16:28:16 testiserver kernel: ugen0: at uhub6 port 1 (addr 2) disconnected Jan 5 16:28:17 testiserver kernel: ugen0: detached Jan 5 16:28:24 testiserver root: Unknown USB device: vendor 0x051d product 0x0002 bus uhub6 Jan 5 16:28:24 testiserver kernel: ugen0: on uhub6 Jan 5 16:28:25 testiserver apcupsd[1604]: Communications with UPS restored. ------------------------------------------------------------------------------------------------------------------------ From steve at hassard.net Mon Jan 5 16:50:04 2009 From: steve at hassard.net (Stephen Hassard) Date: Mon Jan 5 16:50:13 2009 Subject: usb/107827: [ohci] [panic] ohci_add_done addr not found Message-ID: <200901051650.n05Go3p3062476@freefall.freebsd.org> The following reply was made to PR usb/107827; it has been noted by GNATS. From: "Stephen Hassard" To: bug-followup@freebsd.org Cc: Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found Date: Mon, 5 Jan 2009 08:14:17 -0800 ------=_Part_82143_28755622.1231172057944 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm experiencing the same problem on a Gigabyte GA-MA78GPM-DS2H motherboard using FreeBSD 7.1 x64. The chipset is a modern AMD 780G + SB700. http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2859 This failure happens on boot with the installation CD. Booting the CD with ACPI disabled, safe mode, verbose logging result in the same error. ------=_Part_82143_28755622.1231172057944 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm experiencing the same problem on a Gigabyte GA-MA78GPM-DS2H motherboard using FreeBSD 7.1 x64.

The chipset is a modern AMD 780G + SB700.


This failure happens on boot with the installation CD.

Booting the CD with ACPI disabled, safe mode, verbose logging result in the same error.
------=_Part_82143_28755622.1231172057944-- From dorian.buettner at gmx.de Mon Jan 5 18:00:10 2009 From: dorian.buettner at gmx.de (=?ISO-8859-15?Q?Dorian_B=FCttner?=) Date: Mon Jan 5 18:00:16 2009 Subject: usb/107827: [ohci] [panic] ohci_add_done addr not found Message-ID: <200901051800.n05I097i016408@freefall.freebsd.org> The following reply was made to PR usb/107827; it has been noted by GNATS. From: =?ISO-8859-15?Q?Dorian_B=FCttner?= To: bug-followup@FreeBSD.org, fstoffel@gmx.de Cc: Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found Date: Mon, 05 Jan 2009 17:24:59 +0000 Same thing here on an amd64 with sb600 chipset, despite the addr value in the error message might differ. First thaught was that it would relate especially to my keyboard, but the kernel crashes with nearly everything I attach to the usb ports. Leaving the ports empty during boot however will let the kernel pass through, and I can safely attach everything I want once the machine is up. Another point that drives me nuts since I totally have no idea how it fits into the scene: I have a case with front side usb connectors. These can connect to internal usb connectors via 4 pin loose wires that are marked as ground, vcc2, usb2- and usb2+. Using that connector, the kernel does not panic. Anyone an idea what could the issue? From russ at quist.ca Mon Jan 5 22:00:12 2009 From: russ at quist.ca (Russell Sutherland) Date: Mon Jan 5 22:00:19 2009 Subject: usb/130208: Boot process severely hampered by umass0 error Message-ID: <200901052155.n05Lt67A059353@www.freebsd.org> >Number: 130208 >Category: usb >Synopsis: Boot process severely hampered by umass0 error >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 05 22:00:11 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Russell Sutherland >Release: 7.1-RELEASE >Organization: Quist Consulting >Environment: FreeBSD backup.cns.utoronto.ca 7.1-RELEASE FreeBSD 7.1-RELEASE #2: Mon Jan 5 11:43:48 EST 2009 root@backup.cns.utoronto.ca:/backup/opt/obj/backup/opt/src/sys/GENERIC i386 >Description: The boot process waits for several minutes due to a umass error: umass0: on uhub0 umass0: Get Max Lun not supported (IOERROR) Waiting 5 seconds for SCSI devices to settle run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 240 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR sa0 at ahc0 bus 0 target 6 lun 0 sa0: Removable Sequential Access SCSI-3 device sa0: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit) SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad0s1a This problem did not seem to exist with FreeBSD 7.0 >How-To-Repeat: Reboot >Fix: No idea. >Release-Note: >Audit-Trail: >Unformatted: From imp at bsdimp.com Tue Jan 6 00:44:24 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 00:44:31 2009 Subject: xsane busted with usb2 Message-ID: <20090105.174137.1560853961.imp@bsdimp.com> With sys/dev/usb, I'm able to kldload uscanner and xsane just works. With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 in the ls listing, but one can open that file directly. trussing sane-find-scanners yields: ... open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 (0x5ec) getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7fffffffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) close(4) = 0 (0x0) open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) ... Is there a fix for this? Warner From hselasky at c2i.net Tue Jan 6 08:38:01 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 08:38:07 2009 Subject: xsane busted with usb2 In-Reply-To: <20090105.174137.1560853961.imp@bsdimp.com> References: <20090105.174137.1560853961.imp@bsdimp.com> Message-ID: <200901060940.21830.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > in the ls listing, but one can open that file directly. trussing > sane-find-scanners yields: > > ... > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 > (0x5ec) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > close(4) = 0 (0x0) > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > ... > > Is there a fix for this? Hi, I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with libusb20. Then everything should work. --HPS From hselasky at c2i.net Tue Jan 6 09:38:02 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 09:38:08 2009 Subject: xsane busted with usb2 In-Reply-To: <20090105.174137.1560853961.imp@bsdimp.com> References: <20090105.174137.1560853961.imp@bsdimp.com> Message-ID: <200901060940.21830.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > in the ls listing, but one can open that file directly. trussing > sane-find-scanners yields: > > ... > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 > (0x5ec) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > close(4) = 0 (0x0) > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > ... > > Is there a fix for this? Hi, I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with libusb20. Then everything should work. --HPS From spawk at acm.poly.edu Tue Jan 6 14:10:01 2009 From: spawk at acm.poly.edu (Boris Kochergin) Date: Tue Jan 6 14:10:07 2009 Subject: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Message-ID: <200901061404.n06E4KbM036211@www.freebsd.org> >Number: 130230 >Category: usb >Synopsis: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE >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: Tue Jan 06 14:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Boris Kochergin >Release: 7.1-RELEASE >Organization: Polytechnic Institute of NYU >Environment: FreeBSD peer 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Sat Jan 3 20:49:25 EST 2009 root@peer:/usr/obj/usr/src/sys/PEER i386 >Description: In FreeBSD 7.0, I used the patch submitted with kern/125398 to get the device to work. I notice that the quirk has been added to scsi_da.c in 7.1, but the device no longer attaches: umass0: on uhub4 (da0:umass-sim0:0:0:0): got CAM status 0x4 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry A random USB flash drive I tried to make sure it wasn't a more general problem worked (I was able to mount it and everything): umass0: on uhub4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 963MB (1974271 512 byte sectors: 64H 32S/T 963C) >How-To-Repeat: Plug a Samsung Electronics YP-U3 into a 7.1-RELEASE machine >Fix: >Release-Note: >Audit-Trail: >Unformatted: From imp at bsdimp.com Tue Jan 6 15:24:33 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 15:24:44 2009 Subject: xsane busted with usb2 In-Reply-To: <200901060940.21830.hselasky@c2i.net> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> Message-ID: <20090106.082105.-1404127776.imp@bsdimp.com> In message: <200901060940.21830.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > in the ls listing, but one can open that file directly. trussing : > sane-find-scanners yields: : > : > ... : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 : > (0x5ec) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff : >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > close(4) = 0 (0x0) : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > ... : > : > Is there a fix for this? : : Hi, : : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : libusb20. Then everything should work. So I have to rebuild all the programs that use sane? Grump. Warner From imp at bsdimp.com Tue Jan 6 15:24:33 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 15:24:45 2009 Subject: xsane busted with usb2 In-Reply-To: <200901060940.21830.hselasky@c2i.net> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> Message-ID: <20090106.082105.-1404127776.imp@bsdimp.com> In message: <200901060940.21830.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > in the ls listing, but one can open that file directly. trussing : > sane-find-scanners yields: : > : > ... : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 : > (0x5ec) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff : >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > close(4) = 0 (0x0) : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > ... : > : > Is there a fix for this? : : Hi, : : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : libusb20. Then everything should work. So I have to rebuild all the programs that use sane? Grump. Warner From hselasky at c2i.net Tue Jan 6 15:26:33 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:26:45 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> Message-ID: <200901061628.53623.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > > So I have to rebuild all the programs that use sane? Grump. > > Warner No. Just re-link the sane library. --HPS From hselasky at c2i.net Tue Jan 6 15:26:33 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:26:45 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> Message-ID: <200901061628.53623.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > > So I have to rebuild all the programs that use sane? Grump. > > Warner No. Just re-link the sane library. --HPS From hselasky at c2i.net Tue Jan 6 15:27:41 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:27:53 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> Message-ID: <200901061630.02022.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 --HPS From hselasky at c2i.net Tue Jan 6 15:27:41 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:27:53 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> Message-ID: <200901061630.02022.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 --HPS From imp at bsdimp.com Tue Jan 6 15:35:58 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 15:36:09 2009 Subject: xsane busted with usb2 In-Reply-To: <200901061630.02022.hselasky@c2i.net> References: <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> Message-ID: <20090106.083501.-861032140.imp@bsdimp.com> In message: <200901061630.02022.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901060940.21830.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > : > in the ls listing, but one can open that file directly. trussing : > : > sane-find-scanners yields: : > : > : > : > ... : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : > : > 1516 (0x5ec) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : > close(4) = 0 (0x0) : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : > ... : > : > : > : > Is there a fix for this? : > : : > : Hi, : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : > : libusb20. Then everything should work. : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 I built all these things with ports, will just updating the ports fix them, or will I need to jump through some weird hoops? Warner From imp at bsdimp.com Tue Jan 6 15:35:58 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 15:36:09 2009 Subject: xsane busted with usb2 In-Reply-To: <200901061630.02022.hselasky@c2i.net> References: <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> Message-ID: <20090106.083501.-861032140.imp@bsdimp.com> In message: <200901061630.02022.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901060940.21830.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > : > in the ls listing, but one can open that file directly. trussing : > : > sane-find-scanners yields: : > : > : > : > ... : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : > : > 1516 (0x5ec) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : > close(4) = 0 (0x0) : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : > ... : > : > : > : > Is there a fix for this? : > : : > : Hi, : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : > : libusb20. Then everything should work. : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 I built all these things with ports, will just updating the ports fix them, or will I need to jump through some weird hoops? Warner From hselasky at c2i.net Tue Jan 6 15:42:27 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:42:38 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> References: <200901060940.21830.hselasky@c2i.net> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> Message-ID: <200901061644.46613.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061630.02022.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: <200901060940.21830.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : > : > /dev/uscanner0 in the ls listing, but one can open that file > : > : > directly. trussing sane-find-scanners yields: > : > : > > : > : > ... > : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) > : > : > = 1516 (0x5ec) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180 > : > : >,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > : > close(4) = 0 (0x0) > : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > : > ... > : > : > > : > : > Is there a fix for this? > : > : > : > : Hi, > : > : > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : > : with libusb20. Then everything should work. > : > : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > > I built all these things with ports, will just updating the ports fix > them, or will I need to jump through some weird hoops? > > Warner Hi! You can do something like this (takes 2-seconds): lrwxr-xr-x 1 root wheel 22 Oct 23 18:13 /usr/local/lib/libusb-0.1.so.8 -> /usr/lib/libusb20.so.1 lrwxr-xr-x 1 root wheel 19 Oct 23 18:14 /usr/local/lib/libusb.a -> /usr/lib/libusb20.a Others have suggested doing this using libmap.conf. --HPS From hselasky at c2i.net Tue Jan 6 15:42:27 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:42:38 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> References: <200901060940.21830.hselasky@c2i.net> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> Message-ID: <200901061644.46613.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061630.02022.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: <200901060940.21830.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : > : > /dev/uscanner0 in the ls listing, but one can open that file > : > : > directly. trussing sane-find-scanners yields: > : > : > > : > : > ... > : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) > : > : > = 1516 (0x5ec) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180 > : > : >,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > : > close(4) = 0 (0x0) > : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > : > ... > : > : > > : > : > Is there a fix for this? > : > : > : > : Hi, > : > : > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : > : with libusb20. Then everything should work. > : > : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > > I built all these things with ports, will just updating the ports fix > them, or will I need to jump through some weird hoops? > > Warner Hi! You can do something like this (takes 2-seconds): lrwxr-xr-x 1 root wheel 22 Oct 23 18:13 /usr/local/lib/libusb-0.1.so.8 -> /usr/lib/libusb20.so.1 lrwxr-xr-x 1 root wheel 19 Oct 23 18:14 /usr/local/lib/libusb.a -> /usr/lib/libusb20.a Others have suggested doing this using libmap.conf. --HPS From imp at bsdimp.com Tue Jan 6 15:47:19 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 15:47:31 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> References: <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> Message-ID: <20090106.084445.-432836711.imp@bsdimp.com> In message: <20090106.083501.-861032140.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <200901061630.02022.hselasky@c2i.net> : Hans Petter Selasky writes: : : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > In message: <200901060940.21830.hselasky@c2i.net> : : > : : > Hans Petter Selasky writes: : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : : > : > in the ls listing, but one can open that file directly. trussing : : > : > sane-find-scanners yields: : : > : > : : > : > ... : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : : > : > 1516 (0x5ec) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : : > : > close(4) = 0 (0x0) : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : : > : > ... : : > : > : : > : > Is there a fix for this? : : > : : : > : Hi, : : > : : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : : > : libusb20. Then everything should work. : : > : : : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : : I built all these things with ports, will just updating the ports fix : them, or will I need to jump through some weird hoops? And does it work with the old USB stack? I'm still finding odd things that don't work with usb2, and so far my fallback has been to just use the old stack for those things... Warner From imp at bsdimp.com Tue Jan 6 15:47:19 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 15:47:31 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> References: <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> Message-ID: <20090106.084445.-432836711.imp@bsdimp.com> In message: <20090106.083501.-861032140.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <200901061630.02022.hselasky@c2i.net> : Hans Petter Selasky writes: : : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > In message: <200901060940.21830.hselasky@c2i.net> : : > : : > Hans Petter Selasky writes: : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : : > : > in the ls listing, but one can open that file directly. trussing : : > : > sane-find-scanners yields: : : > : > : : > : > ... : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : : > : > 1516 (0x5ec) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : : > : > close(4) = 0 (0x0) : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : : > : > ... : : > : > : : > : > Is there a fix for this? : : > : : : > : Hi, : : > : : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : : > : libusb20. Then everything should work. : : > : : : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : : I built all these things with ports, will just updating the ports fix : them, or will I need to jump through some weird hoops? And does it work with the old USB stack? I'm still finding odd things that don't work with usb2, and so far my fallback has been to just use the old stack for those things... Warner From hselasky at c2i.net Tue Jan 6 15:50:51 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:51:03 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.084445.-432836711.imp@bsdimp.com> References: <20090106.082105.-1404127776.imp@bsdimp.com> <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> Message-ID: <200901061653.11745.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <20090106.083501.-861032140.imp@bsdimp.com> > > "M. Warner Losh" writes: > : In message: <200901061630.02022.hselasky@c2i.net> > : > : Hans Petter Selasky writes: > : : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > In message: <200901060940.21830.hselasky@c2i.net> > : : > > : : > Hans Petter Selasky writes: > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : : > : > /dev/uscanner0 in the ls listing, but one can open that file > : : > : > directly. trussing sane-find-scanners yields: > : : > : > > : : > : > ... > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 > : : > : >) = 1516 (0x5ec) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : : > : > close(4) = 0 (0x0) > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : : > : > ... > : : > : > > : : > : > Is there a fix for this? > : : > : > : : > : Hi, > : : > : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : : > : with libusb20. Then everything should work. > : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > : > : I built all these things with ports, will just updating the ports fix > : them, or will I need to jump through some weird hoops? > Hi, > And does it work with the old USB stack? No, then you have to restore the libusb-0.1 library. > I'm still finding odd things > that don't work with usb2, and so far my fallback has been to just use > the old stack for those things... Can you explain a little bit more what you mean. Are these things Host Controller drivers, middle ware or USB device drivers? Are you sure that you have tried every possible command in usbconfig and your device does still not work? --HPS From hselasky at c2i.net Tue Jan 6 15:50:51 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 15:51:03 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.084445.-432836711.imp@bsdimp.com> References: <20090106.082105.-1404127776.imp@bsdimp.com> <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> Message-ID: <200901061653.11745.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <20090106.083501.-861032140.imp@bsdimp.com> > > "M. Warner Losh" writes: > : In message: <200901061630.02022.hselasky@c2i.net> > : > : Hans Petter Selasky writes: > : : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > In message: <200901060940.21830.hselasky@c2i.net> > : : > > : : > Hans Petter Selasky writes: > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : : > : > /dev/uscanner0 in the ls listing, but one can open that file > : : > : > directly. trussing sane-find-scanners yields: > : : > : > > : : > : > ... > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 > : : > : >) = 1516 (0x5ec) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : : > : > close(4) = 0 (0x0) > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : : > : > ... > : : > : > > : : > : > Is there a fix for this? > : : > : > : : > : Hi, > : : > : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : : > : with libusb20. Then everything should work. > : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > : > : I built all these things with ports, will just updating the ports fix > : them, or will I need to jump through some weird hoops? > Hi, > And does it work with the old USB stack? No, then you have to restore the libusb-0.1 library. > I'm still finding odd things > that don't work with usb2, and so far my fallback has been to just use > the old stack for those things... Can you explain a little bit more what you mean. Are these things Host Controller drivers, middle ware or USB device drivers? Are you sure that you have tried every possible command in usbconfig and your device does still not work? --HPS From imp at bsdimp.com Tue Jan 6 16:02:43 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 16:02:55 2009 Subject: xsane busted with usb2 In-Reply-To: <200901061653.11745.hselasky@c2i.net> References: <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> Message-ID: <20090106.090129.-432836982.imp@bsdimp.com> In message: <200901061653.11745.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <20090106.083501.-861032140.imp@bsdimp.com> : > : > "M. Warner Losh" writes: : > : In message: <200901061630.02022.hselasky@c2i.net> : > : : > : Hans Petter Selasky writes: : > : : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > In message: <200901060940.21830.hselasky@c2i.net> : > : : > : > : : > Hans Petter Selasky writes: : > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just : > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no : > : : > : > /dev/uscanner0 in the ls listing, but one can open that file : > : : > : > directly. trussing sane-find-scanners yields: : > : : > : > : > : : > : > ... : > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 : > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 : > : : > : >) = 1516 (0x5ec) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 : > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : : > : > close(4) = 0 (0x0) : > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : : > : > ... : > : : > : > : > : : > : > Is there a fix for this? : > : : > : : > : : > : Hi, : > : : > : : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane : > : : > : with libusb20. Then everything should work. : > : : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : > : : > : I built all these things with ports, will just updating the ports fix : > : them, or will I need to jump through some weird hoops? : > : : Hi, : : > And does it work with the old USB stack? : : No, then you have to restore the libusb-0.1 library. Yes. We need a migration guide to usb2 that documents these sorts of things for people, or we're going to get hammered with lots of questions from people using ports that suddenly don't work... The fix may be easy, but people have to know about it. Ideally, the ports folks would be involved with a solution too... : > I'm still finding odd things : > that don't work with usb2, and so far my fallback has been to just use : > the old stack for those things... : : Can you explain a little bit more what you mean. Are these things Host : Controller drivers, middle ware or USB device drivers? Devices are what are failing. : Are you sure that you have tried every possible command in usbconfig and your : device does still not work? I haven't. But usually it is things like burning a DVD from a usb disk doesn't work to a USB DVD player (using storage_ata). Burning it from a firewire disk does seem to work. There's no I/O errors when this happens. The uscanner thing that maybe this will fix. I've had trouble unloading usb2 modules since sometimes they hang. It can be quite time consuming to file bug reports on all these things, since I don't want to file one that wastes your time for being too vague or unreproducible. I've only recently started using usb2 heavily for day-to-day tasks rather than just-test-it-out tasks I'd been doing before. Warner From imp at bsdimp.com Tue Jan 6 16:02:43 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 16:02:55 2009 Subject: xsane busted with usb2 In-Reply-To: <200901061653.11745.hselasky@c2i.net> References: <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> Message-ID: <20090106.090129.-432836982.imp@bsdimp.com> In message: <200901061653.11745.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <20090106.083501.-861032140.imp@bsdimp.com> : > : > "M. Warner Losh" writes: : > : In message: <200901061630.02022.hselasky@c2i.net> : > : : > : Hans Petter Selasky writes: : > : : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > In message: <200901060940.21830.hselasky@c2i.net> : > : : > : > : : > Hans Petter Selasky writes: : > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just : > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no : > : : > : > /dev/uscanner0 in the ls listing, but one can open that file : > : : > : > directly. trussing sane-find-scanners yields: : > : : > : > : > : : > : > ... : > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 : > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 : > : : > : >) = 1516 (0x5ec) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 : > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : : > : > close(4) = 0 (0x0) : > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : : > : > ... : > : : > : > : > : : > : > Is there a fix for this? : > : : > : : > : : > : Hi, : > : : > : : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane : > : : > : with libusb20. Then everything should work. : > : : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : > : : > : I built all these things with ports, will just updating the ports fix : > : them, or will I need to jump through some weird hoops? : > : : Hi, : : > And does it work with the old USB stack? : : No, then you have to restore the libusb-0.1 library. Yes. We need a migration guide to usb2 that documents these sorts of things for people, or we're going to get hammered with lots of questions from people using ports that suddenly don't work... The fix may be easy, but people have to know about it. Ideally, the ports folks would be involved with a solution too... : > I'm still finding odd things : > that don't work with usb2, and so far my fallback has been to just use : > the old stack for those things... : : Can you explain a little bit more what you mean. Are these things Host : Controller drivers, middle ware or USB device drivers? Devices are what are failing. : Are you sure that you have tried every possible command in usbconfig and your : device does still not work? I haven't. But usually it is things like burning a DVD from a usb disk doesn't work to a USB DVD player (using storage_ata). Burning it from a firewire disk does seem to work. There's no I/O errors when this happens. The uscanner thing that maybe this will fix. I've had trouble unloading usb2 modules since sometimes they hang. It can be quite time consuming to file bug reports on all these things, since I don't want to file one that wastes your time for being too vague or unreproducible. I've only recently started using usb2 heavily for day-to-day tasks rather than just-test-it-out tasks I'd been doing before. Warner From hselasky at c2i.net Tue Jan 6 16:18:49 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 16:19:01 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.090129.-432836982.imp@bsdimp.com> References: <20090106.083501.-861032140.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> <20090106.090129.-432836982.imp@bsdimp.com> Message-ID: <200901061721.08498.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061653.11745.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: I agree that we should put something somewhere about the most common problems switching to USB2 and its solutions. Maybe in UPDATING? > > : > I'm still finding odd things > : > that don't work with usb2, and so far my fallback has been to just use > : > the old stack for those things... > : > : Can you explain a little bit more what you mean. Are these things Host > : Controller drivers, middle ware or USB device drivers? > > Devices are what are failing. > > : Are you sure that you have tried every possible command in usbconfig and > : your device does still not work? > > I haven't. But usually it is things like burning a DVD from a usb > disk doesn't work to a USB DVD player (using storage_ata). Burning it > from a firewire disk does seem to work. There's no I/O errors when > this happens. The uscanner thing that maybe this will fix. I've had > trouble unloading usb2 modules since sometimes they hang. It can be > quite time consuming to file bug reports on all these things, since I > don't want to file one that wastes your time for being too vague or > unreproducible. I've only recently started using usb2 heavily for > day-to-day tasks rather than just-test-it-out tasks I'd been doing > before. Hi, If the USB device does not respond, its firmware might have crashed! Simply put: The new USB stack is in some cases several times faster than the old one. Some USB devices simply die because the firmware on the USB device is badly designed. Some options: a) Send the device to me for debugging (I cannot promise that you get it back). b) Sit down an adjust the timing of the control transfers until you hit the needle. --HPS From hselasky at c2i.net Tue Jan 6 16:18:49 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 16:19:02 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.090129.-432836982.imp@bsdimp.com> References: <20090106.083501.-861032140.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> <20090106.090129.-432836982.imp@bsdimp.com> Message-ID: <200901061721.08498.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061653.11745.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: I agree that we should put something somewhere about the most common problems switching to USB2 and its solutions. Maybe in UPDATING? > > : > I'm still finding odd things > : > that don't work with usb2, and so far my fallback has been to just use > : > the old stack for those things... > : > : Can you explain a little bit more what you mean. Are these things Host > : Controller drivers, middle ware or USB device drivers? > > Devices are what are failing. > > : Are you sure that you have tried every possible command in usbconfig and > : your device does still not work? > > I haven't. But usually it is things like burning a DVD from a usb > disk doesn't work to a USB DVD player (using storage_ata). Burning it > from a firewire disk does seem to work. There's no I/O errors when > this happens. The uscanner thing that maybe this will fix. I've had > trouble unloading usb2 modules since sometimes they hang. It can be > quite time consuming to file bug reports on all these things, since I > don't want to file one that wastes your time for being too vague or > unreproducible. I've only recently started using usb2 heavily for > day-to-day tasks rather than just-test-it-out tasks I'd been doing > before. Hi, If the USB device does not respond, its firmware might have crashed! Simply put: The new USB stack is in some cases several times faster than the old one. Some USB devices simply die because the firmware on the USB device is badly designed. Some options: a) Send the device to me for debugging (I cannot promise that you get it back). b) Sit down an adjust the timing of the control transfers until you hit the needle. --HPS From imp at bsdimp.com Tue Jan 6 16:47:27 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 16:47:34 2009 Subject: xsane busted with usb2 In-Reply-To: <200901061721.08498.hselasky@c2i.net> References: <200901061653.11745.hselasky@c2i.net> <20090106.090129.-432836982.imp@bsdimp.com> <200901061721.08498.hselasky@c2i.net> Message-ID: <20090106.094532.179963515.imp@bsdimp.com> In message: <200901061721.08498.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901061653.11745.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : : I agree that we should put something somewhere about the most common problems : switching to USB2 and its solutions. Maybe in UPDATING? I think we need to have a pointer from UPDATING to a wiki page that has these entries on it. Do you have an account on wiki.freebsd.org? : > : > I'm still finding odd things : > : > that don't work with usb2, and so far my fallback has been to just use : > : > the old stack for those things... : > : : > : Can you explain a little bit more what you mean. Are these things Host : > : Controller drivers, middle ware or USB device drivers? : > : > Devices are what are failing. : > : > : Are you sure that you have tried every possible command in usbconfig and : > : your device does still not work? : > : > I haven't. But usually it is things like burning a DVD from a usb : > disk doesn't work to a USB DVD player (using storage_ata). Burning it : > from a firewire disk does seem to work. There's no I/O errors when : > this happens. The uscanner thing that maybe this will fix. I've had : > trouble unloading usb2 modules since sometimes they hang. It can be : > quite time consuming to file bug reports on all these things, since I : > don't want to file one that wastes your time for being too vague or : > unreproducible. I've only recently started using usb2 heavily for : > day-to-day tasks rather than just-test-it-out tasks I'd been doing : > before. : : Hi, : : If the USB device does not respond, its firmware might have crashed! Simply : put: The new USB stack is in some cases several times faster than the old : one. Some USB devices simply die because the firmware on the USB device is : badly designed. Well, the usb device doesn't crash, usually. The problem smells more like issues in the usb stack (eg, heavy load only on that device works, but heavy loading with multiple devices doesn't with usb2, similar workloads work with usb1), but I've not done enough of a root cause analysis to be able to say for sure. This is the part where I've not had the time to do proper testing of the exact workload to give you good feedback. I haven't even eliminated the possibility that this might be a hardware problem with, say, the disk in the enclosure... One thing I'm seeing at the moment is that with your suggested quirk changes is an inability to stream on the burning of the DVD.... : a) Send the device to me for debugging (I cannot promise that you get it : back). : b) Sit down an adjust the timing of the control transfers until you hit the : needle. These alternatives are going to be not very viable... Warner From hselasky at c2i.net Tue Jan 6 16:50:53 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 16:51:00 2009 Subject: xsane busted with usb2 In-Reply-To: <20090106.094532.179963515.imp@bsdimp.com> References: <200901061653.11745.hselasky@c2i.net> <200901061721.08498.hselasky@c2i.net> <20090106.094532.179963515.imp@bsdimp.com> Message-ID: <200901061753.13712.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061721.08498.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: <200901061653.11745.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > : I agree that we should put something somewhere about the most common > : problems switching to USB2 and its solutions. Maybe in UPDATING? > > I think we need to have a pointer from UPDATING to a wiki page that > has these entries on it. Do you have an account on wiki.freebsd.org? Yes, I do. > > : > : > I'm still finding odd things > : > : > that don't work with usb2, and so far my fallback has been to just > : > : > use the old stack for those things... > : > : > : > : Can you explain a little bit more what you mean. Are these things > : > : Host Controller drivers, middle ware or USB device drivers? > : > > : > Devices are what are failing. > : > > : > : Are you sure that you have tried every possible command in usbconfig > : > : and your device does still not work? > : > > : > I haven't. But usually it is things like burning a DVD from a usb > : > disk doesn't work to a USB DVD player (using storage_ata). Burning it > : > from a firewire disk does seem to work. There's no I/O errors when > : > this happens. The uscanner thing that maybe this will fix. I've had > : > trouble unloading usb2 modules since sometimes they hang. It can be > : > quite time consuming to file bug reports on all these things, since I > : > don't want to file one that wastes your time for being too vague or > : > unreproducible. I've only recently started using usb2 heavily for > : > day-to-day tasks rather than just-test-it-out tasks I'd been doing > : > before. > : > : Hi, > : > : If the USB device does not respond, its firmware might have crashed! > : Simply put: The new USB stack is in some cases several times faster than > : the old one. Some USB devices simply die because the firmware on the USB > : device is badly designed. > > Well, the usb device doesn't crash, usually. The problem smells more > like issues in the usb stack (eg, heavy load only on that device > works, but heavy loading with multiple devices doesn't with usb2, > similar workloads work with usb1), but I've not done enough of a root > cause analysis to be able to say for sure. This is the part where > I've not had the time to do proper testing of the exact workload to > give you good feedback. I haven't even eliminated the possibility > that this might be a hardware problem with, say, the disk in the > enclosure... > > One thing I'm seeing at the moment is that with your suggested quirk > changes is an inability to stream on the burning of the DVD.... > > : a) Send the device to me for debugging (I cannot promise that you get it > : back). > : b) Sit down an adjust the timing of the control transfers until you hit > : the needle. > > These alternatives are going to be not very viable... > --HPS From hselasky at c2i.net Tue Jan 6 18:30:34 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 18:30:45 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <495FAFDD.2050206@vwsoft.com> References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> <495FAFDD.2050206@vwsoft.com> Message-ID: <200901061932.54448.hselasky@c2i.net> On Saturday 03 January 2009, Volker wrote: > On 01/03/09 01:35, Hans Petter Selasky wrote: > > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as > >> a normal user > >> > >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > >> Responsible-Changed-By: vwe > >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > >> Responsible-Changed-Why: > >> reassign > >> > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > > > > Hi, > > > > "usbconfig" will only show USB devices which the user has access to. > > > > What should be the correct display message when no devices are accessible > > due to innsufficient permissions? > > > > --HPS > > Hans, > > what about "access denied" or "insufficient privileges"? > > Someone might have a better idea but everything should be better than > silently refusing to do anything. > > Volker Is this Ok: http://perforce.freebsd.org/chv.cgi?CH=155731 --HPS --HPS From yanefbsd at gmail.com Tue Jan 6 19:10:20 2009 From: yanefbsd at gmail.com (Garrett Cooper) Date: Tue Jan 6 19:10:32 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <200901061932.54448.hselasky@c2i.net> References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> <495FAFDD.2050206@vwsoft.com> <200901061932.54448.hselasky@c2i.net> Message-ID: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > On Saturday 03 January 2009, Volker wrote: >> On 01/03/09 01:35, Hans Petter Selasky wrote: >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as >> >> a normal user >> >> >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> >> Responsible-Changed-By: vwe >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> >> Responsible-Changed-Why: >> >> reassign >> >> >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 >> > >> > Hi, >> > >> > "usbconfig" will only show USB devices which the user has access to. >> > >> > What should be the correct display message when no devices are accessible >> > due to innsufficient permissions? >> > >> > --HPS >> >> Hans, >> >> what about "access denied" or "insufficient privileges"? >> >> Someone might have a better idea but everything should be better than >> silently refusing to do anything. >> >> Volker > > Is this Ok: > > http://perforce.freebsd.org/chv.cgi?CH=155731 > > --HPS Eh? I still think that strerror or something along those lines would be more helpful. You could also do if (getuid() != 0) { errx(1, "Cluebat -- you might not be able to read the usb devices if you're not root"); } or... struct stat usb_s; int fd = open(..., O_RDONLY /* blah, blah... */); if (fd == -1) { errx(1, "Does the file -- %s -- exist?", file); } if (fstat(fd, &usb_s) == -1) { errx(1, "Couldn't stat the file: %s", file); } if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && !S_IROTH(usb_s.st_mode)) { errx(1, "File not readable (do you have read permissions?)"); } /* Continue on merry way reading devices; maybe use strerror(3) for more intuitive error messages? */ Thoughts? -Garrett From hselasky at c2i.net Tue Jan 6 19:16:29 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 19:16:38 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901061932.54448.hselasky@c2i.net> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> Message-ID: <200901062018.49338.hselasky@c2i.net> On Tuesday 06 January 2009, Garrett Cooper wrote: > On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > > On Saturday 03 January 2009, Volker wrote: > >> On 01/03/09 01:35, Hans Petter Selasky wrote: > >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run > >> >> as a normal user > >> >> > >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > >> >> Responsible-Changed-By: vwe > >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > >> >> Responsible-Changed-Why: > >> >> reassign > >> >> > >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > >> > > >> > Hi, > >> > > >> > "usbconfig" will only show USB devices which the user has access to. > >> > > >> > What should be the correct display message when no devices are > >> > accessible due to innsufficient permissions? > >> > > >> > --HPS > >> > >> Hans, > >> > >> what about "access denied" or "insufficient privileges"? > >> > >> Someone might have a better idea but everything should be better than > >> silently refusing to do anything. > >> > >> Volker > > > > Is this Ok: > > > > http://perforce.freebsd.org/chv.cgi?CH=155731 > > > > --HPS > > Eh? I still think that strerror or something along those lines would > be more helpful. Hi, If errno != 0, I could print out the current value like a string. > > You could also do > > if (getuid() != 0) { > errx(1, "Cluebat -- you might not be able to read the usb devices > if you're not root"); > } Yes, but you are allowed to give non-root users access to USB aswell. So that would also be misleading. Would something like counting the number of devices you don't have access to be Ok? usbconfig ugenX.Y.... There are xxx USB devices not listed which require root access. > > or... > > struct stat usb_s; > > int fd = open(..., O_RDONLY /* blah, blah... */); > > if (fd == -1) { > errx(1, "Does the file -- %s -- exist?", file); > } > > if (fstat(fd, &usb_s) == -1) { > errx(1, "Couldn't stat the file: %s", file); > } > > if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > !S_IROTH(usb_s.st_mode)) { > errx(1, "File not readable (do you have read permissions?)"); > } > > /* Continue on merry way reading devices; maybe use strerror(3) for > more intuitive error messages? */ > > Thoughts? It has to fit into libusb20 ... That's all. --HPS From imp at bsdimp.com Tue Jan 6 19:17:58 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 19:18:14 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> References: <495FAFDD.2050206@vwsoft.com> <200901061932.54448.hselasky@c2i.net> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> Message-ID: <20090106.121521.2007157328.imp@bsdimp.com> In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> "Garrett Cooper" writes: : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: : > On Saturday 03 January 2009, Volker wrote: : >> On 01/03/09 01:35, Hans Petter Selasky wrote: : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as : >> >> a normal user : >> >> : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb : >> >> Responsible-Changed-By: vwe : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 : >> >> Responsible-Changed-Why: : >> >> reassign : >> >> : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 : >> > : >> > Hi, : >> > : >> > "usbconfig" will only show USB devices which the user has access to. : >> > : >> > What should be the correct display message when no devices are accessible : >> > due to innsufficient permissions? : >> > : >> > --HPS : >> : >> Hans, : >> : >> what about "access denied" or "insufficient privileges"? : >> : >> Someone might have a better idea but everything should be better than : >> silently refusing to do anything. : >> : >> Volker : > : > Is this Ok: : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 : > : > --HPS : : Eh? I still think that strerror or something along those lines would : be more helpful. : : You could also do : : if (getuid() != 0) { : errx(1, "Cluebat -- you might not be able to read the usb devices : if you're not root"); : } : : or... : : struct stat usb_s; : : int fd = open(..., O_RDONLY /* blah, blah... */); : : if (fd == -1) { : errx(1, "Does the file -- %s -- exist?", file); : } : : if (fstat(fd, &usb_s) == -1) { : errx(1, "Couldn't stat the file: %s", file); : } : : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && : !S_IROTH(usb_s.st_mode)) { : errx(1, "File not readable (do you have read permissions?)"); : } : : /* Continue on merry way reading devices; maybe use strerror(3) for : more intuitive error messages? */ : : Thoughts? Do you really have to be root to find the devices, if so, that's bad. Very bad. xsane refuses to run as root. I have: [localrules=10] add path 'uscanner*' mode 0660 to make it work. /dev/usb* in old usb allow listing w/o privs... Warner From yanefbsd at gmail.com Tue Jan 6 19:21:26 2009 From: yanefbsd at gmail.com (Garrett Cooper) Date: Tue Jan 6 19:21:32 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <20090106.121521.2007157328.imp@bsdimp.com> References: <495FAFDD.2050206@vwsoft.com> <200901061932.54448.hselasky@c2i.net> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <20090106.121521.2007157328.imp@bsdimp.com> Message-ID: <7d6fde3d0901061121q7b04c199mc0ba7228b148840b@mail.gmail.com> On Tue, Jan 6, 2009 at 11:15 AM, M. Warner Losh wrote: > In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> > "Garrett Cooper" writes: > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > : > On Saturday 03 January 2009, Volker wrote: > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as > : >> >> a normal user > : >> >> > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > : >> >> Responsible-Changed-By: vwe > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > : >> >> Responsible-Changed-Why: > : >> >> reassign > : >> >> > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > : >> > > : >> > Hi, > : >> > > : >> > "usbconfig" will only show USB devices which the user has access to. > : >> > > : >> > What should be the correct display message when no devices are accessible > : >> > due to innsufficient permissions? > : >> > > : >> > --HPS > : >> > : >> Hans, > : >> > : >> what about "access denied" or "insufficient privileges"? > : >> > : >> Someone might have a better idea but everything should be better than > : >> silently refusing to do anything. > : >> > : >> Volker > : > > : > Is this Ok: > : > > : > http://perforce.freebsd.org/chv.cgi?CH=155731 > : > > : > --HPS > : > : Eh? I still think that strerror or something along those lines would > : be more helpful. > : > : You could also do > : > : if (getuid() != 0) { > : errx(1, "Cluebat -- you might not be able to read the usb devices > : if you're not root"); > : } > : > : or... > : > : struct stat usb_s; > : > : int fd = open(..., O_RDONLY /* blah, blah... */); > : > : if (fd == -1) { > : errx(1, "Does the file -- %s -- exist?", file); > : } > : > : if (fstat(fd, &usb_s) == -1) { > : errx(1, "Couldn't stat the file: %s", file); > : } > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > : !S_IROTH(usb_s.st_mode)) { > : errx(1, "File not readable (do you have read permissions?)"); > : } > : > : /* Continue on merry way reading devices; maybe use strerror(3) for > : more intuitive error messages? */ > : > : Thoughts? > > Do you really have to be root to find the devices, if so, that's bad. > Very bad. xsane refuses to run as root. I have: > > [localrules=10] > add path 'uscanner*' mode 0660 > > to make it work. /dev/usb* in old usb allow listing w/o privs... > > Warner Hence that's why I provided another hacked solution. I hate `can't run this app unless root' because it doesn't accurately solve the problem, but it makes the issue more straightforward than `no devices' :). Personally I think using errno and strerror when trying to open / read devices would be a lot cleaner. Let me see what I can quickly grok from libusb(3) either tonight or tomorrow that might be an improvement.. -Garrett From hselasky at c2i.net Tue Jan 6 19:22:18 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 19:22:24 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <20090106.121521.2007157328.imp@bsdimp.com> References: <495FAFDD.2050206@vwsoft.com> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <20090106.121521.2007157328.imp@bsdimp.com> Message-ID: <200901062024.31100.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> > > "Garrett Cooper" writes: > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > : > On Saturday 03 January 2009, Volker wrote: > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when > : >> >> run as a normal user > : >> >> > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > : >> >> Responsible-Changed-By: vwe > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > : >> >> Responsible-Changed-Why: > : >> >> reassign > : >> >> > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > : >> > > : >> > Hi, > : >> > > : >> > "usbconfig" will only show USB devices which the user has access to. > : >> > > : >> > What should be the correct display message when no devices are > : >> > accessible due to innsufficient permissions? > : >> > > : >> > --HPS > : >> > : >> Hans, > : >> > : >> what about "access denied" or "insufficient privileges"? > : >> > : >> Someone might have a better idea but everything should be better than > : >> silently refusing to do anything. > : >> > : >> Volker > : > > : > Is this Ok: > : > > : > http://perforce.freebsd.org/chv.cgi?CH=155731 > : > > : > --HPS > : > : Eh? I still think that strerror or something along those lines would > : be more helpful. > : > : You could also do > : > : if (getuid() != 0) { > : errx(1, "Cluebat -- you might not be able to read the usb devices > : if you're not root"); > : } > : > : or... > : > : struct stat usb_s; > : > : int fd = open(..., O_RDONLY /* blah, blah... */); > : > : if (fd == -1) { > : errx(1, "Does the file -- %s -- exist?", file); > : } > : > : if (fstat(fd, &usb_s) == -1) { > : errx(1, "Couldn't stat the file: %s", file); > : } > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > : !S_IROTH(usb_s.st_mode)) { > : errx(1, "File not readable (do you have read permissions?)"); > : } > : > : /* Continue on merry way reading devices; maybe use strerror(3) for > : more intuitive error messages? */ > : > : Thoughts? > > Do you really have to be root to find the devices, if so, that's bad. > Very bad. xsane refuses to run as root. I have: > No, no. That's wrong. Do it like this for example: usbconfig -u xxx -a xxx set_owner xxx set_perm 660 This won't have no effect at all with USB2: > [localrules=10] > add path 'uscanner*' mode 0660 > > to make it work. /dev/usb* in old usb allow listing w/o privs... > --HPS From imp at bsdimp.com Tue Jan 6 19:53:58 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 19:54:13 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <200901062024.31100.hselasky@c2i.net> References: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <20090106.121521.2007157328.imp@bsdimp.com> <200901062024.31100.hselasky@c2i.net> Message-ID: <20090106.125218.1159136480.imp@bsdimp.com> In message: <200901062024.31100.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> : > : > "Garrett Cooper" writes: : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky : wrote: : > : > On Saturday 03 January 2009, Volker wrote: : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when : > : >> >> run as a normal user : > : >> >> : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb : > : >> >> Responsible-Changed-By: vwe : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 : > : >> >> Responsible-Changed-Why: : > : >> >> reassign : > : >> >> : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 : > : >> > : > : >> > Hi, : > : >> > : > : >> > "usbconfig" will only show USB devices which the user has access to. : > : >> > : > : >> > What should be the correct display message when no devices are : > : >> > accessible due to innsufficient permissions? : > : >> > : > : >> > --HPS : > : >> : > : >> Hans, : > : >> : > : >> what about "access denied" or "insufficient privileges"? : > : >> : > : >> Someone might have a better idea but everything should be better than : > : >> silently refusing to do anything. : > : >> : > : >> Volker : > : > : > : > Is this Ok: : > : > : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 : > : > : > : > --HPS : > : : > : Eh? I still think that strerror or something along those lines would : > : be more helpful. : > : : > : You could also do : > : : > : if (getuid() != 0) { : > : errx(1, "Cluebat -- you might not be able to read the usb devices : > : if you're not root"); : > : } : > : : > : or... : > : : > : struct stat usb_s; : > : : > : int fd = open(..., O_RDONLY /* blah, blah... */); : > : : > : if (fd == -1) { : > : errx(1, "Does the file -- %s -- exist?", file); : > : } : > : : > : if (fstat(fd, &usb_s) == -1) { : > : errx(1, "Couldn't stat the file: %s", file); : > : } : > : : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && : > : !S_IROTH(usb_s.st_mode)) { : > : errx(1, "File not readable (do you have read permissions?)"); : > : } : > : : > : /* Continue on merry way reading devices; maybe use strerror(3) for : > : more intuitive error messages? */ : > : : > : Thoughts? : > : > Do you really have to be root to find the devices, if so, that's bad. : > Very bad. xsane refuses to run as root. I have: : > : : No, no. That's wrong. : : Do it like this for example: : : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 : : This won't have no effect at all with USB2: : : > [localrules=10] : > add path 'uscanner*' mode 0660 : > : > to make it work. /dev/usb* in old usb allow listing w/o privs... That's bad. I'm sorry, but having to do something weird to get the scanner to work every time isn't good design. It isn't good to have a set of permissions hidden from devfs. But I know that I'm not the first to mention this defect in usb2. Warner From hselasky at c2i.net Tue Jan 6 20:01:16 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jan 6 20:01:29 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <20090106.125218.1159136480.imp@bsdimp.com> References: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <200901062024.31100.hselasky@c2i.net> <20090106.125218.1159136480.imp@bsdimp.com> Message-ID: <200901062103.28124.hselasky@c2i.net> On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901062024.31100.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: > : > <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> > : > > : > "Garrett Cooper" writes: > : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky > : > : > : > : wrote: > : > : > On Saturday 03 January 2009, Volker wrote: > : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: > : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error > : > : >> >> when run as a normal user > : > : >> >> > : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > : > : >> >> Responsible-Changed-By: vwe > : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > : > : >> >> Responsible-Changed-Why: > : > : >> >> reassign > : > : >> >> > : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > : > : >> > > : > : >> > Hi, > : > : >> > > : > : >> > "usbconfig" will only show USB devices which the user has access > : > : >> > to. > : > : >> > > : > : >> > What should be the correct display message when no devices are > : > : >> > accessible due to innsufficient permissions? > : > : >> > > : > : >> > --HPS > : > : >> > : > : >> Hans, > : > : >> > : > : >> what about "access denied" or "insufficient privileges"? > : > : >> > : > : >> Someone might have a better idea but everything should be better > : > : >> than silently refusing to do anything. > : > : >> > : > : >> Volker > : > : > > : > : > Is this Ok: > : > : > > : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 > : > : > > : > : > --HPS > : > : > : > : Eh? I still think that strerror or something along those lines would > : > : be more helpful. > : > : > : > : You could also do > : > : > : > : if (getuid() != 0) { > : > : errx(1, "Cluebat -- you might not be able to read the usb devices > : > : if you're not root"); > : > : } > : > : > : > : or... > : > : > : > : struct stat usb_s; > : > : > : > : int fd = open(..., O_RDONLY /* blah, blah... */); > : > : > : > : if (fd == -1) { > : > : errx(1, "Does the file -- %s -- exist?", file); > : > : } > : > : > : > : if (fstat(fd, &usb_s) == -1) { > : > : errx(1, "Couldn't stat the file: %s", file); > : > : } > : > : > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > : > : !S_IROTH(usb_s.st_mode)) { > : > : errx(1, "File not readable (do you have read permissions?)"); > : > : } > : > : > : > : /* Continue on merry way reading devices; maybe use strerror(3) for > : > : more intuitive error messages? */ > : > : > : > : Thoughts? > : > > : > Do you really have to be root to find the devices, if so, that's bad. > : > Very bad. xsane refuses to run as root. I have: > : > : No, no. That's wrong. > : > : Do it like this for example: > : > : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 > : > : This won't have no effect at all with USB2: > : > [localrules=10] > : > add path 'uscanner*' mode 0660 > : > > : > to make it work. /dev/usb* in old usb allow listing w/o privs... > > That's bad. I'm sorry, but having to do something weird to get the > scanner to work every time isn't good design. I don't understand. If you are lazy you do: usbconfig -u xxx set_perm 777 That will give everyone access to all USB devices on the given controller "-u xxx". Note: No "-a" argument. Or: usbconfig set_owner warner:wheel set_perm 660 All USB devices ever plugged on your machine will be accessible by you. I think Rink Springer is working on something in this area. --HPS From imp at bsdimp.com Tue Jan 6 20:11:37 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 20:11:43 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <200901062103.28124.hselasky@c2i.net> References: <200901062024.31100.hselasky@c2i.net> <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> Message-ID: <20090106.130917.117915140.imp@bsdimp.com> In message: <200901062103.28124.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901062024.31100.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : > In message: : > : > <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> : > : > : > : > "Garrett Cooper" writes: : > : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky : > : > : : > : : > : wrote: : > : > : > On Saturday 03 January 2009, Volker wrote: : > : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: : > : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: : > : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error : > : > : >> >> when run as a normal user : > : > : >> >> : > : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb : > : > : >> >> Responsible-Changed-By: vwe : > : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 : > : > : >> >> Responsible-Changed-Why: : > : > : >> >> reassign : > : > : >> >> : > : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 : > : > : >> > : > : > : >> > Hi, : > : > : >> > : > : > : >> > "usbconfig" will only show USB devices which the user has access : > : > : >> > to. : > : > : >> > : > : > : >> > What should be the correct display message when no devices are : > : > : >> > accessible due to innsufficient permissions? : > : > : >> > : > : > : >> > --HPS : > : > : >> : > : > : >> Hans, : > : > : >> : > : > : >> what about "access denied" or "insufficient privileges"? : > : > : >> : > : > : >> Someone might have a better idea but everything should be better : > : > : >> than silently refusing to do anything. : > : > : >> : > : > : >> Volker : > : > : > : > : > : > Is this Ok: : > : > : > : > : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 : > : > : > : > : > : > --HPS : > : > : : > : > : Eh? I still think that strerror or something along those lines would : > : > : be more helpful. : > : > : : > : > : You could also do : > : > : : > : > : if (getuid() != 0) { : > : > : errx(1, "Cluebat -- you might not be able to read the usb devices : > : > : if you're not root"); : > : > : } : > : > : : > : > : or... : > : > : : > : > : struct stat usb_s; : > : > : : > : > : int fd = open(..., O_RDONLY /* blah, blah... */); : > : > : : > : > : if (fd == -1) { : > : > : errx(1, "Does the file -- %s -- exist?", file); : > : > : } : > : > : : > : > : if (fstat(fd, &usb_s) == -1) { : > : > : errx(1, "Couldn't stat the file: %s", file); : > : > : } : > : > : : > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && : > : > : !S_IROTH(usb_s.st_mode)) { : > : > : errx(1, "File not readable (do you have read permissions?)"); : > : > : } : > : > : : > : > : /* Continue on merry way reading devices; maybe use strerror(3) for : > : > : more intuitive error messages? */ : > : > : : > : > : Thoughts? : > : > : > : > Do you really have to be root to find the devices, if so, that's bad. : > : > Very bad. xsane refuses to run as root. I have: : > : : > : No, no. That's wrong. : > : : > : Do it like this for example: : > : : > : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 : > : : > : This won't have no effect at all with USB2: : > : > [localrules=10] : > : > add path 'uscanner*' mode 0660 : > : > : > : > to make it work. /dev/usb* in old usb allow listing w/o privs... : > : > That's bad. I'm sorry, but having to do something weird to get the : > scanner to work every time isn't good design. : : I don't understand. If you are lazy you do: It has to do with providing a consistent interface to the user... : usbconfig -u xxx set_perm 777 : : That will give everyone access to all USB devices on the given controller "-u : xxx". Note: No "-a" argument. : : Or: : : usbconfig set_owner warner:wheel set_perm 660 : : All USB devices ever plugged on your machine will be accessible by you. : : I think Rink Springer is working on something in this area. Great! I look forward to the rework... Warner From imp at bsdimp.com Tue Jan 6 21:17:44 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jan 6 21:17:56 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <4963C48B.9030005@elischer.org> References: <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> <4963C48B.9030005@elischer.org> Message-ID: <20090106.141437.96158589.imp@bsdimp.com> In message: <4963C48B.9030005@elischer.org> Julian Elischer writes: : Hans Petter Selasky wrote: : > On Tuesday 06 January 2009, M. Warner Losh wrote: : >> In message: <200901062024.31100.hselasky@c2i.net> : >> : Do it like this for example: : >> : : >> : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 : >> : : >> : This won't have no effect at all with USB2: : >> : > [localrules=10] : >> : > add path 'uscanner*' mode 0660 : >> : > : >> : > to make it work. /dev/usb* in old usb allow listing w/o privs... : >> : >> That's bad. I'm sorry, but having to do something weird to get the : >> scanner to work every time isn't good design. : > : > I don't understand. If you are lazy you do: : > : > usbconfig -u xxx set_perm 777 : : how about using the standard devd stuff? You mean devfs. : why invent a completely new way of doing things for USB? Exactly my point. I can paper over this with devd, but that's really not a good way to roll long term. Warner From julian at elischer.org Tue Jan 6 21:20:58 2009 From: julian at elischer.org (Julian Elischer) Date: Tue Jan 6 21:21:11 2009 Subject: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user In-Reply-To: <200901062103.28124.hselasky@c2i.net> References: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <200901062024.31100.hselasky@c2i.net> <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> Message-ID: <4963C48B.9030005@elischer.org> Hans Petter Selasky wrote: > On Tuesday 06 January 2009, M. Warner Losh wrote: >> In message: <200901062024.31100.hselasky@c2i.net> >> >> Hans Petter Selasky writes: >> : On Tuesday 06 January 2009, M. Warner Losh wrote: >> : > In message: >> : > <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> >> : > >> : > "Garrett Cooper" writes: >> : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky >> : > : >> : >> : wrote: >> : > : > On Saturday 03 January 2009, Volker wrote: >> : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: >> : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error >> : > : >> >> when run as a normal user >> : > : >> >> >> : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> : > : >> >> Responsible-Changed-By: vwe >> : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> : > : >> >> Responsible-Changed-Why: >> : > : >> >> reassign >> : > : >> >> >> : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 >> : > : >> > >> : > : >> > Hi, >> : > : >> > >> : > : >> > "usbconfig" will only show USB devices which the user has access >> : > : >> > to. >> : > : >> > >> : > : >> > What should be the correct display message when no devices are >> : > : >> > accessible due to innsufficient permissions? >> : > : >> > >> : > : >> > --HPS >> : > : >> >> : > : >> Hans, >> : > : >> >> : > : >> what about "access denied" or "insufficient privileges"? >> : > : >> >> : > : >> Someone might have a better idea but everything should be better >> : > : >> than silently refusing to do anything. >> : > : >> >> : > : >> Volker >> : > : > >> : > : > Is this Ok: >> : > : > >> : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 >> : > : > >> : > : > --HPS >> : > : >> : > : Eh? I still think that strerror or something along those lines would >> : > : be more helpful. >> : > : >> : > : You could also do >> : > : >> : > : if (getuid() != 0) { >> : > : errx(1, "Cluebat -- you might not be able to read the usb devices >> : > : if you're not root"); >> : > : } >> : > : >> : > : or... >> : > : >> : > : struct stat usb_s; >> : > : >> : > : int fd = open(..., O_RDONLY /* blah, blah... */); >> : > : >> : > : if (fd == -1) { >> : > : errx(1, "Does the file -- %s -- exist?", file); >> : > : } >> : > : >> : > : if (fstat(fd, &usb_s) == -1) { >> : > : errx(1, "Couldn't stat the file: %s", file); >> : > : } >> : > : >> : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && >> : > : !S_IROTH(usb_s.st_mode)) { >> : > : errx(1, "File not readable (do you have read permissions?)"); >> : > : } >> : > : >> : > : /* Continue on merry way reading devices; maybe use strerror(3) for >> : > : more intuitive error messages? */ >> : > : >> : > : Thoughts? >> : > >> : > Do you really have to be root to find the devices, if so, that's bad. >> : > Very bad. xsane refuses to run as root. I have: >> : >> : No, no. That's wrong. >> : >> : Do it like this for example: >> : >> : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 >> : >> : This won't have no effect at all with USB2: >> : > [localrules=10] >> : > add path 'uscanner*' mode 0660 >> : > >> : > to make it work. /dev/usb* in old usb allow listing w/o privs... >> >> That's bad. I'm sorry, but having to do something weird to get the >> scanner to work every time isn't good design. > > I don't understand. If you are lazy you do: > > usbconfig -u xxx set_perm 777 how about using the standard devd stuff? why invent a completely new way of doing things for USB? > > That will give everyone access to all USB devices on the given controller "-u > xxx". Note: No "-a" argument. > > Or: > > usbconfig set_owner warner:wheel set_perm 660 > > All USB devices ever plugged on your machine will be accessible by you. > > I think Rink Springer is working on something in this area. > > --HPS > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From alexbestms at math.uni-muenster.de Tue Jan 6 23:02:35 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Tue Jan 6 23:02:43 2009 Subject: usb2 quirks In-Reply-To: <200812232242.30638.hselasky@c2i.net> Message-ID: Thanks a lot. There are two more questions i'd like to ask: 1. where can i find , , and in the following device_desc dump? ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0492 idProduct = 0x0140 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <000000F1F1000> bNumConfigurations = 0x0001 2. what are the usb2 equivalents to the following usb1 quirks: UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY | NO_SYNCHRONIZE_CACHE right now i'm getting the following error message when attaching the device: ugen3.2: at usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:7:0:-1: Attached to scbus7 (da0:umass-sim0:0:0:0): got CAM status 0x4 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry cheers. Alex Hans Petter Selasky schrieb am 2008-12-23: > On Tuesday 23 December 2008, Alexander Best wrote: > > hi there, > > could somebody tell me where i can find info about the quirk > > settings used > > in usbconfig (usb2) please? i had a look at usbconfig(8), but the > > manual > > doesn't contain any information concerning usb quirks. > Hi, > If you type: > usbconfig -h > You see that you have the following quirk commands available: > add_dev_quirk_vplh > remove_dev_quirk_vplh > dump_quirk_names > dump_device_quirks > Before you can use quirks you need to: > kldload usb2_quirk > --HPS From alexbestms at math.uni-muenster.de Wed Jan 7 00:30:06 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Wed Jan 7 00:30:12 2009 Subject: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Message-ID: <200901070030.n070U5bV022907@freefall.freebsd.org> The following reply was made to PR usb/130230; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 07 Jan 2009 01:25:30 +0100 (CET) This is a MIME encoded multipart message. --+permail-200901070025306981cf3e000065b8-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit please try the following patch. cheers. alex --+permail-200901070025306981cf3e000065b8-a_best01+ Content-Type: application/octet-stream Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="ypu3.patch" LS0tIHN5cy9kZXYvdXNiL3VtYXNzLmMub3JpZwkyMDA5LTAxLTA3IDAxOjA3OjM1LjAwMDAwMDAw MCArMDAwMAorKysgc3lzL2Rldi91c2IvdW1hc3MuYwkyMDA5LTAxLTA3IDAxOjA5OjEzLjAwMDAw MDAwMCArMDAwMApAQCAtNjU0LDYgKzY1NCwxMCBAQAogCSAgVU1BU1NfUFJPVE9fU0NTSSB8IFVN QVNTX1BST1RPX0JCQiwKIAkgIFNIVVRUTEVfSU5JVCB8IE5PX0dFVE1BWExVTgogCX0sCisJeyBV U0JfVkVORE9SX1NBTVNVTkcsICBVU0JfUFJPRFVDVF9TQU1TVU5HX1lQX1UzLCBSSURfV0lMRENB UkQsCisJICBVTUFTU19QUk9UT19TQ1NJIHwgVU1BU1NfUFJPVE9fQkJCLAorCSAgU0hVVFRMRV9J TklUIHwgTk9fR0VUTUFYTFVOCisJfQogCXsgVVNCX1ZFTkRPUl9TQU1TVU5HX1RFQ0hXSU4sIFVT Ql9QUk9EVUNUX1NBTVNVTkdfVEVDSFdJTl9ESUdJTUFYXzQxMCwgUklEX1dJTERDQVJELAogCSAg VU1BU1NfUFJPVE9fU0NTSSB8IFVNQVNTX1BST1RPX0JCQiwKIAkgIE5PX0lOUVVJUlkKLS0tIHN5 cy9kZXYvdXNiL3VzYmRldnMub3JpZwkyMDA5LTAxLTA3IDAxOjA2OjM3LjAwMDAwMDAwMCArMDAw MAorKysgc3lzL2Rldi91c2IvdXNiZGV2cwkyMDA5LTAxLTA3IDAxOjA3OjI2LjAwMDAwMDAwMCAr MDAwMApAQCAtMTk5MCw2ICsxOTkwLDcgQEAKIC8qIFNhbXN1bmcgcHJvZHVjdHMgKi8KIHByb2R1 Y3QgU0FNU1VORyBNTDYwNjAJCTB4MzAwOAlNTC02MDYwIGxhc2VyIHByaW50ZXIKIHByb2R1Y3Qg U0FNU1VORyBZUF9VMgkJMHg1MDUwCVlQLVUyIE1QMyBQbGF5ZXIKK3Byb2R1Y3QgU0FNU1VORyBZ UF9VMwkJMHg1MDdjCVlQLVUzIE1QMyBQbGF5ZXIKIHByb2R1Y3QgU0FNU1VORyBJNTAwCQkweDY2 MDEJSTUwMCBQYWxtIFVTQiBQaG9uZSAKIAogLyogU2Ftc3VuZyBUZWNod2luIHByb2R1Y3RzICov Cg== --+permail-200901070025306981cf3e000065b8-a_best01+-- From alexbestms at math.uni-muenster.de Wed Jan 7 00:38:27 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Wed Jan 7 00:38:34 2009 Subject: usb2 quirks In-Reply-To: <200812232242.30638.hselasky@c2i.net> Message-ID: instead of using usbconfig to add the quirks for my device i added them to umass2.c and usb2_devid.h. with the changes the device works without any problems. here's the dmesg output: ugen3.2: at usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x4400 umass0:7:0:-1: Attached to scbus7 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < > Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 3864MB (7913472 512 byte sectors: 255H 63S/T 492C) it would be nice to see the changes make it into HEAD. cheers. alex Hans Petter Selasky schrieb am 2008-12-23: > On Tuesday 23 December 2008, Alexander Best wrote: > > hi there, > > could somebody tell me where i can find info about the quirk > > settings used > > in usbconfig (usb2) please? i had a look at usbconfig(8), but the > > manual > > doesn't contain any information concerning usb quirks. > Hi, > If you type: > usbconfig -h > You see that you have the following quirk commands available: > add_dev_quirk_vplh > remove_dev_quirk_vplh > dump_quirk_names > dump_device_quirks > Before you can use quirks you need to: > kldload usb2_quirk > --HPS -------------- next part -------------- A non-text attachment was scrubbed... Name: usb2meizu.patch Type: application/octet-stream Size: 1366 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090107/d0f314c7/usb2meizu.obj From alexbestms at math.uni-muenster.de Wed Jan 7 01:00:12 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Wed Jan 7 01:00:26 2009 Subject: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Message-ID: <200901070100.n0710BsZ045800@freefall.freebsd.org> The following reply was made to PR usb/130230; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 07 Jan 2009 01:52:45 +0100 (CET) if the device still fails to attach please see this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/127980 you might have to undo the changes that were introduced with the following patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=125398 cheers. alex From alexbestms at math.uni-muenster.de Wed Jan 7 01:00:14 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Wed Jan 7 01:00:27 2009 Subject: usb/117075: [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 Message-ID: <200901070100.n0710DxO045813@freefall.freebsd.org> The following reply was made to PR usb/117075; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/117075: [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 Date: Wed, 07 Jan 2009 01:57:29 +0100 (CET) the PR can be closed. the changes have been comitted in revision 180389 (svn) of scsi_da.c cheers. alex From hselasky at c2i.net Wed Jan 7 09:57:07 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Jan 7 09:57:18 2009 Subject: usb2 quirks In-Reply-To: References: Message-ID: <200901071059.27949.hselasky@c2i.net> On Wednesday 07 January 2009, Alexander Best wrote: > Thanks a lot. There are two more questions i'd like to ask: > > 1. where can i find , , and in the following > device_desc dump? > > ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON vid: > idVendor = 0x0492 pid: > idProduct = 0x0140 lo_rev+hi_rev: > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <000000F1F1000> > bNumConfigurations = 0x0001 > > 2. what are the usb2 equivalents to the following usb1 quirks: > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_INQUIRY | NO_SYNCHRONIZE_CACHE These quirks have not yet been converted into the quirk system. You have to recompile usb2_storage_mass modules and edit usb2/storage/umass2.c . --HPS From hselasky at c2i.net Wed Jan 7 10:10:03 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Jan 7 10:10:09 2009 Subject: usb2 quirks In-Reply-To: References: Message-ID: <200901071112.24407.hselasky@c2i.net> On Wednesday 07 January 2009, Alexander Best wrote: > instead of using usbconfig to add the quirks for my device i added them to > umass2.c and usb2_devid.h. with the changes the device works without any > problems. here's the dmesg output: > > > it would be nice to see the changes make it into HEAD. > Going into -current early next week. Currently your patches are available in P4: http://perforce.freebsd.org/chv.cgi?CH=155748 --HPS From garga at freebsd.org Wed Jan 7 16:40:05 2009 From: garga at freebsd.org (Renato Botelho) Date: Wed Jan 7 16:40:16 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901071640.n07Ge47c022632@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Renato Botelho To: Hans Petter Selasky Cc: bug-followup@freebsd.org Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Wed, 7 Jan 2009 14:10:02 -0200 On Sat, Jan 03, 2009 at 12:54:21AM +0100, Hans Petter Selasky wrote: > Hi, > > Have you tried on different computers? Yes, at home, same problem. > Is the problem the same everwhere? Yes > Are you willing to sponsor one of those keyboards for debugging purpose? Sorry, but i just have one of these available :( I know more freebsd users are using sun keyboards, i don't know if anyone could donate one. > Could you attach to this PR dumps of the keyboard descriptors using the > usbconfig dump commands? See "usbconfig -h" if you need help. > > For example: > > usbconfig -u xxx -a yyy dump_curr_config_desc dump_device_desc > > And: "dmesg | grep -i usb" I'll find a ps/2 keyboard here and make the tests for you at least tomorrow -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc Many hands make light work. -- John Heywood From alexbestms at math.uni-muenster.de Fri Jan 9 14:30:02 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Fri Jan 9 14:30:07 2009 Subject: usb/130325: [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh Message-ID: <200901091420.n09EKqZl024604@www.freebsd.org> >Number: 130325 >Category: usb >Synopsis: [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh >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: Fri Jan 09 14:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexander Best >Release: 8-CURRENT >Organization: >Environment: reeBSD moshnroll 8.0-CURRENT FreeBSD 8.0-CURRENT #11 r186887M: Thu Jan 8 11:38:05 UTC 2009 root@moshnroll:/usr/obj/usr/src/sys/ARUNDEL i386 >Description: here's a fix to make tools/tools/usb/print-usb-if-vids.sh work again. the file hasn't been touched in over 4 years. ;) alex >How-To-Repeat: >Fix: Patch attached with submission follows: --- tools/tools/usb/print-usb-if-vids.sh 2008-11-27 00:25:34.000000000 +0000 +++ tools/tools/usb/print-usb-if-vids.sh 2009-01-09 00:49:50.000000000 +0000 @@ -27,5 +27,5 @@ # $FreeBSD$ -fetch -o /tmp/usb.if http://www.usb.org/app/pub/dump/comp_dump/ +fetch -o /tmp/usb.if http://www.usb.org/developers/tools/comp_dump/ awk -F '|' '{ printf "%#06x\t%s\n", $1, $2 }' < /tmp/usb.if | sort >Release-Note: >Audit-Trail: >Unformatted: From Thomas.Sparrevohn at btinternet.com Sat Jan 10 13:58:53 2009 From: Thomas.Sparrevohn at btinternet.com (Thomas Sparrevohn) Date: Sat Jan 10 13:59:00 2009 Subject: Advice on booting from usb2 Message-ID: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> I have a 4GB SDHC card that I have formatted with ufs and installed a current kernel on - Its connected to a USB reader. Now here is the thing - I can boot the kernel with USB2 well enough but when it comes to mount root - it looks like USB2 has not probed and attached the device yet and I get the "mount root from" prompt - however it does not show the cam devices Any advice? From hselasky at c2i.net Sat Jan 10 14:06:24 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 10 14:11:28 2009 Subject: Advice on booting from usb2 In-Reply-To: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> Message-ID: <200901101508.44659.hselasky@c2i.net> On Saturday 10 January 2009, Thomas Sparrevohn wrote: > I have a 4GB SDHC card that I have formatted with ufs and installed a > current kernel on - Its connected to a USB reader. Now here is the thing - > I can boot the kernel with USB2 well enough but when it comes to mount root > - it looks like USB2 has not probed and attached the device yet and I get > the "mount root from" prompt - however it does not show the cam devices > > Any advice? It's being worked on by "Ed Maste ". Temporary patch is available here for kern/vfs_mount.c : --- vfs_mount.c.orig Mon Dec 22 14:43:36 2008 +++ vfs_mount.c Mon Dec 22 15:09:14 2008 @@ -58,6 +58,7 @@ #include #include #include +#include #include #include @@ -1606,7 +1607,11 @@ vfs_mountroot(void) { char *cp; - int error, i, asked = 0; + const char *rootdevname_orig; + int error; + unsigned int i; + unsigned char asked = 0; /* set if asked for mount point */ + unsigned char timeout = 16; /* seconds */ root_mount_prepare(); @@ -1624,6 +1629,10 @@ asked = 1; } + /* store a copy of the initial root device name */ + rootdevname_orig = ctrootdevname; + retry: + /* * The root filesystem information is compiled in, and we are * booted with instructions to use it. @@ -1674,12 +1683,27 @@ if (!vfs_mountroot_try(ctrootdevname)) goto mounted; /* - * Everything so far has failed, prompt on the console if we haven't - * already tried that. + * Check if we should try more times. + */ + if (timeout != 0) { + timeout--; + pause("WROOT", hz); + if (cncheckc() == -1) { + /* no key press - try again */ + ctrootdevname = rootdevname_orig; + goto retry; + } + } + + /* + * Everything so far has failed, prompt on the console if we + * haven't already tried that. */ - if (!asked) + if (!asked) { + printf("\n"); if (!vfs_mountroot_ask()) goto mounted; + } panic("Root mount failed, startup aborted."); --HPS From olivier at gid0.org Sat Jan 10 15:56:22 2009 From: olivier at gid0.org (Olivier SMEDTS) Date: Sat Jan 10 15:56:30 2009 Subject: Advice on booting from usb2 In-Reply-To: <200901101508.44659.hselasky@c2i.net> References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <200901101508.44659.hselasky@c2i.net> Message-ID: <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> 2009/1/10 Hans Petter Selasky : > On Saturday 10 January 2009, Thomas Sparrevohn wrote: >> I have a 4GB SDHC card that I have formatted with ufs and installed a >> current kernel on - Its connected to a USB reader. Now here is the thing - >> I can boot the kernel with USB2 well enough but when it comes to mount root >> - it looks like USB2 has not probed and attached the device yet and I get >> the "mount root from" prompt - however it does not show the cam devices >> >> Any advice? > > It's being worked on by "Ed Maste ". > > Temporary patch is available here for kern/vfs_mount.c : Great, my ZFS-only USB key could only boot by mounting root manually. I'll try this. Cheers > --- vfs_mount.c.orig Mon Dec 22 14:43:36 2008 > +++ vfs_mount.c Mon Dec 22 15:09:14 2008 > @@ -58,6 +58,7 @@ > #include > #include > #include > +#include > #include > > #include > @@ -1606,7 +1607,11 @@ > vfs_mountroot(void) > { > char *cp; > - int error, i, asked = 0; > + const char *rootdevname_orig; > + int error; > + unsigned int i; > + unsigned char asked = 0; /* set if asked for mount point */ > + unsigned char timeout = 16; /* seconds */ > > root_mount_prepare(); > > @@ -1624,6 +1629,10 @@ > asked = 1; > } > > + /* store a copy of the initial root device name */ > + rootdevname_orig = ctrootdevname; > + retry: > + > /* > * The root filesystem information is compiled in, and we are > * booted with instructions to use it. > @@ -1674,12 +1683,27 @@ > if (!vfs_mountroot_try(ctrootdevname)) > goto mounted; > /* > - * Everything so far has failed, prompt on the console if we haven't > - * already tried that. > + * Check if we should try more times. > + */ > + if (timeout != 0) { > + timeout--; > + pause("WROOT", hz); > + if (cncheckc() == -1) { > + /* no key press - try again */ > + ctrootdevname = rootdevname_orig; > + goto retry; > + } > + } > + > + /* > + * Everything so far has failed, prompt on the console if we > + * haven't already tried that. > */ > - if (!asked) > + if (!asked) { > + printf("\n"); > if (!vfs_mountroot_ask()) > goto mounted; > + } > > panic("Root mount failed, startup aborted."); > > --HPS > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas." From Thomas.Sparrevohn at btinternet.com Sat Jan 10 10:17:51 2009 From: Thomas.Sparrevohn at btinternet.com (Thomas Sparrevohn) Date: Sat Jan 10 10:17:57 2009 Subject: Advice on booting from usb2 In-Reply-To: <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <200901101508.44659.hselasky@c2i.net> <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> Message-ID: <200901101817.45284.Thomas.Sparrevohn@btinternet.com> On Saturday 10 January 2009 15:23:48 Olivier SMEDTS wrote: The patch works for me and allows me to boot - however eventually I get the usb2_pc_common_mem_cb:429: Page offset was not preserved! Error - I wonder if the error is specific to the Nvidia Nforce 590 Intel chipset or its more generic as but seems to occur quite rarely From hselasky at c2i.net Sat Jan 10 10:37:56 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 10 10:38:04 2009 Subject: Advice on booting from usb2 In-Reply-To: <200901101817.45284.Thomas.Sparrevohn@btinternet.com> References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> <200901101817.45284.Thomas.Sparrevohn@btinternet.com> Message-ID: <200901101940.11605.hselasky@c2i.net> On Saturday 10 January 2009, Thomas Sparrevohn wrote: > On Saturday 10 January 2009 15:23:48 Olivier SMEDTS wrote: > > The patch works for me and allows me to boot - however eventually I get the > > usb2_pc_common_mem_cb:429: Page offset was not preserved! > > Error - I wonder if the error is specific to the Nvidia Nforce 590 Intel > chipset or its more generic as but seems to occur quite rarely > Hi, It is chipset independent. It appears at the moment data is bounced, because you have too much memory in the computer :-) Currently the USB drivers only supports 32-bits of DMA addressing. --HPS From dorian.buettner at gmx.de Sat Jan 10 11:22:27 2009 From: dorian.buettner at gmx.de (Dorian =?iso-8859-1?q?B=FCttner?=) Date: Sat Jan 10 11:22:32 2009 Subject: test usb2 on 7.1? Message-ID: <200901101922.24019.dorian.buettner@gmx.de> Is it possible/senseful and if so, how would I get the source code merged into /usr/src? From hselasky at c2i.net Sat Jan 10 12:21:17 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 10 12:21:24 2009 Subject: USB wiki page Message-ID: <200901102123.36484.hselasky@c2i.net> Hi, I've created a USB page at the FreeBSD wiki with some USB2/HPSUSB frequently asked questions. http://wiki.freebsd.org/USB --HPS From hselasky at c2i.net Sat Jan 10 12:36:59 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 10 12:37:05 2009 Subject: test usb2 on 7.1? In-Reply-To: <200901101922.24019.dorian.buettner@gmx.de> References: <200901101922.24019.dorian.buettner@gmx.de> Message-ID: <200901102139.17710.hselasky@c2i.net> On Saturday 10 January 2009, Dorian B?ttner wrote: > Is it possible/senseful and if so, how would I get the source code merged > into /usr/src? It is possible, but not all USB drivers will compile. What you can try: Compile -current kernel with "options COMPAT_FREEBSD7" and use that on 7.x box. Only recommended for testing though. --HPS From Thomas.Sparrevohn at btinternet.com Sat Jan 10 13:19:43 2009 From: Thomas.Sparrevohn at btinternet.com (Thomas Sparrevohn) Date: Sat Jan 10 13:19:49 2009 Subject: Advice on booting from usb2 In-Reply-To: <200901101940.11605.hselasky@c2i.net> References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <200901101817.45284.Thomas.Sparrevohn@btinternet.com> <200901101940.11605.hselasky@c2i.net> Message-ID: <200901102119.40591.Thomas.Sparrevohn@btinternet.com> On Saturday 10 January 2009 18:40:10 Hans Petter Selasky wrote: > > It is chipset independent. It appears at the moment data is bounced, because > you have too much memory in the computer :-) Currently the USB drivers only > supports 32-bits of DMA addressing. > > --HPS > Well I guess its not the worst kind of problem to have ;-) From alo at louko.com Sun Jan 11 03:40:10 2009 From: alo at louko.com (Antti Louko) Date: Sun Jan 11 03:40:15 2009 Subject: usb/107827: [ohci] [panic] ohci_add_done addr not found Message-ID: <200901111140.n0BBe9rQ081118@freefall.freebsd.org> The following reply was made to PR usb/107827; it has been noted by GNATS. From: Antti Louko To: bug-followup@FreeBSD.org Cc: fstoffel@gmx.de Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found Date: Sun, 11 Jan 2009 13:17:16 +0200 I am experiencing this with both 7.1-RELEASE and 8.0-CURRENT-200812. The motherboard is Asus M2A-VM-HDMI. If there is as much as USB memory stick in the USB interface, system panics. This is a show stopper to my plan to boot from USB stick and have all the rest in ZFS pool (part SATA, part FF or USB). And this is on old bug. Has anyone has even an idea where to look and what kind of work-around might be possible? From nehaa.oberoi at gmail.com Sun Jan 11 04:17:43 2009 From: nehaa.oberoi at gmail.com (Neha Oberoi) Date: Sun Jan 11 04:17:49 2009 Subject: USB Devices not getting detected with USB card on PCI express. Message-ID: <6f0bc3e80901110345x6dd40517l5793dc7e9720f47a@mail.gmail.com> Hi all, I am facing a strange problem with my freebsd stack. I am using freebsd version 6.0. The set up is as follows: [PowerPC controller]<-->[PCI Express]<-->[PCIe-to-PCI bridge]<-->[PCI USB Card]<-->USB Device When I plug in an USB device it gives a SET_ADDR_FAILED error, and disables the port. Now the strange thing is that the same setup with PCIe and USB is working all right on a x86 setup. I tried debugging but didnt get any obvious errors. Any pointers in this regard would be most welcome. Best regards, Nehaa From dorian.buettner at gmx.de Sun Jan 11 04:37:44 2009 From: dorian.buettner at gmx.de (=?ISO-8859-15?Q?Dorian_B=FCttner?=) Date: Sun Jan 11 04:37:52 2009 Subject: usb/107827: [ohci] [panic] ohci_add_done addr not found In-Reply-To: <200901111140.n0BBe9rQ081118@freefall.freebsd.org> References: <200901111140.n0BBe9rQ081118@freefall.freebsd.org> Message-ID: <4969E814.9010307@gmx.de> Antti Louko schrieb: > The following reply was made to PR usb/107827; it has been noted by GNATS. > > From: Antti Louko > To: bug-followup@FreeBSD.org > Cc: fstoffel@gmx.de > Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found > Date: Sun, 11 Jan 2009 13:17:16 +0200 > > I am experiencing this with both 7.1-RELEASE and 8.0-CURRENT-200812. The > motherboard is Asus M2A-VM-HDMI. > > If there is as much as USB memory stick in the USB interface, system panics. > > This is a show stopper to my plan to boot from USB stick and have all > the rest in ZFS pool (part SATA, part FF or USB). > > And this is on old bug. Has anyone has even an idea where to look and > what kind of work-around might be possible? > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > I have the same board except the HDMI part, that should not disturb the SB600 error. On your -current, did you test the GENERIC and/or the USB2-Kernel? Tried that yesterday and at least, it doesn't panic on boot so far. My Logitech G15 Keyboard therefore is not detected, even after boot I can attach/detach as muchas I want the USB simply doesn't care. Attaching the razor mouse drops into db> But I was able to mount a stick and get a dmesg out of it, if that is anything useful. -------------- next part -------------- Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #3: Sun Jan 11 01:20:02 UTC 2009 root@zock:/usr/obj/usr/src/sys/USB2 WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ (2999.90-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x40f33 Stepping = 3 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f Cores per package: 2 usable memory = 2136489984 (2037 MB) avail memory = 2063507456 (1967 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7fde0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 device_attach: acpi_hpet0 attach returned 12 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 vgapci0: port 0xdf00-0xdf7f mem 0xfa000000-0xfaffffff,0xd0000000-0xdfffffff,0xf8000000-0xf9ffffff irq 18 at device 0.0 on pci1 pcib2: at device 7.0 on pci0 pci2: on pcib2 re0: port 0xee00-0xeeff mem 0xfddff000-0xfddfffff irq 19 at device 0.0 on pci2 re0: turning off MSI enable bit. re0: Chip rev. 0x38000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1b:fc:73:9e:b8 re0: [FILTER] atapci0: port 0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f mem 0xfe02f000-0xfe02f3ff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI Version 01.10 controller with 4 ports PM supported ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ohci0: mem 0xfe02e000-0xfe02efff irq 16 at device 19.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: mem 0xfe02d000-0xfe02dfff irq 17 at device 19.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ohci2: mem 0xfe02c000-0xfe02cfff irq 18 at device 19.2 on pci0 ohci2: [ITHREAD] usbus2: on ohci2 ohci3: mem 0xfe02b000-0xfe02bfff irq 17 at device 19.3 on pci0 ohci3: [ITHREAD] usbus3: on ohci3 ohci4: mem 0xfe02a000-0xfe02afff irq 18 at device 19.4 on pci0 ohci4: [ITHREAD] usbus4: on ohci4 ehci0: mem 0xfe029000-0xfe0290ff irq 19 at device 19.5 on pci0 ehci0: [ITHREAD] usbus5: EHCI version 1.0 usbus5: on ehci0 pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf900-0xf90f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 pci3: at device 6.0 (no driver attached) pci3: at device 6.1 (no driver attached) acpi_tz0: on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 uart0: [FILTER] ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] ppbus0: on ppc0 plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] atrtc0: port 0x70-0x73 on acpi0 cpu0: on acpi0 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 device_attach: acpi_hpet0 attach returned 12 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 ushub0: on usbus0 ugen1.1: at usbus1 ushub1: on usbus1 ugen2.1: at usbus2 ushub2: on usbus2 ugen3.1: at usbus3 ushub3: on usbus3 ugen4.1: at usbus4 ushub4: on usbus4 ugen5.1: at usbus5 ushub5: on usbus5 acd0: DVDR at ata0-master UDMA66 ad4: 305245MB at ata2-master SATA300 SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. GEOM: ad4s2: geometry does not match label (255h,63s != 16h,63s). ushub0: 2 ports with 2 removable, self powered ushub1: 2 ports with 2 removable, self powered ushub2: 2 ports with 2 removable, self powered ushub3: 2 ports with 2 removable, self powered ushub4: 2 ports with 2 removable, self powered GEOM: ad4s3: geometry does not match label (255h,63s != 16h,63s). GEOM_LABEL: Label for provider ad4s4 is ntfs/Scrott. Trying to mount root from ufs:/dev/ad4s3a WARNING: / was not properly dismounted lock order reversal: 1st 0xffffff00012f5070 user map (user map) @ /usr/src/sys/vm/vm_map.c:3198 2nd 0xffffff0001a5fd80 ufs (ufs) @ /usr/src/sys/kern/vfs_subr.c:2079 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x32 _witness_debugger() at _witness_debugger+0x1e witness_checkorder() at witness_checkorder+0x8ca __lockmgr_args() at __lockmgr_args+0x218 ffs_lock() at ffs_lock+0x77 VOP_LOCK1_APV() at VOP_LOCK1_APV+0xbf _vn_lock() at _vn_lock+0x6e vget() at vget+0xc8 vnode_pager_lock() at vnode_pager_lock+0x1a9 vm_fault() at vm_fault+0x23e trap_pfault() at trap_pfault+0x111 trap() at trap+0x250 calltrap() at calltrap+0x8 --- trap 0xc, rip = 0x40014f, rsp = 0x7fffffffee70, rbp = 0x7fffffffee90 --- WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted ushub5: 10 ports with 10 removable, self powered usb2_alloc_device:1423: set address 2 failed (ignored) usb2_alloc_device:1458: getting device descriptor at addr 2 failed! usb2_req_re_enumerate:1362: addr=2, set address failed! (ignored) usb2_req_re_enumerate:1375: getting device descriptor at addr 2 failed! usb2_req_re_enumerate:1362: addr=2, set address failed! (ignored) usb2_req_re_enumerate:1375: getting device descriptor at addr 2 failed! ugen1.2: <> at usbus1 (disconnected) uhub_reattach_port:417: could not allocate new device! link_elf_obj: symbol dev2unit undefined kldload: /usr/local/modules/fuse.ko: Unsupported file type GEOM_LABEL: Label ntfs/Scrott removed. lock order reversal: 1st 0xffffff0001f1f270 ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:424 2nd 0xfffffffe69a4fe30 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 3rd 0xffffff0001c24270 ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:545 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x32 _witness_debugger() at _witness_debugger+0x1e witness_checkorder() at witness_checkorder+0x8ca __lockmgr_args() at __lockmgr_args+0x748 ffs_lock() at ffs_lock+0x77 VOP_LOCK1_APV() at VOP_LOCK1_APV+0xbf _vn_lock() at _vn_lock+0x6e ffs_snapshot() at ffs_snapshot+0x115d ffs_mount() at ffs_mount+0x11eb vfs_donmount() at vfs_donmount+0x11b6 nmount() at nmount+0xb5 syscall() at syscall+0x2e9 Xfast_syscall() at Xfast_syscall+0xab --- syscall (378, FreeBSD ELF64, nmount), rip = 0x80079398c, rsp = 0x7fffffffea58, rbp = 0x1211000 --- lock order reversal: 1st 0xfffffffe69a4fe30 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2443 2nd 0xffffff0008161630 snaplk (snaplk) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:794 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x32 _witness_debugger() at _witness_debugger+0x1e witness_checkorder() at witness_checkorder+0x8ca __lockmgr_args() at __lockmgr_args+0x748 ffs_lock() at ffs_lock+0x77 VOP_LOCK1_APV() at VOP_LOCK1_APV+0xbf _vn_lock() at _vn_lock+0x6e ffs_snapshot() at ffs_snapshot+0x20b3 ffs_mount() at ffs_mount+0x11eb vfs_donmount() at vfs_donmount+0x11b6 nmount() at nmount+0xb5 syscall() at syscall+0x2e9 Xfast_syscall() at Xfast_syscall+0xab --- syscall (378, FreeBSD ELF64, nmount), rip = 0x80079398c, rsp = 0x7fffffffea58, rbp = 0x1211000 --- lock order reversal: 1st 0xffffff0008161630 snaplk (snaplk) @ /usr/src/sys/kern/vfs_vnops.c:293 2nd 0xffffff0001f1f270 ufs (ufs) @ /usr/src/sys/ufs/ffs/ffs_snapshot.c:1588 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x32 _witness_debugger() at _witness_debugger+0x1e witness_checkorder() at witness_checkorder+0x8ca __lockmgr_args() at __lockmgr_args+0x748 ffs_snapremove() at ffs_snapremove+0x11c softdep_releasefile() at softdep_releasefile+0x41 ufs_inactive() at ufs_inactive+0x1a5 VOP_INACTIVE_APV() at VOP_INACTIVE_APV+0xb7 vinactive() at vinactive+0x8c vput() at vput+0x1e1 vn_close() at vn_close+0xe9 vn_closefile() at vn_closefile+0xd6 _fdrop() at _fdrop+0x3c closef() at closef+0x26b kern_close() at kern_close+0xff close() at close+0xb syscall() at syscall+0x2e9 Xfast_syscall() at Xfast_syscall+0xab --- syscall (6, FreeBSD ELF64, close), rip = 0x80081e39c, rsp = 0x7fffffffea58, rbp = 0 --- lock order reversal: 1st 0xffffff0001e85ba8 ntfs (ntfs) @ /usr/src/sys/kern/vfs_subr.c:2079 2nd 0xffffff0001e11c40 ntnode (ntnode) @ /usr/src/sys/fs/ntfs/ntfs_subr.c:361 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x32 _witness_debugger() at _witness_debugger+0x1e witness_checkorder() at witness_checkorder+0x8ca __lockmgr_args() at __lockmgr_args+0x748 ntfs_ntget() at ntfs_ntget+0x75 ntfs_ntlookupfile() at ntfs_ntlookupfile+0x4a ntfs_lookup() at ntfs_lookup+0x167 VOP_CACHEDLOOKUP_APV() at VOP_CACHEDLOOKUP_APV+0xb3 vfs_cache_lookup() at vfs_cache_lookup+0xcc VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0xb7 lookup() at lookup+0x58f namei() at namei+0x4a0 vn_open_cred() at vn_open_cred+0x2d7 vn_open() at vn_open+0x17 kern_openat() at kern_openat+0x140 kern_open() at kern_open+0x19 open() at open+0x18 syscall() at syscall+0x2e9 Xfast_syscall() at Xfast_syscall+0xab --- syscall (5, FreeBSD ELF64, open), rip = 0x8009a8abc, rsp = 0x7fffffffe648, rbp = 0x9 --- ugen5.2: at usbus5 umass0: on usbus5 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 2007MB (4111872 512 byte sectors: 255H 63S/T 255C) GEOM: da0: partition 1 does not start on a track boundary. GEOM: da0: partition 1 does not end on a track boundary. GEOM_LABEL: Label for provider da0s1 is msdosfs/DISK_IMG. GEOM_LABEL: Label msdosfs/DISK_IMG removed. GEOM_LABEL: Label for provider da0s1 is msdosfs/DISK_IMG. GEOM_LABEL: Label msdosfs/DISK_IMG removed. From alo at louko.com Sun Jan 11 08:20:04 2009 From: alo at louko.com (Antti Louko) Date: Sun Jan 11 08:20:15 2009 Subject: usb/107827: [ohci] [panic] ohci_add_done addr not found Message-ID: <200901111620.n0BGK3pJ092108@freefall.freebsd.org> The following reply was made to PR usb/107827; it has been noted by GNATS. From: Antti Louko To: bug-followup@FreeBSD.org Cc: =?ISO-8859-1?Q?Dorian_B=FCttner?= , freebsd-usb@freebsd.org Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found Date: Sun, 11 Jan 2009 18:19:40 +0200 Dorian Büttner wrote: > I have the same board except the HDMI part, that should not disturb the > SB600 error. On your -current, did you test the GENERIC and/or the > USB2-Kernel? > Tried that yesterday and at least, it doesn't panic on boot so far. My > Logitech G15 Keyboard therefore is not detected, even after boot I can > attach/detach as muchas I want the USB simply doesn't care. > Attaching the razor mouse drops into db> > But I was able to mount a stick and get a dmesg out of it, if that is > anything useful. Dorian inspired an idea, and I configured a kernel _without_ USB and then loaded USB with different _load="YES" lines in loader.conf. After this, there is no more panic. I still have to find a way to boot from USB memory. I think loading mfs from USB should work as boot loader is supposed to support loading from USB memory. Still, the bug needs to be fixed. From alo at louko.com Sun Jan 11 08:38:51 2009 From: alo at louko.com (Antti Louko) Date: Sun Jan 11 08:38:58 2009 Subject: usb/107827: [ohci] [panic] ohci_add_done addr not found In-Reply-To: <4969E814.9010307@gmx.de> References: <200901111140.n0BBe9rQ081118@freefall.freebsd.org> <4969E814.9010307@gmx.de> Message-ID: <496A1C1C.2050703@louko.com> Dorian B?ttner wrote: > I have the same board except the HDMI part, that should not disturb the > SB600 error. On your -current, did you test the GENERIC and/or the > USB2-Kernel? > Tried that yesterday and at least, it doesn't panic on boot so far. My > Logitech G15 Keyboard therefore is not detected, even after boot I can > attach/detach as muchas I want the USB simply doesn't care. > Attaching the razor mouse drops into db> > But I was able to mount a stick and get a dmesg out of it, if that is > anything useful. Dorian inspired an idea, and I configured a kernel _without_ USB and then loaded USB with different _load="YES" lines in loader.conf. After this, there is no more panic. I still have to find a way to boot from USB memory. I think loading mfs from USB should work as boot loader is supposed to support loading from USB memory. Still, the bug needs to be fixed. From bugmaster at FreeBSD.org Mon Jan 12 03:07:02 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jan 12 03:09:33 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200901121107.n0CB70Ux092162@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o usb/130066 usb [newusb] Serial adaptor use fail with 'unsupported spe o usb/130024 usb [newusb] Sun Type 7 Unix keyboard doesn't work with us o usb/129964 usb [newusb] disconnection of ugen devices isn't logged o bin/129963 usb [newusb] usbconfig(8) fails with misleading error when o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/125072 usb [uplcom] [patch] add Mobile Action MA-620 Infrared Ada o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom][ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s o usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 298 problems total. From fabien.lementec at gmail.com Mon Jan 12 10:05:26 2009 From: fabien.lementec at gmail.com (lementec fabien) Date: Mon Jan 12 10:05:32 2009 Subject: [ prevent ehci_takecontroller from looping at infinite ] Message-ID: Hi, On an Acer Aspire 5500, freebsd is hanging in usb/ehci_pci in the ehci_takecontroller function. The device pci conf space reads invalid values 0xffffffff, making the function looping at infinite, thus never entering ehci_init. I dont know if the problem does not come from earlier, but I did the following patch: --- orig/sys/dev/usb/ehci_pci.c 2009-01-11 06:14:12.000000000 +0100 +++ new/sys/dev/usb/ehci_pci.c 2009-01-11 06:15:14.000000000 +0100 @@ -549,6 +549,10 @@ cparams = EREAD4(sc, EHCI_HCCPARAMS); + /* prevent from looping ad infinite. ehci_init will fail. */ + if (cparams == 0xffffffff) + return ; + /* Synchronise with the BIOS if it owns the controller. */ for (eecp = EHCI_HCC_EECP(cparams); eecp != 0; eecp = EHCI_EECP_NEXT(eec)) { @@ -584,6 +588,9 @@ int eecp; cparams = EREAD4(sc, EHCI_HCCPARAMS); + if (cparams == 0xffffffff) + return ; + for (eecp = EHCI_HCC_EECP(cparams); eecp >= 0x40; eecp = EHCI_EECP_NEXT(eec)) { eec = pci_read_config(self, eecp, 4); I hop it helps, Fabien. -- "What I cannot create I dont understand" From hselasky at c2i.net Mon Jan 12 10:28:32 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jan 12 10:28:38 2009 Subject: [ prevent ehci_takecontroller from looping at infinite ] In-Reply-To: References: Message-ID: <200901121930.51916.hselasky@c2i.net> On Monday 12 January 2009, lementec fabien wrote: > Hi, > > On an Acer Aspire 5500, freebsd is hanging in > usb/ehci_pci in the ehci_takecontroller function. > The device pci conf space reads invalid values > 0xffffffff, making the function looping at infinite, > thus never entering ehci_init. > > I dont know if the problem does not come from > earlier, but I did the following patch: Hi, The EHCI PCI is looping infinitely in USB1 because "int eecp" is a signed number. Sign-extension happens during the shift inside XXX_NEXT(), and it will actually loop in all cases where "cparams & 0x80000000" is non-zero! Try making the eecp variable "uint32_t". This is not a problem with USB2. Where "eecp" is already unsigned. --HPS > > --- orig/sys/dev/usb/ehci_pci.c 2009-01-11 06:14:12.000000000 +0100 > +++ new/sys/dev/usb/ehci_pci.c 2009-01-11 06:15:14.000000000 +0100 > @@ -549,6 +549,10 @@ > > cparams = EREAD4(sc, EHCI_HCCPARAMS); > > + /* prevent from looping ad infinite. ehci_init will fail. */ > + if (cparams == 0xffffffff) > + return ; > + > /* Synchronise with the BIOS if it owns the controller. */ > for (eecp = EHCI_HCC_EECP(cparams); eecp != 0; > eecp = EHCI_EECP_NEXT(eec)) { > @@ -584,6 +588,9 @@ > int eecp; > > cparams = EREAD4(sc, EHCI_HCCPARAMS); > + if (cparams == 0xffffffff) > + return ; > + > for (eecp = EHCI_HCC_EECP(cparams); eecp >= 0x40; > eecp = EHCI_EECP_NEXT(eec)) { > eec = pci_read_config(self, eecp, 4); > > I hop it helps, > > Fabien. From fp at continuit.net Mon Jan 12 19:20:03 2009 From: fp at continuit.net (Francois Pollet) Date: Mon Jan 12 19:20:10 2009 Subject: usb/126848: [usb]: USB Keyboard hangs during Installation Message-ID: <200901130320.n0D3K3ek037025@freefall.freebsd.org> The following reply was made to PR usb/126848; it has been noted by GNATS. From: "Francois Pollet" To: , Cc: Subject: Re: usb/126848: [usb]: USB Keyboard hangs during Installation Date: Tue, 13 Jan 2009 04:03:22 +0100 This is a multi-part message in MIME format. ------=_NextPart_000_01D6_01C97533.E0C74F30 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit After having this problem on a Dell Optiplex 210L with FreeBSD 6.4, I just discovered a - strange - workaround. When a new kernel is compiled without the fdc device (floppy), it appears that the ukbd1 device is correctly detected. This is the first time I succeed to get a running keyboard with FreeBSD 6.4 on that platform (no PS/2 keyboard connector) It might be the same issue Hope this might help to fix the problem Regards Francois Pollet Continuity Belgium ------=_NextPart_000_01D6_01C97533.E0C74F30 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable =EF=BB=BF
After = having this=20 problem on a Dell Optiplex 210L with FreeBSD 6.4, I just discovered a - = strange=20 - workaround.
 
When a = new kernel is=20 compiled without the fdc device (floppy), it appears that the ukbd1 = device=20 is correctly detected.
This = is the first=20 time I succeed to get a running keyboard with FreeBSD 6.4 on that = platform (no=20 PS/2 keyboard connector)
 
It = might be the same=20 issue
Hope = this might help=20 to fix the problem

Regards

Francois Pollet
Continuity
Belgium

= ------=_NextPart_000_01D6_01C97533.E0C74F30-- From mah at jump-ing.de Tue Jan 13 12:50:03 2009 From: mah at jump-ing.de (Markus Hitter) Date: Tue Jan 13 12:50:09 2009 Subject: usb/98343: [boot] BBB reset failed errors with Creative Muvo MP3 player; can't boot with external USB 2.0 drive powered up Message-ID: <200901132050.n0DKo2h9071750@freefall.freebsd.org> The following reply was made to PR usb/98343; it has been noted by GNATS. From: Markus Hitter To: bug-followup@FreeBSD.org, wtd@pobox.com Cc: Subject: Re: usb/98343: [boot] BBB reset failed errors with Creative Muvo MP3 player; can't boot with external USB 2.0 drive powered up Date: Tue, 13 Jan 2009 21:14:28 +0100 I tried 7.0 Release and 7.1 Release and here as well, writing to pen drives is unreliable enough to be unusable. How to repeat: - Insert a pen drive formatted to UFS2 [*]. - Mount it. - Write files. dd, cp, scp, whatever. [*] To format the drive I had to format a disk image an dd' this out to the drive on Linux. What happens: Typically after 2 or 3 MB, write operations hang. Looking at system messages (dmsg), I get: umass1: BBB reset failed, TIMEOUT (null): at uhub0 port 2 (addr 2) disconnected umass1: BBB reset failed, TIMEOUT umass1: BBB reset failed, TIMEOUT umass1: BBB reset failed, TIMEOUT umass1: BBB reset failed, TIMEOUT g_vfs_done():da1s1[WRITE(offset=65536, length=2048)]error = 5 g_vfs_done():da1s1[WRITE(offset=6144000, length=2048)]error = 5 g_vfs_done():da1s1[WRITE(offset=963479552, length=8192)]error = 5 g_vfs_done():da1s1[WRITE(offset=963487744, length=2048)]error = 5 g_vfs_done():da1s1[WRITE(offset=963489792, length=2048)]error = 5 [... repeated more often] Additional infos: The drive works flawlessly on several other computers, including Linux and Mac OS X. I'd be glad to debug this, but I need a few hints on how to do this. My system (custom kernel): FreeBSD 7.0-RELEASE #0: Tue Jan 13 19:49:33 GMT-2 2009 root@freebsdfortinybsd.jump-ing.de:/usr/obj/usr/src/sys/TINYBSD Timecounter "i8254" frequency 1193124 Hz quality 0 CPU: Geode(TM) Integrated Processor by AMD PCS (498.03-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x5a2 Stepping = 2 Features=0x88a93d AMD Features=0xc0400000 real memory = 469434368 (447 MB) avail memory = 437276672 (417 MB) K6-family MTRR support enabled (2 registers) [...] da1 at umass-sim1 bus 1 target 0 lun 0 da1: < USB DISK 30X PMAP> Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 1968MB (4030464 512 byte sectors: 255H 63S/T 250C) [...] From mah at jump-ing.de Wed Jan 14 06:50:00 2009 From: mah at jump-ing.de (Markus Hitter) Date: Wed Jan 14 06:50:08 2009 Subject: Bug 98343: USB pen drives unusable Message-ID: Hello all, can I direct your attention towards Bug 98343 for a moment? It pretty much looks like this misbehaviour isn't limited to MP3 players, but to USB pen drives (or some class of those) in general and makes FreeBSD look a bit limited. As I plan to make more use of USB drives in the future, I'd like to work on getting this fixed. Did somebody else give it a try already? Thanks, MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From garga at freebsd.org Thu Jan 15 07:30:04 2009 From: garga at freebsd.org (Renato Botelho) Date: Thu Jan 15 07:30:10 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901151530.n0FFU30D000593@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Renato Botelho To: Hans Petter Selasky Cc: bug-followup@freebsd.org Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Thu, 15 Jan 2009 13:24:20 -0200 On Sat, Jan 03, 2009 at 12:54:21AM +0100, Hans Petter Selasky wrote: > Hi, > > Have you tried on different computers? > > Is the problem the same everwhere? > > Are you willing to sponsor one of those keyboards for debugging purpose? > > Could you attach to this PR dumps of the keyboard descriptors using the > usbconfig dump commands? See "usbconfig -h" if you need help. > > For example: > > usbconfig -u xxx -a yyy dump_curr_config_desc dump_device_desc > > And: "dmesg | grep -i usb" I have news about it, i'm writing this email using the sun keyboard. I discovered that it works on one usb port of my box IF i connect the mouse on another port, let me explain. With current usb stack, I connect mouse on a usb port of the Keyboard (it has 3), and connect keyboard on any computer usb port and it works fine. To make it work with newusb, i need to boot the machine, connect mouse on a usb port and after this connect keyboard on an specyfic usb port. Here is the data you asked me: usbconfig output: ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0100 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0100 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0100 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0100 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x0000 idProduct = 0x0000 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen1.3: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0430 idProduct = 0x100e bcdDevice = 0x0104 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen1.4: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0430 idProduct = 0x00a2 bcdDevice = 0x0104 iManufacturer = 0x0000 iProduct = 0x0001 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x21, 0x01, 0x22, 0x40, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 ugen1.2: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0566 idProduct = 0x4006 bcdDevice = 0x5127 iManufacturer = 0x0000 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x34, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0004 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 and dmesg | grep -i ussb: root@botelhor.bplab.local:/usr/obj/usr/src/sys/USB2-GARGA uhci0: port 0xb000-0xb01f irq 21 at device 16.0 on pci0 usbus0: on uhci0 uhci1: port 0xb400-0xb41f irq 21 at device 16.1 on pci0 usbus1: on uhci1 uhci2: port 0xb800-0xb81f irq 21 at device 16.2 on pci0 usbus2: on uhci2 uhci3: port 0xbc00-0xbc1f irq 21 at device 16.3 on pci0 usbus3: on uhci3 ehci0: mem 0xdf004000-0xdf0040ff irq 21 at device 16.4 on pci0 usbus4: EHCI version 1.0 usbus4: on ehci0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 ushub0: on usbus0 ugen1.1: at usbus1 ushub1: on usbus1 ugen2.1: at usbus2 ushub2: on usbus2 ugen3.1: at usbus3 ushub3: on usbus3 ugen4.1: at usbus4 ushub4: on usbus4 usb2_alloc_device:1401: set address 2 failed (ignored) usb2_alloc_device:1436: getting device descriptor at addr 2 failed! usb2_req_re_enumerate:1366: addr=2, set address failed! (ignored) usb2_req_re_enumerate:1379: getting device descriptor at addr 2 failed! usb2_req_re_enumerate:1366: addr=2, set address failed! (ignored) usb2_req_re_enumerate:1379: getting device descriptor at addr 2 failed! ugen1.2: <> at usbus1 (disconnected) usb2_alloc_device:1401: set address 2 failed (ignored) usb2_alloc_device:1436: getting device descriptor at addr 2 failed! usb2_req_re_enumerate:1366: addr=2, set address failed! (ignored) usb2_req_re_enumerate:1379: getting device descriptor at addr 2 failed! usb2_req_re_enumerate:1366: addr=2, set address failed! (ignored) usb2_req_re_enumerate:1379: getting device descriptor at addr 2 failed! ugen1.2: <> at usbus1 (disconnected) usb2_alloc_device:1401: set address 2 failed (ignored) usb2_alloc_device:1436: getting device descriptor at addr 2 failed! ugen1.2: at usbus1 ums0: on usbus1 Symlink: ums0 -> usb1.2.0.16 KLD ums.ko: depends on usb - not available ugen1.3: at usbus1 ushub5: on usbus1 ugen1.4: at usbus1 ukbd0: on usbus1 ugen1.2: at usbus1 (disconnected) ugen1.2: at usbus1 ums0: on usbus1 Symlink: ums0 -> usb1.2.0.16 KLD ums.ko: depends on usb - not available Do you need any more information? Thanks -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc Some husbands are living proof that a woman can take a joke. From hselasky at freebsd.org Thu Jan 15 08:40:03 2009 From: hselasky at freebsd.org (Hans Petter Selasky) Date: Thu Jan 15 08:40:09 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901151640.n0FGe2K1055311@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Hans Petter Selasky To: Renato Botelho Cc: bug-followup@freebsd.org Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Thu, 15 Jan 2009 16:37:43 +0100 On Thursday 15 January 2009, Renato Botelho wrote: > On Sat, Jan 03, 2009 at 12:54:21AM +0100, Hans Petter Selasky wrote: > > Hi, > > > > Have you tried on different computers? > > > > Is the problem the same everwhere? > > > > Do you need any more information? Hi, I see that your HC is a VIA. They have a known problem about set address I've been told. I will see if I can work it around. I will notify you when there are patches ready to test. --HPS From gavin at FreeBSD.org Fri Jan 16 03:48:34 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Fri Jan 16 03:48:40 2009 Subject: usb/128590: [patch] [newusb] Updates to NOTES for new USB stack Message-ID: <200901161148.n0GBmXVu054490@freefall.freebsd.org> Old Synopsis: [patch] Updates to NOTES for new USB stack New Synopsis: [patch] [newusb] Updates to NOTES for new USB stack Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: gavin Responsible-Changed-When: Fri Jan 16 11:47:57 UTC 2009 Responsible-Changed-Why: On second thoughts, reassign to -usb maintainers. http://www.freebsd.org/cgi/query-pr.cgi?pr=128590 From w8hdkim at gmail.com Sun Jan 18 02:40:27 2009 From: w8hdkim at gmail.com (Kim Culhan) Date: Sun Jan 18 02:40:34 2009 Subject: Novatel U727 usb attach vendor not recognized Message-ID: <89dbfdc30901180219g5585c29dr35b9d291f4870d06@mail.gmail.com> Running 8-current from 1-17-09 with generic kernel config, when connecting a Novatel U727 to usb this is logged: Unknown USB device: vendor 0x1410 product 0x5010 bus uhub0 Any help here is greatly appreciated -kim -- From w8hdkim at gmail.com Sun Jan 18 03:27:12 2009 From: w8hdkim at gmail.com (Kim Culhan) Date: Sun Jan 18 03:27:19 2009 Subject: Novatel U727 usb attach vendor not recognized -Update: recognized after 15 minute delay Message-ID: <89dbfdc30901180327o23bd6a11k38b5a0bd0cdde2e@mail.gmail.com> While tailing /var/log/messages the following was noted, attachment of the Novatel to usb was recognized after a ~15 minute delay The log shows: Jan 18 05:39:42 lapster root: Unknown USB device: vendor 0x1410 product 0x5010 bus uhub0 ~15 minute delay Jan 18 05:54:15 lapster root: Unknown USB device: vendor 0x1410 product 0x4100 bus uhub0 Jan 18 05:54:15 lapster kernel: ucom0: on uhub0 Jan 18 05:54:15 lapster kernel: ucom0: configured 4 serial ports (U0.%d) Jan 18 05:54:15 lapster kernel: ucom1: on uhub0 Jan 18 05:54:15 lapster kernel: ucom1: configured 0 serial ports (U1.%d) Attempt to repeat this action: Jan 18 06:09:07 lapster root: Unknown USB device: vendor 0x1410 product 0x5010 bus uhub0 Jan 18 06:23:39 lapster root: Unknown USB device: vendor 0x1410 product 0x4100 bus uhub0 Jan 18 06:23:39 lapster kernel: ucom0: on uhub0 Jan 18 06:23:39 lapster kernel: ucom0: configured 4 serial ports (U0.%d) Jan 18 06:23:39 lapster kernel: ucom1: on uhub0 Jan 18 06:23:39 lapster kernel: ucom1: configured 0 serial ports (U1.%d) On disconnect this is logged: Jan 18 06:25:23 lapster kernel: ucom0: at uhub0 port 2 (addr 2) disconnected Jan 18 06:25:23 lapster kernel: ucom0: detached Jan 18 06:25:23 lapster kernel: ucom1: at uhub0 port 2 (addr 2) disconnected Jan 18 06:25:23 lapster kernel: ucom1: detached -kim -- From bugmaster at FreeBSD.org Mon Jan 19 03:07:07 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jan 19 03:09:22 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200901191107.n0JB77rG063137@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o usb/130066 usb [newusb] Serial adaptor use fail with 'unsupported spe o usb/130024 usb [newusb] Sun Type 7 Unix keyboard doesn't work with us o usb/129964 usb [newusb] disconnection of ugen devices isn't logged o bin/129963 usb [newusb] usbconfig(8) fails with misleading error when o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128590 usb [patch] [newusb] Updates to NOTES for new USB stack o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/125072 usb [uplcom] [patch] add Mobile Action MA-620 Infrared Ada o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s o usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 299 problems total. From weongyo.jeong at gmail.com Mon Jan 19 03:24:20 2009 From: weongyo.jeong at gmail.com (Weongyo Jeong) Date: Mon Jan 19 03:24:35 2009 Subject: HEADSUP: urtw(4) to be committed soon Message-ID: <20090119112333.GA36305@freebsd.weongyo.org> Hello, I would like to commit urtw(4) driver for supporting Realtek's 8187L wireless chipset based on USB into HEAD by the end of the week if there are no objections. And the license of files would be as follows that AFAIK it's based on OpenBSD's template license file: /*- * Copyright (c) 2008 Weongyo Jeong * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ Because I'm not a lawyer it'd definitely fail to answer about your detailed questions. Just one thing I want to is that it's okay if it's enough to use in *BSD, OpenSolaris and etc. Not want to go into troubles. :-) I'm looking for a person to port from USB to NEWUSB and if you want to test you can find the sources at: http://people.freebsd.org/~weongyo/urtw_20090119.tar.gz regards, Weongyo Jeong From theo.van.klaveren at ats-global.com Mon Jan 19 04:20:02 2009 From: theo.van.klaveren at ats-global.com (Theo van Klaveren) Date: Mon Jan 19 04:20:07 2009 Subject: usb/130736: Page fault unplugging USB stick Message-ID: <200901191212.n0JCCs8J020274@www.freebsd.org> >Number: 130736 >Category: usb >Synopsis: Page fault unplugging USB stick >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 19 12:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Theo van Klaveren >Release: 7.1-RELEASE >Organization: ATS Applied Tech Systems BV >Environment: FreeBSD beheerbox.beheerbox.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Unplugging any USB mass storage device while it is being initialized leads to a kernel page fault. This is 100% reproducible and as the machine is being used by many people, it panics often because of this bug. The relevant bits from dmesg: usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered This is the device (but any USB mass storage device will work): umass0:

on uhub3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 480MB (983040 512 byte sectors: 64H 32S/T 480C) The following crash log information is typed in by hand, so please excuse any errors: umass0: BBB reset failed, IOERROR umass0: at uhub3 port 6 (addr 2) disconnected (da0: umass-sim0:0:0:0): lost device Fatal trap 12: page fault while in kernel mode cpuid=0; apic id=00 fault virtual address = 0x0 fault code = supervisor write, page not present instruction pointer = 0x20: 0xc046ae6b stack pointer = 0x28: 0xe3f87b0c frame pointer = 0x28: 0xe3f87b28 code segment = base 0x0, limit 0xffffff, type 0x1b = DPL 0, pres 0, def32 1, gran 1 processor eflags = int enabled, resume, IOPL=0 current process = 2 (g_event) trap number = 12 panic: page fault cpuid=0 The instruction pointer points to the xpt_done() function. From disassembly, it looks like the crash is around here (from http://svn.freebsd.org/viewvc/base/release/7.1.0/sys/cam/cam_xpt.c?revision=186660&view=markup): switch (done_ccb->ccb_h.path->periph->type) { case CAM_PERIPH_BIO: TAILQ_INSERT_TAIL(&sim->sim_doneq, &done_ccb->ccb_h, sim_links.tqe); done_ccb->ccb_h.pinfo.index = CAM_DONEQ_INDEX; If more information is required, please let me know. I'm not familiar enough with this code to really dive in. I have one or two vmcores lying around which I could send to anyone investigating this issue. >How-To-Repeat: - Insert USB mass storage device (a memory stick will do). - Remove it during initialisation (within two seconds or so). - Page fault. >Fix: - Educate users (right...) >Release-Note: >Audit-Trail: >Unformatted: From Theo.van.Klaveren at ats-global.com Mon Jan 19 05:20:02 2009 From: Theo.van.Klaveren at ats-global.com (Theo van Klaveren) Date: Mon Jan 19 05:20:08 2009 Subject: usb/130736: Page fault unplugging USB stick Message-ID: <200901191320.n0JDK2Co064234@freefall.freebsd.org> The following reply was made to PR usb/130736; it has been noted by GNATS. From: "Theo van Klaveren" To: Cc: Subject: Re: usb/130736: Page fault unplugging USB stick Date: Mon, 19 Jan 2009 14:04:22 +0100 This is a multi-part message in MIME format. ------_=_NextPart_001_01C97A36.87213BC8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Yup, crash is at the TAILQ_INSERT_TAIL, line 4835: =20 (kgdb) bt #0 doadump () at pcpu.h:196 #1 0xc0790ea7 in boot (howto=3D260) at = /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc0791179 in panic (fmt=3DVariable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc0aa338c in trap_fatal (frame=3D0xe406c974, eva=3D0) at /usr/src/sys/i386/i386/trap.c:939 #4 0xc0aa3610 in trap_pfault (frame=3D0xe406c974, usermode=3D0, = eva=3D0) at /usr/src/sys/i386/i386/trap.c:852 #5 0xc0aa3fcc in trap (frame=3D0xe406c974) at = /usr/src/sys/i386/i386/trap.c:530 #6 0xc0a89e3b in calltrap () at /usr/src/sys/i386/i386/exception.s:159 #7 0xc046ae6b in xpt_done (done_ccb=3D0xc4030400) at /usr/src/sys/cam/cam_xpt.c:4835 #8 0xc047154e in probedone (periph=3D0xc47ee200, done_ccb=3DVariable = "done_ccb" is not available. ) at /usr/src/sys/cam/cam_xpt.c:6392 #9 0xc046cff1 in camisr_runqueue (V_queue=3DVariable "V_queue" is not = available. ) at /usr/src/sys/cam/cam_xpt.c:7316 #10 0xc047093f in xpt_bus_deregister (pathid=3D0) at /usr/src/sys/cam/cam_xpt.c:4421 #11 0xc06f6dc0 in umass_cam_detach_sim (sc=3D0xc4467a00) at /usr/src/sys/dev/usb/umass.c:2716 #12 0xc06f6e6d in umass_detach (self=3D0xc47ee680) at /usr/src/sys/dev/usb/umass.c:1564 #13 0xc07b5e38 in device_detach (dev=3D0xc47ee680) at device_if.h:212 #14 0xc06fdfe2 in usb_disconnect_port (up=3D0xc3fd9494, = parent=3D0xc3fece80) at /usr/src/sys/dev/usb/usb_subr.c:1380 #15 0xc06f3e6e in uhub_explore (dev=3D0xc3fecc80) at /usr/src/sys/dev/usb/uhub.c:462 #16 0xc06fc195 in usb_discover (v=3DVariable "v" is not available. ) at /usr/src/sys/dev/usb/usb.c:724 #17 0xc06fd187 in usb_event_thread (arg=3D0xc3fd4880) at /usr/src/sys/dev/usb/usb.c:440 #18 0xc076ca19 in fork_exit (callout=3D0xc06fd0d0 , arg=3D0xc3fd4880, frame=3D0xe406cd38) at = /usr/src/sys/kern/kern_fork.c:804 #19 0xc0a89eb0 in fork_trampoline () at = /usr/src/sys/i386/i386/exception.s:264 =20 (kgdb) print *sim $2 =3D {sim_action =3D 0xc046af70 , sim_poll =3D 0xc0469b00 , sim_name =3D 0xc0af0b2e = "dead_sim", softc =3D 0x0, mtx =3D 0x0, sim_doneq =3D {tqh_first =3D 0x0, tqh_last = =3D 0x0}, links =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, path_id =3D 0, = unit_number =3D 0, bus_id =3D 0, max_tagged_dev_openings =3D 0, max_dev_openings =3D 0, = flags =3D 0, callout =3D {c_links =3D {sle =3D {sle_next =3D 0x0}, tqe =3D = {tqe_next =3D 0x0, tqe_prev =3D 0x0}}, c_time =3D 0, c_arg =3D 0x0, c_func =3D 0, = c_mtx =3D 0x0, c_flags =3D 0}, devq =3D 0x0, ccb_freeq =3D {slh_first =3D = 0xc4022400}, max_ccbs =3D 0, ccb_count =3D 0} =20 (kgdb) print done_ccb->ccb_h $5 =3D {pinfo =3D {priority =3D 5, generation =3D 5, index =3D -1}, = xpt_links =3D {le =3D { le_next =3D 0x0, le_prev =3D 0x0}, sle =3D {sle_next =3D 0x0}, tqe = =3D { tqe_next =3D 0x0, tqe_prev =3D 0x0}, stqe =3D {stqe_next =3D = 0x0}}, sim_links =3D { le =3D {le_next =3D 0x0, le_prev =3D 0x0}, sle =3D {sle_next =3D = 0x0}, tqe =3D { tqe_next =3D 0x0, tqe_prev =3D 0x0}, stqe =3D {stqe_next =3D = 0x0}}, periph_links =3D {le =3D {le_next =3D 0x0, le_prev =3D 0xc4015c00}, = sle =3D { sle_next =3D 0x0}, tqe =3D {tqe_next =3D 0x0, tqe_prev =3D = 0xc4015c00}, stqe =3D { stqe_next =3D 0x0}}, retry_count =3D 0, cbfcnp =3D 0xc046e8f0 = , func_code =3D XPT_SCAN_LUN, status =3D 1, path =3D 0xc480d290, path_id = =3D 0, target_id =3D 0, target_lun =3D 0, flags =3D 0, periph_priv =3D = {entries =3D {{ ptr =3D 0xc480d2a0, field =3D 3296776864, bytes =3D " = =D2\200=C4"}, {ptr =3D 0x0, field =3D 0, bytes =3D "\000\000\000"}}, bytes =3D " = =D2\200=C4\000\000\000"}, sim_priv =3D {entries =3D {{ptr =3D 0x0, field =3D 0, bytes =3D = "\000\000\000"}, { ptr =3D 0x0, field =3D 0, bytes =3D "\000\000\000"}}, bytes =3D "\000\000\000\000\000\000\000"}, timeout =3D 0, timeout_ch = =3D { callout =3D 0x0}} =20 Hope this helps. =20 ------_=_NextPart_001_01C97A36.87213BC8 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Yup, crash is at the = TAILQ_INSERT_TAIL, line 4835:

 

(kgdb) bt

#0  doadump () at = pcpu.h:196

#1  0xc0790ea7 in boot = (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:418

#2  0xc0791179 in panic = (fmt=3DVariable "fmt" is not available.

) at = /usr/src/sys/kern/kern_shutdown.c:574

#3  0xc0aa338c in = trap_fatal (frame=3D0xe406c974, eva=3D0)

    at /usr/src/sys/i386/i386/trap.c:939

#4  0xc0aa3610 in = trap_pfault (frame=3D0xe406c974, usermode=3D0, eva=3D0)

    at /usr/src/sys/i386/i386/trap.c:852

#5  0xc0aa3fcc in trap (frame=3D0xe406c974) at = /usr/src/sys/i386/i386/trap.c:530

#6  0xc0a89e3b in calltrap = () at /usr/src/sys/i386/i386/exception.s:159

#7  0xc046ae6b in xpt_done (done_ccb=3D0xc4030400)

    at /usr/src/sys/cam/cam_xpt.c:4835

#8  0xc047154e in probedone = (periph=3D0xc47ee200, done_ccb=3DVariable "done_ccb" is not = available.

)

    at /usr/src/sys/cam/cam_xpt.c:6392

#9  0xc046cff1 in = camisr_runqueue (V_queue=3DVariable "V_queue" is not = available.

) at = /usr/src/sys/cam/cam_xpt.c:7316

#10 0xc047093f in xpt_bus_deregister = (pathid=3D0)

    at /usr/src/sys/cam/cam_xpt.c:4421

#11 0xc06f6dc0 in = umass_cam_detach_sim (sc=3D0xc4467a00)

    at /usr/src/sys/dev/usb/umass.c:2716

#12 0xc06f6e6d in umass_detach (self=3D0xc47ee680)

    at /usr/src/sys/dev/usb/umass.c:1564

#13 0xc07b5e38 in device_detach (dev=3D0xc47ee680) at device_if.h:212

#14 0xc06fdfe2 in = usb_disconnect_port (up=3D0xc3fd9494, parent=3D0xc3fece80)

    at /usr/src/sys/dev/usb/usb_subr.c:1380

#15 0xc06f3e6e in uhub_explore (dev=3D0xc3fecc80)

    at = /usr/src/sys/dev/usb/uhub.c:462

#16 0xc06fc195 in usb_discover = (v=3DVariable "v" is not available.

) at = /usr/src/sys/dev/usb/usb.c:724

#17 0xc06fd187 in = usb_event_thread (arg=3D0xc3fd4880)

    at /usr/src/sys/dev/usb/usb.c:440

#18 0xc076ca19 in fork_exit (callout=3D0xc06fd0d0 <usb_event_thread>,

    = arg=3D0xc3fd4880, frame=3D0xe406cd38) at = /usr/src/sys/kern/kern_fork.c:804

#19 0xc0a89eb0 in = fork_trampoline () at /usr/src/sys/i386/i386/exception.s:264

 

(kgdb) print = *sim

$2 =3D {sim_action =3D = 0xc046af70 <dead_sim_action>,

  sim_poll =3D 0xc0469b00 <dead_sim_poll>, sim_name =3D 0xc0af0b2e = "dead_sim",

  softc =3D 0x0, mtx =3D = 0x0, sim_doneq =3D {tqh_first =3D 0x0, tqh_last =3D 0x0},

  links =3D {tqe_next =3D = 0x0, tqe_prev =3D 0x0}, path_id =3D 0, unit_number =3D 0,

  bus_id =3D 0, = max_tagged_dev_openings =3D 0, max_dev_openings =3D 0, flags =3D 0,

  callout =3D {c_links =3D = {sle =3D {sle_next =3D 0x0}, tqe =3D {tqe_next =3D 0x0,

        tqe_prev =3D 0x0}}, c_time =3D 0, c_arg =3D 0x0, c_func =3D 0, c_mtx =3D = 0x0,

    c_flags =3D = 0}, devq =3D 0x0, ccb_freeq =3D {slh_first =3D 0xc4022400},

  max_ccbs =3D 0, = ccb_count =3D 0}

 

(kgdb) print = done_ccb->ccb_h

$5 =3D {pinfo =3D {priority =3D = 5, generation =3D 5, index =3D -1}, xpt_links =3D {le =3D {

      = le_next =3D 0x0, le_prev =3D 0x0}, sle =3D {sle_next =3D 0x0}, tqe =3D = {

      = tqe_next =3D 0x0, tqe_prev =3D 0x0}, stqe =3D {stqe_next =3D 0x0}}, sim_links =3D = {

    le =3D = {le_next =3D 0x0, le_prev =3D 0x0}, sle =3D {sle_next =3D 0x0}, tqe =3D = {

      = tqe_next =3D 0x0, tqe_prev =3D 0x0}, stqe =3D {stqe_next =3D = 0x0}},

  periph_links =3D {le =3D = {le_next =3D 0x0, le_prev =3D 0xc4015c00}, sle =3D {

      = sle_next =3D 0x0}, tqe =3D {tqe_next =3D 0x0, tqe_prev =3D 0xc4015c00}, stqe =3D = {

      = stqe_next =3D 0x0}}, retry_count =3D 0, cbfcnp =3D 0xc046e8f0 = <xpt_scan_bus>,

  func_code =3D = XPT_SCAN_LUN, status =3D 1, path =3D 0xc480d290, path_id =3D 0,

  target_id =3D 0, = target_lun =3D 0, flags =3D 0, periph_priv =3D {entries =3D {{

        ptr =3D 0xc480d2a0, field =3D 3296776864, bytes =3D " Ò\200Ä"}, {ptr =3D = 0x0,

        field =3D 0, bytes =3D "\000\000\000"}}, bytes =3D " Ò\200Ä\000\000\000"},

  sim_priv =3D {entries =3D = {{ptr =3D 0x0, field =3D 0, bytes =3D "\000\000\000"}, = {

        ptr =3D 0x0, field =3D 0, bytes =3D = "\000\000\000"}},

    bytes =3D "\000\000\000\000\000\000\000"}, timeout =3D 0, timeout_ch =3D = {

    = callout =3D 0x0}}

 

Hope this helps.

 

------_=_NextPart_001_01C97A36.87213BC8-- From rwatson at FreeBSD.org Mon Jan 19 08:35:27 2009 From: rwatson at FreeBSD.org (Robert Watson) Date: Mon Jan 19 08:35:34 2009 Subject: HEADSUP: urtw(4) to be committed soon In-Reply-To: <20090119112333.GA36305@freebsd.weongyo.org> References: <20090119112333.GA36305@freebsd.weongyo.org> Message-ID: On Mon, 19 Jan 2009, Weongyo Jeong wrote: > I would like to commit urtw(4) driver for supporting Realtek's 8187L > wireless chipset based on USB into HEAD by the end of the week if there are > no objections. And the license of files would be as follows that AFAIK it's > based on OpenBSD's template license file: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/pref-license.html > > /*- > * Copyright (c) 2008 Weongyo Jeong > * > * Permission to use, copy, modify, and distribute this software for any > * purpose with or without fee is hereby granted, provided that the above > * copyright notice and this permission notice appear in all copies. > * > * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF > * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. > */ > > Because I'm not a lawyer it'd definitely fail to answer about your > detailed questions. Just one thing I want to is that it's okay if it's > enough to use in *BSD, OpenSolaris and etc. Not want to go into > troubles. :-) > > I'm looking for a person to port from USB to NEWUSB and if you want to > test you can find the sources at: > > http://people.freebsd.org/~weongyo/urtw_20090119.tar.gz > > regards, > Weongyo Jeong > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From brooks at freebsd.org Mon Jan 19 09:07:34 2009 From: brooks at freebsd.org (Brooks Davis) Date: Mon Jan 19 09:07:54 2009 Subject: HEADSUP: urtw(4) to be committed soon In-Reply-To: References: <20090119112333.GA36305@freebsd.weongyo.org> Message-ID: <20090119164420.GD16785@lor.one-eyed-alien.net> On Mon, Jan 19, 2009 at 04:35:24PM +0000, Robert Watson wrote: > > On Mon, 19 Jan 2009, Weongyo Jeong wrote: > >> I would like to commit urtw(4) driver for supporting Realtek's 8187L >> wireless chipset based on USB into HEAD by the end of the week if there >> are no objections. And the license of files would be as follows that >> AFAIK it's based on OpenBSD's template license file: > > http://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/pref-license.html This file is outdated. While this remains our prefered license, the current OpenBSD prefered license is the ISC licesed which is allowed by the license policy we published to developers last year. We should probably replace this page with that policy. -- Brooks >> /*- >> * Copyright (c) 2008 Weongyo Jeong >> * >> * Permission to use, copy, modify, and distribute this software for any >> * purpose with or without fee is hereby granted, provided that the above >> * copyright notice and this permission notice appear in all copies. >> * >> * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES >> * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF >> * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR >> * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES >> * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN >> * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF >> * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. >> */ >> >> Because I'm not a lawyer it'd definitely fail to answer about your >> detailed questions. Just one thing I want to is that it's okay if it's >> enough to use in *BSD, OpenSolaris and etc. Not want to go into >> troubles. :-) >> >> I'm looking for a person to port from USB to NEWUSB and if you want to >> test you can find the sources at: >> >> http://people.freebsd.org/~weongyo/urtw_20090119.tar.gz >> >> regards, >> Weongyo Jeong >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090119/a80d0d96/attachment.pgp From joel at FreeBSD.org Mon Jan 19 09:30:03 2009 From: joel at FreeBSD.org (Joel Dahl) Date: Mon Jan 19 09:30:41 2009 Subject: HEADSUP: urtw(4) to be committed soon In-Reply-To: <20090119112333.GA36305@freebsd.weongyo.org> References: <20090119112333.GA36305@freebsd.weongyo.org> Message-ID: <4974AE57.80005@FreeBSD.org> Weongyo Jeong skrev: > Hello, > > I would like to commit urtw(4) driver for supporting Realtek's 8187L > wireless chipset based on USB into HEAD by the end of the week if there > are no objections. And the license of files would be as follows that > AFAIK it's based on OpenBSD's template license file: > > /*- > * Copyright (c) 2008 Weongyo Jeong > * > * Permission to use, copy, modify, and distribute this software for any > * purpose with or without fee is hereby granted, provided that the above > * copyright notice and this permission notice appear in all copies. > * > * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF > * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. > */ > > Because I'm not a lawyer it'd definitely fail to answer about your > detailed questions. Just one thing I want to is that it's okay if it's > enough to use in *BSD, OpenSolaris and etc. Not want to go into > troubles. :-) Well, the FreeBSD project uses the following license: /*- * Copyright (c) [year] [your name] * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -- Joel From imp at bsdimp.com Mon Jan 19 10:14:52 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Mon Jan 19 10:14:59 2009 Subject: HEADSUP: urtw(4) to be committed soon In-Reply-To: <4974AE57.80005@FreeBSD.org> References: <20090119112333.GA36305@freebsd.weongyo.org> <4974AE57.80005@FreeBSD.org> Message-ID: <20090119.111407.-1037166918.imp@bsdimp.com> In message: <4974AE57.80005@FreeBSD.org> Joel Dahl writes: : Well, the FreeBSD project uses the following license: While this is the preferred license for the project, core@ published a license policy for files in the three last year or the year before. The ISC license, which was posted but I've cropped for my reply, is one of the ones on that list. While it may be preferable to have the license that Joel quoted, there's nothing wrong with the ISC license. Warner From linimon at FreeBSD.org Mon Jan 19 17:13:30 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Mon Jan 19 17:13:35 2009 Subject: usb/121184: [uipaq] [patch] add ids from linux ipaq driver (plus a "quirk") Message-ID: <200901200113.n0K1DSGM037123@freefall.freebsd.org> Synopsis: [uipaq] [patch] add ids from linux ipaq driver (plus a "quirk") State-Changed-From-To: open->patched State-Changed-By: linimon State-Changed-When: Tue Jan 20 01:13:16 UTC 2009 State-Changed-Why: Note that a fix has been committed to -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=121184 From linimon at FreeBSD.org Mon Jan 19 17:24:54 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Mon Jan 19 17:24:59 2009 Subject: usb/117075: [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 Message-ID: <200901200124.n0K1Orj3044598@freefall.freebsd.org> Synopsis: [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Tue Jan 20 01:24:44 UTC 2009 State-Changed-Why: Apparently already committed. http://www.freebsd.org/cgi/query-pr.cgi?pr=117075 From freebsdusb at bindone.de Tue Jan 20 18:57:14 2009 From: freebsdusb at bindone.de (Michael) Date: Tue Jan 20 18:57:20 2009 Subject: Device IDs for HP hs2300 HSDPA modem In-Reply-To: <200812041544.57108.hselasky@c2i.net> References: <492D6E0D.7020500@bindone.de> <200812031631.59515.hselasky@c2i.net> <49379FFF.6000007@bindone.de> <200812041544.57108.hselasky@c2i.net> Message-ID: <4976888B.5070209@bindone.de> Hello Hans Petter, Hans Petter Selasky wrote: > On Thursday 04 December 2008, Michael wrote: > >> Hans Petter Selasky wrote: >> >>> On Wednesday 03 December 2008, Michael wrote: >>> >>>> Hans Petter Selasky wrote: >>>> >>>>> On Tuesday 02 December 2008, Michael wrote: >>>>> >>>>>> 3. I tried using a current checkout of usb2 (and added all the device >>>>>> IDs necessary), but serial_3g is missing (and therefore >>>>>> commented out in sys/modules/usb2/Makefile), so I'm stuck there as >>>>>> well. Is there actual hope that the problem >>>>>> might not appear when using usb2? (all I know about usb2 is that >>>>>> it's supposed to be giant-free, no idea if it can >>>>>> handle these issues any better - seems like at least 50% of USB >>>>>> devices are violating the standard in one way or >>>>>> another anyway). >>>>>> >>>>> Alfred forgot to add the Makefile. The 3g id's are now in >>>>> core/usb2_msctest.c . I've sent him a patch to fix this, but have not >>>>> heard from him yet, assuming he is very busy. >>>>> >>>>> Just copy one of the other serial driver Makefiles and add "u3g2.c". >>>>> >>>>> --HPS >>>>> >>>> Ok, essentially this seems to work, even so there are some caveats: >>>> 1. usb2_serial_3g has to be loaded before of usb2_controller_ehci >>>> 2. When I disable the device (button or bios command) it is detached >>>> correctly, >>>> but reattaching it fails 9 out of 10 times with the following error: >>>> kernel: usb2_alloc_device:1421: set address 2 failed (ignored) >>>> kernel: usb2_alloc_device:1456: getting device descriptor at addr 2 >>>> failed! kernel: uhub_reattach_port:402: could not allocate new device! >>>> If I kldunload usb2_controller_ehci and reload it, its detected ok. >>>> usb1 has no issues performing the same operation. >>>> 3. The machine crashed once after reenabling the device. No crashdumps >>>> here, mostly because I'm stupid :( >>>> 4. There is only one serial device created (/dev/cuaU0), which >>>> represents the data interface. The control interface is not detected. >>>> (usb1 creates two interfaces /dev/cuaU0.0 for data and /dev/cuaU0.2 for >>>> control). This is essential, because even so the data interface supports >>>> most commands, it doesn't accept the PIN code entry cmomand (or other >>>> maintenance commands). For testing purposes I disabled the PIN entry >>>> requirement on the SIM and was able to get reasonable stable service (up >>>> to 250kb/s). >>>> >>>> Let me know if there is anything I can do to help debugging the issues >>>> above. I attached the patches for the HS2300 device. >>>> >>>> br >>>> michael >>>> >>> Hi, >>> >>> Try tuning the following knobs, one at a time. >>> >>> sysctl hw.usb2.ehci.no_hs=1 >>> >>> This will disable hooking on devices to high speed. >>> >>> I think there is a problem with your device! >>> >>> Another thing you can try before re-plugging: >>> >>> sysctl hw.usb2.ss_delay=2 >>> >>> Also try: >>> >>> sysctl hw.usb2.pr_recovery_delay=500 >>> >>> --HPS >>> >> None of these knobs have a lasting effect. Sometimes it works, sometimes >> it doesn't. Disconnecting/reconnecting at a fast pace confuses it >> completely (missing the event completely). That's intersting because >> usb1 seems to be able to keep track of that ok, so it should be >> possible. Do you think this relates to caveat 1 (because I think >> normally loading 3g after ehci should work)? Are there any debugging >> knobs I should use to get more useful traces? >> > > See "sysctl hw.usb2" > > >> What about 4, is there anything I can do or anybody to contact to figure >> why the control device doesn't show up at all? (or is more a missing >> feature than a bug?) >> > > Send me a dump of the usb-descriptors using: > > usbconfig -u xxx -a yyy dump_curr_config_desc > > And I will have a look at it. I suspect that the device is there, but has > another unit ID than you expect. > > --HPS > Sorry for the very late reply, I've been caught by my daytime job.... Output from usbconfig list is: ugen0.1: at usbus0, cfg=255 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON I attached you the output for all ports as requested. (usbconfig -u 0 -a 1 dump_curr_config_desc usbconfig -u 1 -a 1 dump_curr_config_desc usbconfig -u 2 -a 1 dump_curr_config_desc usbconfig -u 3 -a 1 dump_curr_config_desc usbconfig -u 4 -a 1 dump_curr_config_desc usbconfig -u 5 -a 1 dump_curr_config_desc usbconfig -u 6 -a 1 dump_curr_config_desc) I will send you my contact information for jabber, icq and yahoo in a private email. br Michael -------------- next part -------------- ugen0.1: at usbus0, cfg=255 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen5.1: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0040 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 From freebsdusb at bindone.de Tue Jan 20 18:59:16 2009 From: freebsdusb at bindone.de (Michael) Date: Tue Jan 20 18:59:23 2009 Subject: Device IDs for HP hs2300 HSDPA modem In-Reply-To: <200812041544.57108.hselasky@c2i.net> References: <492D6E0D.7020500@bindone.de> <200812031631.59515.hselasky@c2i.net> <49379FFF.6000007@bindone.de> <200812041544.57108.hselasky@c2i.net> Message-ID: <49768F47.7090204@bindone.de> Hans Petter Selasky wrote: > On Thursday 04 December 2008, Michael wrote: > >> Hans Petter Selasky wrote: >> >>> On Wednesday 03 December 2008, Michael wrote: >>> >>>> Hans Petter Selasky wrote: >>>> >>>>> On Tuesday 02 December 2008, Michael wrote: >>>>> >>>>>> 3. I tried using a current checkout of usb2 (and added all the device >>>>>> IDs necessary), but serial_3g is missing (and therefore >>>>>> commented out in sys/modules/usb2/Makefile), so I'm stuck there as >>>>>> well. Is there actual hope that the problem >>>>>> might not appear when using usb2? (all I know about usb2 is that >>>>>> it's supposed to be giant-free, no idea if it can >>>>>> handle these issues any better - seems like at least 50% of USB >>>>>> devices are violating the standard in one way or >>>>>> another anyway). >>>>>> >>>>> Alfred forgot to add the Makefile. The 3g id's are now in >>>>> core/usb2_msctest.c . I've sent him a patch to fix this, but have not >>>>> heard from him yet, assuming he is very busy. >>>>> >>>>> Just copy one of the other serial driver Makefiles and add "u3g2.c". >>>>> >>>>> --HPS >>>>> >>>> Ok, essentially this seems to work, even so there are some caveats: >>>> 1. usb2_serial_3g has to be loaded before of usb2_controller_ehci >>>> 2. When I disable the device (button or bios command) it is detached >>>> correctly, >>>> but reattaching it fails 9 out of 10 times with the following error: >>>> kernel: usb2_alloc_device:1421: set address 2 failed (ignored) >>>> kernel: usb2_alloc_device:1456: getting device descriptor at addr 2 >>>> failed! kernel: uhub_reattach_port:402: could not allocate new device! >>>> If I kldunload usb2_controller_ehci and reload it, its detected ok. >>>> usb1 has no issues performing the same operation. >>>> 3. The machine crashed once after reenabling the device. No crashdumps >>>> here, mostly because I'm stupid :( >>>> 4. There is only one serial device created (/dev/cuaU0), which >>>> represents the data interface. The control interface is not detected. >>>> (usb1 creates two interfaces /dev/cuaU0.0 for data and /dev/cuaU0.2 for >>>> control). This is essential, because even so the data interface supports >>>> most commands, it doesn't accept the PIN code entry cmomand (or other >>>> maintenance commands). For testing purposes I disabled the PIN entry >>>> requirement on the SIM and was able to get reasonable stable service (up >>>> to 250kb/s). >>>> >>>> Let me know if there is anything I can do to help debugging the issues >>>> above. I attached the patches for the HS2300 device. >>>> >>>> br >>>> michael >>>> >>> Hi, >>> >>> Try tuning the following knobs, one at a time. >>> >>> sysctl hw.usb2.ehci.no_hs=1 >>> >>> This will disable hooking on devices to high speed. >>> >>> I think there is a problem with your device! >>> >>> Another thing you can try before re-plugging: >>> >>> sysctl hw.usb2.ss_delay=2 >>> >>> Also try: >>> >>> sysctl hw.usb2.pr_recovery_delay=500 >>> >>> --HPS >>> >> None of these knobs have a lasting effect. Sometimes it works, sometimes >> it doesn't. Disconnecting/reconnecting at a fast pace confuses it >> completely (missing the event completely). That's intersting because >> usb1 seems to be able to keep track of that ok, so it should be >> possible. Do you think this relates to caveat 1 (because I think >> normally loading 3g after ehci should work)? Are there any debugging >> knobs I should use to get more useful traces? >> > > See "sysctl hw.usb2" > > >> What about 4, is there anything I can do or anybody to contact to figure >> why the control device doesn't show up at all? (or is more a missing >> feature than a bug?) >> > > Send me a dump of the usb-descriptors using: > > usbconfig -u xxx -a yyy dump_curr_config_desc > > And I will have a look at it. I suspect that the device is there, but has > another unit ID than you expect. > > --HPS > It actually only works 1 out of 100 times now :( In general what I find interesting is that ugen0 - ugen4 come in when loading controller_uhci, while ugen5 and ugen6 are controlled by controller_ehci, BUT if the device is actually found, it will end up on ugen1.2, but only if uhci AND ehci are loaded. From freebsdusb at bindone.de Tue Jan 20 19:09:58 2009 From: freebsdusb at bindone.de (Michael) Date: Tue Jan 20 19:10:05 2009 Subject: Device IDs for HP hs2300 HSDPA modem In-Reply-To: <49768F47.7090204@bindone.de> References: <492D6E0D.7020500@bindone.de> <200812031631.59515.hselasky@c2i.net> <49379FFF.6000007@bindone.de> <200812041544.57108.hselasky@c2i.net> <49768F47.7090204@bindone.de> Message-ID: <497691CC.1030603@bindone.de> Michael wrote: > Hans Petter Selasky wrote: > >> On Thursday 04 December 2008, Michael wrote: >> >> >>> Hans Petter Selasky wrote: >>> >>> >>>> On Wednesday 03 December 2008, Michael wrote: >>>> >>>> >>>>> Hans Petter Selasky wrote: >>>>> >>>>> >>>>>> On Tuesday 02 December 2008, Michael wrote: >>>>>> >>>>>> >>>>>>> 3. I tried using a current checkout of usb2 (and added all the device >>>>>>> IDs necessary), but serial_3g is missing (and therefore >>>>>>> commented out in sys/modules/usb2/Makefile), so I'm stuck there as >>>>>>> well. Is there actual hope that the problem >>>>>>> might not appear when using usb2? (all I know about usb2 is that >>>>>>> it's supposed to be giant-free, no idea if it can >>>>>>> handle these issues any better - seems like at least 50% of USB >>>>>>> devices are violating the standard in one way or >>>>>>> another anyway). >>>>>>> >>>>>>> >>>>>> Alfred forgot to add the Makefile. The 3g id's are now in >>>>>> core/usb2_msctest.c . I've sent him a patch to fix this, but have not >>>>>> heard from him yet, assuming he is very busy. >>>>>> >>>>>> Just copy one of the other serial driver Makefiles and add "u3g2.c". >>>>>> >>>>>> --HPS >>>>>> >>>>>> >>>>> Ok, essentially this seems to work, even so there are some caveats: >>>>> 1. usb2_serial_3g has to be loaded before of usb2_controller_ehci >>>>> 2. When I disable the device (button or bios command) it is detached >>>>> correctly, >>>>> but reattaching it fails 9 out of 10 times with the following error: >>>>> kernel: usb2_alloc_device:1421: set address 2 failed (ignored) >>>>> kernel: usb2_alloc_device:1456: getting device descriptor at addr 2 >>>>> failed! kernel: uhub_reattach_port:402: could not allocate new device! >>>>> If I kldunload usb2_controller_ehci and reload it, its detected ok. >>>>> usb1 has no issues performing the same operation. >>>>> 3. The machine crashed once after reenabling the device. No crashdumps >>>>> here, mostly because I'm stupid :( >>>>> 4. There is only one serial device created (/dev/cuaU0), which >>>>> represents the data interface. The control interface is not detected. >>>>> (usb1 creates two interfaces /dev/cuaU0.0 for data and /dev/cuaU0.2 for >>>>> control). This is essential, because even so the data interface supports >>>>> most commands, it doesn't accept the PIN code entry cmomand (or other >>>>> maintenance commands). For testing purposes I disabled the PIN entry >>>>> requirement on the SIM and was able to get reasonable stable service (up >>>>> to 250kb/s). >>>>> >>>>> Let me know if there is anything I can do to help debugging the issues >>>>> above. I attached the patches for the HS2300 device. >>>>> >>>>> br >>>>> michael >>>>> >>>>> >>>> Hi, >>>> >>>> Try tuning the following knobs, one at a time. >>>> >>>> sysctl hw.usb2.ehci.no_hs=1 >>>> >>>> This will disable hooking on devices to high speed. >>>> >>>> I think there is a problem with your device! >>>> >>>> Another thing you can try before re-plugging: >>>> >>>> sysctl hw.usb2.ss_delay=2 >>>> >>>> Also try: >>>> >>>> sysctl hw.usb2.pr_recovery_delay=500 >>>> >>>> --HPS >>>> >>>> >>> None of these knobs have a lasting effect. Sometimes it works, sometimes >>> it doesn't. Disconnecting/reconnecting at a fast pace confuses it >>> completely (missing the event completely). That's intersting because >>> usb1 seems to be able to keep track of that ok, so it should be >>> possible. Do you think this relates to caveat 1 (because I think >>> normally loading 3g after ehci should work)? Are there any debugging >>> knobs I should use to get more useful traces? >>> >>> >> See "sysctl hw.usb2" >> >> >> >>> What about 4, is there anything I can do or anybody to contact to figure >>> why the control device doesn't show up at all? (or is more a missing >>> feature than a bug?) >>> >>> >> Send me a dump of the usb-descriptors using: >> >> usbconfig -u xxx -a yyy dump_curr_config_desc >> >> And I will have a look at it. I suspect that the device is there, but has >> another unit ID than you expect. >> >> --HPS >> >> > It actually only works 1 out of 100 times now :( > In general what I find interesting is that ugen0 - ugen4 come in when > loading controller_uhci, while ugen5 and ugen6 are controlled by > controller_ehci, BUT if the device is actually found, it will end up on > ugen1.2, but only if uhci AND ehci are loaded. > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > Sorry about the ongoing bombardment... I figured the best way to almost reliably getting the device detected after booting. 1. sysctl dev.acpi_hp.0.wwan_enabled = 0 (Disable the wwan device - I do this through the acpi_hp kernel module I wrote and ment to release weeks ago) 2. kldload usb2_controller_uhci 3. kldload usb2_serial_3g 4. kldload usb2_controller_ehci 5. sysctl dev.acpi_hp.0.wwan_enabled=1 Without using my acpi module and disabling the device first, chances of getting it detected properly are almost zero. The control device is still missing though... usbconfig with the modem detected (this time I loaded drivers in reverse order, so don't get confused by the numbering) ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON usbconfig -u 3 -a 2 dump_curr_config_desc ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0043 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00e0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0007 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0003 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0010 bInterval = 0x0080 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 3 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 4 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0004 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 5 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 6 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0005 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Let me know if it would actually help you to see any debugging output from the legacy usb1 stack with both devices (data + control) deteced. michael From freebsdusb at bindone.de Tue Jan 20 20:51:24 2009 From: freebsdusb at bindone.de (Michael) Date: Tue Jan 20 20:51:30 2009 Subject: Device IDs for HP hs2300 HSDPA modem In-Reply-To: <497691CC.1030603@bindone.de> References: <492D6E0D.7020500@bindone.de> <200812031631.59515.hselasky@c2i.net> <49379FFF.6000007@bindone.de> <200812041544.57108.hselasky@c2i.net> <49768F47.7090204@bindone.de> <497691CC.1030603@bindone.de> Message-ID: <4976A989.2030207@bindone.de> Michael wrote: > Michael wrote: > >> Hans Petter Selasky wrote: >> >> >>> On Thursday 04 December 2008, Michael wrote: >>> >>> >>> >>>> Hans Petter Selasky wrote: >>>> >>>> >>>> >>>>> On Wednesday 03 December 2008, Michael wrote: >>>>> >>>>> >>>>> >>>>>> Hans Petter Selasky wrote: >>>>>> >>>>>> >>>>>> >>>>>>> On Tuesday 02 December 2008, Michael wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> 3. I tried using a current checkout of usb2 (and added all the device >>>>>>>> IDs necessary), but serial_3g is missing (and therefore >>>>>>>> commented out in sys/modules/usb2/Makefile), so I'm stuck there as >>>>>>>> well. Is there actual hope that the problem >>>>>>>> might not appear when using usb2? (all I know about usb2 is that >>>>>>>> it's supposed to be giant-free, no idea if it can >>>>>>>> handle these issues any better - seems like at least 50% of USB >>>>>>>> devices are violating the standard in one way or >>>>>>>> another anyway). >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Alfred forgot to add the Makefile. The 3g id's are now in >>>>>>> core/usb2_msctest.c . I've sent him a patch to fix this, but have not >>>>>>> heard from him yet, assuming he is very busy. >>>>>>> >>>>>>> Just copy one of the other serial driver Makefiles and add "u3g2.c". >>>>>>> >>>>>>> --HPS >>>>>>> >>>>>>> >>>>>>> >>>>>> Ok, essentially this seems to work, even so there are some caveats: >>>>>> 1. usb2_serial_3g has to be loaded before of usb2_controller_ehci >>>>>> 2. When I disable the device (button or bios command) it is detached >>>>>> correctly, >>>>>> but reattaching it fails 9 out of 10 times with the following error: >>>>>> kernel: usb2_alloc_device:1421: set address 2 failed (ignored) >>>>>> kernel: usb2_alloc_device:1456: getting device descriptor at addr 2 >>>>>> failed! kernel: uhub_reattach_port:402: could not allocate new device! >>>>>> If I kldunload usb2_controller_ehci and reload it, its detected ok. >>>>>> usb1 has no issues performing the same operation. >>>>>> 3. The machine crashed once after reenabling the device. No crashdumps >>>>>> here, mostly because I'm stupid :( >>>>>> 4. There is only one serial device created (/dev/cuaU0), which >>>>>> represents the data interface. The control interface is not detected. >>>>>> (usb1 creates two interfaces /dev/cuaU0.0 for data and /dev/cuaU0.2 for >>>>>> control). This is essential, because even so the data interface supports >>>>>> most commands, it doesn't accept the PIN code entry cmomand (or other >>>>>> maintenance commands). For testing purposes I disabled the PIN entry >>>>>> requirement on the SIM and was able to get reasonable stable service (up >>>>>> to 250kb/s). >>>>>> >>>>>> Let me know if there is anything I can do to help debugging the issues >>>>>> above. I attached the patches for the HS2300 device. >>>>>> >>>>>> br >>>>>> michael >>>>>> >>>>>> >>>>>> >>>>> Hi, >>>>> >>>>> Try tuning the following knobs, one at a time. >>>>> >>>>> sysctl hw.usb2.ehci.no_hs=1 >>>>> >>>>> This will disable hooking on devices to high speed. >>>>> >>>>> I think there is a problem with your device! >>>>> >>>>> Another thing you can try before re-plugging: >>>>> >>>>> sysctl hw.usb2.ss_delay=2 >>>>> >>>>> Also try: >>>>> >>>>> sysctl hw.usb2.pr_recovery_delay=500 >>>>> >>>>> --HPS >>>>> >>>>> >>>>> >>>> None of these knobs have a lasting effect. Sometimes it works, sometimes >>>> it doesn't. Disconnecting/reconnecting at a fast pace confuses it >>>> completely (missing the event completely). That's intersting because >>>> usb1 seems to be able to keep track of that ok, so it should be >>>> possible. Do you think this relates to caveat 1 (because I think >>>> normally loading 3g after ehci should work)? Are there any debugging >>>> knobs I should use to get more useful traces? >>>> >>>> >>>> >>> See "sysctl hw.usb2" >>> >>> >>> >>> >>>> What about 4, is there anything I can do or anybody to contact to figure >>>> why the control device doesn't show up at all? (or is more a missing >>>> feature than a bug?) >>>> >>>> >>>> >>> Send me a dump of the usb-descriptors using: >>> >>> usbconfig -u xxx -a yyy dump_curr_config_desc >>> >>> And I will have a look at it. I suspect that the device is there, but has >>> another unit ID than you expect. >>> >>> --HPS >>> >>> >>> >> It actually only works 1 out of 100 times now :( >> In general what I find interesting is that ugen0 - ugen4 come in when >> loading controller_uhci, while ugen5 and ugen6 are controlled by >> controller_ehci, BUT if the device is actually found, it will end up on >> ugen1.2, but only if uhci AND ehci are loaded. >> _______________________________________________ >> freebsd-usb@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-usb >> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" >> >> > Sorry about the ongoing bombardment... > I figured the best way to almost reliably getting the device detected > after booting. > 1. sysctl dev.acpi_hp.0.wwan_enabled = 0 > (Disable the wwan device - I do this through the acpi_hp kernel > module I wrote and ment to release weeks ago) > 2. kldload usb2_controller_uhci > 3. kldload usb2_serial_3g > 4. kldload usb2_controller_ehci > 5. sysctl dev.acpi_hp.0.wwan_enabled=1 > > Without using my acpi module and disabling the device first, chances of > getting it detected properly are almost zero. The control device is > still missing though... > usbconfig with the modem detected (this time I loaded drivers in reverse > order, so don't get confused by the numbering) > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > ugen3.2: at usbus3, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON > > usbconfig -u 3 -a 2 dump_curr_config_desc > > ugen3.2: at usbus3, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0043 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00e0 > bMaxPower = 0x0000 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0007 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0003 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0010 > bInterval = 0x0080 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0082 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0002 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 3 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0084 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 4 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0004 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 5 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0085 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 6 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0005 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Let me know if it would actually help you to see any debugging output > from the legacy usb1 stack with both devices (data + control) deteced. > > michael > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > One more... I tried upgrading to the latest usb2 version (as merged by alfred earlier this month). Using this things get better and worse at the same time. Now the 3g serial device is detected everytime reliably whenever usb2_controller_uhci is loaded. When loading usb2_controller_ehci, it gets disconnected and reconnect again. /dev/cuU0 is there in both cases. It still complains about not being able assigning an address (this time on ushub4). So maybe that's where the "missing" interface is. The biggest complaint I have right now is, that the device is not working anymore (whatever I send to the modem like a plain "AT" does not return anything), so I reverted back to the source tree of mid december (sometimes ZFS is really useful :). To be it seems like the machine is doing something really strange to get both serial devices registered, maybe that's why it sometimes works and sometimes not (especially considering how uhci and ehci somehow interfere on ushub1). "Hands on" (IM) help would really be appreciated, I'm pretty stuck at this point :/ /(michael From kevlo at kevlo.org Tue Jan 20 22:50:55 2009 From: kevlo at kevlo.org (Kevin Lo) Date: Tue Jan 20 22:51:02 2009 Subject: HEADSUP: urtw(4) to be committed soon In-Reply-To: <20090119112333.GA36305@freebsd.weongyo.org> References: <20090119112333.GA36305@freebsd.weongyo.org> Message-ID: <1232519898.26154.11.camel@srg.kevlo.org> Weongyo Jeong wrote: > Hello, Hi Weongyo, > I would like to commit urtw(4) driver for supporting Realtek's 8187L > wireless chipset based on USB into HEAD by the end of the week if there > are no objections. And the license of files would be as follows that > AFAIK it's based on OpenBSD's template license file: > > /*- > * Copyright (c) 2008 Weongyo Jeong > * > * Permission to use, copy, modify, and distribute this software for any > * purpose with or without fee is hereby granted, provided that the above > * copyright notice and this permission notice appear in all copies. > * > * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF > * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. > */ > > Because I'm not a lawyer it'd definitely fail to answer about your > detailed questions. Just one thing I want to is that it's okay if it's > enough to use in *BSD, OpenSolaris and etc. Not want to go into > troubles. :-) > > I'm looking for a person to port from USB to NEWUSB and if you want to > test you can find the sources at: > > http://people.freebsd.org/~weongyo/urtw_20090119.tar.gz Works for me, thanks. Though it's quite a bit slower, that's a job for another day :-) $ dmesg | grep urtw0 urtw0: on uhub0 urtw0: WARNING: using obsoleted IFF_NEEDSGIANT flag $ ifconfig plip0: flags=108810 metric 0 mtu 1500 lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 urtw0: flags=108843 metric 0 mtu 2290 ether 00:40:0c:04:3b:2a media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated wlan0: flags=8843 metric 0 mtu 1500 ether 00:40:0c:04:3b:2a inet 192.168.1.116 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated ssid MSI channel 11 (2462 Mhz 11g) bssid 00:11:09:0c:2f:91 country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS > regards, > Weongyo Jeong Kevin From weongyo.jeong at gmail.com Tue Jan 20 23:21:50 2009 From: weongyo.jeong at gmail.com (Weongyo Jeong) Date: Tue Jan 20 23:22:02 2009 Subject: HEADSUP: urtw(4) to be committed soon In-Reply-To: <1232519898.26154.11.camel@srg.kevlo.org> References: <20090119112333.GA36305@freebsd.weongyo.org> <1232519898.26154.11.camel@srg.kevlo.org> Message-ID: <20090121072117.GA46438@freebsd.weongyo.org> On Wed, Jan 21, 2009 at 02:38:18PM +0800, Kevin Lo wrote: > Weongyo Jeong wrote: > > Hello, > > Hi Weongyo, > > > I would like to commit urtw(4) driver for supporting Realtek's 8187L > > wireless chipset based on USB into HEAD by the end of the week if there > > are no objections. And the license of files would be as follows that > > AFAIK it's based on OpenBSD's template license file: > > > > /*- > > * Copyright (c) 2008 Weongyo Jeong > > * > > * Permission to use, copy, modify, and distribute this software for any > > * purpose with or without fee is hereby granted, provided that the above > > * copyright notice and this permission notice appear in all copies. > > * > > * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > > * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > > * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > > * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > > * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > > * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF > > * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. > > */ > > > > Because I'm not a lawyer it'd definitely fail to answer about your > > detailed questions. Just one thing I want to is that it's okay if it's > > enough to use in *BSD, OpenSolaris and etc. Not want to go into > > troubles. :-) > > > > I'm looking for a person to port from USB to NEWUSB and if you want to > > test you can find the sources at: > > > > http://people.freebsd.org/~weongyo/urtw_20090119.tar.gz > > > Works for me, thanks. Though it's quite a bit slower, that's a job > for another day :-) > > $ dmesg | grep urtw0 > urtw0: 2> on uhub0 > urtw0: WARNING: using obsoleted IFF_NEEDSGIANT flag > > $ ifconfig > plip0: flags=108810 metric 0 > mtu 1500 > lo0: flags=8049 metric 0 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > urtw0: flags=108843 > metric 0 mtu 2290 > ether 00:40:0c:04:3b:2a > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > wlan0: flags=8843 metric 0 mtu > 1500 > ether 00:40:0c:04:3b:2a > inet 192.168.1.116 netmask 0xffffff00 broadcast 192.168.1.255 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > ssid MSI channel 11 (2462 Mhz 11g) bssid 00:11:09:0c:2f:91 > country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid > 60 > bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 > protmode CTS Thank you for testing. :-) The performance issue is a known issue that I think we need to fix a rate control routine for urtw(4). I tried to use wlan_amrr(4) but concluded it's hard to apply it without documents because I couldn't find a flag whether the tx is failed or not. It looks it's not enough with just looking USB_STATUS value of usb callbacks. regards, Weongyo Jeong From spawk at acm.poly.edu Wed Jan 21 10:10:22 2009 From: spawk at acm.poly.edu (Boris Kochergin) Date: Wed Jan 21 10:10:29 2009 Subject: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Message-ID: <200901211810.n0LIA3XE063459@freefall.freebsd.org> The following reply was made to PR usb/130230; it has been noted by GNATS. From: Boris Kochergin To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 21 Jan 2009 12:33:09 -0500 Unfortunately, neither method fixes it. The first patch results in the following being printed when the device is inserted: umass0: on uhub4 Nothing else is printed about it until it is detached, which results in a lot of these: umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR Backing out the quirk introduced by kern/125398 results in: umass0: on uhub4 (da0:umass-sim0:0:0:0): got CAM status 0x4 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry From freebsdusb at bindone.de Fri Jan 23 00:26:01 2009 From: freebsdusb at bindone.de (Michael) Date: Fri Jan 23 00:26:11 2009 Subject: Device IDs for HP hs2300 HSDPA modem In-Reply-To: <4976A989.2030207@bindone.de> References: <492D6E0D.7020500@bindone.de> <200812031631.59515.hselasky@c2i.net> <49379FFF.6000007@bindone.de> <200812041544.57108.hselasky@c2i.net> <49768F47.7090204@bindone.de> <497691CC.1030603@bindone.de> <4976A989.2030207@bindone.de> Message-ID: <49797ED8.8030804@bindone.de> Just for the records and anybody using this device (and googling around for a solution): Hans Petter took the time and investigated the issue and could actually solve all the problems I had with this device. New versions are available in perforce: http://perforce.freebsd.org/chv.cgi?CH=156521 http://perforce.freebsd.org/chv.cgi?CH=156522 Now everything works perfectly smooth (can switch the wwan on/off kldload/kldunload whatever any time and it's absolutely stable - normal ppp configuration works as expected, getting up to 230kb/s FTP transfer rate with no load). kldload usb2_serial_3g kldload usb2_controller_uhci => /dev/cuaU0 (data port) => /dev/cuaU2 (control port) Thanks to Hans Petter for his really fast and competent support and the immediate fix, never experienced this in an open source project before. cheers Michael Michael wrote: > Michael wrote: > >> Michael wrote: >> >> >>> Hans Petter Selasky wrote: >>> >>> >>> >>>> On Thursday 04 December 2008, Michael wrote: >>>> >>>> >>>> >>>> >>>>> Hans Petter Selasky wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> On Wednesday 03 December 2008, Michael wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hans Petter Selasky wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On Tuesday 02 December 2008, Michael wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> 3. I tried using a current checkout of usb2 (and added all the device >>>>>>>>> IDs necessary), but serial_3g is missing (and therefore >>>>>>>>> commented out in sys/modules/usb2/Makefile), so I'm stuck there as >>>>>>>>> well. Is there actual hope that the problem >>>>>>>>> might not appear when using usb2? (all I know about usb2 is that >>>>>>>>> it's supposed to be giant-free, no idea if it can >>>>>>>>> handle these issues any better - seems like at least 50% of USB >>>>>>>>> devices are violating the standard in one way or >>>>>>>>> another anyway). >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> Alfred forgot to add the Makefile. The 3g id's are now in >>>>>>>> core/usb2_msctest.c . I've sent him a patch to fix this, but have not >>>>>>>> heard from him yet, assuming he is very busy. >>>>>>>> >>>>>>>> Just copy one of the other serial driver Makefiles and add "u3g2.c". >>>>>>>> >>>>>>>> --HPS >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Ok, essentially this seems to work, even so there are some caveats: >>>>>>> 1. usb2_serial_3g has to be loaded before of usb2_controller_ehci >>>>>>> 2. When I disable the device (button or bios command) it is detached >>>>>>> correctly, >>>>>>> but reattaching it fails 9 out of 10 times with the following error: >>>>>>> kernel: usb2_alloc_device:1421: set address 2 failed (ignored) >>>>>>> kernel: usb2_alloc_device:1456: getting device descriptor at addr 2 >>>>>>> failed! kernel: uhub_reattach_port:402: could not allocate new device! >>>>>>> If I kldunload usb2_controller_ehci and reload it, its detected ok. >>>>>>> usb1 has no issues performing the same operation. >>>>>>> 3. The machine crashed once after reenabling the device. No crashdumps >>>>>>> here, mostly because I'm stupid :( >>>>>>> 4. There is only one serial device created (/dev/cuaU0), which >>>>>>> represents the data interface. The control interface is not detected. >>>>>>> (usb1 creates two interfaces /dev/cuaU0.0 for data and /dev/cuaU0.2 for >>>>>>> control). This is essential, because even so the data interface supports >>>>>>> most commands, it doesn't accept the PIN code entry cmomand (or other >>>>>>> maintenance commands). For testing purposes I disabled the PIN entry >>>>>>> requirement on the SIM and was able to get reasonable stable service (up >>>>>>> to 250kb/s). >>>>>>> >>>>>>> Let me know if there is anything I can do to help debugging the issues >>>>>>> above. I attached the patches for the HS2300 device. >>>>>>> >>>>>>> br >>>>>>> michael >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> Hi, >>>>>> >>>>>> Try tuning the following knobs, one at a time. >>>>>> >>>>>> sysctl hw.usb2.ehci.no_hs=1 >>>>>> >>>>>> This will disable hooking on devices to high speed. >>>>>> >>>>>> I think there is a problem with your device! >>>>>> >>>>>> Another thing you can try before re-plugging: >>>>>> >>>>>> sysctl hw.usb2.ss_delay=2 >>>>>> >>>>>> Also try: >>>>>> >>>>>> sysctl hw.usb2.pr_recovery_delay=500 >>>>>> >>>>>> --HPS >>>>>> >>>>>> >>>>>> >>>>>> >>>>> None of these knobs have a lasting effect. Sometimes it works, sometimes >>>>> it doesn't. Disconnecting/reconnecting at a fast pace confuses it >>>>> completely (missing the event completely). That's intersting because >>>>> usb1 seems to be able to keep track of that ok, so it should be >>>>> possible. Do you think this relates to caveat 1 (because I think >>>>> normally loading 3g after ehci should work)? Are there any debugging >>>>> knobs I should use to get more useful traces? >>>>> >>>>> >>>>> >>>>> >>>> See "sysctl hw.usb2" >>>> >>>> >>>> >>>> >>>> >>>>> What about 4, is there anything I can do or anybody to contact to figure >>>>> why the control device doesn't show up at all? (or is more a missing >>>>> feature than a bug?) >>>>> >>>>> >>>>> >>>>> >>>> Send me a dump of the usb-descriptors using: >>>> >>>> usbconfig -u xxx -a yyy dump_curr_config_desc >>>> >>>> And I will have a look at it. I suspect that the device is there, but has >>>> another unit ID than you expect. >>>> >>>> --HPS >>>> >>>> >>>> >>>> >>> It actually only works 1 out of 100 times now :( >>> In general what I find interesting is that ugen0 - ugen4 come in when >>> loading controller_uhci, while ugen5 and ugen6 are controlled by >>> controller_ehci, BUT if the device is actually found, it will end up on >>> ugen1.2, but only if uhci AND ehci are loaded. >>> _______________________________________________ >>> freebsd-usb@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-usb >>> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" >>> >>> >>> >> Sorry about the ongoing bombardment... >> I figured the best way to almost reliably getting the device detected >> after booting. >> 1. sysctl dev.acpi_hp.0.wwan_enabled = 0 >> (Disable the wwan device - I do this through the acpi_hp kernel >> module I wrote and ment to release weeks ago) >> 2. kldload usb2_controller_uhci >> 3. kldload usb2_serial_3g >> 4. kldload usb2_controller_ehci >> 5. sysctl dev.acpi_hp.0.wwan_enabled=1 >> >> Without using my acpi module and disabling the device first, chances of >> getting it detected properly are almost zero. The control device is >> still missing though... >> usbconfig with the modem detected (this time I loaded drivers in reverse >> order, so don't get confused by the numbering) >> ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=ON >> ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=ON >> ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=ON >> ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=ON >> ugen6.1: at usbus6, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=ON >> ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=ON >> ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=ON >> ugen3.2: at usbus3, cfg=0 >> md=HOST spd=FULL (12Mbps) pwr=ON >> >> usbconfig -u 3 -a 2 dump_curr_config_desc >> >> ugen3.2: at usbus3, cfg=0 >> md=HOST spd=FULL (12Mbps) pwr=ON >> >> >> Configuration index 0 >> >> bLength = 0x0009 >> bDescriptorType = 0x0002 >> wTotalLength = 0x0043 >> bNumInterfaces = 0x0001 >> bConfigurationValue = 0x0001 >> iConfiguration = 0x0000 >> bmAttributes = 0x00e0 >> bMaxPower = 0x0000 >> >> Interface 0 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0000 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0007 >> bInterfaceClass = 0x00ff >> bInterfaceSubClass = 0x00ff >> bInterfaceProtocol = 0x00ff >> iInterface = 0x0003 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0081 >> bmAttributes = 0x0003 >> wMaxPacketSize = 0x0010 >> bInterval = 0x0080 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0082 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 2 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0002 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 3 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0084 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 4 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0004 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 5 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0085 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 6 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0005 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> >> Let me know if it would actually help you to see any debugging output >> from the legacy usb1 stack with both devices (data + control) deteced. >> >> michael >> _______________________________________________ >> freebsd-usb@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-usb >> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" >> >> > One more... I tried upgrading to the latest usb2 version (as merged by > alfred earlier this month). Using this things get better and worse at > the same time. > Now the 3g serial device is detected everytime reliably whenever > usb2_controller_uhci is loaded. When loading usb2_controller_ehci, it > gets disconnected and reconnect again. /dev/cuU0 is there in both cases. > It still complains about not being able assigning an address (this time > on ushub4). So maybe that's where the "missing" interface is. The > biggest complaint I have right now is, that the device is not working > anymore (whatever I send to the modem like a plain "AT" does not return > anything), so I reverted back to the source tree of mid december > (sometimes ZFS is really useful :). To be it seems like the machine is > doing something really strange to get both serial devices registered, > maybe that's why it sometimes works and sometimes not (especially > considering how uhci and ehci somehow interfere on ushub1). "Hands on" > (IM) help would really be appreciated, I'm pretty stuck at this point :/ > > /(michael > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From upakul at gmail.com Fri Jan 23 05:04:25 2009 From: upakul at gmail.com (Upakul Barkakaty) Date: Fri Jan 23 05:04:32 2009 Subject: USB Devices not getting detected with USB card on PCI express. In-Reply-To: <6f0bc3e80901110345x6dd40517l5793dc7e9720f47a@mail.gmail.com> References: <6f0bc3e80901110345x6dd40517l5793dc7e9720f47a@mail.gmail.com> Message-ID: <21623803.post@talk.nabble.com> Hello I?m stuck in the very same situation in an exactly same scenario. I?m using ?Emerson Networks mvme7100? board that contains the Free-scale MPC8641d processor. The setup is exactly same as mentioned i.e. [PowerPC controller]<-->[PCI Express]<-->[PCIe-to-PCI bridge]<-->[PCI USB Card]<-->USB Device And I?m getting SET_ADDR_FAILED error. I tried to debug this further at my end and found this was perhaps due to interrupts not coming from the USB controller. And yes, I verified that it works as expected in X-86 setup. Also, the same USB controller works fine if I have PCI instead of PCI Express in my setup. My QUESTION: IS this a known issue? Or any other developer facing the same issue? Any suggested work around for the same? Cheers!! Neha Oberoi wrote: > > Hi all, > > I am facing a strange problem with my freebsd stack. I am using freebsd > version 6.0. The set up is as follows: > > [PowerPC controller]<-->[PCI Express]<-->[PCIe-to-PCI bridge]<-->[PCI USB > Card]<-->USB Device > > When I plug in an USB device it gives a SET_ADDR_FAILED error, and > disables > the port. > > Now the strange thing is that the same setup with PCIe and USB is working > all right on a x86 setup. > > I tried debugging but didnt get any obvious errors. Any pointers in this > regard would be most welcome. > > Best regards, > Nehaa > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > > -- View this message in context: http://www.nabble.com/USB-Devices-not-getting-detected-with-USB-card-on-PCI-express.-tp21398554p21623803.html Sent from the freebsd-usb mailing list archive at Nabble.com. From hselasky at c2i.net Sat Jan 24 03:50:03 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 24 03:50:36 2009 Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Message-ID: <200901241150.n0OBo2LM015287@freefall.freebsd.org> The following reply was made to PR usb/130066; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, simon@freebsd.org Cc: Subject: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX' Date: Sat, 24 Jan 2009 11:45:11 +0100 Hi, This has been fixed in -current now. Please re-test and close the PR. --HPS From hselasky at c2i.net Sat Jan 24 03:50:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 24 03:50:36 2009 Subject: usb/128590: [patch] [newusb] Updates to NOTES for new USB stack Message-ID: <200901241150.n0OBo41C015318@freefall.freebsd.org> The following reply was made to PR usb/128590; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, niclas.zeising@gmail.com Cc: Subject: usb/128590: [patch] [newusb] Updates to NOTES for new USB stack Date: Sat, 24 Jan 2009 11:46:44 +0100 Can we wait until the final USB device names settle after that USB2 becomes default before updating NOTES? --HPS From hselasky at c2i.net Sat Jan 24 03:50:06 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 24 03:50:37 2009 Subject: usb/129964: [newusb] disconnection of ugen devices isn't logged Message-ID: <200901241150.n0OBo5j9015331@freefall.freebsd.org> The following reply was made to PR usb/129964; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, bruce@cran.org.uk Cc: Subject: usb/129964: [newusb] disconnection of ugen devices isn't logged Date: Sat, 24 Jan 2009 11:47:47 +0100 Hi, This has been patched in -current. Please close after re-test! --HPS From hselasky at c2i.net Sat Jan 24 03:50:08 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 24 03:50:37 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901241150.n0OBo7Ij015427@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, garga@freebsd.org Cc: Nathan Whitehorn Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Sat, 24 Jan 2009 11:48:48 +0100 Hi, This issue has been resolved. Patches are on its way to -current. --HPS From hselasky at c2i.net Sat Jan 24 03:50:10 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 24 03:50:37 2009 Subject: usb/130325: [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh Message-ID: <200901241150.n0OBo94U015595@freefall.freebsd.org> The following reply was made to PR usb/130325; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, alexbestms@math.uni-muenster.de Cc: Subject: usb/130325: [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh Date: Sat, 24 Jan 2009 11:49:35 +0100 Patch is in -current. This issue can be closed! --HPS From hselasky at c2i.net Sat Jan 24 03:50:12 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jan 24 03:50:38 2009 Subject: usb/128803: [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X20 support Message-ID: <200901241150.n0OBoBIi015783@freefall.freebsd.org> The following reply was made to PR usb/128803; it has been noted by GNATS. From: Hans Petter Selasky To: bug-followup@freebsd.org, andy@siliconlandmark.com Cc: Subject: usb/128803: [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X20 support Date: Sat, 24 Jan 2009 11:51:33 +0100 I have patches this in [newusb]. --HPS From niclas.zeising at gmail.com Sat Jan 24 05:10:03 2009 From: niclas.zeising at gmail.com (Niclas Zeising) Date: Sat Jan 24 05:10:09 2009 Subject: usb/128590: [patch] [newusb] Updates to NOTES for new USB stack Message-ID: <200901241310.n0ODA2XT076279@freefall.freebsd.org> The following reply was made to PR usb/128590; it has been noted by GNATS. From: Niclas Zeising To: Hans Petter Selasky Cc: bug-followup@freebsd.org Subject: Re: usb/128590: [patch] [newusb] Updates to NOTES for new USB stack Date: Sat, 24 Jan 2009 13:42:48 +0100 Hans Petter Selasky wrote: > Can we wait until the final USB device names settle after that USB2 becomes > default before updating NOTES? > > --HPS > Of course we can. Just don't forget it ;) Keep up the good work! Regards Niclas From lehmann at ans-netz.de Sun Jan 25 02:39:19 2009 From: lehmann at ans-netz.de (Oliver Lehmann) Date: Sun Jan 25 02:39:33 2009 Subject: recently happend kernel panics regarding usb Message-ID: <20090125111219.56ca189f.lehmann@ans-netz.de> Hi, I'm experiencing recently happend kernel panics while making bacula backups on my external USB harddisk. It first happened some days ago while I was running 6.4-PRERLEASE. I then updated to 6.4-STABLE and enabled all the kernel debugging stuff. I've uploaded "screenshots" (including backtrace) here: http://pics.pofo.de/gallery/v/misc/ I'm now not sure if the external USB-case, the PATA harddisk or the USB controler is dying - or if it is a FreeBSD problem. The USB case which I had before died after 1.5 years of usage without any notice from one day to another... maybe this one here is now dying too but with some noise? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ From garga at freebsd.org Sun Jan 25 08:30:03 2009 From: garga at freebsd.org (Renato Botelho) Date: Sun Jan 25 08:30:10 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901251630.n0PGU3Em045701@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Renato Botelho To: Hans Petter Selasky Cc: bug-followup@freebsd.org, Nathan Whitehorn Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Sun, 25 Jan 2009 14:26:51 -0200 On Sat, Jan 24, 2009 at 11:48:48AM +0100, Hans Petter Selasky wrote: > Hi, > > This issue has been resolved. Patches are on its way to -current. If you want, i can test it here before you commit to -current, just let me know where i can get patches Thanks -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc Promising costs nothing, it's the delivering that kills you. From hselasky at c2i.net Sun Jan 25 08:40:05 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sun Jan 25 08:40:12 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901251640.n0PGe5jj054836@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Hans Petter Selasky To: Renato Botelho Cc: bug-followup@freebsd.org, Nathan Whitehorn Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Sun, 25 Jan 2009 17:39:44 +0100 On Sunday 25 January 2009, Renato Botelho wrote: > On Sat, Jan 24, 2009 at 11:48:48AM +0100, Hans Petter Selasky wrote: > > Hi, > > > > This issue has been resolved. Patches are on its way to -current. > > If you want, i can test it here before you commit to -current, just let me > know where i can get patches > > Thanks In /sys/dev/usb2/controller/uhci2.c Change the "if()" inside "uhci_set_hw_power()" to "if(1)". This is not the complete patch, but will show if my patch will work or not. --HPS From bugmaster at FreeBSD.org Mon Jan 26 03:07:09 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jan 26 03:09:21 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200901261107.n0QB74gY024430@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o usb/130066 usb [newusb] Serial adaptor use fail with 'unsupported spe o usb/130024 usb [newusb] Sun Type 7 Unix keyboard doesn't work with us o usb/129964 usb [newusb] disconnection of ugen devices isn't logged o bin/129963 usb [newusb] usbconfig(8) fails with misleading error when o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128590 usb [patch] [newusb] Updates to NOTES for new USB stack o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/125072 usb [uplcom] [patch] add Mobile Action MA-620 Infrared Ada o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 299 problems total. From lehmann at ans-netz.de Mon Jan 26 11:03:38 2009 From: lehmann at ans-netz.de (Oliver Lehmann) Date: Mon Jan 26 11:03:43 2009 Subject: recently happend kernel panics regarding usb Message-ID: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> Hi, I'm experiencing recently happend kernel panics while making bacula backups on my external USB harddisk. It first happened some days ago while I was running 6.4-PRERLEASE. I then updated to 6.4-STABLE and enabled all the kernel debugging stuff. I've uploaded "screenshots" (including backtrace) here: http://pics.pofo.de/gallery/v/misc/ I'm now not sure if the external USB-case, the PATA harddisk or the USB controler is dying - or if it is a FreeBSD problem. The USB case which I had before died after 1.5 years of usage without any notice from one day to another... maybe this one here is now dying too but with some noise? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From hselasky at c2i.net Mon Jan 26 12:20:07 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jan 26 12:20:16 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device In-Reply-To: <20090103.122938.-532678760.imp@bsdimp.com> References: <200901022123.57193.hselasky@c2i.net> <200901030028.38064.hselasky@c2i.net> <20090103.122938.-532678760.imp@bsdimp.com> Message-ID: <200901262122.29724.hselasky@c2i.net> On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030028.38064.hselasky@c2i.net> I think this issue might be fixed in -current now, as of today. Please give it a spin. --HPS From hselasky at c2i.net Mon Jan 26 12:30:23 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jan 26 12:30:29 2009 Subject: usb/130122: [hpsusb] DVD drive detects as 'da' device Message-ID: <200901262030.n0QKU3ar050350@freefall.freebsd.org> The following reply was made to PR usb/130122; it has been noted by GNATS. From: Hans Petter Selasky To: "M. Warner Losh" Cc: freebsd-usb@freebsd.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/130122: [hpsusb] DVD drive detects as 'da' device Date: Mon, 26 Jan 2009 21:22:29 +0100 On Saturday 03 January 2009, M. Warner Losh wrote: > In message: <200901030028.38064.hselasky@c2i.net> I think this issue might be fixed in -current now, as of today. Please give it a spin. --HPS From mah at jump-ing.de Mon Jan 26 14:26:07 2009 From: mah at jump-ing.de (Markus Hitter) Date: Mon Jan 26 14:26:14 2009 Subject: recently happend kernel panics regarding usb In-Reply-To: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> References: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> Message-ID: <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> Am 25.01.2009 um 11:12 schrieb Oliver Lehmann: > I'm experiencing recently happend kernel panics while making bacula > backups on my external USB harddisk. It first happened some days ago > while I was running 6.4-PRERLEASE. I then updated to 6.4-STABLE and > enabled all the kernel debugging stuff. Looking at your screenshots, I'm getting plenty of these g_vfs_done() = 5 errors with an ordinary pen drive on various stages of stable/7 as well. The pen drive works flawlessly on other computers. Same for another pen drive I tried for verification. If you throw the EHCI driver out of the kernel your drive will use either OHCI or UHCI (both are slow). This seems to help, at least for the limited things I use this pen drive now. The good thing is, you obviously had a FreeBSD installation which worked fine with USB 2.0 drives. This would be a good starting point for the search of a fix. Any chance you can get back to that state? If the panics appeared without any change on the system, could you stress test this drive a little on another computer? MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From lehmann at ans-netz.de Mon Jan 26 21:51:13 2009 From: lehmann at ans-netz.de (Oliver Lehmann) Date: Mon Jan 26 21:51:25 2009 Subject: recently happend kernel panics regarding usb In-Reply-To: <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> References: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> Message-ID: <20090127065108.45623019.lehmann@ans-netz.de> Markus Hitter wrote: > If you throw the EHCI driver out of the kernel your drive will use > either OHCI or UHCI (both are slow). This seems to help, at least for > the limited things I use this pen drive now. I'm not sure, that this g_vfs_done is related to the panic. I've attached the drive to an uhci drived port on the same machine, started an fsck and I've got an immediate panic: trying to sleep while sleeping is prohibited If I remember it correctly. The driver has some power saving feature which shuts the drive down if it is not used for some time and spins it up when a request arrives. But yesterday I powered the drive up... waited some secunds and started then a fsck. So I guess it was not in a "shutdown" state - So I wonder who requested a sleep ;) -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ From julian at elischer.org Mon Jan 26 23:56:33 2009 From: julian at elischer.org (Julian Elischer) Date: Mon Jan 26 23:56:41 2009 Subject: recently happend kernel panics regarding usb In-Reply-To: <20090127065108.45623019.lehmann@ans-netz.de> References: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> <20090127065108.45623019.lehmann@ans-netz.de> Message-ID: <497EBE30.8060106@elischer.org> Oliver Lehmann wrote: > Markus Hitter wrote: > >> If you throw the EHCI driver out of the kernel your drive will use >> either OHCI or UHCI (both are slow). This seems to help, at least for >> the limited things I use this pen drive now. > > I'm not sure, that this g_vfs_done is related to the panic. I've attached > the drive to an uhci drived port on the same machine, started an fsck and > I've got an immediate panic: > > trying to sleep while sleeping is prohibited when you hold a mutex in the kernel you are not allowed to go to sleep as other kernel actors may need that mutex.. OR a interrupt thread is trying to sleep. I doubt it has anything to do with a usb device hibernating. > > If I remember it correctly. The driver has some power saving feature > which shuts the drive down if it is not used for some time and spins it > up when a request arrives. But yesterday I powered the drive up... waited > some secunds and started then a fsck. So I guess it was not in a > "shutdown" state - So I wonder who requested a sleep ;) > > > From garga at freebsd.org Tue Jan 27 04:10:05 2009 From: garga at freebsd.org (Renato Botelho) Date: Tue Jan 27 04:10:24 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901271210.n0RCA56G096815@freefall.freebsd.org> The following reply was made to PR usb/130024; it has been noted by GNATS. From: Renato Botelho To: Hans Petter Selasky Cc: bug-followup@freebsd.org, Nathan Whitehorn Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Tue, 27 Jan 2009 10:01:26 -0200 On Sat, Jan 24, 2009 at 11:48:48AM +0100, Hans Petter Selasky wrote: > Hi, > > This issue has been resolved. Patches are on its way to -current. I've updated my kernel to r187767 and everything is working fine, thanks!! -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc One of the pleasures of reading old letters is the knowledge that they need no answer. -- George Gordon, Lord Byron From lehmann at ans-netz.de Tue Jan 27 14:36:44 2009 From: lehmann at ans-netz.de (Oliver Lehmann) Date: Tue Jan 27 14:38:21 2009 Subject: recently happend kernel panics regarding usb In-Reply-To: <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> References: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> Message-ID: <20090127065108.45623019.lehmann@ans-netz.de> Markus Hitter wrote: > If you throw the EHCI driver out of the kernel your drive will use > either OHCI or UHCI (both are slow). This seems to help, at least for > the limited things I use this pen drive now. I'm not sure, that this g_vfs_done is related to the panic. I've attached the drive to an uhci drived port on the same machine, started an fsck and I've got an immediate panic: trying to sleep while sleeping is prohibited If I remember it correctly. The driver has some power saving feature which shuts the drive down if it is not used for some time and spins it up when a request arrives. But yesterday I powered the drive up... waited some secunds and started then a fsck. So I guess it was not in a "shutdown" state - So I wonder who requested a sleep ;) -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/ _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From julian at elischer.org Tue Jan 27 14:36:50 2009 From: julian at elischer.org (Julian Elischer) Date: Tue Jan 27 14:38:48 2009 Subject: recently happend kernel panics regarding usb In-Reply-To: <20090127065108.45623019.lehmann@ans-netz.de> References: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> <20090127065108.45623019.lehmann@ans-netz.de> Message-ID: <497EBE30.8060106@elischer.org> Oliver Lehmann wrote: > Markus Hitter wrote: > >> If you throw the EHCI driver out of the kernel your drive will use >> either OHCI or UHCI (both are slow). This seems to help, at least for >> the limited things I use this pen drive now. > > I'm not sure, that this g_vfs_done is related to the panic. I've attached > the drive to an uhci drived port on the same machine, started an fsck and > I've got an immediate panic: > > trying to sleep while sleeping is prohibited when you hold a mutex in the kernel you are not allowed to go to sleep as other kernel actors may need that mutex.. OR a interrupt thread is trying to sleep. I doubt it has anything to do with a usb device hibernating. > > If I remember it correctly. The driver has some power saving feature > which shuts the drive down if it is not used for some time and spins it > up when a request arrives. But yesterday I powered the drive up... waited > some secunds and started then a fsck. So I guess it was not in a > "shutdown" state - So I wonder who requested a sleep ;) > > > _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From mah at jump-ing.de Tue Jan 27 14:37:24 2009 From: mah at jump-ing.de (Markus Hitter) Date: Tue Jan 27 14:39:59 2009 Subject: recently happend kernel panics regarding usb In-Reply-To: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> References: <1c80fd50-1e5c-4be7-a8dc-3f6f29c4f02a@exchange01.ecp.noc> Message-ID: <9B0861C2-EF09-4FC4-A8E4-51C654117B98@jump-ing.de> Am 25.01.2009 um 11:12 schrieb Oliver Lehmann: > I'm experiencing recently happend kernel panics while making bacula > backups on my external USB harddisk. It first happened some days ago > while I was running 6.4-PRERLEASE. I then updated to 6.4-STABLE and > enabled all the kernel debugging stuff. Looking at your screenshots, I'm getting plenty of these g_vfs_done() = 5 errors with an ordinary pen drive on various stages of stable/7 as well. The pen drive works flawlessly on other computers. Same for another pen drive I tried for verification. If you throw the EHCI driver out of the kernel your drive will use either OHCI or UHCI (both are slow). This seems to help, at least for the limited things I use this pen drive now. The good thing is, you obviously had a FreeBSD installation which worked fine with USB 2.0 drives. This would be a good starting point for the search of a fix. Any chance you can get back to that state? If the panics appeared without any change on the system, could you stress test this drive a little on another computer? MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From marat at zealot.ksu.ru Wed Jan 28 00:30:03 2009 From: marat at zealot.ksu.ru (Marat N.Afanasyev) Date: Wed Jan 28 00:30:10 2009 Subject: usb/131074: no run-time detection of usb devices plugged into external usb hub Message-ID: <200901280819.n0S8JOcu085364@zealot.ksu.ru> >Number: 131074 >Category: usb >Synopsis: no run-time detection of usb devices plugged into external usb hub >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: Wed Jan 28 08:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Marat N.Afanasyev >Release: FreeBSD 7.1-STABLE amd64 >Organization: >Environment: System: FreeBSD zealot.ksu.ru 7.1-STABLE FreeBSD 7.1-STABLE #1: Tue Jan 20 05:47:24 MSK 2009 root@zealot.ksu.ru:/usr/obj/usr/src/sys/ZEALOT amd64 dmesg.boot: Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-STABLE #1: Tue Jan 20 05:47:24 MSK 2009 root@zealot.ksu.ru:/usr/obj/usr/src/sys/ZEALOT Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) Dual Core Processor 4850e (2500.19-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x60fb2 Stepping = 2 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f Cores per package: 2 usable memory = 4285681664 (4087 MB) avail memory = 4124286976 (3933 MB) ACPI APIC Table: <122408 APIC1032> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard netsmb_dev: loaded acpi0: <122408 RSDT1032> on motherboard ACPI: Overriding _OS definition with "Linux" acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of ffb80000, 80000 (3) failed acpi0: reservation of fff00000, 100000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cff00000 (3) failed ACPI HPET table warning: Sequence is non-zero (2) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 vgapci0: port 0xc000-0xc0ff mem 0xd0000000-0xdfffffff,0xfeaf0000-0xfeafffff irq 18 at device 0.0 on pci1 drm0: on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] Initialized radeon 1.29.0 20080613 vgapci1: mem 0xfeae0000-0xfeaeffff at device 0.1 on pci1 pcib2: at device 6.0 on pci0 pci2: on pcib2 re0: port 0xd800-0xd8ff mem 0xfebff000-0xfebfffff irq 18 at device 0.0 on pci2 re0: Using 2 MSI messages re0: Chip rev. 0x38000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1d:92:da:0c:b0 re0: [FILTER] re0: [FILTER] atapci0: port 0xb000-0xb007,0xa000-0xa003,0x9000-0x9007,0x8000-0x8003,0x7000-0x700f mem 0xfe9ff800-0xfe9ffbff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI Version 01.10 controller with 4 ports detected ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ohci0: mem 0xfe9fe000-0xfe9fefff irq 16 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0xfe9fd000-0xfe9fdfff irq 17 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ohci2: mem 0xfe9fc000-0xfe9fcfff irq 18 at device 19.2 on pci0 ohci2: [GIANT-LOCKED] ohci2: [ITHREAD] usb2: OHCI version 1.0, legacy support usb2: SMM does not respond, resetting usb2: on ohci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ohci3: mem 0xfe9fb000-0xfe9fbfff irq 17 at device 19.3 on pci0 ohci3: [GIANT-LOCKED] ohci3: [ITHREAD] usb3: OHCI version 1.0, legacy support usb3: SMM does not respond, resetting usb3: on ohci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ohci4: mem 0xfe9fa000-0xfe9fafff irq 18 at device 19.4 on pci0 ohci4: [GIANT-LOCKED] ohci4: [ITHREAD] usb4: OHCI version 1.0, legacy support usb4: SMM does not respond, resetting usb4: on ohci4 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered ehci0: mem 0xfe9ff000-0xfe9ff0ff irq 19 at device 19.5 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb5: EHCI version 1.0 usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4 usb5: on ehci0 usb5: USB revision 2.0 uhub5: on usb5 uhub5: 10 ports with 10 removable, self powered uhub6: on uhub5 uhub6: multiple transaction translators uhub6: 6 ports with 6 removable, self powered ucom0: on uhub6 uhub7: on uhub5 uhub7: single transaction translator uhub7: 4 ports with 4 removable, self powered umass0: on uhub7 pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] pci0: at device 20.2 (no driver attached) isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 pci3: at device 3.0 (no driver attached) pci3: at device 3.1 (no driver attached) k8temp0: on hostb4 acpi_button0: on acpi0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio0: [FILTER] atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse Explorer, device ID 4 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_throttle0: CLK_VAL field overlaps THT_EN bit device_attach: acpi_throttle0 attach returned 6 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 orm0: at iomem 0xc0000-0xcf7ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 uscanner0: on uhub2 ulpt0: on uhub2 ulpt0: using bi-directional mode Timecounters tick every 1.000 msec ipfw2 initialized, divert enabled, nat loadable, rule-based forwarding enabled, default to accept, logging limited to 1000 packets/entry by default acd0: DVDR at ata0-master UDMA66 ad4: 238475MB at ata2-master SATA300 ad6: 476940MB at ata3-master SATA300 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x48 0x00 0x01 SMP: AP CPU #1 Launched! cd0 at ata0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 66.000MB/s transfers cd0: cd present [2288832 x 2048 byte records] da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da1 at umass-sim0 bus 0 target 0 lun 1 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present da2 at umass-sim0 bus 0 target 0 lun 2 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da3 at umass-sim0 bus 0 target 0 lun 3 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad4s1a re0: link state changed to UP vlan1: link state changed to UP vlan3: link state changed to UP vlan4: link state changed to UP vlan11: link state changed to UP uscanner0 and ulpt0 plugged into root hub on motherboard, da0-da3 are fixed slots on usb card-reader with 3 self-powered usb 2.0 ports (uhub7) and ucom0 is plugged into uhub6 (6 self-powered usb 2.0 ports) on my monitor. No device plugged into uhub6 or uhub7 is detected in run-time, such devices can be detected only in boot-time. >Description: usb devices plugged into external usb hub are detected only in boot-time, no detection of such devices in run-time. >How-To-Repeat: boot system with external usb hub, try to plug in any usb device in this hub, see no reaction from system >Fix: >Release-Note: >Audit-Trail: >Unformatted: From thompsa at FreeBSD.org Wed Jan 28 08:24:39 2009 From: thompsa at FreeBSD.org (thompsa@FreeBSD.org) Date: Wed Jan 28 08:24:44 2009 Subject: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Message-ID: <200901281624.n0SGOci8018814@freefall.freebsd.org> Synopsis: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 State-Changed-From-To: open->closed State-Changed-By: thompsa State-Changed-When: Wed Jan 28 16:24:10 UTC 2009 State-Changed-Why: Submitter reports this is now fixed, thanks for the PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=130024 From linimon at FreeBSD.org Thu Jan 29 23:00:08 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Thu Jan 29 23:00:20 2009 Subject: usb/131123: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk Message-ID: <200901300700.n0U707cn006263@freefall.freebsd.org> Old Synopsis: New Synopsis: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jan 30 06:58:02 UTC 2009 Responsible-Changed-Why: Fix Synopsis and reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=131123 From linimon at FreeBSD.org Thu Jan 29 23:01:00 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Thu Jan 29 23:01:06 2009 Subject: usb/131125: Re: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk Message-ID: <200901300700.n0U70xvW011961@freefall.freebsd.org> Old Synopsis: New Synopsis: Re: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Jan 30 06:58:57 UTC 2009 State-Changed-Why: Misfiled followup to usb/131123; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jan 30 06:58:57 UTC 2009 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=131125 From linimon at FreeBSD.org Thu Jan 29 23:01:46 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Thu Jan 29 23:01:55 2009 Subject: usb/131123: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk Message-ID: <200901300701.n0U71iaa013195@freefall.freebsd.org> Synopsis: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Fri Jan 30 07:01:20 UTC 2009 State-Changed-Why: >From misfiled PR usb/131125: Date: Thu, 29 Jan 2009 08:35:03 -0700 (MST) From: "M. Warner Losh" To: cejkar@fit.vutbr.cz The sc_cm_over_data flag is never checked elsewhere. Are you saying that the umodem_set_comm_feature() causes the problem? Warner http://www.freebsd.org/cgi/query-pr.cgi?pr=131123 From cejkar at fit.vutbr.cz Fri Jan 30 02:43:52 2009 From: cejkar at fit.vutbr.cz (Rudolf Cejka) Date: Fri Jan 30 02:43:58 2009 Subject: usb/131123: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk In-Reply-To: <200901300701.n0U71iaa013195@freefall.freebsd.org> References: <200901300701.n0U71iaa013195@freefall.freebsd.org> Message-ID: <20090130104349.GA60105@fit.vutbr.cz> linimon@FreeBSD.org wrote (2009/01/30): > The sc_cm_over_data flag is never checked elsewhere. Are you saying > that the umodem_set_comm_feature() causes the problem? Yes, I can imagine three possible reasons: 1) There is not any bug in umodem_set_comm_feature(), but the device would be buggy and could not accept requested settings, which I suppose are according to the specifications. 2) There is some bug in umodem_set_comm_feature(). 3) It seems, that the device does not survive two configuration settings, however I do not understand which. See Linux discussion about this device https://kerneltrap.org/mailarchive/linux-usb-devel/2007/10/27/361160/thread and Matthias Fuchs: ... I found out that the 2.4 kernels send two 'set configuration' requests to the USB modem. Either this is not allowed or the modem's firmware does not like this. After the 2nd set configuration request the device disconnects... Maybe FreeBSD had the same problem and configuration settings are performed in another place too. If you are interested, I can do any software tests you need or want to do, so that you can really understand what happens. In all events, MC75/ES75 immediately disconnects and resets. Attempts are repeated every 10 seconds (Unknown USB device is written by devd, I do not know why - but after patch it disappears): ... Jan 28 18:14:00 kernel: ucom0: detached Jan 28 18:14:09 root: Unknown USB device: vendor 0x0681 product 0x0034 bus uhub0 Jan 28 18:14:09 kernel: ucom0: on uhub0 Jan 28 18:14:09 kernel: ucom0: iclass 2/2 Jan 28 18:14:09 kernel: ucom0: data interface 1, has CM over data, has no break Jan 28 18:14:09 kernel: ucom0: status change notification available Jan 28 18:14:09 kernel: ucom0: at uhub0 port 1 (addr 2) disconnected Jan 28 18:14:09 kernel: ucom0: detached Jan 28 18:14:20 root: Unknown USB device: vendor 0x0681 product 0x0034 bus uhub0 ... -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic From linimon at lonesome.com Fri Jan 30 04:10:13 2009 From: linimon at lonesome.com (Mark Linimon) Date: Fri Jan 30 04:10:19 2009 Subject: usb/131123: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk Message-ID: <200901301210.n0UCA4ld057932@freefall.freebsd.org> The following reply was made to PR usb/131123; it has been noted by GNATS. From: linimon@lonesome.com (Mark Linimon) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/131123: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk Date: Fri, 30 Jan 2009 06:09:05 -0600 ----- Forwarded message from Rudolf Cejka ----- From: Rudolf Cejka To: linimon@FreeBSD.org Cc: freebsd-usb@FreeBSD.org Subject: Re: usb/131123: [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk linimon@FreeBSD.org wrote (2009/01/30): > The sc_cm_over_data flag is never checked elsewhere. Are you saying > that the umodem_set_comm_feature() causes the problem? Yes, I can imagine three possible reasons: 1) There is not any bug in umodem_set_comm_feature(), but the device would be buggy and could not accept requested settings, which I suppose are according to the specifications. 2) There is some bug in umodem_set_comm_feature(). 3) It seems, that the device does not survive two configuration settings, however I do not understand which. See Linux discussion about this device https://kerneltrap.org/mailarchive/linux-usb-devel/2007/10/27/361160/thread and Matthias Fuchs: ... I found out that the 2.4 kernels send two 'set configuration' requests to the USB modem. Either this is not allowed or the modem's firmware does not like this. After the 2nd set configuration request the device disconnects... Maybe FreeBSD had the same problem and configuration settings are performed in another place too. If you are interested, I can do any software tests you need or want to do, so that you can really understand what happens. In all events, MC75/ES75 immediately disconnects and resets. Attempts are repeated every 10 seconds (Unknown USB device is written by devd, I do not know why - but after patch it disappears): ... Jan 28 18:14:00 kernel: ucom0: detached Jan 28 18:14:09 root: Unknown USB device: vendor 0x0681 product 0x0034 bus uhub0 Jan 28 18:14:09 kernel: ucom0: on uhub0 Jan 28 18:14:09 kernel: ucom0: iclass 2/2 Jan 28 18:14:09 kernel: ucom0: data interface 1, has CM over data, has no break Jan 28 18:14:09 kernel: ucom0: status change notification available Jan 28 18:14:09 kernel: ucom0: at uhub0 port 1 (addr 2) disconnected Jan 28 18:14:09 kernel: ucom0: detached Jan 28 18:14:20 root: Unknown USB device: vendor 0x0681 product 0x0034 bus uhub0 ... -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic ----- End forwarded message ----- From stevecalfee at gmail.com Fri Jan 30 18:00:57 2009 From: stevecalfee at gmail.com (Steve Calfee) Date: Fri Jan 30 18:01:02 2009 Subject: newusb/usb2 build breakage in tinybsd Message-ID: <4a5ff6bc0901301732t7233335ch1077a74605fffb81@mail.gmail.com> Hi, I am trying to backport usb2 to freebsd7.0. I have followed the instructions at http://www.selasky.org/hans_petter/usb4bsd/index.html and things work ok on the install until I get to the recommended make step for me to manually handle (printed out by your make file). Incidentally, your web site should say to build in the FreeBSD.usb2 directory, I think. One complication is that I am crosscompiling with the tinybsd script - at least the target is an x86. I was held up for awhile because I missed the instruction echo'ed from the ..../FreeBSD.usb2/Makefile telling me to patch/change kmod.mk. Missing that causes the make to stop because usb2_if.h is missing. I had other build breakage due probably to kernel changes, so I just removed the build files for serial_xxx and storage_rio and wlan(_xxx) from /sys/modules/usb2/Makefile. Then, there are two backporting issues. The first looks pretty safe, I included the little finit routine into usb2_dev.c. That routine does not exist in FreeBSD 7.0. The other Issue I am not sure I have safely solved -- Apparently some extra info (file descriptor ptr) is tucked into struct thread called td_fpop. I could not tell what it is used for - it is stored to in the USB_VNOPS_FO_CLOSE macro, then fo_close is called, and then it is nulled. I just commented out both accesses to td_fpop - the fp is also passed to fo_close, so I don't think it is needed. Do you know of any issues around td_fpop? Thanks, and I am sure I will have some more rookie questions as I go forward, Steve From hselasky at freebsd.org Sat Jan 31 02:11:39 2009 From: hselasky at freebsd.org (Hans Petter Selasky) Date: Sat Jan 31 02:12:12 2009 Subject: newusb/usb2 build breakage in tinybsd In-Reply-To: <4a5ff6bc0901301732t7233335ch1077a74605fffb81@mail.gmail.com> References: <4a5ff6bc0901301732t7233335ch1077a74605fffb81@mail.gmail.com> Message-ID: <200901311014.01419.hselasky@freebsd.org> Hi Steve, On Saturday 31 January 2009, Steve Calfee wrote: > Hi, > > I am trying to backport usb2 to freebsd7.0. I have followed the > instructions at http://www.selasky.org/hans_petter/usb4bsd/index.html > and things work ok on the install until I get to the recommended make > step for me to manually handle (printed out by your make file). > Incidentally, your web site should say to build in the FreeBSD.usb2 > directory, I think. > > One complication is that I am crosscompiling with the tinybsd script - > at least the target is an x86. > > I was held up for awhile because I missed the instruction echo'ed from > the ..../FreeBSD.usb2/Makefile telling me to patch/change kmod.mk. > Missing that causes the make to stop because usb2_if.h is missing. Are you building the kernel or Modules? > > I had other build breakage due probably to kernel changes, so I just > removed the build files for serial_xxx and storage_rio and wlan(_xxx) > from /sys/modules/usb2/Makefile. Yes, the API's these modules use in the system has changed a lot between 7.x and 8.x ! > > Then, there are two backporting issues. The first looks pretty safe, I > included the little finit routine into usb2_dev.c. That routine does > not exist in FreeBSD 7.0. > > The other Issue I am not sure I have safely solved -- > > Apparently some extra info (file descriptor ptr) is tucked into struct > thread called td_fpop. I could not tell what it is used for - it is > stored to in the USB_VNOPS_FO_CLOSE macro, then fo_close is called, > and then it is nulled. I just commented out both accesses to td_fpop - > the fp is also passed to fo_close, so I don't think it is needed. Do > you know of any issues around td_fpop? I think it is safe to remove setting that variable, because the routine that needs it is no longer called. > > Thanks, and I am sure I will have some more rookie questions as I go > forward, --HPS From drl at bsd.my Sat Jan 31 03:20:00 2009 From: drl at bsd.my (Darryl Yeoh) Date: Sat Jan 31 03:20:06 2009 Subject: FreeBSD no longer detects my USB stick Message-ID: <20090131191956.30d95081.drl@bsd.my> Hi lists, Need some help. My USB stick no longer gets detected. If I plug it in, nothing happens and I see this in syslog shortly after: Jan 31 18:48:37 matrix kernel: uhub5: device problem (TIMEOUT), disabling port 3 Here's the relevant part from usbdevs -dv Controller /dev/usb5: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), ATI(0x0000), rev 1.00 port 1 powered port 2 powered port 3 addr 0 should never happen! <-- ?? port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered port 9 powered port 10 powered Here's my uname: FreeBSD matrix.bsd.my 7.1-STABLE FreeBSD 7.1-STABLE #0: Fri Jan 30 13:36:16 MYT 2009 root@matrix.bsd.my:/usr/src/sys/i386/compile/INSP_1501 i386 I'm not sure, but all this happened after upgrading Xorg to 7.4. I've tried booting with dbus/hald disabled and still no go. The weird thing is it works if I boot directly into single-user. I have a USB mouse and it works if I plug it in. Somehow it looks like it effects USB sticks for now. What can be causing this to happen ? Please CC me as I'm not subscribe to the maillinglists. Darryl From thompsa at FreeBSD.org Sat Jan 31 15:39:50 2009 From: thompsa at FreeBSD.org (Andrew Thompson) Date: Sat Jan 31 15:39:56 2009 Subject: USB2 patches Message-ID: <20090131231957.GB31825@citylink.fud.org.nz> Hi, I have several patches in my svn user branch that I would like to see committed to HEAD. Some of these change the usb2 core code so I am interested in feedback or shootdowns. I am right behind the change to USB2 and this is an effort to help. The patch can be found here, http://people.freebsd.org/~thompsa/usb_head1.diff 73 files changed, 9229 insertions(+), 13261 deletions(-) but its rather large so it may be easier to look at the various changes via the svn web interface. http://svn.freebsd.org/viewvc/base/user/thompsa/usb/ r187750 http://svn.freebsd.org/viewvc/base?view=revision&revision=187750 Change over to using taskqueue(9) instead of hand rolled threads and the config_td system. This removes the config_td code and makes the API much simpler to use. r187751, r187752, r187753, r187754, r187755, r187756 http://svn.freebsd.org/viewvc/base?view=revision&revision=187751 Change over to usb2_proc w/ taskqueues for the usb2/ethernet, usb2/serial and usb2/wlan code. r187965 http://svn.freebsd.org/viewvc/base?view=revision&revision=187965 Move most of the ifnet logic into the usb2_ethernet module, this includes, - make all usb ethernet interfaces named ue%d - handle all threading in usb2_ethernet - provide default ioctl handler - handle mbuf rx - provide locked callbacks for init,start,stop,etc The drivers are not much more than data pushers now. regards, Andrew From alfred at freebsd.org Sat Jan 31 19:22:28 2009 From: alfred at freebsd.org (Alfred Perlstein) Date: Sat Jan 31 19:22:35 2009 Subject: USB2 patches In-Reply-To: <20090131231957.GB31825@citylink.fud.org.nz> References: <20090131231957.GB31825@citylink.fud.org.nz> Message-ID: <20090201030628.GE65558@elvis.mu.org> I'll defer to Hans if he feels confident or not about this. For what it's worth, we're about to switch GENERIC to use usb4bsd. -Alfred * Andrew Thompson [090131 15:20] wrote: > Hi, > > > I have several patches in my svn user branch that I would like to see > committed to HEAD. Some of these change the usb2 core code so I am > interested in feedback or shootdowns. I am right behind the change to > USB2 and this is an effort to help. > > The patch can be found here, > http://people.freebsd.org/~thompsa/usb_head1.diff > 73 files changed, 9229 insertions(+), 13261 deletions(-) > > but its rather large so it may be easier to look at the various changes > via the svn web interface. > > http://svn.freebsd.org/viewvc/base/user/thompsa/usb/ > > > r187750 > http://svn.freebsd.org/viewvc/base?view=revision&revision=187750 > > Change over to using taskqueue(9) instead of hand rolled threads and > the config_td system. This removes the config_td code and makes the > API much simpler to use. > > r187751, r187752, r187753, r187754, r187755, r187756 > http://svn.freebsd.org/viewvc/base?view=revision&revision=187751 > > Change over to usb2_proc w/ taskqueues for the usb2/ethernet, > usb2/serial and usb2/wlan code. > > r187965 > http://svn.freebsd.org/viewvc/base?view=revision&revision=187965 > > Move most of the ifnet logic into the usb2_ethernet module, this includes, > - make all usb ethernet interfaces named ue%d > - handle all threading in usb2_ethernet > - provide default ioctl handler > - handle mbuf rx > - provide locked callbacks for init,start,stop,etc > > The drivers are not much more than data pushers now. > > > regards, > Andrew -- - Alfred Perlstein From imp at bsdimp.com Sat Jan 31 19:33:04 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Jan 31 19:33:10 2009 Subject: USB2 patches In-Reply-To: <20090201030628.GE65558@elvis.mu.org> References: <20090131231957.GB31825@citylink.fud.org.nz> <20090201030628.GE65558@elvis.mu.org> Message-ID: <20090131.203127.-697376386.imp@bsdimp.com> In message: <20090201030628.GE65558@elvis.mu.org> Alfred Perlstein writes: : I'll defer to Hans if he feels confident or not about this. These changes all look good to me.... : For what it's worth, we're about to switch GENERIC to use : usb4bsd. Moving files or just changing names... Warner : -Alfred : : * Andrew Thompson [090131 15:20] wrote: : > Hi, : > : > : > I have several patches in my svn user branch that I would like to see : > committed to HEAD. Some of these change the usb2 core code so I am : > interested in feedback or shootdowns. I am right behind the change to : > USB2 and this is an effort to help. : > : > The patch can be found here, : > http://people.freebsd.org/~thompsa/usb_head1.diff : > 73 files changed, 9229 insertions(+), 13261 deletions(-) : > : > but its rather large so it may be easier to look at the various changes : > via the svn web interface. : > : > http://svn.freebsd.org/viewvc/base/user/thompsa/usb/ : > : > : > r187750 : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187750 : > : > Change over to using taskqueue(9) instead of hand rolled threads and : > the config_td system. This removes the config_td code and makes the : > API much simpler to use. : > : > r187751, r187752, r187753, r187754, r187755, r187756 : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187751 : > : > Change over to usb2_proc w/ taskqueues for the usb2/ethernet, : > usb2/serial and usb2/wlan code. : > : > r187965 : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187965 : > : > Move most of the ifnet logic into the usb2_ethernet module, this includes, : > - make all usb ethernet interfaces named ue%d : > - handle all threading in usb2_ethernet : > - provide default ioctl handler : > - handle mbuf rx : > - provide locked callbacks for init,start,stop,etc : > : > The drivers are not much more than data pushers now. : > : > : > regards, : > Andrew : : -- : - Alfred Perlstein : _______________________________________________ : freebsd-usb@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-usb : To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" : : From alfred at freebsd.org Sat Jan 31 19:36:42 2009 From: alfred at freebsd.org (Alfred Perlstein) Date: Sat Jan 31 19:36:48 2009 Subject: USB2 patches In-Reply-To: <20090131.203127.-697376386.imp@bsdimp.com> References: <20090131231957.GB31825@citylink.fud.org.nz> <20090201030628.GE65558@elvis.mu.org> <20090131.203127.-697376386.imp@bsdimp.com> Message-ID: <20090201033641.GG65558@elvis.mu.org> * M. Warner Losh [090131 19:33] wrote: > In message: <20090201030628.GE65558@elvis.mu.org> > Alfred Perlstein writes: > : I'll defer to Hans if he feels confident or not about this. > > These changes all look good to me.... > > : For what it's worth, we're about to switch GENERIC to use > : usb4bsd. > > Moving files or just changing names... Changing the default kernel configs only. A few/several weeks later we will rename over the old if all goes well. -Alfred > > Warner > > : -Alfred > : > : * Andrew Thompson [090131 15:20] wrote: > : > Hi, > : > > : > > : > I have several patches in my svn user branch that I would like to see > : > committed to HEAD. Some of these change the usb2 core code so I am > : > interested in feedback or shootdowns. I am right behind the change to > : > USB2 and this is an effort to help. > : > > : > The patch can be found here, > : > http://people.freebsd.org/~thompsa/usb_head1.diff > : > 73 files changed, 9229 insertions(+), 13261 deletions(-) > : > > : > but its rather large so it may be easier to look at the various changes > : > via the svn web interface. > : > > : > http://svn.freebsd.org/viewvc/base/user/thompsa/usb/ > : > > : > > : > r187750 > : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187750 > : > > : > Change over to using taskqueue(9) instead of hand rolled threads and > : > the config_td system. This removes the config_td code and makes the > : > API much simpler to use. > : > > : > r187751, r187752, r187753, r187754, r187755, r187756 > : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187751 > : > > : > Change over to usb2_proc w/ taskqueues for the usb2/ethernet, > : > usb2/serial and usb2/wlan code. > : > > : > r187965 > : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187965 > : > > : > Move most of the ifnet logic into the usb2_ethernet module, this includes, > : > - make all usb ethernet interfaces named ue%d > : > - handle all threading in usb2_ethernet > : > - provide default ioctl handler > : > - handle mbuf rx > : > - provide locked callbacks for init,start,stop,etc > : > > : > The drivers are not much more than data pushers now. > : > > : > > : > regards, > : > Andrew > : > : -- > : - Alfred Perlstein > : _______________________________________________ > : freebsd-usb@freebsd.org mailing list > : http://lists.freebsd.org/mailman/listinfo/freebsd-usb > : To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > : > : -- - Alfred Perlstein From imp at bsdimp.com Sat Jan 31 20:15:11 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat Jan 31 20:15:18 2009 Subject: USB2 patches In-Reply-To: <20090201033641.GG65558@elvis.mu.org> References: <20090201030628.GE65558@elvis.mu.org> <20090131.203127.-697376386.imp@bsdimp.com> <20090201033641.GG65558@elvis.mu.org> Message-ID: <20090131.211410.2138992963.imp@bsdimp.com> In message: <20090201033641.GG65558@elvis.mu.org> Alfred Perlstein writes: : * M. Warner Losh [090131 19:33] wrote: : > In message: <20090201030628.GE65558@elvis.mu.org> : > Alfred Perlstein writes: : > : I'll defer to Hans if he feels confident or not about this. : > : > These changes all look good to me.... : > : > : For what it's worth, we're about to switch GENERIC to use : > : usb4bsd. : > : > Moving files or just changing names... : : Changing the default kernel configs only. : : A few/several weeks later we will rename over the old if all : goes well. Sounds good. I assume you'll be coordinating with Andrew to make sure that he doesn't have any changes in flight, or can cope with the ones he does? Warner : > Warner : > : > : -Alfred : > : : > : * Andrew Thompson [090131 15:20] wrote: : > : > Hi, : > : > : > : > : > : > I have several patches in my svn user branch that I would like to see : > : > committed to HEAD. Some of these change the usb2 core code so I am : > : > interested in feedback or shootdowns. I am right behind the change to : > : > USB2 and this is an effort to help. : > : > : > : > The patch can be found here, : > : > http://people.freebsd.org/~thompsa/usb_head1.diff : > : > 73 files changed, 9229 insertions(+), 13261 deletions(-) : > : > : > : > but its rather large so it may be easier to look at the various changes : > : > via the svn web interface. : > : > : > : > http://svn.freebsd.org/viewvc/base/user/thompsa/usb/ : > : > : > : > : > : > r187750 : > : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187750 : > : > : > : > Change over to using taskqueue(9) instead of hand rolled threads and : > : > the config_td system. This removes the config_td code and makes the : > : > API much simpler to use. : > : > : > : > r187751, r187752, r187753, r187754, r187755, r187756 : > : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187751 : > : > : > : > Change over to usb2_proc w/ taskqueues for the usb2/ethernet, : > : > usb2/serial and usb2/wlan code. : > : > : > : > r187965 : > : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187965 : > : > : > : > Move most of the ifnet logic into the usb2_ethernet module, this includes, : > : > - make all usb ethernet interfaces named ue%d : > : > - handle all threading in usb2_ethernet : > : > - provide default ioctl handler : > : > - handle mbuf rx : > : > - provide locked callbacks for init,start,stop,etc : > : > : > : > The drivers are not much more than data pushers now. : > : > : > : > : > : > regards, : > : > Andrew : > : : > : -- : > : - Alfred Perlstein : > : _______________________________________________ : > : freebsd-usb@freebsd.org mailing list : > : http://lists.freebsd.org/mailman/listinfo/freebsd-usb : > : To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" : > : : > : : : -- : - Alfred Perlstein : :