Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: FIX: Permedia 2 driver XFree-4.0
Date: Fri, 17 Mar 2000 11:40:10 -0500	[thread overview]
Message-ID: <20000317114010.A1186@linux04.mro.dec.com> (raw)
In-Reply-To: <38D244CA.DCBE1D26@civ.hw.ac.uk>

On Fri, Mar 17, 2000 at 02:44:26PM +0000, Hannes Reinecke wrote:
>
> Well, but this was not my intention. The main intention was that we
> should be using Byte/Word access on machines which support it.

At the time that PYXIS-based machines were first supported, there was no
need to force byte/word use; in fact, it was difficult, as the assembler
didn't even support the byte/word instructions, IIRC. So it was easiest
to just continue using SPARSE. It wasn't until the appearance of the EV6
machines that it became necessary to support the byte/word stuff, and I
guess we never got around to considering changing the PYXIS support to
use them.

> 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.

Completely useless for byte/word access, yes, but the primary use of
the _bus_base area is as *memory*, not registers (whose size often
require byte/word access for correct operation). And the code to
access framebuffer memory is strictly controlled to perform (as much
as possible :-) aligned 32- or 64-bit access to that area

Only with the more modern cards have memory-mapped registers (and thus
SPARSE access) become a requirement - all earlier cards used
inb/outb/etc to access the legacy VGA register addresses. IIRC, Matrox
Millennium I was the reason the SPARSE stuff had to go in, and even
more, it required PCI Config Space access as well, which necessitated
the addition of those syscalls on Alpha.

But yes, in the next incarnation of _bus_base support code, we will
make PYXIS utilize the BWIO space.

> 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,

It should, though (as I mentioned before) it is quite wasteful of system
resources, and it may be overkill for the older boxes (EV4 and EV45).

> if not, well, than I fear we have to hardcode the memory
> regions for every single machine.

Not a very atttractive option.

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------


  reply	other threads:[~2000-03-17 16:39 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 [this message]
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