From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30421 invoked from network); 17 Mar 2000 02:15:39 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 Mar 2000 02:15:39 -0000 Received: from ztxmail05.ztx.compaq.com (ztxmail05.ztx.compaq.com [161.114.1.209]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA11782 for ; Thu, 16 Mar 2000 21:15:38 -0500 Received: by ztxmail05.ztx.compaq.com (Postfix, from userid 12345) id 2763E345; Thu, 16 Mar 2000 20:15:08 -0600 (CST) Received: from mailint02.im.hou.compaq.com (mailint02.im.hou.compaq.com [172.18.229.233]) by ztxmail05.ztx.compaq.com (Postfix) with ESMTP id 1E151137 for ; Thu, 16 Mar 2000 20:15:08 -0600 (CST) Received: by mailint02.im.hou.compaq.com (Postfix, from userid 12345) id A5F8E4D418; Thu, 16 Mar 2000 20:15:01 -0600 (CST) Received: from pdgsrv.mro.dec.com (pdgsrv.mro.dec.com [16.34.112.86]) by mailint02.im.hou.compaq.com (Postfix) with ESMTP id 5E1D243981 for ; Thu, 16 Mar 2000 20:15:01 -0600 (CST) Received: from linux04.mro.dec.com by pdgsrv.mro.dec.com; (8.8.8/1.1.8.2/13Dec96-1209PM) id VAA16371; Thu, 16 Mar 2000 21:15:06 -0500 (EST) Received: (from jestabro@localhost) by linux04.mro.dec.com (8.9.3/8.9.3) id VAA02230 for axp-list@redhat.com; Thu, 16 Mar 2000 21:15:13 -0500 Date: Thu, 16 Mar 2000 21:15:13 -0500 From: Jay Estabrook To: axp-list@redhat.com Subject: Re: FIX: Permedia 2 driver XFree-4.0 Message-ID: <20000316211513.A2207@linux04.mro.dec.com> Mail-Followup-To: axp-list@redhat.com References: <20000316164708.A1423@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <20000316164708.A1423@twiddle.net> On Thu, Mar 16, 2000 at 04:47:08PM -0800, Richard Henderson wrote: > On Thu, Mar 16, 2000 at 06:51:54AM -0500, Peter Petrakis wrote: > > The patch below fixes my problem with the permedia 2 driver. > > > -# define BUS_BASE _bus_base() > > +# define BUS_BASE (_bus_base() + 0x200000000) > > Um, that means you've got your video card in hose 1, not hose 0. 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. 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... :-) > And now you can't run the same binary on a different machine. This it VERY true.. 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). --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 -----------------------------------------------------------------------------