From owner-freebsd-current@FreeBSD.ORG Sat Apr 3 09:50:06 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C0AD16A4CE for ; Sat, 3 Apr 2004 09:50:06 -0800 (PST) Received: from twirl.bitdance.com (twirl.bitdance.com [208.210.83.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEE2243D1D for ; Sat, 3 Apr 2004 09:50:05 -0800 (PST) (envelope-from rdmurray@bitdance.com) Received: from localhost (localhost [127.0.0.1]) by twirl.bitdance.com (Postfix) with ESMTP id B9FA456900 for ; Sat, 3 Apr 2004 12:50:04 -0500 (EST) Received: from twirl.bitdance.com ([127.0.0.1]) by localhost (twirl.bitdance.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22282-01-2 for ; Sat, 3 Apr 2004 12:50:03 -0500 (EST) Received: by twirl.bitdance.com (Postfix, from userid 1000) id 21BB356902; Sat, 3 Apr 2004 12:49:27 -0500 (EST) Received: by twirl.bitdance.com (tmda-sendmail, from uid 1000); Sat, 03 Apr 2004 12:49:25 -0500 (EST) Date: Sat, 3 Apr 2004 12:49:15 -0500 (EST) To: Tim Robbins In-Reply-To: <20040330140215.GA50962@cat.robbins.dropbear.id.au> Message-ID: <20040403122057.A22070@twirl.bitdance.com> References: <20040329180323.M43054@twirl.bitdance.com> <20040330140215.GA50962@cat.robbins.dropbear.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII From: "R. David Murray" X-Delivery-Agent: TMDA/1.0 (Cannonade) X-Primary-Address: rdmurray@bitdance.com X-Virus-Scanned: by amavisd-new at pyemail.com cc: freebsd-current@freebsd.org Subject: Re: 5.2.1 hangs on boot where 5.1 does not (ATA issue) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 17:50:06 -0000 On Wed, 31 Mar 2004, Tim Robbins wrote: > Check your cables and jumpers. I've only ever seen this error when they > were incorrect. Well, you were right, but it isn't the whole story, unless there's something I'm not understanding about how the hardware is supposed to work (which is very probable!) Recap: computer has ad0, ad2, and acd0, with ad2 and acd0 on the same controller as master and slave respectively. My system was working with the 5.1 kernel, though it gave some error messages on boot, but hung with the 5.2 kernel when it tried to access ad2. I try to avoid fooling with the hardware as much as possible, so my knowledge is limited. I just took a crash course as I checked over all the jumper settings. Indeed, it turns out that the ad2 disk drive was set to "cable select", something that I've never encountered before (last time I installed a hard drive the only options were master and slave). Changing that to master changed the symptoms, but I'm still in a situation where I can boot with 5.1 but not (at least not completely) wit 5.2. Here are the dmesg captures: 5.1 -------------------------------------------------------------------- ad0: 38166MB [77545/16/63] at ata0-master UDMA100 ad2: 57241MB [116301/16/63] at ata1-master UDMA100 acd0: DVD-ROM at ata1-slave PIO4 ad2: UDMA ICRC error cmd=read fsbn 0 retrying ad2: UDMA ICRC error cmd=read fsbn 0 retrying ad2: UDMA ICRC error cmd=read fsbn 0 retrying ad2: UDMA ICRC error cmd=read fsbn 0 falling back to PIO mode -------------------------------------------------------------------- 5.2 -------------------------------------------------------------------- GEOM: create disk ad0 dp=0xc2de6360 ad0: 38166MB [77545/16/63] at ata0-master UDMA100 GEOM: create disk ad2 dp=0xc2de6160 ad2: 57241MB [116301/16/63] at ata1-master UDMA100 acd0: DVDROM at ata1-slave PIO4 ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=0 ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=0 ad2: FAILURE - READ_DMA status=51 error=84 LBA=0 ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=0 ad2: WARNING - READ_DMA UDMA ICRC error (retrying request) LBA=0 ad2: FAILURE - READ_DMA status=51 error=84 LBA=0 -------------------------------------------------------------------- When booting 5.1, the system continues with the boot process. When booting 5.2, I am told that the disk check for ad2 failed, and am left in single user mode (I'll get you the exact error message if needed, but I forgot to write it down). So, it looks to me like there's still a problem with the 5.2 kernel and this drive. I've checked the DVD, and it is correctly set to slave. The UDMA failures probably result from the fact that it looks like I don't have a UDMA cable (I'm going to get one and see), but unless I'm missunderstanding something shouldn't the OS fall back to PIO mode in that case? (Of course, I also understood from my reading that the hardware could *detect* a UDMA cable, so I'm wondering what's up with that, too). So, in summary, is there anything other than trying a new for-sure-UDMA cable that I should do? And am I right that there is a problem with the 5.2 kernel not falling back to PIO in this case? --David