Re: CAM breaks USB [was Re: USB causing boot to hang]

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Fri, 6 Dec 2019 14:57:42 -0800
On Fri, Dec 06, 2019 at 05:44:55PM -0500, Alexander Motin wrote:
> 
> Yes, I made the change, and it was supposed to improve USB
> inter-operation, but after reading this email I still have no clue what
> could be wrong, so ideas welcome.

Sorry about the initial vagueness.  It took a couple of hours
to bisect the problem.

> Steve, do you have some devices on that USB, especially umass(4)?  Have
> you tried to remove them?

On a good boot, this is what is reported by dmesg.  There is
a logitech USB mouse receiver and a Seagate USB hard drive.
It does not matter if the hard drive is plugged in or not.

% dmesg | grep -E ^u
usbus0 on xhci0
usbus1 on ohci0
usbus2: EHCI version 1.0
usbus2 on ehci0
usbus3 on ohci1
usbus4: EHCI version 1.0
usbus4 on ehci1
usbus5 on ohci2
usbus6 on ohci3
usbus7: EHCI version 1.0
usbus7 on ehci2
usbus0: 5.0Gbps Super Speed USB v3.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 480Mbps High Speed USB v2.0
usbus5: 12Mbps Full Speed USB v1.0
usbus6: 12Mbps Full Speed USB v1.0
usbus7: 480Mbps High Speed USB v2.0
ugen7.1: <ATI EHCI root HUB> at usbus7
uhub0 on usbus7
uhub0: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus7
ugen6.1: <ATI OHCI root HUB> at usbus6
uhub1 on usbus6
uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
ugen5.1: <ATI OHCI root HUB> at usbus5
uhub2 on usbus5
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen4.1: <ATI EHCI root HUB> at usbus4
uhub3 on usbus4
uhub3: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
ugen3.1: <ATI OHCI root HUB> at usbus3
uhub4 on usbus3
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen2.1: <ATI EHCI root HUB> at usbus2
uhub5 on usbus2
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen1.1: <ATI OHCI root HUB> at usbus1
uhub6 on usbus1
uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen0.1: <0x1106 XHCI root HUB> at usbus0
uhub7 on usbus0
uhub7: <0x1106 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub2: 2 ports with 2 removable, self powered
uhub1: 4 ports with 4 removable, self powered
uhub4: 5 ports with 5 removable, self powered
uhub6: 5 ports with 5 removable, self powered
uhub7: 5 ports with 4 removable, self powered
ugen0.2: <vendor 0x2109 USB2.0 Hub> at usbus0
uhub8 on uhub7
uhub8: <vendor 0x2109 USB2.0 Hub, class 9/0, rev 2.10/4.20, addr 1> on usbus0
uhub8: 4 ports with 4 removable, self powered
uhub0: 4 ports with 4 removable, self powered
uhub3: 5 ports with 5 removable, self powered
uhub5: 5 ports with 5 removable, self powered
ugen0.3: <Seagate BUP SL> at usbus0
umass0 on uhub7
umass0: <Seagate BUP SL, class 0/0, rev 3.00/1.00, addr 2> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:9:0: Attached to scbus9
ugen3.2: <Logitech USB Receiver> at usbus3
ums0 on uhub4
ums0: <Logitech USB Receiver, class 0/0, rev 1.10/46.00, addr 2> on usbus3
ums0: 8 buttons and [XYZT] coordinates ID=0
uhid0 on uhub4
uhid0: <Logitech USB Receiver, class 0/0, rev 1.10/46.00, addr 2> on usbus3

% dmesg | grep da0
Trying to mount root from ufs:/dev/ada0p2 [rw]...
da0 at umass-sim0 bus 0 scbus9 target 0 lun 0
da0: <Seagate BUP SL 0304> Fixed Direct Access SPC-4 SCSI device
da0: Serial Number NA7PEGM0
da0: 400.000MB/s transfers
da0: 3815447MB (7814037167 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>

-- 
Steve
Received on Fri Dec 06 2019 - 21:57:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC