Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 1998 16:14:15 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, sos@FreeBSD.ORG
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/i386/isa wd.c
Message-ID:  <199804110614.QAA00441@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> The Quantum Bigfoot 12G can probably be supported without using
>> LBA mode.  Since the old driver sort of worked, this drive must
>> support CHS mode, so it should all be accessible using any CHS
>> translation with 65535 * heads * sectors >= wp->wdp_lbasize.
>> Just set its size to wp->wdp_lbasize instead of to the default,
>> and adjust the number of cylinders.  (diskslice_machdep.c already
>> does similar adjustments if any slice seems to go beyond the
>> end of the disk, but it is too CHS-centric and only works up to
>> C=1024).
>
>This might be possible, but according to the ATA4 std. the CHS
>mode is "optional" for the drive makers, so we cannot knwo.

We can know - see my next paragraph.

>Its also easier to just use LBA all over :)

It's harder, because very old drives don't support it, and it is
not easy to tell which old drives support it.

>> The need for LBA can probably be determined automatically using
>> (wp->wdp_heads == 0 && wp->wdp_sectors == 0).  (ATA-4 permits
>> drives larger than 8G to not support CHS.  If it is not supported,
>> then the default translation is 0/0.)  I think we won't see any
>> drives that don't support it until 8G is a tiny drive.
>
>Right, but this only works if the drives implements the optional
>part above. I dont knwo before I get HW to test on.

Testing proves nothing, since future drives are not required
to support it.  OTOH, current models of the Quantum Bigfoot 12G
obviously support it, since otherwise the bug reports would be
about division by 0 instead of missing sectors.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



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