G5 pci probing regression

Christoph Hellwig hch at lst.de
Mon Sep 19 19:51:30 EST 2005


On Mon, Sep 19, 2005 at 08:26:54AM +1000, Paul Mackerras wrote:
> Christoph Hellwig writes:
> 
> > With current TOT the kernel crashes for me when loading the fusion
> > driver.  Investigation shows that:  the crash happens on the first mmio
> > access and was introduces between 2.6.13-git12 and 2.6.14-rc1.  It looks
> > like the OF-based PCI resource assignment changes, as a small patch like
> > the one below makes the driver works just fine again for me:
> 
> Hmmm.  Could you send me the output of lspci -v and the contents of
> /proc/pci, /proc/iomem and /proc/ioports with and without that change?

sure.  The -unpatched files are plain 2.6.14-rc1, the -patched ones are
with my little hack.

-------------- next part --------------
80000000-9fffffff : /ht at 0,f2000000
  80000000-800fffff : PCI Bus #01
    80000000-8007ffff : 0001:01:07.0
      80000000-8007ffff : 0.80000000:mac-io
        8000002c-8000002f : 0.0000004c:fans
        80000030-80000033 : 0.0000004c:fans
        80000034-80000037 : 0.0000004c:fans
        8000004c-8000004f : 0.0000004c:fans
        80000050-8000008a : 0.00000050:gpio
        80008000-800080ff : 0.00010000:i2s
        80010000-80010fff : 0.00010000:i2s
        80013000-80013000 : 0.00013000:ch-b
        80013010-80013010 : 0.00013000:ch-b
        80013020-80013020 : 0.00013020:ch-a
        80013030-80013030 : 0.00013020:ch-a
        80013040-80013040 : 0.00013000:ch-b
        80013050-80013050 : 0.00013020:ch-a
        80015000-80015fff : 0.00015000:timer
        80016000-80017fff : 0.00016000:via-pmu
        80018000-80018fff : 0.00018000:i2c
        80040000-8007ffff : 0.00040000:mpic
    80080000-80080fff : 0001:01:09.0
      80080000-80080fff : ohci_hcd
    80081000-80081fff : 0001:01:08.0
      80081000-80081fff : ohci_hcd
  80100000-801fffff : PCI Bus #02
    80100000-801000ff : 0001:02:0b.2
      80100000-801000ff : ehci_hcd
    80101000-80101fff : 0001:02:0b.1
      80101000-80101fff : ohci_hcd
    80102000-80102fff : 0001:02:0b.0
      80102000-80102fff : ohci_hcd
  80200000-802fffff : PCI Bus #03
    80200000-80200fff : 0001:03:0e.0
      80200000-802007ff : ohci1394
    80204000-80207fff : 0001:03:0d.0
      80204000-80207fff : Kauai ATA
  80300000-805fffff : PCI Bus #04
    80300000-803fffff : 0001:04:0f.0
    80400000-805fffff : 0001:04:0f.0
      80400000-805fffff : sungem
  80600000-806fffff : PCI Bus #05
    80600000-80601fff : 0001:05:0c.0
      80600000-80601fff : sata_svw
  90000000-905fffff : PCI Bus #06
    90000000-90003fff : 0001:06:03.0
    90004000-90007fff : 0001:06:02.0
    90010000-9001ffff : 0001:06:03.0
    90020000-9002ffff : 0001:06:02.0
    90200000-903fffff : 0001:06:03.0
    90400000-905fffff : 0001:06:02.0
a0000000-afffffff : /pci at 0,f0000000
  a0000000-a001ffff : 0000:f0:10.0
  a1000000-a1ffffff : 0000:f0:10.0
  a8000000-afffffff : 0000:f0:10.0
    a8004000-a8183fff : offb
b0000000-efffffff : /ht at 0,f2000000
f1000000-f1ffffff : /pci at 0,f0000000
-------------- next part --------------
00000000-003fffff : /ht at 0,f2000000
  00000400-000004ff : 0001:06:02.0
fffffffffd800000-fffffffffdffffff : /pci at 0,f0000000
-------------- next part --------------
PCI devices found:
  Bus 240, device  11, function  0:
    Class 0600: PCI device 106b:004b (rev 0).
      Master Capable.  Latency=16.  
  Bus 240, device  16, function  0:
    Class 0300: PCI device 10de:0321 (rev 161).
      IRQ 48.
      Master Capable.  Latency=16.  Min Gnt=5.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xa1000000 [0xa1ffffff].
      Prefetchable 32 bit memory at 0xa8000000 [0xafffffff].
  Bus  0, device   1, function  0:
    Class 0604: PCI device 1022:7450 (rev 18).
      Master Capable.  Latency=32.  
  Bus  0, device   2, function  0:
    Class 0604: PCI device 1022:7450 (rev 18).
      Master Capable.  Latency=32.  
  Bus  0, device   3, function  0:
    Class 0604: PCI device 106b:0045 (rev 0).
  Bus  0, device   4, function  0:
    Class 0604: PCI device 106b:0046 (rev 0).
  Bus  0, device   5, function  0:
    Class 0604: PCI device 106b:0047 (rev 0).
  Bus  0, device   6, function  0:
    Class 0604: PCI device 106b:0048 (rev 0).
  Bus  0, device   7, function  0:
    Class 0604: PCI device 106b:0049 (rev 0).
  Bus  6, device   2, function  0:
    Class 0100: PCI device 1000:0054 (rev 0).
      IRQ 52.
      Master Capable.  Latency=16.  Min Gnt=64.Max Lat=10.
      I/O at 0x400 [0x4ff].
      Non-prefetchable 64 bit memory at 0x90004000 [0x90007fff].
      Non-prefetchable 64 bit memory at 0x90020000 [0x9002ffff].
  Bus  6, device   3, function  0:
    Class 0100: PCI device 1000:0050 (rev 1).
      IRQ 53.
      Master Capable.  Latency=16.  Min Gnt=64.Max Lat=10.
      I/O at 0x0 [0xff].
      Non-prefetchable 64 bit memory at 0x90000000 [0x90003fff].
      Non-prefetchable 64 bit memory at 0x90010000 [0x9001ffff].
  Bus  1, device   7, function  0:
    Class ff00: PCI device 106b:0041 (rev 96).
      Master Capable.  Latency=16.  
      Non-prefetchable 32 bit memory at 0x80000000 [0x8007ffff].
  Bus  1, device   8, function  0:
    Class 0c03: PCI device 106b:0040 (rev 0).
      IRQ 27.
      Master Capable.  Latency=16.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x80081000 [0x80081fff].
  Bus  1, device   9, function  0:
    Class 0c03: PCI device 106b:0040 (rev 0).
      IRQ 28.
      Master Capable.  Latency=16.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x80080000 [0x80080fff].
  Bus  2, device  11, function  0:
    Class 0c03: PCI device 1033:0035 (rev 67).
      IRQ 63.
      Master Capable.  Latency=16.  Min Gnt=1.Max Lat=42.
      Non-prefetchable 32 bit memory at 0x80102000 [0x80102fff].
  Bus  2, device  11, function  1:
    Class 0c03: PCI device 1033:0035 (rev 67).
      IRQ 63.
      Master Capable.  Latency=16.  Min Gnt=1.Max Lat=42.
      Non-prefetchable 32 bit memory at 0x80101000 [0x80101fff].
  Bus  2, device  11, function  2:
    Class 0c03: PCI device 1033:00e0 (rev 4).
      IRQ 63.
      Master Capable.  Latency=16.  Min Gnt=16.Max Lat=34.
      Non-prefetchable 32 bit memory at 0x80100000 [0x801000ff].
  Bus  3, device  13, function  0:
    Class ff00: PCI device 106b:0043 (rev 0).
      IRQ 39.
      Master Capable.  Latency=32.  
      Non-prefetchable 32 bit memory at 0x80204000 [0x80207fff].
  Bus  3, device  14, function  0:
    Class 0c00: PCI device 106b:0042 (rev 0).
      IRQ 40.
      Master Capable.  Latency=248.  Min Gnt=12.Max Lat=24.
      Non-prefetchable 32 bit memory at 0x80200000 [0x80200fff].
  Bus  4, device  15, function  0:
    Class 0200: PCI device 106b:004c (rev 0).
      IRQ 41.
      Master Capable.  Latency=16.  Min Gnt=64.Max Lat=64.
      Non-prefetchable 32 bit memory at 0x80400000 [0x805fffff].
  Bus  5, device  12, function  0:
    Class 0101: PCI device 1166:0240 (rev 0).
      Master Capable.  Latency=16.  
      Non-prefetchable 32 bit memory at 0x80600000 [0x80601fff].
-------------- next part --------------
80000000-9fffffff : /ht at 0,f2000000
  80000000-800fffff : PCI Bus 0001:01
    80000000-8007ffff : 0001:01:07.0
      80000000-8007ffff : 0.80000000:mac-io
        8000002c-8000002f : 0.0000004c:fans
        80000030-80000033 : 0.0000004c:fans
        80000034-80000037 : 0.0000004c:fans
        8000004c-8000004f : 0.0000004c:fans
        80000050-8000008a : 0.00000050:gpio
        80008000-800080ff : 0.00010000:i2s
        80010000-80010fff : 0.00010000:i2s
        80013000-80013000 : 0.00013000:ch-b
        80013010-80013010 : 0.00013000:ch-b
        80013020-80013020 : 0.00013020:ch-a
        80013030-80013030 : 0.00013020:ch-a
        80013040-80013040 : 0.00013000:ch-b
        80013050-80013050 : 0.00013020:ch-a
        80015000-80015fff : 0.00015000:timer
        80016000-80017fff : 0.00016000:via-pmu
        80018000-80018fff : 0.00018000:i2c
        80040000-8007ffff : 0.00040000:mpic
    80080000-80080fff : 0001:01:09.0
      80080000-80080fff : ohci_hcd
    80081000-80081fff : 0001:01:08.0
      80081000-80081fff : ohci_hcd
  80100000-801fffff : PCI Bus 0001:02
    80100000-801000ff : 0001:02:0b.2
      80100000-801000ff : ehci_hcd
    80101000-80101fff : 0001:02:0b.1
      80101000-80101fff : ohci_hcd
    80102000-80102fff : 0001:02:0b.0
      80102000-80102fff : ohci_hcd
  80200000-802fffff : PCI Bus 0001:03
    80200000-80200fff : 0001:03:0e.0
      80200000-802007ff : ohci1394
    80204000-80207fff : 0001:03:0d.0
      80204000-80207fff : Kauai ATA
  80300000-805fffff : PCI Bus 0001:04
    80300000-803fffff : 0001:04:0f.0
    80400000-805fffff : 0001:04:0f.0
      80400000-805fffff : sungem
  80600000-806fffff : PCI Bus 0001:05
    80600000-80601fff : 0001:05:0c.0
      80600000-80601fff : sata_svw
  90000000-905fffff : PCI Bus 0001:06
    90000000-90003fff : 0001:06:03.0
    90004000-90007fff : 0001:06:02.0
    90010000-9001ffff : 0001:06:03.0
    90020000-9002ffff : 0001:06:02.0
    90200000-903fffff : 0001:06:03.0
    90400000-905fffff : 0001:06:02.0
a0000000-afffffff : /pci at 0,f0000000
  a0000000-a001ffff : 0000:f0:10.0
  a1000000-a1ffffff : 0000:f0:10.0
  a8000000-afffffff : 0000:f0:10.0
    a8004000-a8183fff : offb
b0000000-efffffff : /ht at 0,f2000000
f1000000-f1ffffff : /pci at 0,f0000000
-------------- next part --------------
00000000-003fffff : /ht at 0,f2000000
  00000400-000004ff : 0001:06:02.0
fffffffffd800000-fffffffffdffffff : /pci at 0,f0000000
-------------- next part --------------
PCI devices found:
  Bus 240, device  11, function  0:
    Class 0600: PCI device 106b:004b (rev 0).
      Master Capable.  Latency=16.  
  Bus 240, device  16, function  0:
    Class 0300: PCI device 10de:0321 (rev 161).
      IRQ 48.
      Master Capable.  Latency=16.  Min Gnt=5.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xa1000000 [0xa1ffffff].
      Prefetchable 32 bit memory at 0xa8000000 [0xafffffff].
  Bus  0, device   1, function  0:
    Class 0604: PCI device 1022:7450 (rev 18).
      Master Capable.  Latency=32.  
  Bus  0, device   2, function  0:
    Class 0604: PCI device 1022:7450 (rev 18).
      Master Capable.  Latency=32.  
  Bus  0, device   3, function  0:
    Class 0604: PCI device 106b:0045 (rev 0).
  Bus  0, device   4, function  0:
    Class 0604: PCI device 106b:0046 (rev 0).
  Bus  0, device   5, function  0:
    Class 0604: PCI device 106b:0047 (rev 0).
  Bus  0, device   6, function  0:
    Class 0604: PCI device 106b:0048 (rev 0).
  Bus  0, device   7, function  0:
    Class 0604: PCI device 106b:0049 (rev 0).
  Bus  6, device   2, function  0:
    Class 0100: PCI device 1000:0054 (rev 0).
      IRQ 52.
      Master Capable.  Latency=16.  Min Gnt=64.Max Lat=10.
      Non-prefetchable 32 bit memory at 0x400 [0x4ff].
      Non-prefetchable 32 bit memory at 0x90004000 [0x90007fff].
      Non-prefetchable 32 bit memory at 0x90020000 [0x9002ffff].
  Bus  6, device   3, function  0:
    Class 0100: PCI device 1000:0050 (rev 1).
      IRQ 53.
      Master Capable.  Latency=16.  Min Gnt=64.Max Lat=10.
      Non-prefetchable 32 bit memory at 0x0 [0xff].
      Non-prefetchable 32 bit memory at 0x90000000 [0x90003fff].
      Non-prefetchable 32 bit memory at 0x90010000 [0x9001ffff].
  Bus  1, device   7, function  0:
    Class ff00: PCI device 106b:0041 (rev 96).
      IRQ -1.
      Master Capable.  Latency=16.  
      Non-prefetchable 32 bit memory at 0x80000000 [0x8007ffff].
  Bus  1, device   8, function  0:
    Class 0c03: PCI device 106b:0040 (rev 0).
      IRQ 27.
      Master Capable.  Latency=16.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x80081000 [0x80081fff].
  Bus  1, device   9, function  0:
    Class 0c03: PCI device 106b:0040 (rev 0).
      IRQ 28.
      Master Capable.  Latency=16.  Min Gnt=3.Max Lat=86.
      Non-prefetchable 32 bit memory at 0x80080000 [0x80080fff].
  Bus  2, device  11, function  0:
    Class 0c03: PCI device 1033:0035 (rev 67).
      IRQ 63.
      Master Capable.  Latency=16.  Min Gnt=1.Max Lat=42.
      Non-prefetchable 32 bit memory at 0x80102000 [0x80102fff].
  Bus  2, device  11, function  1:
    Class 0c03: PCI device 1033:0035 (rev 67).
      IRQ 63.
      Master Capable.  Latency=16.  Min Gnt=1.Max Lat=42.
      Non-prefetchable 32 bit memory at 0x80101000 [0x80101fff].
  Bus  2, device  11, function  2:
    Class 0c03: PCI device 1033:00e0 (rev 4).
      IRQ 63.
      Master Capable.  Latency=16.  Min Gnt=16.Max Lat=34.
      Non-prefetchable 32 bit memory at 0x80100000 [0x801000ff].
  Bus  3, device  13, function  0:
    Class ff00: PCI device 106b:0043 (rev 0).
      IRQ 39.
      Master Capable.  Latency=32.  
      Non-prefetchable 32 bit memory at 0x80204000 [0x80207fff].
  Bus  3, device  14, function  0:
    Class 0c00: PCI device 106b:0042 (rev 0).
      IRQ 40.
      Master Capable.  Latency=248.  Min Gnt=12.Max Lat=24.
      Non-prefetchable 32 bit memory at 0x80200000 [0x80200fff].
  Bus  4, device  15, function  0:
    Class 0200: PCI device 106b:004c (rev 0).
      IRQ 41.
      Master Capable.  Latency=16.  Min Gnt=64.Max Lat=64.
      Non-prefetchable 32 bit memory at 0x80400000 [0x805fffff].
  Bus  5, device  12, function  0:
    Class 0101: PCI device 1166:0240 (rev 0).
      Master Capable.  Latency=16.  
      Non-prefetchable 32 bit memory at 0x80600000 [0x80601fff].


More information about the Linuxppc64-dev mailing list