From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: FIX: Permedia 2 driver XFree-4.0
Date: Fri, 17 Mar 2000 14:12:10 -0800 [thread overview]
Message-ID: <20000317141210.B4306@twiddle.net> (raw)
In-Reply-To: <20000317152355.C849@linux04.mro.dec.com>
On Fri, Mar 17, 2000 at 03:23:55PM -0500, Jay Estabrook wrote:
> > BTW, is the sparse mapping somewhat related to the actual PCI-id on the
> > bus ? 'cause if it were we wouldn't need to map the whole 16G but rather
> > that portion corresponding to the card. The PCI information is obtained
> > anyway, so that won't be a problem.
>
> Egbert changed that area (lnx_video.c memory mapping), I think for some
> reasons associated with multi-head, to map the *entire* PCI DENSE and
> (not quite all of) SPARSE, from the earlier, only-what-is-needed method.
Please don't do this. Yes, I can understand wanting to not have
to associate re-mapped regions with particular cards or whatever,
but there is a better way.
Alpha userland has a 44-bit virtual address space to play with.
Let's use it. Choose some otherwise unused area of the vm space.
I suggest beginning at 0x300_0000_0000. Reserve the first 16G
beginning there for sparse mappings on hose 0, reserve the next
4G for dense mappings on hose 0. Begin the mappings for hose 1
at offset 32G, and so on.
I say "reserve", but that's something that only happens in your
mind. There is, unfortunately, no unix syscall to actually do
any reservation. However, you can safely know that most memory
will be mapped about 0x200_0000_0000, and that someone would
have to go out of their way to map something at 0x300_0000_0000.
Given that the X server is in control of itself and is not a
library, we can easily make the assumption that our "reserved"
region will not be fiddled with.
That said, it's easy enough to use MAP_FIXED to mmap the portions
of the I/O region that are actually needed, and to position the
portions _as if_ the entire region were mapped.
r~
next prev parent reply other threads:[~2000-03-17 22:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <38D2429C.3CA5F950@hw.ac.uk>
2000-03-17 14:44 ` FIX: Permedia 2 driver XFree-4.0 Hannes Reinecke
2000-03-17 16:40 ` Jay Estabrook
2000-03-17 17:06 ` Hannes Reinecke
2000-03-17 20:23 ` Jay Estabrook
2000-03-17 20:31 ` Brian Pomerantz
2000-03-17 22:12 ` Richard Henderson [this message]
2000-03-17 21:53 ` Richard Henderson
2000-03-17 0:47 Richard Henderson
2000-03-17 2:15 ` Jay Estabrook
-- strict thread matches above, loose matches on Subject: below --
2000-03-16 11:51 Peter Petrakis
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox