Discussion:
[Bug 225794] VM images for 12.0-CURRENT have problem with USB 3.0 ports
(too old to reply)
b***@freebsd.org
2018-04-06 15:58:31 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

--- Comment #43 from ***@twc.com ---
Andriy,

More and more I am becoming convinced that this is a problem in VirtualBox.

I think that your patch (r327996) uncovered this bug in the way that vbox maps
real USB controller(s) to virtual USB controller(s).

In an attempt to prove this point, I ordered several Renesas (NEC) USB 3.0
controllers (uPD720201 chipset) to replace the VIA USB 3.0 controllers (VL805
chipset).

Some of the motherboard being used have Renesas (NEC) USB 3.0 controller(s)
built-in.

All other motherboards do not have built-in USB 3.0 controller(s) and use an
add-on PCI-e card to add 2, 4, 5 or 7 ports.

I am using "sg_modes -a -vvvvv <device>" as a control.

In all cases where FreeBSD (and various Linux flavors) were running on the
"bare metal", no problems with either controller type were noticed.

When FreeBSD (and the Linux systems) is running as a VirtualBox guest, no
issues are seen when the Renesas USB 3.0 controller is used

**** Continued on next comment. ****
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2018-04-06 16:18:04 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

--- Comment #44 from Hans Petter Selasky <***@FreeBSD.org> ---
Hi,

Try also to exclude the timing of the SCSI commands as a source of USB errors.
When you are using bare metal, the commands execute more quickly. Sometimes, it
might happen that the USB firmware in the peer has blind eye, which cause it to
hang or lose the transferred command.


The following sysctl might be useful testing this.
hw.usb.umass.throttle: 0

Further there is:
/usr/src/tools/tools/usbtest/

Which can be used to test mass storage device to quickly reveal known issues.

--HPS
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2018-04-06 16:43:29 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

--- Comment #45 from ***@twc.com ---
**** Continued from previous comment. ****

When the VIA USB 3.0 controllers are in play, the FreeBSD (and Linux) guests
show the problems that we have been chasing. But, again, only when running as
VirtualBox guest(s).

VirtualBox presents the both the Renesas and VIA USB 3.0 controller(s) as an
Intel 7 Series/C210 xHCI USB Controller. Based on our testing and observation
this presentation is not consistent across the Renesas and VIA types.

I have no problem with being told that I am wrong.

If you can agree with my conclusions, I want to open a Bug Report with
VirtualBox.

If there is anyone in the FreeBSD community who has a connection with the folks
at VirtualBox, I would be most appreciative for any assistance that they may
offer.

Andriy, it might be useful to include a few words describing what you were
addressing with the patch that uncovered this problem.

If you agree with my conclusions, please feel free to close this PR.

David.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2018-12-17 16:01:04 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

Andriy Gapon <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|New |Open
Assignee|***@FreeBSD.org |***@FreeBSD.org
CC| |***@FreeBSD.org

--- Comment #46 from Andriy Gapon <***@FreeBSD.org> ---
(In reply to David.Boyd49 from comment #45)

David,
sorry that this fell of my plate, so to speak.

Thank you for all the testing and analysis.
It indeed appears to be a problem with VirtualBox. It would be a good idea to
file a bug for it. The essence of scsi_da change in r327996 is that the driver
now issues MODE SENSE command for the all pages page (0x3f).

I am adding a tunable that disables the new functionality, so that the problem
can be worked around.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2018-12-17 16:02:02 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

--- Comment #47 from commit-***@freebsd.org ---
A commit references this bug:

Author: avg
Date: Mon Dec 17 16:01:38 UTC 2018
New revision: 342169
URL: https://svnweb.freebsd.org/changeset/base/342169

Log:
add a knob that disables detection of write protected disks

It has been reported that on some systems (with real hardware passed
through to a virtual machine) the WP detection causes USB disk probing
failures.

While here, also fix the selection of the next state in the case
of malloc failure in DA_STATE_PROBE_WP. It was DA_STATE_PROBE_RC
unconditionally even when it should have been DA_STATE_PROBE_RC16.

PR: 225794
Reported by: David Boyd <***@twc.com>
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D18496

Changes:
head/sys/cam/scsi/scsi_da.c
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2018-12-17 16:10:22 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

Andriy Gapon <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|Open |In Progress
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2019-01-11 11:42:41 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

--- Comment #48 from commit-***@freebsd.org ---
A commit references this bug:

Author: avg
Date: Fri Jan 11 11:42:26 UTC 2019
New revision: 342938
URL: https://svnweb.freebsd.org/changeset/base/342938

Log:
MFC r342169: add a knob that disables detection of write protected disks

PR: 225794

Changes:
_U stable/12/
stable/12/sys/cam/scsi/scsi_da.c
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2019-01-11 11:43:45 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

--- Comment #49 from commit-***@freebsd.org ---
A commit references this bug:

Author: avg
Date: Fri Jan 11 11:43:37 UTC 2019
New revision: 342939
URL: https://svnweb.freebsd.org/changeset/base/342939

Log:
MFC r342169: add a knob that disables detection of write protected disks

PR: 225794

Changes:
_U stable/11/
stable/11/sys/cam/scsi/scsi_da.c
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
b***@freebsd.org
2019-01-11 11:44:46 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225794

Andriy Gapon <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|In Progress |Closed
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
To unsubscribe, send any mail to "freebsd-scsi-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...