From owner-freebsd-hackers Thu Feb 9 12:43:53 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id MAA17277 for hackers-outgoing; Thu, 9 Feb 1995 12:43:53 -0800 Received: from estienne.cs.berkeley.edu (estienne.CS.Berkeley.EDU [128.32.42.147]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id MAA17260 for ; Thu, 9 Feb 1995 12:43:46 -0800 Received: (from gibbs@localhost) by estienne.cs.berkeley.edu (8.6.9/8.6.9) id MAA25502; Thu, 9 Feb 1995 12:43:02 -0800 From: "Justin T. Gibbs" Message-Id: <199502092043.MAA25502@estienne.cs.berkeley.edu> Subject: Re: Using seagate driver with Future Domain 950: :-( To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Thu, 9 Feb 1995 12:43:01 -0800 (PST) Cc: bde@zeta.org.au, FreeBSD-hackers@FreeBSD.org, vak@cronyx.msk.su, wilko@yedi.iaf.nl In-Reply-To: <199502091736.JAA22018@gndrsh.aac.dev.com> from "Rodney W. Grimes" at Feb 9, 95 09:36:46 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1478 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > > > > >I switched the 1375 disk for a Digital RRD40 cdrom. No message > > >loop this time, but the drive was incorrectly identified as holding > > >a cdrom size 400000 x 2048 blocks. An attempt to mount a CD resulted > > >in a panic: sea0:2:0 timed out, sending message invalid phase STATIN > > > > 40* x 2048 seems to be a standard magic number that results if media > > detection is not working. It also happens for the Ultrastor driver > > if the media is not present. > > Here is the source of that magic number, from sys/scsi/cd.c: > if (blksize < 512) > blksize = 2048; /* some drives lie ! */ > if (size < 100) > size = 400000; /* ditto */ > > This occurs after the command to get the size, and is only done if > that command returned success. Seems that some drives and/or controllers > are returning bad data :-( Is the get size command issued without the SCSI_ERR_OK flag set? If not, cd.c will never see the error. Otherwise, I would suspect that it might be from a controller that does not support propper SCSI check sense handling in the driver. > > Bruce > > > -- > Rod Grimes rgrimes@gndrsh.aac.dev.com > Accurate Automation Company Custom computers for FreeBSD > -- Justin T. Gibbs ============================================== TCS Instructional Group - Programmer/Analyst 1 Cory | Po | Danube | Volga | Parker | Torus ==============================================