From d1cbfc6a59e27fecf4f2ebbc0f7d35f40d55f029 Mon Sep 17 00:00:00 2001 From: ken Date: Tue, 22 Sep 1998 20:41:12 +0000 Subject: Add several quirks: Western Digital Enterprise drives have sorry performance (1.5MB/sec versus 8MB/sec) when doing tagged queueing. Disable tagged queueing for them. Submitted by: Andrew Gallatin Some Sony CDROM drives don't like it when we probe more than one LUN. Verified by: Jean-Marc Zucconi Some Sony CD-R's don't like multi-LUN probing either. Submitted by: Parag Patel --- sys/cam/cam_xpt.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 4da3d68..0400cca 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_xpt.c,v 1.9 1998/09/20 07:14:36 gibbs Exp $ + * $Id: cam_xpt.c,v 1.10 1998/09/22 04:53:23 gibbs Exp $ */ #include #include @@ -231,6 +231,8 @@ struct xpt_softc { }; static const char quantum[] = "QUANTUM"; +static const char sony[] = "SONY"; +static const char west_digital[] = "WDIGTL"; static struct xpt_quirk_entry xpt_quirk_table[] = { @@ -263,6 +265,24 @@ static struct xpt_quirk_entry xpt_quirk_table[] = /* Broken tagged queuing drive */ { T_DIRECT, SIP_MEDIA_REMOVABLE, "iomega", "jaz*", "*" }, /*quirks*/0, /*mintags*/0, /*maxtags*/0 + }, + { + /* + * Slow when tagged queueing is enabled. (1.5MB/sec versus + * 8MB/sec.) + * Submitted by: Andrew Gallatin + */ + { T_DIRECT, SIP_MEDIA_FIXED, west_digital, "WDE*", "*" }, + /*quirks*/0, /*mintags*/0, /*maxtags*/0 + }, + { + /* + * Slow when tagged queueing is enabled. (1.5MB/sec versus + * 8MB/sec.) + * Submitted by: Andrew Gallatin + */ + { T_DIRECT, SIP_MEDIA_FIXED, west_digital, "ENTERPRISE", "*" }, + /*quirks*/0, /*mintags*/0, /*maxtags*/0 }, { /* @@ -300,6 +320,28 @@ static struct xpt_quirk_entry xpt_quirk_table[] = CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0 }, { + /* + * This drive doesn't like multiple LUN probing. + * Verified by: Jean-Marc Zucconi + */ + { + T_CDROM, SIP_MEDIA_REMOVABLE, sony, + "CD-ROM CDU-80*", "*" + }, + CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0 + }, + { + /* + * This drive doesn't like multiple LUN probing. + * Submitted by: Parag Patel + */ + { + T_WORM, SIP_MEDIA_REMOVABLE, sony, + "CD-R CDU9*", "*" + }, + CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0 + }, + { /* Default tagged queuing parameters for all devices */ { T_ANY, SIP_MEDIA_REMOVABLE|SIP_MEDIA_FIXED, -- cgit v1.1