Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2003 09:55:56 +0100 (CET)
From:      Soren Schmidt <sos@spider.deepcore.dk>
To:        Chris Faulhaber <jedgar@fxp.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: [ATAng?] ad1 disappeared again
Message-ID:  <200312030855.hB38tuED056388@spider.deepcore.dk>
In-Reply-To: <20031201190045.GE57659@chaos.fxp.org>

next in thread | previous in thread | raw e-mail | index | archive | help
It seems Chris Faulhaber wrote:
> I have been seeing the same issue since August with a different,
> but similiar, set of drives:
> 
> ad0: 57241MB <ST360015A> [116301/16/63] at ata0-master UDMA100
> ad1: 57241MB <ST360015A> [116301/16/63] at ata0-slave UDMA100
> 
> Under -CURRENT only the first drive is seen; RELENG_4 still works
> fine.

Could you try this patch and get back to me with the result please:

Index: ata-lowlevel.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.23
diff -u -r1.23 ata-lowlevel.c
--- ata-lowlevel.c      2 Nov 2003 22:04:53 -0000       1.23
+++ ata-lowlevel.c      3 Dec 2003 07:50:44 -0000
@@ -575,7 +575,7 @@
                }
            }
        }
-       if (stat1 & ATA_S_BUSY) {
+       if (!((mask == 0x03) && (stat0 & ATA_S_BUSY)) && (stat1 & ATA_S_BUSY)) {
            ATA_IDX_OUTB(ch, ATA_DRIVE, ATA_D_IBM | ATA_SLAVE);
            DELAY(10);

-Søren
                       .. but it works under windows!!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312030855.hB38tuED056388>