From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24897 invoked from network); 17 Mar 2000 16:39:21 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 Mar 2000 16:39:21 -0000 Received: from zmamail02.zma.compaq.com (zmamail02.zma.compaq.com [161.114.64.102]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA18707 for ; Fri, 17 Mar 2000 11:39:20 -0500 Received: by zmamail02.zma.compaq.com (Postfix, from userid 12345) id 96FF72B3; Fri, 17 Mar 2000 11:38:50 -0500 (EST) Received: from pdgsrv.mro.dec.com (pdgsrv.mro.dec.com [16.34.112.86]) by zmamail02.zma.compaq.com (Postfix) with ESMTP id 59C9814B for ; Fri, 17 Mar 2000 11:38:50 -0500 (EST) Received: from linux04.mro.dec.com by pdgsrv.mro.dec.com; (8.8.8/1.1.8.2/13Dec96-1209PM) id LAA25433; Fri, 17 Mar 2000 11:38:50 -0500 (EST) Received: (from jestabro@localhost) by linux04.mro.dec.com (8.9.3/8.9.3) id LAA01206 for axp-list@redhat.com; Fri, 17 Mar 2000 11:40:10 -0500 Date: Fri, 17 Mar 2000 11:40:10 -0500 From: Jay Estabrook To: axp-list@redhat.com Subject: Re: FIX: Permedia 2 driver XFree-4.0 Message-ID: <20000317114010.A1186@linux04.mro.dec.com> Mail-Followup-To: axp-list@redhat.com References: <38D2429C.3CA5F950@hw.ac.uk> <38D244CA.DCBE1D26@civ.hw.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us 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 -----------------------------------------------------------------------------