Date: Wed, 4 Dec 2002 19:56:52 +0100 (CET) From: Soeren Schmidt <sos@spider.deepcore.dk> To: Takahashi Yoshihiro <nyan@jp.FreeBSD.org> Cc: sos@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org 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 Message-ID: <200212041856.gB4IuqsX064096@spider.deepcore.dk> In-Reply-To: <20021204.142445.39208982.nyan@jp.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
It seems Takahashi Yoshihiro wrote: > In article <200212032019.gB3KJcdf074276@repoman.freebsd.org> > Søren Schmidt <sos@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212041856.gB4IuqsX064096>