Re: Linux 2.6.27-rc5: System boot regression caused by commit a2bd7274b47124d2fc4dfdb8c0591f545ba749dd

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Saturday, August 30, 2008 - 8:00 pm

On Sat, 30 Aug 2008, Yinghai Lu wrote:

Ahh. Exactly because of things like this. The hist bridge BAR's are often 
special.

That code comes from almost four years ago, the commit message was:

  Author: Maciej W. Rozycki <macro@mips.com>
  Date:   Thu Dec 16 21:44:31 2004 -0800

    [PATCH] PCI: Don't touch BARs of host bridges
    
     BARs of host bridges often have special meaning and AFAIK are best left
    to be setup by the firmware or system-specific startup code and kept
    intact by the generic resource handler.  For example a couple of host
    bridges used for MIPS processors interpret BARs as target-mode decoders
    for accessing host memory by PCI masters (which is quite reasonable).
    For them it's desirable to keep their decoded address range overlapping
    with the host RAM for simplicity if nothing else (I can imagine running
    out of address space with lots of memory and 32-bit PCI with no DAC
    support in the participating devices).
    
     This is already the case with the i386 and ppc platform-specific PCI
    resource allocators.  Please consider the following change for the generic
    allocator.  Currently we have a pile of hacks implemented for host bridges
    to be left untouched and I'd be pleased to remove them.
    
    From: "Maciej W. Rozycki" <macro@mips.com>
    Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

and we've had other things where host bridges are special (ie iirc, if you 
turn off PCI_COMMAND_MEM from a host bridge, it stops access to real RAM 
from the CPU for some bridges - so you must never turn those things off or 
you get a dead system).

(But at least Intel host bridges will just ignore writes to the CMD 
register, I think - you cannot turn MEM off).

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.27-rc5, Linus Torvalds, (Thu Aug 28, 4:26 pm)
cpu time oddity (was Re: Linux 2.6.27-rc5), Alistair John Strachan, (Fri Aug 29, 8:42 am)
Re: cpu time oddity (was Re: Linux 2.6.27-rc5), Alistair John Strachan, (Fri Aug 29, 8:56 am)
Re: Linux 2.6.27-rc5, Rafael J. Wysocki, (Fri Aug 29, 10:13 am)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Fri Aug 29, 12:57 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Fri Aug 29, 3:30 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Fri Aug 29, 3:31 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Fri Aug 29, 3:32 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Fri Aug 29, 3:47 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sat Aug 30, 6:32 am)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sat Aug 30, 10:14 am)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sat Aug 30, 12:20 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sat Aug 30, 12:29 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sat Aug 30, 12:51 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sat Aug 30, 1:46 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sat Aug 30, 2:34 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Linus Torvalds, (Sat Aug 30, 8:00 pm)
Re: Linux 2.6.27-rc5: System boot regression caused by com ..., Rafael J. Wysocki, (Sun Aug 31, 5:27 am)
Re: Linux 2.6.27-rc5, J.A. , (Sun Aug 31, 4:27 pm)