Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 13:58:15 -0700 (MST)
From:      Warner Losh <imp@bsdimp.com>
To:        nyan@jp.FreeBSD.org
Cc:        sos@DeepCore.dk
Subject:   Re: UPDATE: ATA mkIII first official patches - please test!
Message-ID:  <20050215.135815.112575021.imp@bsdimp.com>
In-Reply-To: <20050215.210805.41634669.nyan@jp.FreeBSD.org>
References:  <20050213.135541.74688832.nyan@jp.FreeBSD.org> <420F907B.1090901@DeepCore.dk> <20050215.210805.41634669.nyan@jp.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Takahashi Yoshihiro <nyan@jp.FreeBSD.org>
Subject: Re: UPDATE: ATA mkIII first official patches - please test!
Date: Tue, 15 Feb 2005 21:08:05 +0900 (JST)

> In article <420F907B.1090901@DeepCore.dk>
> S=F8ren Schmidt <sos@DeepCore.dk> writes:
> =

> > >>>2. A geometry translation for pc98 is NOT enough.
> > >>>
> > >>>   Currently, it works only under 4.3GB disk.
> > =

> > Wrong, ATA mk3 does solve the problem but using the "current" geomt=
ry =

> > set in the drives by the BIOS. However the code missed it in one pl=
ace =

> > in ata-lowlevel.c when the code was moved there from ata-disk.c.
> > This has been fixed and will be present in the next snapshot as I s=
adi =

> > earlier.
> =

> =

> ATA-mkIII does NOT completely solve the problem.
> =

> The word 54-58 of the IDENTIFY DEVICE parameter are valid only up to
> ATA/ATAPI-5.  They are obsolete parameters in ATA/ATAPI-6 and later.
> So using them for a geometry translation has NO effect for recent
> disks.

That would explain why all the disks that I tried worked with the
IDENTIFY DEVICE patches I posted elsewhere (from 1.6G to 120G).  I
don't have any ata6 disks.  That's one mystery solved. :-)

> The following is the result when use SATA 200GB disk on pc98.  It is
> clearly that recognizing a geometry fails.
> =

> atapci0: <SiI 3114 SATA150 controller> port 0xc000-0xc00f,0x602c-0x60=
2f,0x6030-0x6037,0x6028-0x602b,0x6020-0x6027 mem 0x20411000-0x204113ff =
irq 10 at device 17.0 on pci0
> ad4: <ST3200822AS/3.01> ATA-6 disk at ata2-master
> ad4: 190782MB (390721968 sectors), 387621 C, 16 H, 63 S, 512 B
> ad4: 16 secs/int, 1 depth queue, SATA150
> =

> BIOS Geometries:
>  1:1778ffff 0..6008=3D6009 cylinders, 0..255=3D256 heads, 1..255=3D25=
5 sectors

Is this the geometry that the PC98 BIOS uses?

Warner



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