From owner-freebsd-current@FreeBSD.ORG Tue Feb 15 21:01:02 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6CC616A4CE; Tue, 15 Feb 2005 21:01:02 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4653C43D45; Tue, 15 Feb 2005 21:01:02 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [IPv6:::1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j1FKwF0I054429; Tue, 15 Feb 2005 13:58:15 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 15 Feb 2005 13:58:15 -0700 (MST) Message-Id: <20050215.135815.112575021.imp@bsdimp.com> To: nyan@jp.FreeBSD.org From: Warner Losh 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> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-stable@freebsd.org cc: freebsd-current@freebsd.org cc: nakaji@jp.FreeBSD.org cc: sos@DeepCore.dk Subject: Re: UPDATE: ATA mkIII first official patches - please test! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 21:01:02 -0000 From: Takahashi Yoshihiro 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 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: port 0xc000-0xc00f,0x602c-0x60= 2f,0x6030-0x6037,0x6028-0x602b,0x6020-0x6027 mem 0x20411000-0x204113ff = irq 10 at device 17.0 on pci0 > ad4: 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