Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX'

2009-01-03 Thread Hans Petter Selasky
On Saturday 03 January 2009, M. Warner Losh wrote:
 In message: 200901030132.03840.hsela...@c2i.net

 Hans Petter Selasky hsela...@c2i.net 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
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/130066: [newusb] Serial adaptor use fail with 'unsupported speed XXX'

2009-01-03 Thread Hans Petter Selasky
The following reply was made to PR usb/130066; it has been noted by GNATS.

From: Hans Petter Selasky hsela...@c2i.net
To: M. Warner Losh i...@bsdimp.com
Cc: freebsd-usb@freebsd.org,
 si...@freebsd.org,
 freebsd-gnats-sub...@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.hsela...@c2i.net
 
  Hans Petter Selasky hsela...@c2i.net 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
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user

2009-01-03 Thread Volker
On 01/03/09 01:35, Hans Petter Selasky wrote:
 On Wednesday 31 December 2008, v...@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
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user

2009-01-03 Thread Volker
On 01/03/09 01:35, Hans Petter Selasky wrote:
 On Wednesday 31 December 2008, v...@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
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/130122: [hpsusb] DVD drive detects as 'da' device

2009-01-03 Thread M. Warner Losh
In message: 200901030028.38064.hsela...@c2i.net
Hans Petter Selasky hsela...@c2i.net writes:
: On Friday 02 January 2009, M. Warner Losh wrote:
:  In message: 200901022123.57193.hsela...@c2i.net
: 
:  Hans Petter Selasky hsela...@c2i.net 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
:  :  i...@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: ATI SB400 USB 2.0 controller mem 0xc0002000-0xc0002fff irq 19
:  :  at device 19.2 on pci0 ehci0: memory enable already set.
:  :  Activate PA 0xc0002000 at VA 0xff00c0002000
:  :  ehci0: [ITHREAD]
:  :  usbus0: EHCI version 1.0
:  :  usbus0: ATI SB400 USB 2.0 controller on ehci0
:  :  usbus0: 480Mbps High Speed USB v2.0
:  :  ugen0.1: ATI at usbus0
:  :  ushub0: ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus0
:  :  ushub0: 8 ports with 8 removable, self powered
:  :  ohci0: ATI SB400 USB Controller mem 0xc000-0xcfff irq 19 at
:  :  device 19.0 on pci0 ohci0: memory enable already set.
:  :  Activate PA 0xc000 at VA 0xff00c000
:  :  ohci0: [ITHREAD]
:  :  usbus1: ATI SB400 USB Controller on ohci0
:  :  usbus1: 12Mbps Full Speed USB v1.0
:  :  ugen1.1: ATI at usbus1
:  :  ushub1: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus1
:  :  ushub1: 4 ports with 4 removable, self powered
:  :  ohci1: ATI SB400 USB Controller mem 0xc0001000-0xc0001fff irq 19 at
:  :  device 19.1 on pci0 ohci1: memory enable already set.
:  :  Activate PA 0xc0001000 at VA 0xff00c0001000
:  :  ohci1: [ITHREAD]
:  :  usbus2: ATI SB400 USB Controller on ohci1
:  :  usbus2: 12Mbps Full Speed USB v1.0
:  :  ugen2.1: ATI at usbus2
:  :  ushub2: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus2
:  :  ushub2: 4 ports with 4 removable, self powered
:  :  ugen0.2: Myson Century, Inc. at usbus0
:  :  umass0: Mass Storage Class 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: USB Mass Storage Device Myson Century, Inc. 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  USB Mass Storage
bmAttributes = 0x00c0 
bMaxPower = 0x0005 

Interface 0
  bLength = 0x0009 
  bDescriptorType = 0x0004 
  bInterfaceNumber = 0x 
  bAlternateSetting = 0x 
  bNumEndpoints = 0x0002 
  bInterfaceClass = 0x0008 
  bInterfaceSubClass = 0x0005 
  bInterfaceProtocol = 0x0050 
  iInterface = 0x0005  Mass Storage Class

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0003 
bmAttributes = 0x0002 
 

Re: usb/130122: [hpsusb] DVD drive detects as 'da' device

2009-01-03 Thread M. Warner Losh
The following reply was made to PR usb/130122; it has been noted by GNATS.

From: M. Warner Losh i...@bsdimp.com
To: hsela...@c2i.net
Cc: freebsd-usb@freebsd.org, freebsd-gnats-sub...@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.hsela...@c2i.net
 Hans Petter Selasky hsela...@c2i.net writes:
 : On Friday 02 January 2009, M. Warner Losh wrote:
 :  In message: 200901022123.57193.hsela...@c2i.net
 : 
 :  Hans Petter Selasky hsela...@c2i.net 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
 :  :  i...@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: ATI SB400 USB 2.0 controller mem 0xc0002000-0xc0002fff irq 19
 :  :  at device 19.2 on pci0 ehci0: memory enable already set.
 :  :  Activate PA 0xc0002000 at VA 0xff00c0002000
 :  :  ehci0: [ITHREAD]
 :  :  usbus0: EHCI version 1.0
 :  :  usbus0: ATI SB400 USB 2.0 controller on ehci0
 :  :  usbus0: 480Mbps High Speed USB v2.0
 :  :  ugen0.1: ATI at usbus0
 :  :  ushub0: ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus0
 :  :  ushub0: 8 ports with 8 removable, self powered
 :  :  ohci0: ATI SB400 USB Controller mem 0xc000-0xcfff irq 19 at
 :  :  device 19.0 on pci0 ohci0: memory enable already set.
 :  :  Activate PA 0xc000 at VA 0xff00c000
 :  :  ohci0: [ITHREAD]
 :  :  usbus1: ATI SB400 USB Controller on ohci0
 :  :  usbus1: 12Mbps Full Speed USB v1.0
 :  :  ugen1.1: ATI at usbus1
 :  :  ushub1: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus1
 :  :  ushub1: 4 ports with 4 removable, self powered
 :  :  ohci1: ATI SB400 USB Controller mem 0xc0001000-0xc0001fff irq 19 at
 :  :  device 19.1 on pci0 ohci1: memory enable already set.
 :  :  Activate PA 0xc0001000 at VA 0xff00c0001000
 :  :  ohci1: [ITHREAD]
 :  :  usbus2: ATI SB400 USB Controller on ohci1
 :  :  usbus2: 12Mbps Full Speed USB v1.0
 :  :  ugen2.1: ATI at usbus2
 :  :  ushub2: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on usbus2
 :  :  ushub2: 4 ports with 4 removable, self powered
 :  :  ugen0.2: Myson Century, Inc. at usbus0
 :  :  umass0: Mass Storage Class 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: USB Mass Storage Device Myson Century, Inc. 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  USB Mass Storage
 bmAttributes = 0x00c0 
 bMaxPower = 0x0005 
 
 Interface 0

Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user

2009-01-03 Thread Garrett Cooper
On Sat, Jan 3, 2009 at 10:35 AM, Volker vol...@vwsoft.com wrote:
 On 01/03/09 01:35, Hans Petter Selasky wrote:
 On Wednesday 31 December 2008, v...@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
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/130122: [hpsusb] DVD drive detects as 'da' device

2009-01-03 Thread Hans Petter Selasky
On Saturday 03 January 2009, M. Warner Losh wrote:
 In message: 200901030028.38064.hsela...@c2i.net

 Hans Petter Selasky hsela...@c2i.net writes:
 : On Friday 02 January 2009, M. Warner Losh wrote:
 :  In message: 200901022123.57193.hsela...@c2i.net
 : 
 :  Hans Petter Selasky hsela...@c2i.net 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
 :  :  i...@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: ATI SB400 USB 2.0 controller mem 0xc0002000-0xc0002fff irq
 :  :  19 at device 19.2 on pci0 ehci0: memory enable already set.
 :  :  Activate PA 0xc0002000 at VA 0xff00c0002000
 :  :  ehci0: [ITHREAD]
 :  :  usbus0: EHCI version 1.0
 :  :  usbus0: ATI SB400 USB 2.0 controller on ehci0
 :  :  usbus0: 480Mbps High Speed USB v2.0
 :  :  ugen0.1: ATI at usbus0
 :  :  ushub0: ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on
 :  :  usbus0 ushub0: 8 ports with 8 removable, self powered
 :  :  ohci0: ATI SB400 USB Controller mem 0xc000-0xcfff irq 19
 :  :  at device 19.0 on pci0 ohci0: memory enable already set.
 :  :  Activate PA 0xc000 at VA 0xff00c000
 :  :  ohci0: [ITHREAD]
 :  :  usbus1: ATI SB400 USB Controller on ohci0
 :  :  usbus1: 12Mbps Full Speed USB v1.0
 :  :  ugen1.1: ATI at usbus1
 :  :  ushub1: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on
 :  :  usbus1 ushub1: 4 ports with 4 removable, self powered
 :  :  ohci1: ATI SB400 USB Controller mem 0xc0001000-0xc0001fff irq 19
 :  :  at device 19.1 on pci0 ohci1: memory enable already set.
 :  :  Activate PA 0xc0001000 at VA 0xff00c0001000
 :  :  ohci1: [ITHREAD]
 :  :  usbus2: ATI SB400 USB Controller on ohci1
 :  :  usbus2: 12Mbps Full Speed USB v1.0
 :  :  ugen2.1: ATI at usbus2
 :  :  ushub2: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on
 :  :  usbus2 ushub2: 4 ports with 4 removable, self powered
 :  :  ugen0.2: Myson Century, Inc. at usbus0
 :  :  umass0: Mass Storage Class 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_OLD2   /* Not in the spec anymore */
#define UIPROTO_MASS_BBB80  /* '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

Re: usb/130122: [hpsusb] DVD drive detects as 'da' device

2009-01-03 Thread Hans Petter Selasky
The following reply was made to PR usb/130122; it has been noted by GNATS.

From: Hans Petter Selasky hsela...@c2i.net
To: M. Warner Losh i...@bsdimp.com
Cc: freebsd-usb@freebsd.org,
 freebsd-gnats-sub...@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.hsela...@c2i.net
 
  Hans Petter Selasky hsela...@c2i.net writes:
  : On Friday 02 January 2009, M. Warner Losh wrote:
  :  In message: 200901022123.57193.hsela...@c2i.net
  : 
  :  Hans Petter Selasky hsela...@c2i.net 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
  :  :  i...@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: ATI SB400 USB 2.0 controller mem 0xc0002000-0xc0002fff irq
  :  :  19 at device 19.2 on pci0 ehci0: memory enable already set.
  :  :  Activate PA 0xc0002000 at VA 0xff00c0002000
  :  :  ehci0: [ITHREAD]
  :  :  usbus0: EHCI version 1.0
  :  :  usbus0: ATI SB400 USB 2.0 controller on ehci0
  :  :  usbus0: 480Mbps High Speed USB v2.0
  :  :  ugen0.1: ATI at usbus0
  :  :  ushub0: ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on
  :  :  usbus0 ushub0: 8 ports with 8 removable, self powered
  :  :  ohci0: ATI SB400 USB Controller mem 0xc000-0xcfff irq 19
  :  :  at device 19.0 on pci0 ohci0: memory enable already set.
  :  :  Activate PA 0xc000 at VA 0xff00c000
  :  :  ohci0: [ITHREAD]
  :  :  usbus1: ATI SB400 USB Controller on ohci0
  :  :  usbus1: 12Mbps Full Speed USB v1.0
  :  :  ugen1.1: ATI at usbus1
  :  :  ushub1: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on
  :  :  usbus1 ushub1: 4 ports with 4 removable, self powered
  :  :  ohci1: ATI SB400 USB Controller mem 0xc0001000-0xc0001fff irq 19
  :  :  at device 19.1 on pci0 ohci1: memory enable already set.
  :  :  Activate PA 0xc0001000 at VA 0xff00c0001000
  :  :  ohci1: [ITHREAD]
  :  :  usbus2: ATI SB400 USB Controller on ohci1
  :  :  usbus2: 12Mbps Full Speed USB v1.0
  :  :  ugen2.1: ATI at usbus2
  :  :  ushub2: ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1 on
  :  :  usbus2 ushub2: 4 ports with 4 removable, self powered
  :  :  ugen0.2: Myson Century, Inc. at usbus0
  :  :  umass0: Mass Storage Class 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