Date: Tue, 31 Aug 2004 22:23:24 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@DeepCore.dk> To: "J.R. Oldroyd" <fbsd@opal.com> Cc: current@freebsd.org Subject: Re: Current 8/27/2004, DVD problems Message-ID: <4134DE3C.7080303@DeepCore.dk> In-Reply-To: <20040831144205.GA817@linwhf.opal.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4134DE3C.7080303>