From owner-freebsd-bugs Mon May 12 03:50:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA11708 for bugs-outgoing; Mon, 12 May 1997 03:50:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA11702; Mon, 12 May 1997 03:50:03 -0700 (PDT) Resent-Date: Mon, 12 May 1997 03:50:03 -0700 (PDT) Resent-Message-Id: <199705121050.DAA11702@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, bryan@fsel.com Received: from punt-2.mail.demon.net (punt-1b.mail.demon.net [194.217.242.133]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id DAA11376 for ; Mon, 12 May 1997 03:45:26 -0700 (PDT) Received: from formal.demon.co.uk ([158.152.23.172]) by punt-2.mail.demon.net id ab1001797; 12 May 97 11:41 BST Received: from metis.fsel.com (metis.fsel.com [192.9.200.103]) by deimos.fsel.com (8.6.5/8.6.5) with ESMTP id LAA19658 for ; Mon, 12 May 1997 11:38:02 +0100 Received: (from bryan@localhost) by metis.fsel.com (8.8.3/8.6.12) id LAA22984; Mon, 12 May 1997 11:38:01 +0100 (BST) Message-Id: <199705121038.LAA22984@metis.fsel.com> Date: Mon, 12 May 1997 11:38:01 +0100 (BST) From: bryan@fsel.com Reply-To: bryan@fsel.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/3580: Bad LUN probes on Xyratex MCD540 drive Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 3580 >Category: kern >Synopsis: 2.2.1 probes invalid LUNs on Xyratex MCD540 drive >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 12 03:50:01 PDT 1997 >Last-Modified: >Originator: Bryan Scattergood >Organization: Formal Systems (Europe) Ltd >Release: FreeBSD 2.2.1 >Environment: Cyrix P120+ on an AI5TH (HX,PCI) motherboard Adaptec 1542CF driving 0 730M Quantum Lightning 730S 2 Goldstar CDROM (GCD-R320) 4 Xyratex MCD 540I (540M removable drive related to the 270M Syquests) 6 WangDAT Model 1300 >Description: During boot ... aha0 at 0x330-0x333 irq 11 drq 5 on isa aha0 waiting for scsi devices to settle (aha0:0:0): "QUANTUM LIGHTING 730S 241E" type 0 fixed SCSI 2 sd0(aha0:0:0): Direct-Access 699MB (1431760 512 byte sectors) (aha0:2:0): "GOLDSTAR CD-ROM GCD-R320 1.0" type 5 removable SCSI 2 cd0(aha0:2:0): CD-ROM cd present [400000 x 2048 byte records] (aha0:4:0): "Xyratex MCD 540I 5.30" type 0 removable SCSI 2 sd1(aha0:4:0): Direct-Access 515MB (1055416 512 byte sectors) (aha0:4:1): "Xyratex MCD 540I 5.30" type 0 removable SCSI 2 sd2(aha0:4:1): Direct-Access 515MB (1055416 512 byte sectors) sd2(aha0:4:1): timed out sd2(aha0:4:1): timed out adapter not taking commands.. frozen?! AGAIN sd2 could not mode sense (4). Using fictitious geometry aha0: MBO 02 and bot 00 (free) ... and then another half-hour or so while the driver times out on the other 4:2 through 4:7, then on 5:0 and 6:0. The WangDAT isn't recognised. It then can't find the CD-ROM drive, presumably since the SCSI controller is jammed. >How-To-Repeat: Boot with the Xyratex in the SCSI bus under 2.2.1. >Fix: Problem caused by the new SCSI configuration scheme in scsiconf.c (system worked fine under 2.1.6, although the Xyratex behaviour is obviously broken). The Xyratex reports as a T_DIRECT and T_REMOV device and so gets mapped to the unknowndev entry which defines SC_MORE_LUS. Under 2.1.6 it mapped to the generic "sd" entry in the knowndevs table which defines SC_ONE_LU. Successfully worked round the problem by adding a { T_DIRECT, T_DIRECT, T_REMOV, "*", "*", "*", "sd", SC_ONE_LU } entry in the knowndev table. More brutal alternative might be to change unknowndev to SC_ONE_LU. More subtle might be to add a an entry specfific the MCD540. >Audit-Trail: >Unformatted: