Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: No valid MMIO address in PCI config space
Date: Tue, 27 Feb 2001 14:41:51 -0500	[thread overview]
Message-ID: <20010227144151.A1877@linux04.mro.cpqcorp.net> (raw)
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

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
-----------------------------------------------------------------------------




  reply	other threads:[~2001-02-27 19:31 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-27 11:01 No valid MMIO address in PCI config space Christian Iseli
2001-02-27 15:46 ` Jay Estabrook
2001-02-27 16:11   ` Christian Iseli
2001-02-27 17:40     ` Ivan Kokshaysky
2001-02-27 19:41       ` Jay Estabrook [this message]
2001-02-28 17:37         ` Ivan Kokshaysky
2001-02-28 20:40           ` Jay Estabrook
2001-03-01 18:29             ` Ivan Kokshaysky
2001-03-02 16:45               ` Ivan Kokshaysky
2001-03-01  8:58         ` Christian Iseli
  -- strict thread matches above, loose matches on Subject: below --
2002-03-23 17:15 Where is alphalinux.org? Stephen Williams
2002-03-23 17:17 ` Peter Petrakis
2002-03-23 17:53   ` Stephen Williams
2002-03-23 18:13     ` PC164 Video card support (voodoo3 ?); [ RE: Where is alphalinux.org? ] Peter Petrakis
2002-03-23 19:59       ` Stephen Williams
2002-03-23 20:35         ` Peter Petrakis
2002-03-23 21:21           ` Stephen Williams
2002-03-23 22:03             ` Peter Petrakis
2002-03-23 22:53               ` Stephen Williams
2002-03-23 23:13                 ` Peter Petrakis
2002-03-23 21:33           ` Stephen Williams
2002-03-23 21:48             ` Stephen Williams
2002-03-23 22:09               ` Peter Petrakis
2002-03-24 17:25               ` Jay Estabrook
2002-03-24 20:37                 ` Stephen Williams
2002-03-24 22:46                   ` Peter Petrakis
2002-03-24 22:56                   ` Michal Jaegermann
2002-03-24 21:36                 ` SPARSE vs !(SPARSE) [RE: PC164 Video card support (voodoo3 ?)] Peter Petrakis
2002-03-25 15:01                   ` Jay Estabrook
2002-03-25 17:38                 ` PC164 Video card support (voodoo3 ?); [ RE: Where is alphalinux.org? ] Stephen Williams
2002-03-23 22:09             ` Peter Petrakis
     [not found] <steve@icarus.com>
2002-04-25  4:01 ` PC164 vs. XFree86-4.1-15 Stephen Williams
2002-04-25 14:33   ` Bob Lindell
     [not found] <voodoo@alphadriven.org>
2002-05-05  1:25 ` Rh-7.2 beta feb 2002 available? Peter Petrakis
2002-05-02 22:52   ` Bryce
2002-05-05  2:03   ` Earl Truss
2002-05-05  3:38     ` Bob Lindell
2002-05-05 15:46       ` Michal Jaegermann
2002-05-05 16:14       ` Earl Truss
2002-05-05  3:43   ` Bob Lindell
2002-05-05  5:11     ` Stephen Williams
2002-05-02 23:04       ` Bryce
2002-05-05 17:48         ` Bob Lindell
2002-05-03 16:06           ` Bryce
2002-05-07 18:17             ` Bob Lindell
2002-05-05 17:43       ` Bob Lindell
     [not found] <storri@ameritech.net>
2002-05-18  2:15 ` Building 2.4 kernel Stephen Torri
2002-05-18  2:18   ` Bob Lindell
2002-05-18  2:26   ` Stephen Williams
2002-05-18  3:15     ` Stephen Torri
2002-05-18  3:34       ` Michal Jaegermann
2002-05-18  3:34       ` Stephen Williams
2002-05-18  3:54         ` Stephen Torri
2002-05-18  4:11           ` Stephen Williams
2002-05-18 16:59           ` Michal Jaegermann
2002-05-18  3:59         ` Bob Lindell
2002-05-18 16:49         ` Michal Jaegermann
2002-05-18 13:12       ` Damien Dye
2002-05-18  9:54   ` Aneesh Kumar K.V
2002-06-10 19:26 RedHat 7.2 Linux for Alpha jason.brashear
2002-06-10 19:32 ` Bryce
2002-06-10 19:51   ` Bob Lindell
2002-06-10 20:53     ` Michael Larocque
2002-06-10 22:05       ` Bob Lindell
2002-06-11  0:47         ` Peter M. Hahn
2002-06-11  1:55           ` Jim Gross
2002-06-11 10:44             ` Jay Estabrook
2002-06-11 12:01               ` Earl Truss
2002-06-11 12:49                 ` Jay Estabrook
2002-06-11 14:39                 ` Jay Estabrook
2002-06-11 15:02                   ` Ralph Squillace
2002-06-11 16:16                   ` Michal Jaegermann
2002-06-11 16:51                     ` Ted Goodridge, Jr
2002-06-12 11:59                       ` Mike A. Harris
2002-06-12 12:41                         ` Earl Truss
2002-06-11 16:59                     ` RedHat 7.2 Linux for Alpha MIRRORS!!!!! Ted Goodridge, Jr
2002-06-11 17:58                     ` RedHat 7.2 Linux for Alpha Jay Estabrook
2002-06-11 21:37                       ` Michal Jaegermann
2002-06-12  4:11                   ` Earl Truss
2002-06-12  4:30                     ` Bob Lindell
2002-06-12  4:39                     ` Stephen Williams
2002-06-12 12:45                       ` Earl Truss
2002-06-12 19:07                         ` George France
2002-06-12  5:04                     ` Bryce
2002-06-13  5:02                       ` Earl Truss
2002-06-13  5:48                         ` Bryce
2002-06-17  2:20                           ` Earl Truss
2002-06-17  4:41                             ` Michal Jaegermann
2002-06-13  6:10                         ` Ingo T. Storm
2002-06-13 12:18                           ` Earl Truss
2002-06-11 12:11               ` Nelson Brito
2002-06-11 15:21               ` Jim Gross
2002-06-11 10:43           ` Jay Estabrook
     [not found] <etruss@mn.rr.com>
2002-06-18 12:51 ` Fw: " Earl Truss
2002-06-18 15:31   ` Linus Gasser
2002-06-18 15:39   ` Bob Lindell
2002-06-18 16:45     ` Bryce
2002-06-25 11:50     ` Earl Truss
2002-06-18 18:38   ` George France
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox