Re: Current 8/27/2004, DVD problems

From: Søren Schmidt <sos_at_DeepCore.dk>
Date: Tue, 31 Aug 2004 22:23:24 +0200
J.R. Oldroyd wrote:
> Some follow-up.
> 
> 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øren

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
_at__at_ -721,6 +721,12 _at__at_
 		   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);
 
Received on Tue Aug 31 2004 - 18:23:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:09 UTC