From cefe3a5bc6997118798a0014a97aafc3a381efce Mon Sep 17 00:00:00 2001 From: "Joshua M. Clulow" Date: Tue, 29 Jun 2021 11:31:06 -0700 Subject: 13818 Insyde BMC virtual CD-ROM confused by MODE SENSE Reviewed by: Andy Fiddaman Reviewed by: Toomas Soome Approved by: Richard Lowe --- usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c | 4 ++++ usr/src/uts/common/sys/usb/scsa2usb/scsa2usb.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c b/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c index 2e440ef448..e70ae4376e 100644 --- a/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c +++ b/usr/src/uts/common/io/usb/scsa2usb/scsa2usb.c @@ -389,6 +389,10 @@ static struct quirk { /* Western Digital External HDD */ {MS_WD_VID, MS_WD_PID, X, SCSA2USB_ATTRS_INQUIRY_EVPD}, + + /* Insyde Virtual CD-ROM */ + {MS_INSYDE_VID, MS_INSYDE_PID_CDROM, X, + SCSA2USB_ATTRS_MODE_SENSE}, }; diff --git a/usr/src/uts/common/sys/usb/scsa2usb/scsa2usb.h b/usr/src/uts/common/sys/usb/scsa2usb/scsa2usb.h index 8177f9542d..a161530e97 100644 --- a/usr/src/uts/common/sys/usb/scsa2usb/scsa2usb.h +++ b/usr/src/uts/common/sys/usb/scsa2usb/scsa2usb.h @@ -126,6 +126,13 @@ extern "C" { #define MS_WD_VID 0x1058 /* Vendor ID of Western Digital */ #define MS_WD_PID 0x1001 /* PID for Western Digital USB External HDD */ +/* + * The virtual CD-ROM device emulated by at least some Insyde BMCs is not + * completely implemented. It hangs when a MODE SENSE command is sent. + */ +#define MS_INSYDE_VID 0xb1f /* Vendor: Insyde Software Corp */ +#define MS_INSYDE_PID_CDROM 0x03ea /* Product: BMC Virtual CD-ROM */ + /* * The AMI virtual floppy device is not a real USB storage device, but * emulated by the SP firmware shipped together with important Sun x86 -- cgit v1.2.3