From: Hannes Reinecke <civhr@civ.hw.ac.uk>
To: AXP Developers list <axp-list@redhat.com>
Subject: Re: FIX: Permedia 2 driver XFree-4.0
Date: Fri, 17 Mar 2000 14:44:26 +0000 [thread overview]
Message-ID: <38D244CA.DCBE1D26@civ.hw.ac.uk> (raw)
In-Reply-To: 38D2429C.3CA5F950@hw.ac.uk
Jay Estabrook wrote:
[..]
>
> Actually, this change appeared together with some others, and the
> total of them is quite subtle.
>
> First off, IIRC, he's running on an EV56 machine and prolly an
> LX/SX with PYXIS.
>
Indeed. Michel forgot to forward my entire mail, where it explicitely
states that this is a gross hack and _NOT_ to be used as a real patch.
> Thus, the changes effectively do:
>
> 1. make the server treat *all* machines as ones with NO "sparse" space,
> and therefore use byte/word instructions where needed to access bus
> I/O and memory space
> 2. make BUS_BASE on a PYXIS machine address the byte/word "dense" area,
> thus making the byte/word instructions from (1) do what they should.
>
> Pretty slick... :-)
(Whee, I did it correctly !)
>
> > And now you can't run the same binary on a different machine.
>
> This it VERY true..
>
Indeed. But then again, this was not meant to.
> The REAL problem that was initially encountered is caused by not
> mapping enough of the SPARSE bus space; you only need to change the
> size of the area mapped to SPARSE space in:
>
> xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_video.c
>
> ie use the code:
>
> lnxSBase = mmap((caddr_t)0, 0x400000000, /* yes, 16GB!!! */
> PROT_READ | PROT_WRITE,
> MAP_SHARED, fd,
> (off_t) _bus_base_sparse());
>
> Then it should oughta just work, AND be portable, though it will use
> an inordinate amount of pagetable space (ie it is mapping 20GB of the
> user's virtual address space to the PCI bus SPARSE and DENSE areas).
>
Well, but this was not my intention. The main intention was that we
should be using Byte/Word access on machines which support it.
Unfortunately the information given by libc via _bus_base is misleading,
since on a PYXIS _bus_base points to the dense memory area (which is
completely useless) and not to the beginning of the byte/word I/O area,
as it should be.
Hmm, the above fix: does it work on all older machines ?
Ie can they all mmap() this area ? If so, we can just go ahead and use
your patch, if not, well, than I fear we have to hardcode the memory
regions for every single machine.
Cheers,
Hannes
--
Hannes Reinecke <civhr@civ.hw.ac.uk>
Fluid Loading and Instrumentation Center Tel: (+44) 131 449 5111 x4430
Dept. of Civil & Offshore Engineering Fax: (+44) 131 451 3154
Heriot Watt University, Edinburgh EH14 4AS
next parent reply other threads:[~2000-03-17 14:44 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 ` Hannes Reinecke [this message]
2000-03-17 16:40 ` FIX: Permedia 2 driver XFree-4.0 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
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