From owner-freebsd-current@FreeBSD.ORG Tue Aug 31 20:23:58 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 362D216A4CE for ; Tue, 31 Aug 2004 20:23:58 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8680C43D48 for ; Tue, 31 Aug 2004 20:23:57 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i7VKNt4N014164; Tue, 31 Aug 2004 22:23:56 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4134DE3C.7080303@DeepCore.dk> Date: Tue, 31 Aug 2004 22:23:24 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "J.R. Oldroyd" References: <412F5A10.8080907@drexel.edu> <412F7292.6000804@DeepCore.dk> <20040830181540.GA809@linwhf.opal.com> <413372B3.5010603@DeepCore.dk> <20040830192224.GB809@linwhf.opal.com> <413390B9.5050705@DeepCore.dk> <20040831144205.GA817@linwhf.opal.com> In-Reply-To: <20040831144205.GA817@linwhf.opal.com> Content-Type: multipart/mixed; boundary="------------020100020404000900040006" cc: current@freebsd.org Subject: Re: Current 8/27/2004, DVD problems 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: Tue, 31 Aug 2004 20:23:58 -0000 This is a multi-part message in MIME format. --------------020100020404000900040006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable J.R. Oldroyd wrote: > Some follow-up. >=20 > Similar to other folks with this problem, the system will boot in > verbose mode. However, ONLY with no medium. If medium is present, > it still hangs. If the tray is empty, it will boot in either DMA or > PIO mode. And if I then insert a disc, I can read it OK. Hmm does the attached patch change behavior in any way ? -S=F8ren --------------020100020404000900040006 Content-Type: text/plain; name="ata_wait-patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ata_wait-patch" Index: ata-lowlevel.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v retrieving revision 1.44 diff -u -r1.44 ata-lowlevel.c --- ata-lowlevel.c 16 Aug 2004 09:32:35 -0000 1.44 +++ ata-lowlevel.c 24 Aug 2004 07:25:32 -0000 @@ -721,6 +721,12 @@ rman_get_start(atadev->channel->r_io[ATA_DATA].res), command, (intmax_t)lba, count, feature); + /* ready to issue command ? */ + if (ata_wait(atadev, 0) < 0) { + ata_prtdev(atadev, "timeout waiting for ready command=%02x\n", command); + return -1; + } + /* select device */ ATA_IDX_OUTB(atadev->channel, ATA_DRIVE, ATA_D_IBM | atadev->unit); --------------020100020404000900040006--