• Helge Deller's avatar
    parisc: Fix up devices below a PCI-PCI MegaRAID controller bridge · d81f7344
    Helge Deller authored
    A MegaRAID PCI card in my rp5470 acts as PCI-PCI bridge.
    Resource allocation for PCI devices behind such a bridge is quite incomplete,
    so that syslog reports those warnings:
    
     LBA 0:10: PCI host bridge to bus 0000:50
     pci_bus 0000:50: root bus resource [io  0x80000-0x8ffff] (bus address [0x0000-0xffff])
     pci_bus 0000:50: root bus resource [mem 0xffffffff94000000-0xffffffff95ffffff] (bus address [0x94000000-0x95ffffff])
     pci_bus 0000:50: root bus resource [bus 50-57]
     pci 0000:50:00.0: [8086:0964] type 01 class 0x060400
     pci 0000:50:00.1: [8086:1960] type 00 class 0x0e0001
     pci 0000:50:00.1: reg 0x10: [mem 0x00000000-0x003fffff pref]
     pci 0000:50:00.1: reg 0x30: [mem 0x00000000-0x00007fff pref]
     pci 0000:50:00.0: Changing bridge control from 0x00000000 to 0x00000023
     pci_bus 0000:51: busn_res: can not insert [bus 51-ff] under [bus 50-57] (conflicts with (null) [bus 50-57])
     pci 0000:50:00.0: PCI bridge to [bus 51-ff]
     pci 0000:50:00.0:   bridge window [io  0x80000-0x80fff]
     pci 0000:50:00.0:   bridge window [mem 0x00000000-0x000fffff]
     pci 0000:50:00.0:   bridge window [mem 0x00000000-0x000fffff pref]
     pci 0000:50:00.0: can't claim BAR 14 [mem 0x00000000-0x000fffff]: no compatible bridge window
     pci 0000:50:00.0: can't claim BAR 15 [mem 0x00000000-0x000fffff pref]: no compatible bridge window
     pci 0000:50:00.0: can't claim BAR 16 [??? 0x00000000 flags 0x0]: no compatible bridge window
     pci_bus 0000:51: busn_res: [bus 51-ff] end is updated to 51
     pci 0000:50:00.0: BAR 16: [??? 0x00000000 flags 0x20000000] has bogus alignment
     pci 0000:50:00.1: BAR 0: assigned [mem 0xffffffff94000000-0xffffffff943fffff pref]
     pci 0000:50:00.0: BAR 14: assigned [mem 0xffffffff94400000-0xffffffff944fffff]
     pci 0000:50:00.0: BAR 15: assigned [mem 0xffffffff94500000-0xffffffff945fffff pref]
     pci 0000:50:00.1: BAR 6: assigned [mem 0xffffffff94600000-0xffffffff94607fff pref]
     pci 0000:50:00.0: PCI bridge to [bus 51]
     pci 0000:50:00.0:   bridge window [io  0x80000-0x80fff]
     pci 0000:50:00.0:   bridge window [mem 0xffffffff94400000-0xffffffff944fffff]
     pci 0000:50:00.0:   bridge window [mem 0xffffffff94500000-0xffffffff945fffff pref]
    
    The patch below tries to improve the resource allocation.
    Output is now:
    
     LBA 0:10: PCI host bridge to bus 0000:50
     pci_bus 0000:50: root bus resource [io  0x80000-0x8ffff] (bus address [0x0000-0xffff])
     pci_bus 0000:50: root bus resource [mem 0xffffffff94000000-0xffffffff95ffffff] (bus address [0x94000000-0x95ffffff])
     pci_bus 0000:50: root bus resource [bus 50-57]
     pci 0000:50:00.0: Changing bridge control from 0x00000000 to 0x00000023
     pci 0000:50:00.0: PCI bridge to [bus 51-ff]
     pci 0000:50:00.1: BAR 0: assigned [mem 0xffffffff94000000-0xffffffff943fffff pref]
     pci 0000:50:00.1: BAR 6: assigned [mem 0xffffffff94400000-0xffffffff94407fff pref]
     pci 0000:50:00.0: PCI bridge to [bus 51]
     pci 0000:50:00.0:   bridge window [io  0x80000-0x80fff]
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    d81f7344
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
README.dino Loading commit data...
asp.c Loading commit data...
ccio-dma.c Loading commit data...
ccio-rm-dma.c Loading commit data...
dino.c Loading commit data...
eisa.c Loading commit data...
eisa_eeprom.c Loading commit data...
eisa_enumerator.c Loading commit data...
gsc.c Loading commit data...
gsc.h Loading commit data...
hppb.c Loading commit data...
iommu-helpers.h Loading commit data...
iosapic.c Loading commit data...
iosapic_private.h Loading commit data...
lasi.c Loading commit data...
lba_pci.c Loading commit data...
led.c Loading commit data...
pdc_stable.c Loading commit data...
power.c Loading commit data...
sba_iommu.c Loading commit data...
superio.c Loading commit data...
wax.c Loading commit data...