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 051022FEB9 for ; Tue, 27 Feb 2001 12:41:33 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f1RHgJH14289 for axp-list@listman.redhat.com; Tue, 27 Feb 2001 12:42:19 -0500 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f1RHg5414282 for ; Tue, 27 Feb 2001 12:42:05 -0500 Received: (from ink@localhost) by jurassic.park.msu.ru (8.11.0/8.11.0) id f1RHefq03117 for axp-list@redhat.com; Tue, 27 Feb 2001 20:40:41 +0300 Date: Tue, 27 Feb 2001 20:40:41 +0300 From: Ivan Kokshaysky To: axp-list@redhat.com Subject: Re: No valid MMIO address in PCI config space Message-ID: <20010227204041.A2839@jurassic.park.msu.ru> References: <200102271611.RAA00755@ludwig-alpha.unil.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102271611.RAA00755@ludwig-alpha.unil.ch>; from chris@ludwig-alpha.unil.ch on Tue, Feb 27, 2001 at 05:11:25PM +0100 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 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... > > > Post your log and let's see... I think it's the same problem (I've seen this too) and it's definitely XFree86 bug. This time sym53c875 ROM seems to confuse Xserver: > got res[a840000:a84ffff] for resource 6 of Symbios Logic Inc. (formerly NCR) 53c875 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 @@ -695,19 +695,23 @@ correctPciSize(memType base, int oldsize continue; basep = &pcrp->pci_base0; - for (i = 0; i < 6; i++) { + for (i = 0; i < 7; i++) { int j = i; - if (basep[i] && (pcrp->basesize[i] == old_bits)) - if (((type & ResIo) && PCI_MAP_IS_IO(basep[i]) - && (B2I(pcrp->tag,PCIGETIO(basep[i])) == base)) - || ((type & ResMem) && PCI_MAP_IS_MEM(basep[i]) - && (((!PCI_MAP_IS64BITMEM(basep[i])) - && (B2M(pcrp->tag,PCIGETMEMORY(basep[i])) == base)) + if (i == 6) { + basep = &pcrp->pci_baserom; + j = 0; + } + if (basep[j] && (pcrp->basesize[i] == old_bits)) + if (((type & ResIo) && PCI_MAP_IS_IO(basep[j]) + && (B2I(pcrp->tag,PCIGETIO(basep[j])) == base)) + || ((type & ResMem) && PCI_MAP_IS_MEM(basep[j]) + && (((!PCI_MAP_IS64BITMEM(basep[j])) + && (B2M(pcrp->tag,PCIGETMEMORY(basep[j])) == base)) #if defined LONG64 || defined WORD64 - || (B2M(pcrp->tag,PCIGETMEMORY64(basep[i])) == base) + || (B2M(pcrp->tag,PCIGETMEMORY64(basep[j])) == base) #endif ))) { - pcrp->basesize[j] = new_bits; + pcrp->basesize[i] = new_bits; return; } }