From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 0F0962F19D for ; Mon, 28 Aug 2000 15:03:20 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id PAA12218 for axp-list@listman.redhat.com; Mon, 28 Aug 2000 15:03:19 -0400 Received: from devserv.devel.redhat.com (root@devserv.devel.redhat.com [207.175.42.156]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA12214 for ; Mon, 28 Aug 2000 15:03:19 -0400 Received: (from msw@localhost) by devserv.devel.redhat.com (8.9.3/8.9.3) id PAA13695 for axp-list@redhat.com; Mon, 28 Aug 2000 15:03:19 -0400 Date: Mon, 28 Aug 2000 15:03:19 -0400 From: Matt Wilson To: axp-list@redhat.com Subject: Re: X4.0.1 on an XP1000 Message-ID: <20000828150319.P18147@devserv.devel.redhat.com> References: <010901c00c78$ae9ce2e0$0801a8c0@office.ideal> <200008222054.QAA02500@penguin.mr.picker.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nmemrqcdn5VTmUEE" X-Mailer: Mutt 1.0.1i In-Reply-To: <200008222054.QAA02500@penguin.mr.picker.com>; from don.russell@marconi.com on Tue, Aug 22, 2000 at 04:54:06PM -0400 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors --nmemrqcdn5VTmUEE Content-Type: text/plain; charset=us-ascii The attached patch should fix it. Cheers, Matt On Tue, Aug 22, 2000 at 04:54:06PM -0400, Don Russell wrote: > > Am I the only one who can't get xfree 4.0.1 to run on an XP1000? > > Out of the box it segvs in scanpci. I found a bandaid in > linux.debian.alpha from Thomas Weyergraf (thank you) that avoids the > segv by forcing the number of PCI busses two 2, but then I get > a system that will not run two screen (trap 4) > > The machines are XP1000s with two elsa gloria (permidia2) cards running > either 2.2.13 or pre-patch-2.2.17-16. --nmemrqcdn5VTmUEE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="XFree86-4.0.1-alpha-pci.patch" *** axpPci.c 2000/04/10 13:13:36 1.1.1.1 --- axpPci.c 2000/07/06 08:48:56 *************** *** 101,108 **** CARD32 val = 0xffffffff; bus = PCI_BUS_FROM_TAG(tag); dfn = PCI_DFN_FROM_TAG(tag); ! syscall(__NR_pciconfig_read, bus, dfn, off, 4, &val); return(val); } --- 101,114 ---- CARD32 val = 0xffffffff; bus = PCI_BUS_FROM_TAG(tag); + /* + * Workaround for kernel bug + * triggered when probing for PCI devices + */ + if (bus >= pciNumBuses) + return (val); dfn = PCI_DFN_FROM_TAG(tag); ! syscall(__NR_pciconfig_read, bus, dfn, off, 4, &val); return(val); } --nmemrqcdn5VTmUEE--