From owner-freebsd-current Tue Sep 22 10:53:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21741 for freebsd-current-outgoing; Tue, 22 Sep 1998 10:53:50 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pinhead.parag.codegen.com (ppp-asfm08--187.sirius.net [205.134.241.187]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA21715 for ; Tue, 22 Sep 1998 10:53:33 -0700 (PDT) (envelope-from parag@pinhead.parag.codegen.com) Received: from pinhead.parag.codegen.com (localhost.parag.codegen.com [127.0.0.1]) by pinhead.parag.codegen.com (8.9.1/8.8.8) with ESMTP id KAA00466 for ; Tue, 22 Sep 1998 10:52:59 -0700 (PDT) (envelope-from parag@pinhead.parag.codegen.com) Message-Id: <199809221752.KAA00466@pinhead.parag.codegen.com> X-Mailer: exmh version 2.0.2 2/24/98 To: current@FreeBSD.ORG Subject: Re: CAM and Adaptec 7880 on motherboard problem In-reply-to: Your message of "Mon, 21 Sep 1998 19:02:02 PDT." <199809220202.TAA00429@pinhead.parag.codegen.com> X-Face: =O'Kj74icvU|oS*<7gS/8'\Pbpm}okVj*@UC!IgkmZQAO!W[|iBiMs*|)n*`X ]pW%m>Oz_mK^Gdazsr.Z0/JsFS1uF8gBVIoChGwOy{EK=<6g?aHE`[\S]C]T0Wm X-URL: http://www.codegen.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 22 Sep 1998 10:52:58 -0700 From: Parag Patel Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Replying to my own message after seeing a similar patch for a Sony CD-ROM drive, I added a similar quirk for my Sony CD-R drive. Appended is the patch for /sys/cam/cam_xpt.c. With this patch, the inital probing of SCSI disks works just fine with no errors or timeouts, and it probes the SCSI devices relatively quickly (no 5-7 minute wait like before). I hope this is the right fix. I don't know how may other Sony CD-R drives are affected by this problem, so the string match could be more or less specific. My drive is a CDU926S and there really are three spaces between "CD-R" and "CDU". Whoever owns the code, please feel free to commit this or something similar. Thanks! -- Parag =================================================================== RCS file: /src/freebsd/src/sys/cam/cam_xpt.c,v retrieving revision 1.10 diff -c -r1.10 cam_xpt.c *** cam_xpt.c 1998/09/22 04:53:23 1.10 --- cam_xpt.c 1998/09/22 17:39:06 *************** *** 300,305 **** --- 300,313 ---- CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0 }, { + /* This drive doesn't like multiple LUN probing */ + { + 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, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message