MPC8536DS: u-boot detects PCIe card but Linux 2.6.30 does not.

Leon Woestenberg leon.woestenberg at gmail.com
Mon Sep 7 21:01:26 EST 2009


Hello,


on my MPC8536DS development board, a PCIe card does not get detected
by Linux, u-boot does list it.

I'm suspecting the PCIe bridge (?) to not initialize correctly, but
that is a wild guess. See the u-boot log and kernel boot log with PCI
Debugging enabled.
Kernel config file is attached.

"[    0.191336] pci 0001:01:00.0: ignoring class b20 (doesn't match
header type 01)"


Regards,

Leon.



U-Boot 1.3.4 (Sep  4 2008 - 14:28:00)

CPU:   8536E, Version: 1.0, (0x803f0090)
Core:  E500, Version: 3.0, (0x80210030)
Clock Configuration:
       CPU:1250 MHz, CCB: 500 MHz,
       DDR: 250 MHz (500 MT/s data rate), LBC:  31 MHz
L1:    D-cache 32 kB enabled
       I-cache 32 kB enabled
Board: MPC8536DS, System ID: 0x15, System Version: 0x10, FPGA Version: 0x13
I2C:   ready
DRAM:  Initializing....    DDR: 512 MB
FLASH: 128 MB
L2:    512 KB enabled
Invalid ID (ff ff ff ff)

    PCIE3 connected to Slot3 as Root Complex (base address ffe0b000)
    PCIE3 on bus 00 - 00

    PCIE1 connected to Slot1 as Root Complex (base address ffe0a000)
               Scanning PCI bus 02
        02  00  1172  0004  ff00  00
    PCIE1 on bus 01 - 02

    PCIE2 connected to Slot 2 as Root Complex (base address ffe09000)
    PCIE2 on bus 03 - 03

    PCI: 32 bit, 66 MHz, async, host, arbiter (base address ffe08000)
               Scanning PCI bus 04
PCI on bus 04 - 04

----

## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Angstrom/2.6.30/calamari
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3371458 Bytes =  3.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Flattened Device Tree blob at 00c00000
   Booting using the fdt blob at 0xc00000
   Loading Device Tree to 007fa000, end 007fffff ... OK
[    0.000000] Using MPC8536 DS machine description
[    0.000000] Memory CAM mapping: 256/256/0 Mb, residual: 0Mb
[    0.000000] Linux version 2.6.30 (leon at bigtee) (gcc version 4.3.3
(GCC) ) #8 PREEMPT Mon Sep 7 11:20:17 CEST 2009
[    0.000000] console [udbg0] enabled
setup_arch: bootmem
mpc8536_ds_setup_arch()
[    0.000000] Found FSL PCI host bridge at 0x00000000ffe08000.
Firmware bus number: 0->0
[    0.000000] PCI host bridge /pci at ffe08000 (primary) ranges:
[    0.000000]  MEM 0x0000000080000000..0x000000008fffffff ->
0x0000000080000000
[    0.000000]   IO 0x00000000ffc00000..0x00000000ffc0ffff -> 0x0000000000000000
[    0.000000] Found FSL PCI host bridge at 0x00000000ffe09000.
Firmware bus number: 0->0
[    0.000000] PCI host bridge /pcie at ffe09000  ranges:
[    0.000000]  MEM 0x0000000098000000..0x000000009fffffff ->
0x0000000098000000
[    0.000000]   IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
[    0.000000] Found FSL PCI host bridge at 0x00000000ffe0a000.
Firmware bus number: 0->1
[    0.000000] PCI host bridge /pcie at ffe0a000  ranges:
[    0.000000]  MEM 0x0000000090000000..0x0000000097ffffff ->
0x0000000090000000
[    0.000000]   IO 0x00000000ffc10000..0x00000000ffc1ffff -> 0x0000000000000000
[    0.000000] Found FSL PCI host bridge at 0x00000000ffe0b000.
Firmware bus number: 0->0
[    0.000000] PCI host bridge /pcie at ffe0b000  ranges:
[    0.000000]  MEM 0x00000000a0000000..0x00000000bfffffff ->
0x00000000a0000000
[    0.000000]   IO 0x00000000ffc30000..0x00000000ffc3ffff -> 0x0000000000000000
[    0.000000] MPC8536 DS board from Freescale Semiconductor
arch: exit
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00020000
[    0.000000]   Normal   0x00020000 -> 0x00020000
[    0.000000]   HighMem  0x00020000 -> 0x00020000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00020000
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048
[    0.000000] Kernel command line: root=/dev/nfs rw
nfsroot=172.16.0.50:/nfsroot/calamari
ip=172.16.0.36:172.16.0.50:192.168.1.1:255.255.0.0:unknown:eth0:off
console=ttyS0,115200
[    0.000000] NR_IRQS:512
[    0.000000] mpic: Setting up MPIC " OpenPIC  " version 1.2 at
ffe40000, max 1 CPUs
[    0.000000] mpic: ISU size: 256, shift: 8, mask: ff
[    0.000000] mpic: Initializing for 256 sources
[    0.000000] PID hash table entries: 2048 (order: 11, 8192 bytes)
[    0.000000] clocksource: timebase mult[400029f] shift[22] registered
[    0.006332] Console: colour dummy device 80x25
[    0.011069] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.018467] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.050445] Memory: 512128k/524288k available (6664k kernel code,
11780k reserved, 232k data, 284k bss, 196k init)
[    0.060689] Kernel virtual memory layout:
[    0.064673]   * 0xfffef000..0xfffff000  : fixmap
[    0.069271]   * 0xff800000..0xffc00000  : highmem PTEs
[    0.074388]   * 0xff7b0000..0xff800000  : early ioremap
[    0.079591]   * 0xe1000000..0xff7b0000  : vmalloc & ioremap
[    0.085184] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[    0.092778] Calibrating delay loop... 124.92 BogoMIPS (lpj=249856)
[    0.171324] Mount-cache hash table entries: 512
[    0.176820] net_namespace: 752 bytes
[    0.180596] NET: Registered protocol family 16

[    0.187381] PCI: Probing PCI hardware
[    0.191336] pci 0001:01:00.0: ignoring class b20 (doesn't match
header type 01)
[    0.198586] pci 0001:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.205138] pci 0001:01:00.0: PME# disabled
[    0.209614] pci 0002:03:00.0: ignoring class b20 (doesn't match
header type 01)
[    0.216865] pci 0002:03:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.223446] pci 0002:03:00.0: PME# disabled
[    0.227902] pci 0003:05:00.0: ignoring class b20 (doesn't match
header type 01)
[    0.235152] pci 0003:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.241707] pci 0003:05:00.0: PME# disabled
[    0.246128] pci 0001:01:00.0: PCI bridge, secondary bus 0001:02
[    0.251951] pci 0001:01:00.0:   IO window: 0x00-0xffff
[    0.257073] pci 0001:01:00.0:   MEM window: 0x98000000-0x9fffffff
[    0.263133] pci 0001:01:00.0:   PREFETCH window: disabled
[    0.268513] pci 0001:01:00.0: enabling device (0106 -> 0107)
[    0.274148] pci 0002:03:00.0: PCI bridge, secondary bus 0002:04
[    0.280043] pci 0002:03:00.0:   IO window: 0x00-0xffff
[    0.285160] pci 0002:03:00.0:   MEM window: 0x90000000-0x97ffffff
[    0.291230] pci 0002:03:00.0:   PREFETCH window: disabled
[    0.296608] pci 0002:03:00.0: enabling device (0106 -> 0107)
[    0.302245] pci 0003:05:00.0: PCI bridge, secondary bus 0003:06
[    0.308141] pci 0003:05:00.0:   IO window: 0x00-0xffff
[    0.313258] pci 0003:05:00.0:   MEM window: 0xa0000000-0xbfffffff
[    0.319327] pci 0003:05:00.0:   PREFETCH window: disabled
[    0.324706] pci 0003:05:00.0: enabling device (0106 -> 0107)
[    0.336862] bio: create slab <bio-0> at 0
[    0.341276] SCSI subsystem initialized
[    0.345356] usbcore: registered new interface driver usbfs
[    0.351197] usbcore: registered new interface driver hub
[    0.356496] usbcore: registered new device driver usb
[    0.361656] Freescale Elo / Elo Plus DMA driver
[    0.367229] NET: Registered protocol family 2
[    0.371632] IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.379059] TCP established hash table entries: 65536 (order: 7,
524288 bytes)
[    0.386958] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
[    0.393860] TCP: Hash tables configured (established 65536 bind 65536)
[    0.400287] TCP reno registered
[    0.403556] NET: Registered protocol family 1
[    0.408727] fsl-elo-dma ffe21300.dma: Probe the Freescale DMA
driver for fsl,eloplus-dma controller at 0xffe21300...
[    0.419197] fsl-elo-dma ffe21300.dma: #0 (fsl,eloplus-dma-channel), irq 20
[    0.426047] fsl-elo-dma ffe21300.dma: #1 (fsl,eloplus-dma-channel), irq 21
[    0.432881] fsl-elo-dma ffe21300.dma: #2 (fsl,eloplus-dma-channel), irq 22
[    0.439732] fsl-elo-dma ffe21300.dma: #3 (fsl,eloplus-dma-channel), irq 23
[    0.451662] Freescale PowerQUICC MII Bus: probed
[    0.456647] Freescale PowerQUICC MII Bus: probed
[    0.462282] audit: initializing netlink socket (disabled)
[    0.467626] type=2000 audit(0.376:1): initialized
[    0.477863] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.484236] Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
[    0.490645] NTFS driver 2.1.29 [Flags: R/O].
[    0.495260] SGI XFS with security attributes, large block/inode
numbers, no debug enabled
[    0.504931] Btrfs loaded
[    0.507372] msgmni has been set to 1000
[    0.511706] alg: No test for stdrng (krng)
[    0.515733] io scheduler noop registered
[    0.519610] io scheduler anticipatory registered
[    0.524231] io scheduler deadline registered
[    0.528488] io scheduler cfq registered (default)
[    0.611967] Generic non-volatile memory driver v1.1
[    0.616877] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.623834] serial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550A
[    0.630536] console handover: boot [udbg0] -> real [ttyS0]
[    0.636419] serial8250.0: ttyS1 at MMIO 0xffe04600 (irq = 42) is a 16550A
[    0.646072] brd: module loaded
[    0.650436] loop: module loaded
[    0.653696] nbd: registered device at major 43
[    0.661260] st: Version 20081215, fixed bufsize 32768, s/g segs 256
[    0.667812] Driver 'st' needs updating - please use bus_type methods
[    0.674279] Driver 'sd' needs updating - please use bus_type methods
[    0.680688] Driver 'sr' needs updating - please use bus_type methods
[    0.687282] fsl-sata ffe18000.sata: Sata FSL Platform/CSB Driver init
[    0.693869] scsi0 : sata_fsl
[    0.696988] ata1: SATA max UDMA/133 irq 74
[    0.701102] fsl-sata ffe19000.sata: Sata FSL Platform/CSB Driver init
[    0.707641] scsi1 : sata_fsl
[    0.710724] ata2: SATA max UDMA/133 irq 41
[    0.715006] e1000e: Intel(R) PRO/1000 Network Driver - 0.3.3.4-k4
[    0.721106] e1000e: Copyright (c) 1999-2008 Intel Corporation.
[    0.727546] eth0: Gianfar Ethernet Controller Version 1.2, 00:04:9f:00:c4:a1
[    0.734594] eth0: Running with NAPI enabled
[    0.738767] eth0: 256/256 RX/TX BD ring size
[    0.743526] eth1: Gianfar Ethernet Controller Version 1.2, 00:04:9f:00:c4:a2
[    0.750574] eth1: Running with NAPI enabled
[    0.754748] eth1: 256/256 RX/TX BD ring size
[    0.759077] ucc_geth: QE UCC Gigabit Ethernet Controller
[    0.765449] Fixed MDIO Bus: probed
[    0.769709] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.776255] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
[    0.783109] fsl-ehci fsl-ehci.0: new USB bus registered, assigned
bus number 1
[    0.811509] fsl-ehci fsl-ehci.0: irq 28, io base 0xffe22000
[    0.827496] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[    0.833269] usb usb1: configuration #1 chosen from 1 choice
[    0.838931] hub 1-0:1.0: USB hub found
[    0.842690] hub 1-0:1.0: 1 port detected
[    0.847066] fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
[    0.853886] fsl-ehci fsl-ehci.1: new USB bus registered, assigned
bus number 2
[    0.883506] fsl-ehci fsl-ehci.1: irq 46, io base 0xffe23000
[    0.899497] fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
[    0.905241] usb usb2: configuration #1 chosen from 1 choice
[    0.910897] hub 2-0:1.0: USB hub found
[    0.914655] hub 2-0:1.0: 1 port detected
[    0.919146] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.925479] Initializing USB Mass Storage driver...
[    0.930466] usbcore: registered new interface driver usb-storage
[    0.936469] USB Mass Storage support registered.
[    0.941760] EDAC MC: Ver: 2.1.0 Aug  4 2009
[    0.946107] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
[    0.953099] mpc85xx_mc_err_probe: No ECC DIMMs discovered
[    0.958906] EDAC DEVICE0: Giving out device to module
'MPC85xx_edac' controller 'mpc85xx_l2_err': DEV 'mpc85xx_l2_err'
(INTERRUPT)
[    0.970688] MPC85xx_edac acquired irq 18 for L2 Err
[    0.975560] MPC85xx_edac L2 err registered
[    0.980112] talitos ffe30000.crypto: hwrng
[    0.984240] alg: No test for authenc(hmac(sha1),cbc(aes))
(authenc-hmac-sha1-cbc-aes-talitos)
[    0.992786] talitos ffe30000.crypto: authenc-hmac-sha1-cbc-aes-talitos
[    0.999329] alg: No test for authenc(hmac(sha1),cbc(des3_ede))
(authenc-hmac-sha1-cbc-3des-talitos)
[    1.008402] talitos ffe30000.crypto: authenc-hmac-sha1-cbc-3des-talitos
[    1.015033] alg: No test for authenc(hmac(sha256),cbc(aes))
(authenc-hmac-sha256-cbc-aes-talitos)
[    1.023931] talitos ffe30000.crypto: authenc-hmac-sha256-cbc-aes-talitos
[    1.030649] alg: No test for authenc(hmac(sha256),cbc(des3_ede))
(authenc-hmac-sha256-cbc-3des-talitos)
[    1.040061] talitos ffe30000.crypto: authenc-hmac-sha256-cbc-3des-talitos
[    1.046864] alg: No test for authenc(hmac(md5),cbc(aes))
(authenc-hmac-md5-cbc-aes-talitos)
[    1.055225] talitos ffe30000.crypto: authenc-hmac-md5-cbc-aes-talitos
[    1.061672] ata2: Signature Update detected @ 0 msecs
[    1.066737] alg: No test for authenc(hmac(md5),cbc(des3_ede))
(authenc-hmac-md5-cbc-3des-talitos)
[    1.075615] talitos ffe30000.crypto: authenc-hmac-md5-cbc-3des-talitos
[    1.083369] usbcore: registered new interface driver usbhid
[    1.088943] usbhid: v2.6:USB HID core driver
[    1.093303] Advanced Linux Sound Architecture Driver Version 1.0.20.
[    1.099900] ALSA device list:
[    1.102856]   No soundcards found.
[    1.107018] IPv4 over IPv4 tunneling driver
[    1.111731] GRE over IPv4 tunneling driver
[    1.116341] TCP cubic registered
[    1.119566] Initializing XFRM netlink socket
[    1.124268] NET: Registered protocol family 10
[    1.132089] IPv6 over IPv4 tunneling driver
[    1.137522] NET: Registered protocol family 17
[    1.142259] RPC: Registered udp transport module.
[    1.146971] RPC: Registered tcp transport module.
[    1.152190] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.247505] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.253884] ata2.00: ATA-7: INTEL SSDSA2MH080G1GC, 045C8820, max UDMA/133
[    1.260664] ata2.00: 156301488 sectors, multi 1: LBA48 NCQ (depth 16/31)
[    1.267616] ata2.00: configured for UDMA/133
[    1.563498] ata1: Signature Update detected @ 504 msecs
[    1.660764] ADDRCONF(NETDEV_UP): eth0: link is not ready
[    1.739502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.746512] ata1.00: ATA-7: Hitachi HDS721616PLA380, P22OABEA, max UDMA/133
[    1.753467] ata1.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 16/32)
[    1.761208] ata1.00: configured for UDMA/133
[    1.779645] scsi 0:0:0:0: Direct-Access     ATA      Hitachi
HDS72161 P22O PQ: 0 ANSI: 5
[    1.788305] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.793734] scsi 1:0:0:0: Direct-Access     ATA      INTEL
SSDSA2MH08 045C PQ: 0 ANSI: 5
[    1.801954] sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors:
(160 GB/149 GiB)
[    1.809650] sd 0:0:0:0: [sda] Write Protect is off
[    1.814493] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[    1.823733]  sda:<5>sd 1:0:0:0: [sdb] 156301488 512-byte hardware
sectors: (80.0 GB/74.5 GiB)
[    1.832826] sd 1:0:0:0: [sdb] Write Protect is off
[    1.837669] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[    1.846735]  sda1 sda2 sda3 sda4 <<6> sdb:<5>sd 1:0:0:0: Attached
scsi generic sg1 type 0
[    1.855280]  sdb1
[    1.857547] sd 1:0:0:0: [sdb] Attached SCSI disk
[    1.862182]  sda5 sda6 >
[    1.876940] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.667563] IP-Config: Gateway not on directly connected network.
[    2.673720] Looking up port of RPC 100003/2 on 172.16.0.50
[   10.521736] PHY: mdio at ffe24520:01 - Link is Up - 1000/Full
[   10.527551] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   17.679851] Looking up port of RPC 100005/1 on 172.16.0.50
[   17.714609] VFS: Mounted root (nfs filesystem) on device 0:14.
[   17.720478] Freeing unused kernel memory: 196k init
INIT: version 2.86 booting







-- 
Leon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 45173 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090907/cf7752a9/attachment-0001.obj>


More information about the Linuxppc-dev mailing list