From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 16 01:53:54 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DFB016A4CE for ; Wed, 16 Feb 2005 01:53:54 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A9AF43D2F for ; Wed, 16 Feb 2005 01:53:51 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j1G1rOcs072218; Wed, 16 Feb 2005 12:23:25 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 16 Feb 2005 12:23:11 +1030 User-Agent: KMail/1.7.92 References: <16914.22016.593790.719399@grasshopper.cs.duke.edu> <20050215.135343.104086484.imp@bsdimp.com> In-Reply-To: <20050215.135343.104086484.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1181563.LWCu8OVLV4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502161223.13075.doconnor@gsoft.com.au> X-Spam-Score: -5.4 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: gallatin@cs.duke.edu Subject: Re: mapping small parts of a pci card to conserve KVA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 01:53:54 -0000 --nextPart1181563.LWCu8OVLV4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 16 Feb 2005 07:23, Warner Losh wrote: > > At least on 5.3R, I seem to get back the same struct resource * from > > each call. rman_get_virtual() returns a different kva for each > > mapping, yet they all seem to map to the same physical address. > > Eg, I call vtophys() on the results of rman_get_virtual(), > > for each segment, and they all map to 0xf9000000. > > > > Is there a way to just map what I need? > > There's no way to map part of a resource currently. I'd like to > create an API to do that, since it would be useful for a lot of > things, but none exists today. As soon as bus_activate_resource is > called, it gets mapped. You could do something like puc does and attach a child driver to part of i= t=20 right? (Stab in dark :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1181563.LWCu8OVLV4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBCEqeI5ZPcIHs/zowRAustAJ0VO1TpxQFZpgLsYfxC3fqZflM/CACgjybQ oxt3L7/deob4c5QDAuM+wCs= =fJao -----END PGP SIGNATURE----- --nextPart1181563.LWCu8OVLV4--