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 441392F5FA for ; Tue, 27 Feb 2001 14:31:25 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f1RJWBb27139 for axp-list@listman.redhat.com; Tue, 27 Feb 2001 14:32:11 -0500 Received: from zmamail04.zma.compaq.com (zmamail04.zma.compaq.com [161.114.64.104]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f1RJWB427135 for ; Tue, 27 Feb 2001 14:32:11 -0500 Received: by zmamail04.zma.compaq.com (Postfix, from userid 12345) id AC13854C6; Tue, 27 Feb 2001 14:31:13 -0500 (EST) Received: from mailrelay01.cac.cpqcorp.net (mailrelay01.cac.cpqcorp.net [16.47.132.152]) by zmamail04.zma.compaq.com (Postfix) with ESMTP id 686F44FEE for ; Tue, 27 Feb 2001 14:31:13 -0500 (EST) Received: by mailrelay01.cac.cpqcorp.net (Postfix, from userid 12345) id 0823F13A; Tue, 27 Feb 2001 11:31:13 -0800 (PST) Received: from linux04.mro.cpqcorp.net (linux04.mro.cpqcorp.net [16.129.9.99]) by mailrelay01.cac.cpqcorp.net (Postfix) with ESMTP id 77179143 for ; Tue, 27 Feb 2001 11:31:12 -0800 (PST) Received: (from jestabro@localhost) by linux04.mro.cpqcorp.net (8.9.3/8.9.3) id OAA01907 for axp-list@redhat.com; Tue, 27 Feb 2001 14:41:51 -0500 Date: Tue, 27 Feb 2001 14:41:51 -0500 From: Jay Estabrook To: axp-list@redhat.com Subject: Re: No valid MMIO address in PCI config space Message-ID: <20010227144151.A1877@linux04.mro.cpqcorp.net> Mail-Followup-To: axp-list@redhat.com References: <200102271611.RAA00755@ludwig-alpha.unil.ch> <20010227204041.A2839@jurassic.park.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010227204041.A2839@jurassic.park.msu.ru>; from ink@jurassic.park.msu.ru on Tue, Feb 27, 2001 at 08:40:41PM +0300 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.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Tue, Feb 27, 2001 at 08:40:41PM +0300, Ivan Kokshaysky wrote: > On Tue, Feb 27, 2001 at 05:11:25PM +0100, Christian Iseli wrote: > > Jay.Estabrook@compaq.com said: > > > It's a conflict between kernel PCI resource allocation and XFree86. > > > The problem I had (XFree86 was considering a disabled ethernet ROM as > > > active) was fixed by patching XFree86, but I'm not sure this is the > > > same problem... > > I think it's the same problem (I've seen this too) and it's definitely > XFree86 bug. > > The XFree86 PCI probing code initially assumes that the size of the region > is equal to its alignment (in this case a840000:a87ffff ;-). Later it tries > to correct this (see "resource overlap reduced" messages in XFree86 logs). > Unfortunately, it updates only normal (non-ROM) resources... > > Here is a patch vs. XFree86-4.0.2 fixing that. > > Ivan. > > --- xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c.orig Fri Dec 8 23:13:35 2000 > +++ xc/programs/Xserver/hw/xfree86/common/xf86pciBus.c Mon Feb 26 13:54:19 2001 I've had good luck twice (:-) with the following somewhat simpler patch. Ivan, please, if possible, see if this works for you, too; your problem and Christian's may not be what has bitten me... Not sure what the best method really is: mine simply ignores ROM resources that aren't enabled, which was the case in both instances I ran into... diff -ur old/programs/Xserver/hw/xfree86/os-support/bus/Pci.c new/programs/Xserver/hw/xfree86/os-support/bus/Pci.c --- old/programs/Xserver/hw/xfree86/os-support/bus/Pci.c Tue Feb 20 12:35:30 2001 +++ new/programs/Xserver/hw/xfree86/os-support/bus/Pci.c Wed Feb 21 17:28:54 2001 @@ -559,7 +559,10 @@ else mask1 = PCIGETIO(mask1); else - mask1 = PCIGETROM(mask1); + if (addr1 & PCI_MAP_ROM_DECODE_ENABLE) + mask1 = PCIGETROM(mask1); + else + mask1 = 0; if (mask1 == 0) return 0; bits = 0; --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 -----------------------------------------------------------------------------