From owner-freebsd-current@FreeBSD.ORG Sun Jan 18 10:08:43 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 5DB9616A4CE for ; Sun, 18 Jan 2004 10:08:43 -0800 (PST) Received: from out004.verizon.net (out004pub.verizon.net [206.46.170.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93C8743D45 for ; Sun, 18 Jan 2004 10:08:40 -0800 (PST) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([138.89.12.104]) by out004.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040118180839.PXEM8186.out004.verizon.net@RabbitsDen> for ; Sun, 18 Jan 2004 12:08:39 -0600 Date: Sun, 18 Jan 2004 13:08:08 -0500 From: Alexandre "Sunny" Kovalenko To: freebsd-current@freebsd.org Message-Id: <20040118130808.0089ccd4.Alex.Kovalenko@verizon.net> In-Reply-To: <20040118174044.GC761@arthur.nitro.dk> References: <20040118174044.GC761@arthur.nitro.dk> Organization: Home X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [138.89.12.104] at Sun, 18 Jan 2004 12:08:39 -0600 Subject: Re: Hang when probing for CDROM during boot with recent ata(4) code 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: Sun, 18 Jan 2004 18:08:43 -0000 On Sun, 18 Jan 2004 18:40:45 +0100 "Simon L. Nielsen" wrote: > Hello > > With the changed to the ata(4) code 2004-01-14 21:26 UTC ("Use UMA > instead of plain malloc for getting ATA request storage...") the ata > code hangs on my laptop when it's trying to detect my CDROM/DVD drive. > If I disconnect my CDROM drive it boots fine. > > The laptop is an IBM Thinkpad R40 with a CDRW/DVD drive. I think I saw > somebody notice the same problem with a Thinkpad T40 a few days ago. > > My source tree is updated today, but I have tried to use old version of > 'sys/dev/ata'. I can boot with ata code from 2004-01-14 15:00 UTC, and > it fails with ata code from 2004-01-14 22:00 UTC. > > With the new code it hangs right after: > > ata1: reiniting channel .. > ata1: reset tp1 mask=03 ostat0=00 ostat1=00 > ata1-master: stat=0x00 err=0x01 lsb=0x14 msb=0xeb > ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb > ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc > ata1: resetting done .. > ata1-master: pio=0x0c wdma=0x22 udma=0x42 cable=40pin > ata1-master: setting PIO4 on Intel ICH4 chip > ata1-master: setting PIO4 on Intel ICH4 chip > ata1: device config done .. > > > With the working kerne I can get: > > [simon@zaphod:~] sudo atacontrol list > ATA channel 0: > Master: ad0 ATA/ATAPI rev 6 > Slave: no device present > ATA channel 1: > Master: acd0 ATA/ATAPI rev 5 > Slave: no device present > > I have attached dmesg verbose from new code with CDROM drive removed > (dmesgv-new-nocd) and with old code with the CDROM drive installed > (dmesgv-old). I don't have a real dmesg from when it hangs, since the > laptop has no serial port. > > -- > Simon L. Nielsen > FreeBSD Documentation Team > Same here -- laptop is different (Averatec 3150H), but drive looks similar: ATA channel 0: Master: ad0 ATA/ATAPI rev 6 Slave: no device present ATA channel 1: Master: acd0 ATA/ATAPI rev 5 Slave: no device present Last thing before hang with verbose boot (not necessary releated) is: (probe0:ata0:0:0:0) error 22 (probe0:ata0:0:0:0) Unretryable error (probe1:ata0:0:1:0) error 22 (probe1:ata0:0:1:0) Unretryable error message is hand-transcribed because machine does not have serial port. Let me know if additional details are needed or there are any patches to try. -- Alexandre "Sunny" Kovalenko.