From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31305 invoked from network); 17 Mar 2000 18:43:11 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 Mar 2000 18:43:11 -0000 Received: from piglet.twiddle.net (piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA29290 for ; Fri, 17 Mar 2000 13:43:10 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.9.3/8.9.3) id KAA03912 for axp-list@redhat.com; Fri, 17 Mar 2000 10:43:09 -0800 Date: Fri, 17 Mar 2000 10:43:09 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: FIX #2: XF-4.0 doesn't like my Permedia 2 Message-ID: <20000317104309.A3816@twiddle.net> References: <38D24644.B5B3747F@civ.hw.ac.uk> <38D24738.A2D3D586@civ.hw.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <38D24738.A2D3D586@civ.hw.ac.uk> On Fri, Mar 17, 2000 at 02:54:48PM +0000, Hannes Reinecke wrote: > It does work for 164SX-machines, should for 164LX. Miata is possible, > but someone should send me an output of /proc/cpuinfo to incorporate it. What if I go ahead and add the syscalls Jay and I talked about, and you use those directly if they're available? New kernels distribute faster than new libc's... The new syscall would look like enum pciconfig_iobase_which { IOBASE_SPARSE_MEM = 1, IOBASE_DENSE_MEM = 2, IOBASE_SPARSE_IO = 3, IOBASE_DENSE_IO = 4, }; long pciconfig_iobase(enum pciconfig_iobase_which which, unsigned long int __bus, unsigned long int __dfn); I.e. you'd need pci information for the card you're interested in. Which means we'll finally be able to support X on something other than bus 0. But supposing you get ENOSYS, you'll have to fall back on this: > + if (sscanf(buf,"cpu model : %s ",cpu_model) == 1) { > + if (!strcmp(cpu_model,"EV3") || > + !strcmp(cpu_model,"EV4") || > + !strcmp(cpu_model,"Simulate") || > + !strcmp(cpu_model,"LCA4") || > + !strcmp(cpu_model,"EV5") || > + !strcmp(cpu_model,"EV45") ) { > + has_bwx = 0; > + } > + } > + if (sscanf(buf,"system type : %s ",sys_type) == 1) { > + if (strcmp(sys_type, "EB164")) { > + can_bwa = 0; > + } else { > + can_bwa = 1; > + } > + } > + if (sscanf(buf,"system variation : %s ",sys_var) == 1) { > + if (!strcmp(sys_var,"EB164") || > + !strcmp(sys_var,"PC164") ) { > + can_bwa = 0; > + } > + } > + } Rather than try and figure out whether or not bwx is or is not supported, I think you should try to exactly identify PYXIS. That'd be LX, SX, Miata, and Ruffian. The later two are listed in the "system type" field. > + xf86_axp_IOBase = _bus_base() + 0x200000000; Moreover, once you've identified PYXIS, don't rely on glibc continuing to return the CIA_DENSE_MEM region. Go ahead and hard-code CIA_BW_MEM = 0x8800000000UL. r~