Hi Bjorn: About the complete lspci on x86 and the dmesg on arm platform, pls refer to the attached file. Thanks. Best Regard. On 26 October 2011 22:08, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote: > On Wed, Oct 26, 2011 at 4:08 AM, Richard Zhu <richard.zhu@xxxxxxxxxx> wrote: >> Hi Bjorn: >> Thanks for your comments firstly. >> The platform only has one PCIe RC mode host, connected one INTEL >> 4965AGN wifi card. >> Doesn't have PCIe bridge device. >> >> The following log is generated on one X86 machine. It seems that the >> 00:00:0 is assigned to the PCI bridge device, is it? >> "00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)" > > If you attached a dmesg log, I didn't get it. How about the complete > "lspci" output, too? > >> About the device address, do you means that the RC mode PCIe host >> should be scanned, >> and assigned the address too? > > I just mean that normal devices (NICs, storage HBAs, USB, VGA, etc.,) > usually are not at bus 0, device 0, function 0. The fact that your > wifi NIC is apparently is at bus 0, device 0, function 0, is unusual, > so I would investigate that. Maybe there's something wrong with your > platform's PCI device enumeration. > >>> A complete dmesg log is always a good start. >>> >>> I don't see anything obviously wrong. The device address (bus 0, >>> device 0, function 0) is unusual, so I'd double-check that. At least >>> on x86, 00:00.0 is usually something in the north bridge, not a normal >>> device. >>> >>> Bjorn >
Whole lspci on one X86 PC -------------------------------------- 00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13) 00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13) 00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13) 00:04.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 4 (rev 13) 00:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 13) 00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13) 00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13) 00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13) 00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13) 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA IDE Controller (rev 02) 01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 03:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08) 06:03.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200eW WPCM450 (rev 0a) 80:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13) 80:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 13) 80:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13) 80:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 13) 80:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13) 80:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13) 80:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13) ff:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05) ff:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05) ff:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05) ff:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05) ff:02.4 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 1 (rev 05) ff:02.5 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 1 (rev 05) ff:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05) ff:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05) ff:03.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller RAS Registers (rev 05) ff:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05) ff:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05) ff:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05) ff:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05) ff:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05) ff:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05) ff:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05) ff:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05) ff:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05) ff:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05) ff:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05) ff:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05) ff:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05) dmesg pci related log on my arm platform -------------------------------------- IMX PCIe port: link up pci_bus 0000:00: scanning bus pci 0000:00:00.0: [8086:4229] type 0 class 0x000280 pci 0000:00:00.0: reg 10: [mem 0x00000000-0x00001fff 64bit] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold pci 0000:00:00.0: PME# disabled pci_bus 0000:00: fixups for bus PCI: bus0: Fast back to back transfers disabled pci_bus 0000:00: bus scan returning with max=00 PCI: 0000:00:00.0 swizzling pin 1 => pin 1 slot 0 PCI: 0000:00:00.0 mapping slot 0 pin 1 => irq 152 PCI: Assigning IRQ 152 to 0000:00:00.0 pci 0000:00:00.0: BAR 0: assigned [mem 0x01010000-0x01011fff 64bit] pci 0000:00:00.0: BAR 0: set to [mem 0x01010000-0x01011fff 64bit] (PCI address [0x1010000-0x1011fff]) pcie init successful IMX usb wakeup probe the wakeup pdata is 0xe6128d80 IMX usb wakeup probe the wakeup pdata is 0xe6134180 bio: create slab <bio-0> at 0 vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pca953x 2-001f: failed reading register pca953x: probe of 2-001f failed with error -110 pca953x 2-001b: failed reading register pca953x: probe of 2-001b failed with error -110 imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7) imx-ipuv3 imx-ipuv3.1: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7) Advanced Linux Sound Architecture Driver Version 1.0.23. Bluetooth: Core ver 2.15 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized cfg80211: Calling CRDA to update world regulatory domain Switching to clocksource mxc_timer1 Clockevents: could not switch to one-shot mode: Clockevents: could not switch to one-shot mode: Clockevents: could not switch to one-shot mode: Clockevents: could not switch to one-shot mode: dummy_timer is not functional. dummy_timer is not functional. Could not switch to high resolution mode on CPU 2 Could not switch to high resolution mode on CPU 1 dummy_timer is not functional. Could not switch to high resolution mode on CPU 0 NET: Registered protocol family 2 IP route cache hash table entries: 65536 (order: 6, 262144 bytes) TCP established hash table entries: 262144 (order: 9, 2097152 bytes) TCP bind hash table entries: 65536 (order: 7, 786432 bytes) TCP: Hash tables configured (established 262144 bind 65536) TCP reno registered UDP hash table entries: 1024 (order: 3, 32768 bytes) UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. PCI: CLS 32 bytes, default 32 Bus freq driver module loaded Static Power Management for Freescale i.MX6 cpaddr = ea841000 suspend_iram_base=ea932000 PM driver module loaded i.MXC CPU frequency driver mxc_dvfs_core_probe DVFS driver module loaded highmem bounce pool size: 64 pages JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 3279 cryptodev: driver loaded. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) dummy_timer is not functional. Could not switch to high resolution mode on CPU 3 mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver ldb imx-ipuv3 imx-ipuv3.0: Channel already disabled 9 imx-ipuv3 imx-ipuv3.0: Channel already uninitialized 9 imx-ipuv3 imx-ipuv3.0: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7) Console: switching to colour frame buffer device 128x48 imx-ipuv3 imx-ipuv3.0: Channel already disabled 10 imx-ipuv3 imx-ipuv3.0: Channel already uninitialized 10 mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver lcd imx-ipuv3 imx-ipuv3.0: Channel already disabled 7 imx-ipuv3 imx-ipuv3.0: Channel already uninitialized 7 mxc_sdc_fb mxc_sdc_fb.2: register mxc display driver ldb imx-ipuv3 imx-ipuv3.1: Channel already disabled 9 imx-ipuv3 imx-ipuv3.1: Channel already uninitialized 9 imx-ipuv3 imx-ipuv3.1: Channel already disabled 10 imx-ipuv3 imx-ipuv3.1: Channel already uninitialized 10 Serial: IMX driver imx-uart.0: ttymxc0 at MMIO 0x21f0000 (irq = 61) is a IMX console [ttymxc0] enabled, bootconsole disabled imx-uart: probe of imx-uart.1 failed with error -2 imx-uart: probe of imx-uart.3 failed with error -2 loop: module loaded vcan: Virtual CAN interface driver FEC Ethernet Driver fec_enet_mii_bus: probed iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:d iwlagn: Copyright(c) 2003-2010 Intel Corporation ieee80211 phy0: U iwl_pci_probe *** LOAD DRIVER *** ieee80211 phy0: U iwl_pci_probe BT channel inhibition is On PCI: enabling device 0000:00:00.0 (0140 -> 0142) ieee80211 phy0: U iwl_pci_probe pci_resource_len = 0x00002000 ieee80211 phy0: U iwl_pci_probe pci_resource_base = ea9ac000 iwlagn: _iwl_write32 entering, ea9ac000 iwlagn: _iwl_write32 exit, 0x1 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver add wake up source irq 75 fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000 fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected add wake up source irq 72 fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2 fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200 fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. mousedev: PS/2 mouse device common for all mice egalax_ts 1-0004: request gpio failed:-16 egalax_ts 1-0004: egalax_ts: failed to read firmware version egalax_ts: probe of 1-0004 failed with error -5 egalax_ts 2-0004: request gpio failed:-16 egalax_ts 2-0004: egalax_ts: failed to read firmware version egalax_ts: probe of 2-0004 failed with error -5 snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0 i2c /dev entries driver Linux video capture interface: v2.00 mxc_v4l2_output mxc_v4l2_output.0: Registered device video0 imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1) Bluetooth: Virtual HCI driver ver 1.3 Bluetooth: Generic Bluetooth USB driver ver 0.6 usbcore: registered new interface driver btusb imx-sdma imx-sdma: loaded firmware 1.0 imx-sdma imx-sdma: initialized sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman mmc0: Unknown controller version (3). You may experience problems. mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA mmc1: Unknown controller version (3). You may experience problems. mmc1: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA VPU initialized mxc_asrc registered vmap allocation for size 134221824 failed: use vmalloc=<size> to increase size. galcore: probe of galcore.0 failed with error -22 Anatop Thermal registered as thermal_zone0 anatop_thermal_probe: default cooling device is cpufreq! usbcore: registered new interface driver usbhid usbhid: USB HID core driver Cirrus Logic CS42888 ALSA SoC Codec Driver mmc0: new SDHC card at address bb9d Device with ID register fffffffb is not a CS42888 i2c-core: driver [cs42888] using legacy suspend method i2c-core: driver [cs42888] using legacy resume method imx_3stack asoc driver ALSA device list: No soundcards found. TCP cubic registered NET: Registered protocol family 17 can: controller area network core (rev 20090105 abi 8) NET: Registered protocol family 29 can: raw protocol (rev 20090105) can: broadcast manager protocol (rev 20090105 t) Bluetooth: L2CAP ver 2.15 mmcblk0: mmc0:bb9d SD04G 3.69 GiB mmcblk0: p1 p2 p3 < p5 p6 > p4 Bluetooth: L2CAP socket layer initialized Bluetooth: SCO (Voice Link) ver 0.6 Bluetooth: SCO socket layer initialized Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM ver 1.11 Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Bluetooth: BNEP filters: protocol multicast Bluetooth: HIDP (Human Interface Emulation) ver 1.2 VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:39:17 UTC (2357) eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:00, irq=-1) ehci_fsl_bus_suspend begins, DR ehci_fsl_bus_suspend ends, DR ehci_fsl_bus_suspend begins, Host 1 ehci_fsl_bus_suspend ends, Host 1 Sending DHCP requests . PHY: 1:00 - Link is Up - 100/Full ., OK IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.192.242.90 IP-Config: Complete: device=eth0, addr=10.192.242.90, mask=255.255.255.0, gw=10.192.242.254, host=10.192.242.90, domain=ap.freescale.net, nis-domain=(none), bootserver=0.0.0.0, rootserver=10.192.225.216, rootpath= VFS: Mounted root (nfs filesystem) on device 0:12. Freeing init memory: 168K udevd (1210): /proc/1210/oom_adj is deprecated, please use /proc/1210/oom_score_adj instead. root@freescale ~$