From owner-cvs-all Wed Dec 4 10:57: 9 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34C4637B401; Wed, 4 Dec 2002 10:57:07 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F35A43EC2; Wed, 4 Dec 2002 10:56:55 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id gB4IuqsX064096; Wed, 4 Dec 2002 19:56:52 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200212041856.gB4IuqsX064096@spider.deepcore.dk> Subject: Re: cvs commit: src/sys/dev/ata ata-all.c ata-all.h ata-cbus.c ata-disk.c ata-dma.c ata-isa.c ata-pci.c atapi-fd.c In-Reply-To: <20021204.142445.39208982.nyan@jp.FreeBSD.org> To: Takahashi Yoshihiro Date: Wed, 4 Dec 2002 19:56:52 +0100 (CET) Cc: sos@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Takahashi Yoshihiro wrote: > In article <200212032019.gB3KJcdf074276@repoman.freebsd.org> > Søren Schmidt writes: > > > sos 2002/12/03 12:19:38 PST > > > Add support for the PC98 platform to the ATA driver. > > This mostly consists of functionality to serialize accesses to > > the two ATA channels (which can also be used to "fix" certain > > PCI based controllers). > > I have tested the ata driver. But, I can't use the ad1 and ad2 > devices. A old kernel with the wd driver has no problem. I attach > the dmesgs and geoms. Could you try this patch please ? Index: geom_pc98.c =================================================================== RCS file: /home/ncvs/src/sys/geom/geom_pc98.c,v retrieving revision 1.20 diff -u -r1.20 geom_pc98.c --- geom_pc98.c 3 Dec 2002 20:18:35 -0000 1.20 +++ geom_pc98.c 4 Dec 2002 16:58:15 -0000 @@ -79,6 +79,8 @@ struct g_pc98_softc { int type [NDOSPART]; struct dos_partition dp[NDOSPART]; + u_int fwsectors; + u_int fwheads; }; static int @@ -96,6 +98,10 @@ gsp = gp->softc; mp = gsp->softc; if (bp->bio_cmd == BIO_GETATTR) { + if (g_handleattr_int(bp, "GEOM::fwsectors", mp->fwsectors)) + return (1); + if (g_handleattr_int(bp, "GEOM::fwheads", mp->fwheads)) + return (1); if (g_handleattr_int(bp, "PC98::type", mp->type[index])) return (1); if (g_handleattr_off_t(bp, "PC98::offset", @@ -194,6 +200,8 @@ fwsectors = 17; fwheads = 8; } + ms->fwsectors = fwsectors; + ms->fwheads = fwheads; gsp->frontstuff = sectorsize * fwsectors; spercyl = (off_t)fwsectors * fwheads * sectorsize; buf = g_read_data(cp, 0, -- -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message