i.MX6Q PCIe EP/RC Validation System

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6Q PCIe EP/RC Validation System

i.MX6Q PCIe EP/RC Validation System

i.MX6Q PCIe EP/RC Validation and Throughput



Hardware setup

    * Two i.MX6Q SD boards, one is used as PCIe RC; the other one is used as PCIe EP. Connected by 2*mini_PCIe to standard_PCIe  adaptors, 2*PEX cable adaptors,  and one PCIe cable.

2013-03-21_10-24-40_704.jpg

Software configurations

    * When building RC image, make sure that

        CONFIG_IMX_PCIE=y

        # CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS is not set

        CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS=y

    * When build EP image, make sure that

        CONFIG_IMX_PCIE=y

        CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS=y

        # CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS is not set


Features

    * Set-up link between RC and EP by their stand-alone 125MHz running internally.

* In EP's system, EP can access the reserved ddr memory    (default address:0x40000000) of PCIe RC's system, by the   interconnection between PCIe EP and PCIe RC.

NOTE: The layout of the 1G DDR memory on SD boards is 0x1000_0000 ~ 0x4FFF_FFFF)

Use mem=768M in the kernel command line to reserve the 0x4000_0000 ~ 0x4FFF_FFFF DDR memory  space used to do the EP access tests.

(The example of the RC’s cmd-line: Kernel command line: noinitrd console=ttymxc0,115200 mem=768M root=/dev/nfs nfsroot=10.192.225.216:/home/r65037/nfs/rootfs_mx5x_10.11,v3,tcp ip=dhcp rw)



Throughput results

ARM core used as the bus master, and cache is disabledARM core used as the bus master, and cache is enabledIPU used as the bus master(DMA)
Data size in one write tlp8 bytes32 bytes64 bytes
Write speed~109MB/s~298MB/s~344MB/s
Data size in one read tlp32 bytes64 bytes64 bytes
Read speed~29MB/s~100MB/s~211MB/s

IPU used as the bus master(DMA)

Here is the summary of the PCIe throughput results tested by IPU.

Write speed is about 344 MB/s.

Read speed is about 211MB/s


ARM core used as the bus master (define EP_SELF_IO_TEST in pcie.c driver)

write speed ~300MB/s.

read speed ~100MB/s.

Cache is enabled.

PCIe EP: Starting data transfer...

PCIe EP: Data transfer is successful, tv_count1 54840us, tv_count2 162814us.

PCIe EP: Data write speed is 298MB/s.

PCIe EP: Data read speed is 100MB/s.

Regarding to the log, the data size of each TLP when cache is enabled, is about 4 times of the data size in write, and 2 times of the data size in read, when the cache is not enabled.

Cache is disabledCache is enabled
Data size in one write tlp8 bytes32 bytes
Write speed~109MB/s~298MB/s
Data size in one read tlp32 bytes64 bytes
Read speed~29MB/s~100MB/s

Cache is not enabled

PCIe EP: Starting data transfer...

PCIe EP: Data transfer is successful, tv_count1 149616us, tv_count2 552099us.

PCIe EP: Data write speed is 109MB/s.

PCIe EP: Data read speed is 29MB/s.



One simple method used to connect the imx6 pcie ep and rc


View of the whole solution:

2013-04-07_15-43-46_818_small.jpg

HW materials:

2* iMX6Q SD boards,  2* Mini PCIe to STD PCIe adaptors, one SATA2 data cable.

the mini-pcie to standard pcie exchange adaptor.

Here is the URL:
http://www.bplus.com.tw/Adapter/PM2C.html

PM2C.png

How to make it.


signals connections

Two adaptors, one is named as A, the other one is named as B.

A                  B

TXM <----> RXM

TXN <----> RXN

RXM <----> TXM

RXN <----> TXN

A1 connected to B3

A2 connected to B4

A3 connected to B1

A4 connected to B2

2013-04-07_16-02-59_594_small.jpg

Connect the cable to the adaptor.

Connect the SATA2 data cable to Mini PCIe to STD PCIe adaptor (A)

2013-04-07_16-02-17_913_small.jpg

  

Connect the SATA2 data cable to Mini PCIe to STD PCIe adaptor (B)

2013-04-07_16-01-36_658_small.jpg

NOTE:
* Please keep length of Cable as short as possible.  Our cable is about 12cm.

* Please connect shield wire in SATA2 Cable to GND at both board.
* Please boot up PCIe EP system before booting PCIe RC system.

Base one imx_3.0.35 mainline, the patch, and the IPU test tools had been attached.

NOTE:

* IPU tests usage howto.

Unzip the xxx.zip, and run xxx_r.sh to do read tests, run xxx_w.sh to do the write tests.

Tests log:
EP:

root@freescale ~/pcie_ep_io_test$ ./pcie-r.sh
pass cmdline 14, ./pcie_ipudev_test.out

new option : c
frame count set 1

new option : l
loop count set 1

new option : i
input w=1024,h=1024,fucc=RGB4,cpx=0,cpy=0,cpw=0,cph=0,de=0,dm=0

new option : O
640,480,RGB4,0,0,0,0,0
new option : s
show to fb 0

new option : f
output file name ipu1-1st-ovfb

new option : ÿ
show_to_buf:0, input_paddr:0x1000000, output.paddr0x18800000
====== ipu task ======
input:
        foramt: 0x34424752
        width: 1024
        height: 1024
        crop.w = 1024
        crop.h = 1024
        crop.pos.x = 0
        crop.pos.y = 0
output:
        foramt: 0x34424752
        width: 640
        height: 480
        roate: 0
        crop.w = 640
        crop.h = 480
        crop.pos.x = 0
        crop.pos.y = 0
total frame count 1 avg frame time 19019 us, fps 52.579000
root@freescale ~/pcie_ep_io_test$ ./pcie-w.sh
pass cmdline 14, ./pcie_ipudev_test.out

new option : c
frame count set 1

new option : l
loop count set 1

new option : i
input w=640,h=480,fucc=RGB4,cpx=0,cpy=0,cpw=0,cph=0,de=0,dm=0

new option : O
1024,1024,RGB4,0,0,0,0,0
new option : s
show to fb 1

new option : f
output file name ipu1-1st-ovfb

new option : ÿ
show_to_buf:1, input_paddr:0x18a00000, output.paddr0x1000000
====== ipu task ======
input:
        foramt: 0x34424752
        width: 640
        height: 480
        crop.w = 640
        crop.h = 480
        crop.pos.x = 0
        crop.pos.y = 0
output:
        foramt: 0x34424752
        width: 1024
        height: 1024
        roate: 0
        crop.w = 1024
        crop.h = 1024
        crop.pos.x = 0
        crop.pos.y = 0
total frame count 1 avg frame time 11751 us, fps 85.099140

root@freescale ~$ ./memtool -32 01000000=deadbeaf
Writing 32-bit value 0xDEADBEAF to address 0x01000000

RC:

Before run "./memtool -32 01000000=deadbeaf" at EP.

root@freescale ~$ ./memtool -32 40000000 10
Reading 0x10 count starting at address 0x40000000

0x40000000:  00000000 00000000 00000000 00000000
0x40000010:  00000000 00000000 00000000 00000000
0x40000020:  00000000 00000000 00000000 00000000
0x40000030:  00000000 00000000 00000000 00000000

After run "./memtool -32 01000000=deadbeaf" at EP.

root@freescale ~$ ./memtool -32 40000000 10
Reading 0x10 count starting at address 0x40000000

0x40000000:  DEADBEAF 00000000 00000000 00000000
0x40000010:  00000000 00000000 00000000 00000000
0x40000020:  00000000 00000000 00000000 00000000
0x40000030:  00000000 00000000 00000000 00000000

Labels parameters

Labels (2)
Attachments
Comments

Thank You richard.zhu, for this great answer.

Was vers helpful to find an entry to this issue.

Regards, Dirk

Welcome.

Best Regards

Richard Zhu

hi

richard.zhu

I got problem about pcie mode for rc.here is my log

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Linux version 3.0.35 (root@ubuntu) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #3 SMP PREEMPT Wed Sep 4 14:20:01 CST 2013

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board

Ignoring unrecognised tag 0x54410008

Memory policy: ECC disabled, Data cache writealloc

CPU identified as i.MX6Q, silicon rev 1.2

PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 227328

Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p1 rootwait video=mxcfb0:dev=ldb,1024x600M@60,if=RGB666 ldb=sin0

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 640MB 256MB = 896MB total

Memory: 896372k/896372k available, 152204k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)

    vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f000000 - 0x7fe00000   (  14 MB)

      .init : 0x80008000 - 0x8003d000   ( 212 kB)

      .text : 0x8003d000 - 0x80b01d14   (11028 kB)

      .data : 0x80b02000 - 0x80b67420   ( 406 kB)

       .bss : 0x80b67444 - 0x80bb58ec   ( 314 kB)

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

Preemptible hierarchical RCU implementation.

NR_IRQS:624

MXC GPIO hardware

sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

arm_max_freq=1GHz

MXC_Early serial console at MMIO 0x2020000 (options '115200')

bootconsole [ttymxc0] enabled

Console: colour dummy device 80x30

Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

CPU1: Booted secondary processor

CPU2: Booted secondary processor

CPU3: Booted secondary processor

Brought up 4 CPUs

SMP: Total of 4 processors activated (6324.22 BogoMIPS).

print_constraints: dummy:

NET: Registered protocol family 16

print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal

print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal

print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal

print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal

print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal

print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal

hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.

hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.

hw-breakpoint: maximum watchpoint size is 4 bytes.

L310 cache controller enabled

l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B

bio: create slab <bio-0> at 0

mxs-dma mxs-dma-apbh: initialized

print_constraints: SPKVDD: 4200 mV

print_constraints: vmmc: 3300 mV

vgaarb: loaded

SCSI subsystem initialized

spi_imx imx6q-ecspi.0: probed

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Freescale USB OTG Driver loaded, $Revision: 1.55 $

mc_pfuze 1-0008: ID: 0,Full lay: 1 ,Metal lay: 1

mc_pfuze 1-0008: FAB: 0 ,FIN: 0

print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mV

print_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3300 mV

print_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3150 mV

print_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mV

print_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mV

print_constraints: PFUZE100_VREFDDR: at 750 mV

print_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 2800 mV

print_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mV

print_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 3000 mV

print_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3300 mV

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)

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a

MIPI CSI2 driver module loaded

Advanced Linux Sound Architecture Driver Version 1.0.24.

Bluetooth: Core ver 2.16

NET: Registered protocol family 31

Bluetooth: HCI device and connection manager initialized

Bluetooth: HCI socket layer initialized

Bluetooth: L2CAP socket layer initialized

Bluetooth: SCO socket layer initialized

cfg80211: Calling CRDA to update world regulatory domain

max17135 2-0048: PMIC MAX17135 for eInk display

i2c-core: driver [max17135] using legacy suspend method

i2c-core: driver [max17135] using legacy resume method

Switching to clocksource mxc_timer1

NET: Registered protocol family 2

IP route cache hash table entries: 32768 (order: 5, 131072 bytes)

TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

TCP bind hash table entries: 65536 (order: 7, 786432 bytes)

TCP: Hash tables configured (established 131072 bind 65536)

TCP reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

PMU: registered new PMU device of type 0

Static Power Management for Freescale i.MX6

wait mode is enabled for i.MX6

cpaddr = c0880000 suspend_iram_base=c091c000

PM driver module loaded

iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.

PCIE: imx_pcie_pltfm_probe start link up.

link up failed, DB_R0:0x009d9700, DB_R1:0x08200000!

IMX PCIe port: link down!

IMX usb wakeup probe

add wake up source irq 75

IMX usb wakeup probe

cpu regulator mode:ldo_bypass

_regulator_get: get() with no identifier

mx6_cpu_regulator_init: failed to get pu regulator

i.MXC CPU frequency driver

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmni has been set to 1750

alg: No test for stdrng (krng)

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

mxc_mipi_dsi mxc_mipi_dsi: i.MX MIPI DSI driver probed

MIPI DSI driver module loaded

mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver ldb

_regulator_get: get() with no identifier

mxc_ldb mxc_ldb: change IPU DI1 to IPU DI0 for LDB channel0.

fbcvt: Aspect ratio not CVT standard

fbcvt: 1024x600@60: CVT Name - Not a CVT standard - 0.614 Mega Pixel Image

imx-ipuv3 imx-ipuv3.1: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)

Console: switching to colour frame buffer device 128x37

mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver ldb

mxc_ldb mxc_ldb: for second ldb displdb mode should in separate mode

mxc_sdc_fb mxc_sdc_fb.1: NO mxc display driver found!

mxc_sdc_fb mxc_sdc_fb.2: register mxc display driver lcd

mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb

mxc_ldb mxc_ldb: for second ldb displdb mode should in separate mode

mxc_sdc_fb mxc_sdc_fb.3: NO mxc display driver found!

imx-sdma imx-sdma: loaded firmware 1.1

imx-sdma imx-sdma: initialized

Serial: IMX driver

imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX

imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

console [ttymxc0] enabled, bootconsole disabled

console [ttymxc0] enabled, bootconsole disabled

loop: module loaded

ahci: SSS flag set, parallel bus scan disabled

ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode

ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst

scsi0 : ahci_platform

ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02200fff] port 0x100 irq 71

m25p80 spi0.0: unrecognized JEDEC id ffffff

GPMI NAND driver registered. (IMX)

e1000e: Intel(R) PRO/1000 Network Driver - 1.3.10-k2

e1000e: Copyright(c) 1999 - 2011 Intel Corporation.

vcan: Virtual CAN interface driver

CAN device driver interface

flexcan netdevice driver

FEC Ethernet Driver

fec_enet_mii_bus: probed

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

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.

ARC USBOTG Device Controller driver (1 August 2005)

mousedev: PS/2 mouse device common for all mice

input: gpio-keys as /devices/platform/gpio-keys/input/input0

input: max11801_ts as /devices/platform/imx-i2c.1/i2c-1/1-0048/input/input1

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: egalax_ts: failed to read firmware version

egalax_ts: probe of 2-0004 failed with error -5

usb 2-1: new full speed USB device number 2 using fsl-ehci

elan - Read Hello Packet Failed

elan-touch: probe of 2-0010 failed with error -22

i2c-core: driver [isl29023] using legacy suspend method

i2c-core: driver [isl29023] using legacy resume method

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: V4L2 device registered as video16

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video19

hub 2-1:1.0: USB hub found

hub 2-1:1.0: 4 ports detected

mag3110 2-000e: check mag3110 chip ID

mag3110 2-000e: read chip ID 0xfffffffb is not equal to 0xc4!

mag3110: probe of 2-000e failed with error -22

i2c-core: driver [mag3110] using legacy suspend method

i2c-core: driver [mag3110] using legacy resume method

mma8451 0-001c: read chip ID 0x1 is not equal to 0x1a or 0x2a!

mma8451: probe of 0-001c failed with error -22

imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)

Bluetooth: Virtual HCI driver ver 1.3

Bluetooth: HCI UART driver ver 2.2

Bluetooth: HCIATH3K protocol initialized

Bluetooth: Generic Bluetooth USB driver ver 0.6

usbcore: registered new interface driver btusb

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA

mmc1: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA

mmc2: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA

mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed

VPU initialized

mxc_asrc registered

Thermal calibration data is 0x5894f069

Thermal sensor with ratio = 183

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

usbcore: registered new interface driver snd-usb-audio

mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio

Cirrus Logic CS42888 ALSA SoC Codec Driver

i2c-core: driver [cs42888] using legacy suspend method

i2c-core: driver [cs42888] using legacy resume method

imx-hdmi-soc-dai imx-hdmi-soc-dai.0: Failed: Load HDMI-video first.

mmc0: new high speed DDR MMC card at address 0001

mmcblk0: mmc0:0001 SEM04G 3.68 GiB

mmcblk0boot0: mmc0:0001 SEM04G partition 1 2.00 MiB

mmcblk0boot1: mmc0:0001 SEM04G partition 2 2.00 MiB

mmcblk0: p1

mmcblk0boot1: unknown partition table

mmcblk0boot0: unknown partition table

usb 2-1.3: new low speed USB device number 3 using fsl-ehci

wm8962 0-001a: Device is not a WM8962, ID 0 != 6243

wm8962 0-001a: asoc: failed to probe CODEC wm8962.0-001a: -22

asoc: failed to instantiate card wm8962-audio: -22

imx_3stack asoc driver

Initialize HDMI-audio failed. Load HDMI-video first!

ALSA device list:

  No soundcards found.

NET: Registered protocol family 26

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: 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

lib80211: common routines for IEEE802.11 drivers

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

input: HID 04b3:310d as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.3/2-1.3:1.0/input/input2

Bus freq driver module loaded

generic-usb 0003:04B3:310D.0001: input,hidraw0: USB HID v1.11 Mouse [HID 04b3:310d] on usb-fsl-ehci.1-1.3/input0

Bus freq driver Enabled

mxc_dvfs_core_probe

DVFS driver module loaded

regulator_init_complete: PFUZE100_VGEN6: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN3: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN1: incomplete constraints, leaving on

snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)

usb 2-1.4: new low speed USB device number 4 using fsl-ehci

input:   USB Keyboard as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.4/2-1.4:1.0/input/input3

generic-usb 0003:04D9:1702.0002: input,hidraw1: USB HID v1.10 Keyboard [  USB Keyboard] on usb-fsl-ehci.1-1.4/input0

input:   USB Keyboard as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.4/2-1.4:1.1/input/input4

generic-usb 0003:04D9:1702.0003: input,hidraw2: USB HID v1.10 Device [  USB Keyboard] on usb-fsl-ehci.1-1.4/input1

ata1: SATA link down (SStatus 1 SControl 300)

EXT3-fs: barriers not enabled

kjournald starting.  Commit interval 5 seconds

EXT3-fs (mmcblk0p1): using internal journal

EXT3-fs (mmcblk0p1): recovery complete

EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode

VFS: Mounted root (ext3 filesystem) on device 179:1.

Freeing init memory: 212K

I follow you hit a patch to the kernel (0001-ENGR00257661-pcie-imx-pcie-ep-rc-validation.patch).

and

   CONFIG_IMX_PCIE=y

        # CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS is not set

        CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS=y

I want to turn a PCIE Gigabit Ethernet ports.

help please.

Hi:
Regarding to the log, the PCIe link is not setup at your side at all.

This validation system I pasted here is mainly used to verify the i.MX6 PCIe EP mode, and test the i.MX6 PCIe throught-put.

But I don‘t know the scenario of what you said ”I want to turn a PCIE Gigabit Ethernet ports.

Can you describe the details of your PCIe implementation ?

Best Regard

Richard Zhu

Hi:

I want to connect a PCIE card Gigabit Ethernet Controller such as  RTL8111E through PCIE on IMX6.


but my imx6 pcie does not work .


Hi

Ok, got that.

You shouldn‘t enable

CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS=y

In the kernel configuration.

The following is the correct configuration. Just FYI.

CONFIG_IMX_PCIE=y

# CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS is not set

# CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS=y

BS

Richard Zhu

Hi

I followed your configureatin,but always the same log:

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

PMU: registered new PMU device of type 0

Static Power Management for Freescale i.MX6

wait mode is enabled for i.MX6

cpaddr = c0880000 suspend_iram_base=c091c000

PM driver module loaded

iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.

PCIE: imx_pcie_pltfm_probe start link up.

link up failed, DB_R0:0x00ff5100, DB_R1:0x08200000!

IMX PCIe port: link down!

IMX usb wakeup probe

add wake up source irq 75

IMX usb wakeup probe

│                     *** MX6 Options: ***                                                                │ │ 

  │ │                 [*] PCI Express support                                                                 │ │ 

  │ │                 [ ]   PCI Express EP mode in the IMX6 RC/EP interconnection system                      │ │ 

  │ │                 [ ]   PCI Express RC mode in the IMX6 RC/EP interconnection system                      │ │ 

  │ │                 <*> USB Host 1 support

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ 

  │ │                 [*] Message Signaled Interrupts (MSI and MSI-X)                                         │ │ 

  │ │                 < > PCI Stub driver                                                                     │ │ 

  │ │                 [ ] PCI IOV support                                                                     │ │ 

  │ │                 [*] PCI Express support                                                                 │ │ 

  │ │                 [*]   Root Port Advanced Error Reporting support                                        │ │ 

  │ │                 [ ]     PCI Express ECRC settings control                                               │ │ 

  │ │                 < >     PCIe AER error injector support                                                 │ │ 

  │ │                 [*]   PCI Express ASPM control                                                          │ │ 

  │ │                 [*]     Debug PCI Express ASPM

are there any other need to modify?

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Linux version 3.0.35-2508-g54750ff (root@ubuntu) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #1 SMP PREEMPT Thu Sep 5 12:46:34 CST 2013

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board

Ignoring unrecognised tag 0x54410008

Memory policy: ECC disabled, Data cache writealloc

CPU identified as i.MX6Q, silicon rev 1.2

PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 227328

Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p1 rootwait video=mxcfb0:dev=ldb,1024x600M@60,if=RGB666 ldb=sin0

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 640MB 256MB = 896MB total

Memory: 896688k/896688k available, 151888k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)

    vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f000000 - 0x7fe00000   (  14 MB)

      .init : 0x80008000 - 0x8003d000   ( 212 kB)

      .text : 0x8003d000 - 0x80ab36f8   (10714 kB)

      .data : 0x80ab4000 - 0x80b18300   ( 401 kB)

       .bss : 0x80b18324 - 0x80b6678c   ( 314 kB)

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

Preemptible hierarchical RCU implementation.

NR_IRQS:624

MXC GPIO hardware

sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

arm_max_freq=1GHz

MXC_Early serial console at MMIO 0x2020000 (options '115200')

bootconsole [ttymxc0] enabled

Console: colour dummy device 80x30

Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

CPU1: Booted secondary processor

CPU2: Booted secondary processor

CPU3: Booted secondary processor

Brought up 4 CPUs

SMP: Total of 4 processors activated (6324.22 BogoMIPS).

print_constraints: dummy:

NET: Registered protocol family 16

print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal

print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal

print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal

print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal

print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal

print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal

hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.

hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.

hw-breakpoint: maximum watchpoint size is 4 bytes.

L310 cache controller enabled

l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B

bio: create slab <bio-0> at 0

mxs-dma mxs-dma-apbh: initialized

print_constraints: SPKVDD: 4200 mV

print_constraints: vmmc: 3300 mV

vgaarb: loaded

SCSI subsystem initialized

spi_imx imx6q-ecspi.0: probed

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Freescale USB OTG Driver loaded, $Revision: 1.55 $

mc_pfuze 1-0008: ID: 0,Full lay: 1 ,Metal lay: 1

mc_pfuze 1-0008: FAB: 0 ,FIN: 0

print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mV

print_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3300 mV

print_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3150 mV

print_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mV

print_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mV

print_constraints: PFUZE100_VREFDDR: at 750 mV

print_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 2800 mV

print_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mV

print_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 3000 mV

print_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3300 mV

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)

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a

MIPI CSI2 driver module loaded

Advanced Linux Sound Architecture Driver Version 1.0.24.

Bluetooth: Core ver 2.16

NET: Registered protocol family 31

Bluetooth: HCI device and connection manager initialized

Bluetooth: HCI socket layer initialized

Bluetooth: L2CAP socket layer initialized

Bluetooth: SCO socket layer initialized

cfg80211: Calling CRDA to update world regulatory domain

max17135 2-0048: PMIC MAX17135 for eInk display

i2c-core: driver [max17135] using legacy suspend method

i2c-core: driver [max17135] using legacy resume method

Switching to clocksource mxc_timer1

NET: Registered protocol family 2

IP route cache hash table entries: 32768 (order: 5, 131072 bytes)

TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

TCP bind hash table entries: 65536 (order: 7, 786432 bytes)

TCP: Hash tables configured (established 131072 bind 65536)

TCP reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

PMU: registered new PMU device of type 0

Static Power Management for Freescale i.MX6

wait mode is enabled for i.MX6

cpaddr = c0880000 suspend_iram_base=c091c000

PM driver module loaded

link up failed, DB_R0:0x00b4f900, DB_R1:0x08200000!

IMX PCIe port: link down!

IMX usb wakeup probe

add wake up source irq 75

IMX usb wakeup probe

cpu regulator mode:ldo_bypass

_regulator_get: get() with no identifier

mx6_cpu_regulator_init: failed to get pu regulator

i.MXC CPU frequency driver

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmni has been set to 1751

alg: No test for stdrng (krng)

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

mxc_mipi_dsi mxc_mipi_dsi: i.MX MIPI DSI driver probed

MIPI DSI driver module loaded

mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver ldb

_regulator_get: get() with no identifier

mxc_ldb mxc_ldb: change IPU DI1 to IPU DI0 for LDB channel0.

fbcvt: Aspect ratio not CVT standard

fbcvt: 1024x600@60: CVT Name - Not a CVT standard - 0.614 Mega Pixel Image

imx-ipuv3 imx-ipuv3.1: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)

Console: switching to colour frame buffer device 128x37

mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver ldb

mxc_ldb mxc_ldb: for second ldb displdb mode should in separate mode

mxc_sdc_fb mxc_sdc_fb.1: NO mxc display driver found!

mxc_sdc_fb mxc_sdc_fb.2: register mxc display driver lcd

mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb

mxc_ldb mxc_ldb: for second ldb displdb mode should in separate mode

mxc_sdc_fb mxc_sdc_fb.3: NO mxc display driver found!

imx-sdma imx-sdma: loaded firmware 1.1

imx-sdma imx-sdma: initialized

Serial: IMX driver

imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX

imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

console [ttymxc0] enabled, bootconsole disabled

console [ttymxc0] enabled, bootconsole disabled

loop: module loaded

ahci: SSS flag set, parallel bus scan disabled

ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode

ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst

scsi0 : ahci_platform

ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02200fff] port 0x100 irq 71

m25p80 spi0.0: unrecognized JEDEC id ffffff

GPMI NAND driver registered. (IMX)

vcan: Virtual CAN interface driver

CAN device driver interface

flexcan netdevice driver

FEC Ethernet Driver

fec_enet_mii_bus: probed

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

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.

ARC USBOTG Device Controller driver (1 August 2005)

mousedev: PS/2 mouse device common for all mice

input: gpio-keys as /devices/platform/gpio-keys/input/input0

input: max11801_ts as /devices/platform/imx-i2c.1/i2c-1/1-0048/input/input1

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: egalax_ts: failed to read firmware version

egalax_ts: probe of 2-0004 failed with error -5

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

ata1.00: ATA-8: WDC WD3200BPVT-00JJ5T0, 01.01A01, max UDMA/133

ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32)

ata1.00: configured for UDMA/133

scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200BPVT-0 01.0 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)

sd 0:0:0:0: [sda] 4096-byte physical blocks

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

sda: sda1 sda2 sda3

sd 0:0:0:0: [sda] Attached SCSI disk

usb 2-1: new full speed USB device number 2 using fsl-ehci

elan - Read Hello Packet Failed

elan-touch: probe of 2-0010 failed with error -22

i2c-core: driver [isl29023] using legacy suspend method

i2c-core: driver [isl29023] using legacy resume method

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: V4L2 device registered as video16

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video19

hub 2-1:1.0: USB hub found

hub 2-1:1.0: 4 ports detected

mag3110 2-000e: check mag3110 chip ID

mag3110 2-000e: read chip ID 0xfffffffb is not equal to 0xc4!

mag3110: probe of 2-000e failed with error -22

i2c-core: driver [mag3110] using legacy suspend method

i2c-core: driver [mag3110] using legacy resume method

mma8451 0-001c: read chip ID 0x1 is not equal to 0x1a or 0x2a!

mma8451: probe of 0-001c failed with error -22

imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)

Bluetooth: Virtual HCI driver ver 1.3

Bluetooth: HCI UART driver ver 2.2

Bluetooth: HCIATH3K protocol initialized

Bluetooth: Generic Bluetooth USB driver ver 0.6

usbcore: registered new interface driver btusb

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA

mmc1: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA

mmc2: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA

mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed

VPU initialized

mxc_asrc registered

Thermal calibration data is 0x5894f069

Thermal sensor with ratio = 183

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

usbcore: registered new interface driver snd-usb-audio

mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio

Cirrus Logic CS42888 ALSA SoC Codec Driver

i2c-core: driver [cs42888] using legacy suspend method

i2c-core: driver [cs42888] using legacy resume method

imx-hdmi-soc-dai imx-hdmi-soc-dai.0: Failed: Load HDMI-video first.

mmc0: new high speed DDR MMC card at address 0001

mmcblk0: mmc0:0001 SEM04G 3.68 GiB

mmcblk0boot0: mmc0:0001 SEM04G partition 1 2.00 MiB

mmcblk0boot1: mmc0:0001 SEM04G partition 2 2.00 MiB

mmcblk0: p1

mmcblk0boot1: unknown partition table

mmcblk0boot0: unknown partition table

usb 2-1.3: new low speed USB device number 3 using fsl-ehci

wm8962 0-001a: Device is not a WM8962, ID 0 != 6243

wm8962 0-001a: asoc: failed to probe CODEC wm8962.0-001a: -22

asoc: failed to instantiate card wm8962-audio: -22

imx_3stack asoc driver

Initialize HDMI-audio failed. Load HDMI-video first!

ALSA device list:

  No soundcards found.

NET: Registered protocol family 26

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: 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

input: HID 04b3:310d as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.3/2-1.3:1.0/input/input2

generic-usb 0003:04B3:310D.0001: input,hidraw0: USB HID v1.11 Mouse [HID 04b3:310d] on usb-fsl-ehci.1-1.3/input0

Bluetooth: HIDP (Human Interface Emulation) ver 1.2

lib80211: common routines for IEEE802.11 drivers

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

Bus freq driver module loaded

Bus freq driver Enabled

mxc_dvfs_core_probe

DVFS driver module loaded

regulator_init_complete: PFUZE100_VGEN6: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN3: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN1: incomplete constraints, leaving on

snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)

usb 2-1.4: new low speed USB device number 4 using fsl-ehci

EXT3-fs: barriers not enabled

kjournald starting.  Commit interval 5 seconds

EXT3-fs (mmcblk0p1): warning: maximal mount count reached, running e2fsck is recommended

EXT3-fs (mmcblk0p1): using internal journal

EXT3-fs (mmcblk0p1): recovery complete

EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode

VFS: Mounted root (ext3 filesystem) on device 179:1.

Freeing init memory: 212K

This is a new uImage.It does not make any patch.And just followed the following configuration

CONFIG_IMX_PCIE=y

# CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS is not set

# CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS=y


but pcie does not work.

there is nothing output followed the commend lspci.

Regarding to the your logs:

PM driver module loaded

link up failed, DB_R0:0x00b4f900, DB_R1:0x08200000!

IMX PCIe port: link down!

The PCIe link is still failed to be setup properly.

Do you provide the mandatory requirements required by your PCIe EP device, such as external power supply and so on ?

Or, can you ship one PCIe EP used by you to me?

Then I can try to re-produce this problem at my side.

Best Regards
Richard Zhu.

hi

Thanks for your reply.

I have several pcie nic inside.such as BCM5751.I will be mailed to you, please give me your address.

For pcie nic use,I've realized on TI's DM8168.However, the power consumption is too high.So I intend to replace IMX6.

O, I see.
Do you use the standard PCIe EP device?
The mini-PCIe to STD-PCIe convertor is required if the STD-PCIe EP is used by you, right?

The convertor would impact the quality of the PCIe deeply, please pay attention to it.

Here is one recommended convertor.

http://www.bplus.com.tw/Adapter/PM2C.html

Best Regards
Richard Zhu

yes,I use the standard PCIE EP device.

But the board of imx6 is our own design.so i does not need to convert.

Now I think the pcie bus not up yet.No relationship with the PCIE NIC device.

Here is my address:
Shanghai PuDong new district LiangJing Road 192# building A 2F

Postcode 201203.

Best Regards

Richard Zhu

Can you  send a business card to my e-mail? Mailing BCM5751 need to fill in your telephone number.My e-mail luhao89@me.com.

hi

Thanks for your reply.

I have solved the problem.My power supply capacity is insufficient,Therefore, the device is not detected.

now here is the log

iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.

CLK setup,by OpenEmbed---

CLK setup,by OpenEmbed

IMX PCIe pcie_rst, 0.

IMX PCIe pcie_rst, 1.

PCIE: imx_pcie_pltfm_probe start link up.

IMX PCIe port: link up.

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers disabled

pci 0000:00:00.0: BAR 0: assigned [mem 0x01100000-0x011fffff 64bit pref]

pci 0000:00:00.0: BAR 0: set to [mem 0x01100000-0x011fffff 64bit pref] (PCI address [0x1100000-0x11fffff])

pci 0000:00:00.0: BAR 9: assigned [mem 0x01200000-0x012fffff pref]

pci 0000:00:00.0: BAR 6: assigned [mem 0x01300000-0x0130ffff pref]

pci 0000:00:00.0: BAR 7: assigned [io  0x1000000-0x1000fff]

pci 0000:01:00.0: BAR 4: assigned [mem 0x01200000-0x0120ffff 64bit pref]

pci 0000:01:00.0: BAR 4: set to [mem 0x01200000-0x0120ffff 64bit pref] (PCI address [0x1200000-0x120ffff])

pci 0000:01:00.0: BAR 6: assigned [mem 0x01210000-0x0121ffff pref]

pci 0000:01:00.0: BAR 2: assigned [mem 0x01220000-0x01220fff 64bit pref]

pci 0000:01:00.0: BAR 2: set to [mem 0x01220000-0x01220fff 64bit pref] (PCI address [0x1220000-0x1220fff])

pci 0000:01:00.0: BAR 0: assigned [io  0x1000000-0x10000ff]

pci 0000:01:00.0: BAR 0: set to [io  0x1000000-0x10000ff] (PCI address [0x1000000-0x10000ff])

pci 0000:00:00.0: PCI bridge to [bus 01-01]

pci 0000:00:00.0:   bridge window [io  0x1000000-0x1000fff]

pci 0000:00:00.0:   bridge window [mem disabled]

pci 0000:00:00.0:   bridge window [mem 0x01200000-0x012fffff pref]

r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded

PCI: enabling device 0000:01:00.0 (0140 -> 0143)

IMX-PCIe: MSI 0x3f01 @0x0:0x1ff8000, irq = 497

r8169 0000:01:00.0: eth1: RTL8168c/8111c at 0xc09e4000, ff:ff:ff:ff:ff:ff, XID 1c4000c0 IRQ 497

root@imx6-luhao:~# lspci -v

00:00.0 Class 0604: Device 16c3:abcd (rev 01)

        Flags: bus master, fast devsel, latency 0

        Memory at 01100000 (64-bit, prefetchable) [size=1M]

        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0

        I/O behind bridge: 00000000-00000fff

        Prefetchable memory behind bridge: 01200000-012fffff

        [virtual] Expansion ROM at 01300000 [disabled] [size=64K]

        Capabilities: [40] Power Management version 3

        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable+ 64bit+

        Capabilities: [70] Express Root Port (Slot-), MSI 00

        Capabilities: [100] Advanced Error Reporting

        Capabilities: [140] Virtual Channel <?>

        Kernel driver in use: pcieport

01:00.0 Class 0200: Device 10ec:8168 (rev 02)

        Subsystem: Device 10ec:8168

        Flags: bus master, fast devsel, latency 0, IRQ 497

        I/O ports at 1000000 [size=256]

        Memory at 01220000 (64-bit, prefetchable) [size=4K]

        Memory at 01200000 (64-bit, prefetchable) [size=64K]

        [virtual] Expansion ROM at 01210000 [disabled] [size=64K]

        Capabilities: [40] Power Management version 3

        Capabilities: [50] MSI: Enable+ Count=1/2 Maskable- 64bit+

        Capabilities: [70] Express Endpoint, MSI 01

        Capabilities: [b0] MSI-X: Enable- Count=2 Masked-

        Capabilities: [d0] Vital Product Data

        Capabilities: [100] Advanced Error Reporting

        Capabilities: [140] Virtual Channel <?>

        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00

        Kernel driver in use: r8169

root@imx6-luhao:~# lspci

00:00.0 Class 0604: Device 16c3:abcd (rev 01)

01:00.0 Class 0200: Device 10ec:8168 (rev 02)

root@imx6-luhao:~#

Thank you for your long-term support,Now I wont to use pcie switch pex8608,Have you done similar tests ?

Great.

One Pericom PCIe switch(PI7C9X2G303EL) had been verified on imx_3.0.35.4.0 and 4.1.0 releases.

Good luck.

Best Regadrs

Richard Zhu

Thank you very mach.I'll do some test about pcie switch on imx6.

Hi, we want to extend the usb via pcie with chip (mcs9990). There is a strange thing, if the pcie setup up good, then the system stop after about 10s and then restart with "pcie link up failed". Here is the log if pcie setups ok.

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 3.0.35-2666-gbdde708 (oser@macbook) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08

/10 09:20) ) #6 SMP Tue Sep 17 09:04:37 CEST 2013

[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

[    0.000000] Machine: Dynsense DS7109 Board

[    0.000000] Memory policy: ECC disabled, Data cache writealloc

[    0.000000] CPU identified as i.MX6Q, silicon rev 1.2

[    0.000000] PERCPU: Embedded 7 pages/cpu @cc006000 s5728 r8192 d14752 u32768

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

[    0.000000] Kernel command line: console=ttymxc3,115200 root=/dev/mmcblk0p3 rootwait rw

[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

[    0.000000] Memory: 1024MB = 1024MB total

[    0.000000] Memory: 1033972k/1033972k available, 14604k reserved, 360448K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)                                                                                   

[    0.000000]     vmalloc : 0xea800000 - 0xf2000000   ( 120 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xea000000   ( 672 MB)

[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)

[    0.000000]       .init : 0xc0008000 - 0xc0033000   ( 172 kB)

[    0.000000]       .text : 0xc0033000 - 0xc04ce188   (4717 kB)

[    0.000000]       .data : 0xc04d0000 - 0xc05149e0   ( 275 kB)

[    0.000000]        .bss : 0xc0514a04 - 0xc05570a8   ( 266 kB)

[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] Hierarchical RCU implementation.

[    0.000000] NR_IRQS:624

[    0.000000] MXC GPIO hardware

[    0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

[    0.000000] arm_max_freq=1GHz

[    0.000000] MXC_Early serial console at MMIO 0x21f0000 (options '115200')

[    0.000000] bootconsole [ttymxc3] enabled

[    0.000000] Console: colour dummy device 80x30

[    0.217079] Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

[    0.305391] pid_max: default: 32768 minimum: 301

[    0.310317] Mount-cache hash table entries: 512

[    0.315667] CPU: Testing write buffer coherency: ok                                                                                             

[    0.320824] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

[    0.330207] CPU1: Booted secondary processor

[    0.361619] CPU2: Booted secondary processor

[    0.401646] CPU3: Booted secondary processor

[    0.440862] Brought up 4 CPUs

[    0.456684] SMP: Total of 4 processors activated (6324.22 BogoMIPS).

[    0.463648] devtmpfs: initialized

[    0.485974] print_constraints: dummy:

[    0.489947] NET: Registered protocol family 16

[    0.498839] print_constraints: vddpu: 725 <--> 1300 mV at 1150 mV fast normal

[    0.506463] print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal

[    0.514251] print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal

[    0.521978] print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal

[    0.529772] print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal

[    0.537479] print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal

[    0.549656] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.

[    0.556488] hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.

[    0.563843] hw-breakpoint: maximum watchpoint size is 4 bytes.

[    0.569727] L310 cache controller enabled

[    0.573764] l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B

[    0.583862] IMX usb wakeup probe

[    0.587238] IMX usb wakeup probe

[    0.599086] bio: create slab <bio-0> at 0

[    0.606129] mxs-dma mxs-dma-apbh: initialized

[    0.610956] print_constraints: vmmc: 3300 mV

[    0.616092] SCSI subsystem initialized

[    0.620426] usbcore: registered new interface driver usbfs

[    0.626188] usbcore: registered new interface driver hub

[    0.631680] usbcore: registered new device driver usb

[    0.638581] Switching to clocksource mxc_timer1

[    0.643177] cfg80211: Calling CRDA to update world regulatory domain

[    0.657854] NET: Registered protocol family 2

[    0.662438] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)

[    0.670374] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

[    0.679660] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)

[    0.687383] TCP: Hash tables configured (established 131072 bind 65536)

[    0.694025] TCP reno registered

[    0.697184] UDP hash table entries: 512 (order: 2, 16384 bytes)

[    0.703180] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

[    0.710009] NET: Registered protocol family 1

[    0.714674] RPC: Registered named UNIX socket transport module.

[    0.720613] RPC: Registered udp transport module.                                                                                               

[    0.725342] RPC: Registered tcp transport module.

[    0.730061] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.737627] PMU: registered new PMU device of type 0

[    0.742741] Static Power Management for Freescale i.MX6

[    0.747994] wait mode is enabled for i.MX6

[    0.752315] cpaddr = ea880000 suspend_iram_base=ea828000

[    0.757735] PM driver module loaded

[    0.761300] iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.

[    0.873230] PCIE: imx_pcie_pltfm_probe start link up.

[    0.896452] IMX PCIe port: link up.

[    0.900472] PCI: bus0: Fast back to back transfers disabled

[    0.923438] PCI: bus1: Fast back to back transfers disabled

[    0.931153] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff 64bit pref]

[    0.938948] pci 0000:00:00.0: BAR 0: set to [mem 0x01000000-0x010fffff 64bit pref] (PCI address [0x1000000-0x10fffff])

[    0.949687] pci 0000:00:00.0: BAR 8: assigned [mem 0x01100000-0x011fffff]

[    0.956506] pci 0000:00:00.0: BAR 6: assigned [mem 0x01200000-0x0120ffff pref]

[    0.963769] pci 0000:01:00.0: BAR 0: assigned [mem 0x01100000-0x01100fff]

[    0.970587] pci 0000:01:00.0: BAR 0: set to [mem 0x01100000-0x01100fff] (PCI address [0x1100000-0x1100fff])

[    0.980365] pci 0000:01:00.1: BAR 0: assigned [mem 0x01101000-0x01101fff]

[    0.987190] pci 0000:01:00.1: BAR 0: set to [mem 0x01101000-0x01101fff] (PCI address [0x1101000-0x1101fff])

[    0.996968] pci 0000:01:00.2: BAR 0: assigned [mem 0x01102000-0x01102fff]

[    1.003804] pci 0000:01:00.2: BAR 0: set to [mem 0x01102000-0x01102fff] (PCI address [0x1102000-0x1102fff])

[    1.013582] pci 0000:01:00.3: BAR 0: assigned [mem 0x01103000-0x01103fff]

[    1.020399] pci 0000:01:00.3: BAR 0: set to [mem 0x01103000-0x01103fff] (PCI address [0x1103000-0x1103fff])

[    1.030177] pci 0000:01:00.4: BAR 0: assigned [mem 0x01104000-0x01104fff]

[    1.037001] pci 0000:01:00.4: BAR 0: set to [mem 0x01104000-0x01104fff] (PCI address [0x1104000-0x1104fff])

[    1.046779] pci 0000:01:00.5: BAR 0: assigned [mem 0x01105000-0x01105fff]

[    1.053603] pci 0000:01:00.5: BAR 0: set to [mem 0x01105000-0x01105fff] (PCI address [0x1105000-0x1105fff])

[    1.063380] pci 0000:01:00.6: BAR 0: assigned [mem 0x01106000-0x01106fff]

[    1.070198] pci 0000:01:00.6: BAR 0: set to [mem 0x01106000-0x01106fff] (PCI address [0x1106000-0x1106fff])

[    1.079976] pci 0000:01:00.7: BAR 0: assigned [mem 0x01107000-0x01107fff]

[    1.086799] pci 0000:01:00.7: BAR 0: set to [mem 0x01107000-0x01107fff] (PCI address [0x1107000-0x1107fff])

[    1.096577] pci 0000:00:00.0: PCI bridge to [bus 01-01]

[    1.101819] pci 0000:00:00.0:   bridge window [io  disabled]

[    1.107509] pci 0000:00:00.0:   bridge window [mem 0x01100000-0x011fffff]

[    1.114327] pci 0000:00:00.0:   bridge window [mem pref disabled]

[    1.120837] IMX usb wakeup probe

[    1.124593] IMX usb wakeup probe

[    1.128126] cpu regulator mode:ldo_enable

[    1.132342] i.MXC CPU frequency driver

[    1.151254] highmem bounce pool size: 64 pages

[    1.169381] msgmni has been set to 1315                                                                                                         

[    1.174837] alg: No test for stdrng (krng)

[    1.179101] io scheduler noop registered

[    1.183040] io scheduler deadline registered

[    1.187408] io scheduler cfq registered (default)

[    1.192486] IMX-PCIe: MSI 0x3f00 @0x0:0x1ff8000, irq = 496

[    1.199230] imx-sdma imx-sdma: loaded firmware 1.1

[    1.208696] imx-sdma imx-sdma: initialized

[    1.350226] Serial: IMX driver

[    1.353438] imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX

[    1.359919] console [ttymxc3] enabled, bootconsole disabled

[    1.359919] console [ttymxc3] enabled, bootconsole disabled

[    1.376725] loop: module loaded

[    1.381551] usbcore: registered new interface driver asix

[    1.387076] usbcore: registered new interface driver cdc_ether

[    1.393037] usbcore: registered new interface driver smsc75xx

[    1.398920] usbcore: registered new interface driver smsc95xx

[    1.404788] usbcore: registered new interface driver net1080

[    1.410575] usbcore: registered new interface driver rndis_host

[    1.416620] usbcore: registered new interface driver cdc_subset

[    1.422669] usbcore: registered new interface driver zaurus

[    1.428266] cdc_ncm: 04-Aug-2011

[    1.431611] usbcore: registered new interface driver cdc_ncm

[    1.437410] usbcore: registered new interface driver rndis_wlan

[    1.443872] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[    1.450527] add wake up source irq 73

[    1.454227] fsl-ehci fsl-ehci.2: Freescale On-Chip EHCI Host Controller

[    1.461279] fsl-ehci fsl-ehci.2: new USB bus registered, assigned bus number 1

[    1.493211] fsl-ehci fsl-ehci.2: irq 73, io base 0x02184400

[    1.513186] fsl-ehci fsl-ehci.2: USB 2.0 started, EHCI 1.00

[    1.518851] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[    1.525654] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.532881] usb usb1: Product: Freescale On-Chip EHCI Host Controller

[    1.539331] usb usb1: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

[    1.545955] usb usb1: SerialNumber: fsl-ehci.2

[    1.551056] hub 1-0:1.0: USB hub found

[    1.554824] hub 1-0:1.0: 1 port detected

[    1.559261] add wake up source irq 74

[    1.562943] fsl-ehci fsl-ehci.3: Freescale On-Chip EHCI Host Controller

[    1.569893] fsl-ehci fsl-ehci.3: new USB bus registered, assigned bus number 2

[    1.603198] fsl-ehci fsl-ehci.3: irq 74, io base 0x02184600

[    1.623181] fsl-ehci fsl-ehci.3: USB 2.0 started, EHCI 1.00

[    1.628832] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002                                                                       

[    1.635632] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.642858] usb usb2: Product: Freescale On-Chip EHCI Host Controller

[    1.649306] usb usb2: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

[    1.655934] usb usb2: SerialNumber: fsl-ehci.3

[    1.660988] hub 2-0:1.0: USB hub found

[    1.664755] hub 2-0:1.0: 1 port detected

[    1.669192] add wake up source irq 75

[    1.677670] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller

[    1.684575] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 3

[    1.713200] fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000

[    1.733180] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00

[    1.738830] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002

[    1.745631] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.752859] usb usb3: Product: Freescale On-Chip EHCI Host Controller

[    1.759307] usb usb3: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

[    1.765934] usb usb3: SerialNumber: fsl-ehci.0

[    1.770988] hub 3-0:1.0: USB hub found

[    1.774755] hub 3-0:1.0: 1 port detected

[    1.779164] add wake up source irq 72

[    1.782865] fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller

[    1.789777] fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 4

[    1.823201] fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200

[    1.843185] fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00

[    1.848835] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002

[    1.855637] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.862863] usb usb4: Product: Freescale On-Chip EHCI Host Controller

[    1.869312] usb usb4: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

[    1.875940] usb usb4: SerialNumber: fsl-ehci.1

[    1.880997] hub 4-0:1.0: USB hub found

[    1.884765] hub 4-0:1.0: 1 port detected

[    1.889282] PCI: enabling device 0000:01:00.1 (0140 -> 0142)

[    1.894989] ehci_hcd 0000:01:00.1: EHCI Host Controller

[    1.900490] ehci_hcd 0000:01:00.1: new USB bus registered, assigned bus number 5

[    1.908034] ehci_hcd 0000:01:00.1: applying MosChip frame-index workaround

[    1.943222] ehci_hcd 0000:01:00.1: irq 155, io mem 0x01101000

[    1.963182] ehci_hcd 0000:01:00.1: USB 2.0 started, EHCI 1.00

[    1.969010] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002

[    1.975816] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    1.983043] usb usb5: Product: EHCI Host Controller

[    1.987930] usb usb5: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

[    1.994553] usb usb5: SerialNumber: 0000:01:00.1

[    1.999488] +++ hub_port_connect_change:udev->level :1                                                                                           

[    1.999747] hub 5-0:1.0: USB hub found

[    1.999759] hub 5-0:1.0: 1 port detected

[    2.000187] PCI: enabling device 0000:01:00.3 (0140 -> 0142)

[    2.000214] ehci_hcd 0000:01:00.3: EHCI Host Controller

[    2.000509] ehci_hcd 0000:01:00.3: new USB bus registered, assigned bus number 6

[    2.000737] ehci_hcd 0000:01:00.3: applying MosChip frame-index workaround

[    2.023241] ehci_hcd 0000:01:00.3: irq 154, io mem 0x01103000

[    2.043189] ehci_hcd 0000:01:00.3: USB 2.0 started, EHCI 1.00

[    2.043272] usb usb6: New USB device found, idVendor=1d6b, idProduct=0002

[    2.043280] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    2.043287] usb usb6: Product: EHCI Host Controller

[    2.043293] usb usb6: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

[    2.043300] usb usb6: SerialNumber: 0000:01:00.3

[    2.043862] hub 6-0:1.0: USB hub found

[    2.043875] hub 6-0:1.0: 1 port detected

[    2.044307] PCI: enabling device 0000:01:00.5 (0140 -> 0142)

[    2.044334] ehci_hcd 0000:01:00.5: EHCI Host Controller

[    2.044597] ehci_hcd 0000:01:00.5: new USB bus registered, assigned bus number 7

[    2.044811] ehci_hcd 0000:01:00.5: applying MosChip frame-index workaround

[    2.113240] ehci_hcd 0000:01:00.5: irq 153, io mem 0x01105000

[    2.223212] usb 3-1: new high speed USB device number 2 using fsl-ehci

[    2.243203] ehci_hcd 0000:01:00.5: USB 2.0 started, EHCI 1.00

[    2.249029] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002

[    2.255832] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    2.263059] usb usb7: Product: EHCI Host Controller

[    2.267946] usb usb7: Manufacturer: Linux 3.0.35-2666-gbdde708 ehci_hcd

[    2.274570] usb usb7: SerialNumber: 0000:01:00.5

[    2.279804] hub 7-0:1.0: USB hub found

[    2.283572] hub 7-0:1.0: 1 port detected

[    2.287948] PCI: enabling device 0000:01:00.7 (0140 -> 0142)

[    2.293641] ehci_hcd 0000:01:00.7: EHCI Host Controller

[    2.299165] ehci_hcd 0000:01:00.7: new USB bus registered, assigned bus number 8

[    2.306717] ehci_hcd 0000:01:00.7: applying MosChip frame-index workaround

[    2.343213] ehci_hcd 0000:01:00.7: request interrupt 152 failed

[    2.349138] ehci_hcd 0000:01:00.7: USB bus 8 deregistered

[    2.354820] ehci_hcd 0000:01:00.7: init 0000:01:00.7 fail, -22

[    2.360665] ehci_hcd: probe of 0000:01:00.7 failed with error -22

[    2.366899] usb register error with 0

[    2.370703] usbcore: registered new interface driver arc hset

[    2.376462] usb hset init succeed

[    2.380273] imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)

[    2.388450] cpuidle: using governor ladder                                                                                                       

[    2.392551] cpuidle: using governor menu

[    2.394974] unsupported device: not in white list

[    2.395019] +++ hub_port_connect_change:udev->level :1

[    2.406435] sdhci: Secure Digital Host Controller Interface driver

[    2.412619] sdhci: Copyright(c) Pierre Ossman

[    2.417084] sdhci sdhci-esdhc-imx.1: no write-protect pin available!

[    2.423491] mmc0: no vmmc regulator found

[    2.427681] mmc0: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA

[    2.434999] Thermal calibration data is 0x59c50d69

[    2.439791] Thermal sensor with ratio = 186

[    2.463188] Anatop Thermal registered as thermal_zone0

[    2.468495] anatop_thermal_probe: default cooling device is cpufreq!

[    2.475415] NET: Registered protocol family 26

[    2.480355] TCP cubic registered

[    2.483599] NET: Registered protocol family 17

[    2.488055] lib80211: common routines for IEEE802.11 drivers

[    2.494497] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

[    2.502176] ThumbEE CPU extension supported.

[    2.506470] Registering SWP/SWPB emulation handler

[    2.511407] Bus freq driver module loaded

[    2.513199] usb 4-1: new high speed USB device number 2 using fsl-ehci

[    2.521949] Bus freq driver Enabled

[    2.527136] DVFS driver module loaded

[    2.532045] regulator_init_complete: vmmc: incomplete constraints, leaving on

After hang and reboot, pci linkup failed

[    0.761407] iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.

[    0.873253] PCIE: imx_pcie_pltfm_probe start link up.

[    1.483143] link up failed, DB_R0:0xdc998200, DB_R1:0x0820f700!

[    1.489108] IMX PCIe port: link down!

But now the system works ok.

What do you think it's the problem?

Thanks a lot.

Hello, guys.

I have some issue.

Is it possible to create Route Complex Integrated End Point on RC board?

Or can you explain how did you get acces to RC board memory?

Hope for you help.

Regards.

hi , we want to stdpci and use theMini PCIe to STD PCIe adaptors,, i use Linux 3.0.35_1.1.0_121218 download from freescale

the log:

U-Boot 2009.08 (Sep 17 2013 - 20:02:02)

CPU: Freescale i.MX6 family TO1.2 at 792 MHz

Temperature:   29 C, calibration data 0x5784c37d

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 264000000Hz

emi_slow clock: 132000000Hz

ddr clock     : 528000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [POR ]

Boot Device: MMC

I2C:   ready

DRAM:   1 GB

MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3

### Inside lcd_enable

In:    serial

Out:   serial

Err:   serial

Found PFUZE100! deviceid=10,revid=11

Net:   got MAC address from IIM: 00:00:00:00:00:00

FEC0 [PRIME]

Hit any key to stop autoboot:  0

mmc3(part 0) is current device

MMC read: dev # 3, block # 2048, count 8192 ... 8192 blocks read: OK

## Booting kernel from Legacy Image at 10800000 ...

   Image Name:   Linux-3.0.35-2310-gc27cb38

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    4147924 Bytes =  4 MB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

Starting kernel ...

Linux version 3.0.35-2310-gc27cb38 (lyc@ubuntu) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #22 SMP PREEMPT Wed Nov 13 00:56:32 PST 2013

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board

Ignoring unrecognised tag 0x54410008

Memory policy: ECC disabled, Data cache writealloc

CPU identified as i.MX6Q, silicon rev 1.2

PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 227328

Kernel command line: console=ttymxc2,115200 root=/dev/mmcblk0p1 rootwait rw ldb=sin0 video=mxcfb0:dev=ldb,LDB-WXGA,if=RGB666

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 640MB 256MB = 896MB total

Memory: 896280k/896280k available, 152296k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)

    vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f000000 - 0x7fe00000   (  14 MB)

      .init : 0x80008000 - 0x8003d000   ( 212 kB)

      .text : 0x8003d000 - 0x80b1309c   (11097 kB)

      .data : 0x80b14000 - 0x80b7e0c0   ( 425 kB)

       .bss : 0x80b7e0e4 - 0x80bccfec   ( 316 kB)

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

Preemptible hierarchical RCU implementation.

NR_IRQS:496

MXC GPIO hardware

sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

arm_max_freq=2

MXC_Early serial console at MMIO 0x21ec000 (options '115200')

bootconsole [ttymxc2] enabled

Console: colour dummy device 80x30

Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

CPU1: Booted secondary processor

CPU2: Booted secondary processor

CPU3: Booted secondary processor

Brought up 4 CPUs

SMP: Total of 4 processors activated (6324.22 BogoMIPS).

print_constraints: dummy:

NET: Registered protocol family 16

print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal

print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal

print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal

print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal

print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal

print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal

Inside mx6_sabresd_board_init line:1809

Inside mx6_sabresd_board_init line:1832

hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.

hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.

hw-breakpoint: maximum watchpoint size is 4 bytes.

L310 cache controller enabled

l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B

bio: create slab <bio-0> at 0

mxs-dma mxs-dma-apbh: initialized

print_constraints: SPKVDD: 4200 mV

print_constraints: vmmc: 3300 mV

vgaarb: loaded

SCSI subsystem initialized

spi_imx imx6q-ecspi.0: probed

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Freescale USB OTG Driver loaded, $Revision: 1.55 $

imx-i2c imx-i2c.1: <i2c_imx_probe>

imx-i2c imx-i2c.1: <i2c_imx_probe> bitrate:100000

mc_pfuze 1-0008: ID: 0,Full lay: 1 ,Metal lay: 1

mc_pfuze 1-0008: FAB: 0 ,FIN: 0

print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mV

print_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1300 mV

print_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3300 mV

print_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mV

print_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3150 mV

print_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mV

print_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mV

print_constraints: PFUZE100_VREFDDR: at 750 mV

print_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mV

print_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 2800 mV

print_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mV

print_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 3000 mV

print_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3300 mV

i2c i2c-1: claimed irq 69

i2c i2c-1: device resources from 0x21a4000 to 0x21a4fff

i2c i2c-1: allocated 4096 bytes at 0x21a4000

i2c i2c-1: adapter name: "imx-i2c"

i2c i2c-1: IMX I2C adapter registered

imx-i2c imx-i2c.2: <i2c_imx_probe>

imx-i2c imx-i2c.2: <i2c_imx_probe> bitrate:100000

i2c i2c-2: claimed irq 70

i2c i2c-2: device resources from 0x21a8000 to 0x21a8fff

i2c i2c-2: allocated 4096 bytes at 0x21a8000

i2c i2c-2: adapter name: "imx-i2c"

i2c i2c-2: IMX I2C adapter registered

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)

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed

mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a

MIPI CSI2 driver module loaded

Advanced Linux Sound Architecture Driver Version 1.0.24.

Bluetooth: Core ver 2.16

NET: Registered protocol family 31

Bluetooth: HCI device and connection manager initialized

Bluetooth: HCI socket layer initialized

Bluetooth: L2CAP socket layer initialized

Bluetooth: SCO socket layer initialized

cfg80211: Calling CRDA to update world regulatory domain

i2c-core: driver [max17135] using legacy suspend method

i2c-core: driver [max17135] using legacy resume method

Switching to clocksource mxc_timer1

NET: Registered protocol family 2

IP route cache hash table entries: 32768 (order: 5, 131072 bytes)

TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

TCP bind hash table entries: 65536 (order: 7, 786432 bytes)

TCP: Hash tables configured (established 131072 bind 65536)

TCP reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

PMU: registered new PMU device of type 0

Static Power Management for Freescale i.MX6

wait mode is enabled for i.MX6

cpaddr = c0880000 suspend_iram_base=c091c000

PM driver module loaded

IMX PCIe port: link up.

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers disabled

pci 0000:00:00.0: BAR 14: assigned [mem 0x01200000-0x013fffff]

pci 0000:00:00.0: BAR 0: assigned [mem 0x01100000-0x011fffff 64bit pref]

pci 0000:00:00.0: BAR 0: set to [mem 0x01100000-0x011fffff 64bit pref] (PCI address [0x1100000-0x11fffff])

pci 0000:00:00.0: BAR 6: assigned [mem 0x01400000-0x0140ffff pref]

pci 0000:01:00.0: BAR 0: assigned [mem 0x01200000-0x013fffff 64bit]

pci 0000:01:00.0: BAR 0: set to [mem 0x01200000-0x013fffff 64bit] (PCI address [0x1200000-0x13fffff])

pci 0000:00:00.0: PCI bridge to [bus 01-01]

pci 0000:00:00.0:   bridge window [io  disabled]

pci 0000:00:00.0:   bridge window [mem 0x01200000-0x013fffff]

pci 0000:00:00.0:   bridge window [mem pref disabled]

IMX usb wakeup probe

add wake up source irq 75

IMX usb wakeup probe

cpu regulator init ldo=1

_regulator_get: get() with no identifier

mx6_cpu_regulator_init: failed to get pu regulator

i.MXC CPU frequency driver

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmni has been set to 1750

alg: No test for stdrng (krng)

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

mxc_mipi_dsi mxc_mipi_dsi: i.MX MIPI DSI driver probed

MIPI DSI driver module loaded

mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver ldb

valid mode RGB666

_regulator_get: get() with no identifier

mxc_ldb mxc_ldb: ldb_clk to di clk: ldb_di0_clk -> ipu1_di0_clk

mxc_ldb mxc_ldb: Single mode channel 0 route to IPU0-DI0

Inside ldb_disp_setup pixel_clk:64998000 rounded_pixel_clk:64653061

imx-ipuv3 imx-ipuv3.0: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)

mxc_sdc_fb mxc_sdc_fb.0:  ### fb_blank line:1039

mxc_sdc_fb mxc_sdc_fb.0: blank = 0

Inside ldb_disp_setup pixel_clk:64998000 rounded_pixel_clk:64653061

Console: switching to colour frame buffer device 170x48

mxc_sdc_fb mxc_sdc_fb.0:  mxcfb_pan_display line:1399

### Called fb_pan_display err:-22

mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver ldb

valid mode RGB666

mxc_ldb mxc_ldb: for second ldb displdb mode should in separate mode

mxc_sdc_fb mxc_sdc_fb.1: NO mxc display driver found!

mxc_sdc_fb mxc_sdc_fb.2: register mxc display driver lcd

mxc_sdc_fb mxc_sdc_fb.2: ipu0-di0 already in use

mxc_sdc_fb: probe of mxc_sdc_fb.2 failed with error -16

mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb

valid mode RGB666

mxc_ldb mxc_ldb: for second ldb displdb mode should in separate mode

mxc_sdc_fb mxc_sdc_fb.3: NO mxc display driver found!

imx-sdma imx-sdma: loaded firmware 1.1

imx-sdma imx-sdma: initialized

Serial: IMX driver

imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX

console [ttymxc2] enabled, bootconsole disabled

console [ttymxc2] enabled, bootconsole disabled

loop: module loaded

Can't recover from RESET HBA!

No sata disk.

m25p80 spi0.0: unrecognized JEDEC id 206a56

GPMI NAND driver registered. (IMX)

vcan: Virtual CAN interface driver

CAN device driver interface

flexcan netdevice driver

FEC Ethernet Driver

fec_enet_mii_bus: probed

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

wait otg vbus change timeout!

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.

ARC USBOTG Device Controller driver (1 August 2005)

mousedev: PS/2 mouse device common for all mice

input: gpio-keys as /devices/platform/gpio-keys/input/input0

i2c-core: driver [isl29023] using legacy suspend method

i2c-core: driver [isl29023] using legacy resume method

snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0

i2c /dev entries driver

lirc_dev: IR Remote Control driver registered, major 252

IR NEC protocol handler initialized

IR RC5(x) protocol handler initialized

IR RC6 protocol handler initialized

IR JVC protocol handler initialized

IR Sony protocol handler initialized

IR RC5 (streamzap) protocol handler initialized

IR LIRC bridge handler initialized

Linux video capture interface: v2.00

In MVC: init_camera_struct

In MVC: init_camera_struct

###### Inside prp_enc_init line:584

###### Inside csi_enc_init line:423

In adv7180_init

DBG sensor data is at 80b9f718

In adv7180_probe

Inside mx6q_csi0_io_init_adv7441 line:564

Inside mx6q_csi0_io_init_adv7441 line:577 init high

Inside mx6q_csi0_io_init_adv7441 line:581 set low

Inside mx6q_csi0_io_init_adv7441 line:588 set high

Inside mx6q_csi0_cam_powerdown_adv7441 line:559

adv7441a 1-0021: adv7180_probe:adv7180 probe i2c address is 0x21

adv7441a 1-0021: adv7180_probe:Analog Device adv7 00 detected!

adv7441a 1-0021: In adv7180:adv7180_hard_reset

###### adv7180_write_reg reg:0x0 val:0xe

###### adv7180_write_reg reg:0x3 val:0x0

###### adv7180_write_reg reg:0x4 val:0x47

###### adv7180_write_reg reg:0x5 val:0x0

###### adv7180_write_reg reg:0x3c val:0xad

###### adv7180_write_reg reg:0x17 val:0x41

###### adv7180_write_reg reg:0x67 val:0x2

###### adv7180_write_reg reg:0x68 val:0xf0

###### adv7180_write_reg reg:0x1d val:0x40

###### adv7180_write_reg reg:0x31 val:0x1a

###### adv7180_write_reg reg:0x32 val:0x81

###### adv7180_write_reg reg:0x33 val:0x84

###### adv7180_write_reg reg:0x34 val:0x0

###### adv7180_write_reg reg:0x35 val:0x0

###### adv7180_write_reg reg:0x36 val:0x7d

###### adv7180_write_reg reg:0x37 val:0xa1

###### adv7180_write_reg reg:0x3a val:0x7

###### adv7180_write_reg reg:0x3c val:0xa8

###### adv7180_write_reg reg:0x47 val:0xa

###### adv7180_write_reg reg:0xba val:0xa0

###### adv7180_write_reg reg:0xf3 val:0x7

###### adv7180_write_reg reg:0x69 val:0x0

###### adv7180_write_reg reg:0xe8 val:0x41

###### adv7180_write_reg reg:0xe9 val:0x84

###### adv7180_write_reg reg:0xea val:0x6

   type is 2 (expect 2)

   num ioctls is 11

adv7441a 1-0021: adv7180:ioctl_s_power

adv7441a 1-0021: adv7180:ioctl_g_fmt_cap

   Returning size of 720x625

End of mxc_v4l2_master_attach: device_type 1

End of mxc_v4l2_master_attach: v2f pix widthxheight 288 x 352

End of mxc_v4l2_master_attach: crop_bounds widthxheight 720 x 625

End of mxc_v4l2_master_attach: crop_defrect widthxheight 720 x 625

End of mxc_v4l2_master_attach: crop_current widthxheight 720 x 625

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16

mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

gspca: v2.13.0 registered

cx25858 driver version 2.0.111 loaded

cx25858 driver unsuccess

usbcore: registered new interface driver uvcvideo

USB Video Class driver (v1.1.0)

i2c-core: driver [mag3110] using legacy suspend method

i2c-core: driver [mag3110] using legacy resume method

imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)

Bluetooth: Virtual HCI driver ver 1.3

Bluetooth: HCI UART driver ver 2.2

Bluetooth: HCIATH3K protocol initialized

Bluetooth: Generic Bluetooth USB driver ver 0.6

usbcore: registered new interface driver btusb

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci sdhci-esdhc-imx.3: support_8bit:1

mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA

sdhci sdhci-esdhc-imx.1: support_8bit:1

mmc1: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA

sdhci sdhci-esdhc-imx.2: support_8bit:1

mmc2: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA

mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed

VPU initialized

mxc_asrc registered

Thermal calibration data is 0x5784c37d

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

usbcore: registered new interface driver snd-usb-audio

mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio

Cirrus Logic CS42888 ALSA SoC Codec Driver

i2c-core: driver [cs42888] using legacy suspend method

i2c-core: driver [cs42888] using legacy resume method

imx-hdmi-soc-dai: probe of imx-hdmi-soc-dai.0 failed with error -12

imx_3stack asoc driver

ALSA device list:

  No soundcards found.

mmc0: new high speed DDR MMC card at address 0001

NET: Registered protocol family 26

mmcblk0: mmc0:0001 SEM08G 7.39 GiB

mmcblk0boot0: mmc0:0001 SEM08G partition 1 2.00 MiB

mmcblk0boot1: mmc0:0001 SEM08G partition 2 2.00 MiB

TCP cubic registered

mmcblk0: p1

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)

mmcblk0boot1: unknown partition table

Bluetooth: RFCOMM TTY layer initialized

mmcblk0boot0: unknown partition table

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

lib80211: common routines for IEEE802.11 drivers

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

Bus freq driver module loaded

Bus freq driver Enabled

mxc_dvfs_core_probe

DVFS driver module loaded

regulator_init_complete: PFUZE100_VGEN6: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN3: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving on

regulator_init_complete: PFUZE100_VGEN1: incomplete constraints, leaving on

regulator_init_complete: SPKVDD: incomplete constraints, leaving on

snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 08:04:21 UTC (29061)

EXT2-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended

VFS: Mounted root (ext2 filesystem) on device 179:1.

Freeing init memory: 212K

starting pid 1440, tty '': '/etc/rc.d/rcS'

Mounting /proc and /sys

Starting the hotplug events dispatcher udevd

udevd (1449): /proc/1449/oom_adj is deprecated, please use /proc/1449/oom_score_adj instead.

Synthesizing initial hotplug events

mmc2: new high speed SDHC card at address 1234

mmcblk1: mmc2:1234 SA08G 7.28 GiB

mmcblk1: p1

Setting the hostname to freescale

Mounting filesystems

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 234449

No space left on device

cp: write error: No space left on deviceEXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 234449

cp: write error: No space left EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 234449

on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

cp: write error: No space left on device

ln: /etc/mtab: Input/output error

mount: mounting usbfs on /proc/bus/usb failed: No such file or directory

Starting the port mapper:

Starting the boa webserver:

rebuilding rpm database

rpmdb: write: 0x7e977654, 8192: No space left on device

error: db4 error(28) from dbenv->open: No space left on device

error: cannot open Packages index

starting pid 2772, tty '': '/etc/rc.d/rc_gpu.S'

EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 363702

EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 363702

EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced: 363702

ln: /usr/lib/libOpenVG.so: Input/output error

starting pid 2779, tty '': '/etc/rc.d/rc_mxc.S'

arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)

root filesystem built on Sun, 28 Jul 2013 02:45:43 +0800

Freescale Semiconductor, Inc.

freescale login:

is pcie right?

Hi
It seems that the PCIe is right, the memory space required by EP device had been allocated by PCIe RC.

You can get the detailed info by the "lspci -v” command, after you login the console.

Best Regards

Richard

root@freescale ~$ lspci

00:00.0 Class 0604: 16c3:abcd

01:00.0 Class 0400: 14f1:8580

root@freescale ~$ lspci -v

00:00.0 Class 0604: 16c3:abcd

01:00.0 Class 0400: 14f1:8580

root@freescale ~$   my device is

static struct pci_device_id cx25858_pci_tbl[] = {

    {

        /* CX25858 Atlas Plus */

        .vendor       = 0x14f1,

        .device       = 0x8580,

        .subvendor    = 0x14f1,

        .subdevice    = 0x0950,

    },

it  seem id is right,but you can see from log:

cx25858 driver version 2.0.111 loaded

cx25858 driver unsuccess

I print the message in the driver :

  if (!pci_register_driver(&cx25858_pci_driver)) {

        pci_unregister_driver(&cx25858_pci_driver);

       printk(KERN_INFO "cx25858 driver unsuccess\n");

        return -ENODEV;

    }

  printk(KERN_INFO "cx25858 driver success\n");

    return 0;

}

  why register wrong,can you give any suggest? 

   /* return pci_register_driver(&cx25858_pci_driver);*/

}

[ ] Message Signaled Interrupts (MSI and MSI-X)       in make menuconfig    need select ?

when I select ,there is wrong .i

drivers/built-in.o: In function `default_setup_msi_irqs':

clkdev.c:(.text+0x10ca4): undefined reference to `arch_setup_msi_irq'

drivers/built-in.o: In function `default_teardown_msi_irqs':

clkdev.c:(.text+0x10d18): undefined reference to `arch_teardown_msi_irq'

make: *** [.tmp_vmlinux1] Error 1

Hi:
Can you please issue one new topic to discuss your problem?

I think that your problem is not related to PCIe EP/RC validation at all.

Please make sure that the release version used by you support PCIe MSI or not.

As I remember that the 1.1.0 release doesn't support PCIe MSI yet.

Best Regards

Richard

Hello Richard

I'm trying to use a Sabrelite board with IMX6Q as a PCIe EP.

I Created a PCIe Cable that goes from the PCIe Port (j23) to a little board where I have a molex connector, and that gets rooted to a FPC Flex connector all the way to the PCIe Goldfinger using one of those Raiser: http://www.bplustech.com/KZ/KZ-B21.html The schematic of this raiser can be found here: http://www.bplus.com.tw/PDF/KZ-B21_VER1_0_20130118A.pdf

Basically I Connect on the PCIe Goldfinger part the  PRSNT1#  --  PRSNT2# to tell the HOST PC that it's a x1 pcie:

then my setup could be resumed as:

GND --  GND

TXP -- RXP

TXM -- RXM

RXP -- TXP

RXM -- TXM

image (1).jpeg

(http://whatsphere.com/pcie.jpeg)

Here is a view to the BOOT

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

[    0.000000] Linux version 3.0.35-2508-g54750ff (xavier@ubuntu) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #24 SMP PREEMPT Sun Nov 3

[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

[    0.000000] Machine: Freescale i.MX 6Quad Sabre-Lite Board

[    0.000000] Memory policy: ECC disabled, Data cache writealloc

[    0.000000] CPU identified as i.MX6Q, silicon rev 1.2

[    0.000000] PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 227328

[    0.000000] Kernel command line: enable_wait_mode=off video=mxcfb0:off video=mxcfb1:off video=mxcfb2:off console=ttymxc1,115200 vmalloc=400M consoleblank=0 rootwait root=/dev/mmcblk0p1

[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

[    0.000000] Memory: 640MB 256MB = 896MB total

[    0.000000] Memory: 896756k/896756k available, 151820k reserved, 0K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)

[    0.000000]     vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)

[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)

[    0.000000]       .init : 0x80008000 - 0x8003b000   ( 204 kB)

[    0.000000]       .text : 0x8003b000 - 0x80aa62cc   (10669 kB)

[    0.000000]       .data : 0x80aa8000 - 0x80b072c0   ( 381 kB)

[    0.000000]        .bss : 0x80b072e4 - 0x80b556ac   ( 313 kB)

[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] Preemptible hierarchical RCU implementation.

[    0.000000] NR_IRQS:624

[    0.000000] MXC GPIO hardware

[    0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

[    0.000000] arm_max_freq=1GHz

[    0.000000] MXC_Early serial console at MMIO 0x21e8000 (options '115200')

[    0.000000] bootconsole [ttymxc1] enabled

[    0.000000] Console: colour dummy device 80x30

[    0.224540] Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

[    0.312867] pid_max: default: 32768 minimum: 301

[    0.317802] Mount-cache hash table entries: 512

[    0.323097] CPU: Testing write buffer coherency: ok

[    0.328254] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

[    0.428774] CPU1: Booted secondary processor

[    0.508778] CPU2: Booted secondary processor

[    0.588792] CPU3: Booted secondary processor

[    0.628290] Brought up 4 CPUs

[    0.644115] SMP: Total of 4 processors activated (6324.22 BogoMIPS).

[    0.667822] print_constraints: dummy:

[    0.671823] NET: Registered protocol family 16

[    0.680477] print_constraints: vddpu: 725 <--> 1300 mV at 1150 mV fast normal

[    0.688013] print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal

[    0.695751] print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal

[    0.703438] print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal

[    0.711197] print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal

[    0.718839] print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal

[    0.727742] **DEBUG mx6_sabrelite_board_init

[    0.790388] **DEBUG imx_add_pcie

[    0.793966] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.

[    0.800798] hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.

[    0.808143] hw-breakpoint: maximum watchpoint size is 4 bytes.

[    0.814042] L310 cache controller enabled

[    0.818071] l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B

[    0.849718] bio: create slab <bio-0> at 0

[    0.857066] mxs-dma mxs-dma-apbh: initialized

[    0.861759] print_constraints: vmmc: 3300 mV

[    0.866817] vgaarb: loaded

[    0.870369] SCSI subsystem initialized

[    0.874931] spi_imx imx6q-ecspi.0: probed

[    0.879688] usbcore: registered new interface driver usbfs

[    0.885314] usbcore: registered new interface driver hub

[    0.890798] usbcore: registered new device driver usb

[    0.895867] Freescale USB OTG Driver loaded, $Revision: 1.55 $

[    0.918287] imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

[    0.938282] imx-ipuv3 imx-ipuv3.1: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

[    0.946109] mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed

[    0.952586] mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a

[    0.960308] MIPI CSI2 driver module loaded

[    0.964632] Advanced Linux Sound Architecture Driver Version 1.0.24.

[    0.971833] Bluetooth: Core ver 2.16

[    0.975533] NET: Registered protocol family 31

[    0.980001] Bluetooth: HCI device and connection manager initialized

[    0.986377] Bluetooth: HCI socket layer initialized

[    0.991277] Bluetooth: L2CAP socket layer initialized

[    0.996429] Bluetooth: SCO socket layer initialized

[    1.001760] cfg80211: Calling CRDA to update world regulatory domain

[    1.008652] i2c-core: driver [max17135] using legacy suspend method

[    1.014941] i2c-core: driver [max17135] using legacy resume method

[    1.021168] Switching to clocksource mxc_timer1

[    1.037670] NET: Registered protocol family 2

[    1.042238] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)

[    1.050180] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

[    1.059505] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)

[    1.067234] TCP: Hash tables configured (established 131072 bind 65536)

[    1.073869] TCP reno registered

[    1.077034] UDP hash table entries: 512 (order: 2, 16384 bytes)

[    1.082999] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

[    1.089789] NET: Registered protocol family 1

[    1.094454] RPC: Registered named UNIX socket transport module.

[    1.100408] RPC: Registered udp transport module.

[    1.105126] RPC: Registered tcp transport module.

[    1.109852] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    1.117195] Static Power Management for Freescale i.MX6

[    1.122438] wait mode is disabled for i.MX6

[    1.126812] cpaddr = c0880000 suspend_iram_base=c091c000

[    1.132223] PM driver module loaded

[    1.135722] **DEBUG imx_pcie_drv_init

[    1.174919] **DEBUG imx_pcie_pltfm_probe

[    1.178171] iMX6 PCIe PCIe EP mode imx_pcie_pltfm_probe entering.

[    1.184380] PCIE: imx_pcie_pltfm_probe start link up.

[    1.189459] PCIe EP: waiting for link up...

[   15.540166] PCIe EP: link up.

[   15.543512] IMX usb wakeup probe

[   15.547195] add wake up source irq 75

[   15.554446] IMX usb wakeup probe

[   15.557952] cpu regulator mode:ldo_enable

[   15.562170] i.MXC CPU frequency driver

[   15.590899] JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.

[   15.597527] msgmni has been set to 1751

[   15.602766] alg: No test for stdrng (krng)

[   15.607030] io scheduler noop registered

[   15.610966] io scheduler deadline registered

[   15.615331] io scheduler cfq registered (default)

[   15.621043] MIPI DSI driver module loaded

[   15.625229] mxc_sdc_fb mxc_sdc_fb.0: Can't get fb option for mxcfb0!

[   15.631641] mxc_sdc_fb mxc_sdc_fb.1: Can't get fb option for mxcfb1!

[   15.638041] mxc_sdc_fb mxc_sdc_fb.2: Can't get fb option for mxcfb2!

[   15.644430] mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb

[   15.650830] _regulator_get: get() with no identifier

[   15.667087] Console: switching to colour frame buffer device 160x50

[   15.682241] imx-sdma imx-sdma: loaded firmware 1.1

[   15.690972] imx-sdma imx-sdma: initialized

[   15.814091] Serial: IMX driver

[   15.817281] imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

[   15.824129] imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX

[   15.830620] console [ttymxc1] enabled, bootconsole disabled

[   15.830620] console [ttymxc1] enabled, bootconsole disabled

[   15.846998] loop: module loaded

[   15.884600] No sata disk.

[   15.888429] m25p80 spi0.0: sst25vf016b (2048 Kbytes)

[   15.893400] Creating 2 MTD partitions on "m25p80":

[   15.898209] 0x000000000000-0x000000100000 : "bootloader"

[   15.904579] 0x000000100000-0x000000200000 : "kernel"

[   15.910711] GPMI NAND driver registered. (IMX)

[   15.916014] vcan: Virtual CAN interface driver

[   15.920464] CAN device driver interface

[   15.924304] flexcan netdevice driver

[   15.928752] flexcan imx6q-flexcan.0: device registered (reg_base=c09e8000, irq=142)

[   15.936542] FEC Ethernet Driver

[   15.941717] fec_enet_mii_bus: probed

[   15.946292] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

[   15.952944] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller

[   15.959594] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1

[   15.995767] fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000

[   16.015757] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00

[   16.022008] hub 1-0:1.0: USB hub found

[   16.025780] hub 1-0:1.0: 1 port detected

[   16.029901] add wake up source irq 72

[   16.033602] fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller

[   16.040243] fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2

[   16.075767] fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200

[   16.095755] fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00

[   16.101938] hub 2-0:1.0: USB hub found

[   16.105702] hub 2-0:1.0: 1 port detected

[   16.109947] Initializing USB Mass Storage driver...

[   16.114988] usbcore: registered new interface driver usb-storage

[   16.121010] USB Mass Storage support registered.

[   16.125632] ARC USBOTG Device Controller driver (1 August 2005)

[   16.132344] mousedev: PS/2 mouse device common for all mice

[   16.138373] input: gpio-keys as /devices/platform/gpio-keys/input/input0

[   16.145762] egalax_ts 2-0004: egalax_ts: failed to read firmware version

[   16.152477] egalax_ts: probe of 2-0004 failed with error -5

[   16.158557] i2c-core: driver [isl29023] using legacy suspend method

[   16.164830] i2c-core: driver [isl29023] using legacy resume method

[   16.171586] snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0

[   16.178258] i2c /dev entries driver

[   16.182461] Linux video capture interface: v2.00

[   16.187446] mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16

[   16.195068] mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

[   16.202918] i2c-core: driver [mag3110] using legacy suspend method

[   16.209139] i2c-core: driver [mag3110] using legacy resume method

[   16.215645] imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)

[   16.223761] Bluetooth: Virtual HCI driver ver 1.3

[   16.228680] Bluetooth: HCI UART driver ver 2.2

[   16.233128] Bluetooth: HCIATH3K protocol initialized

[   16.238105] Bluetooth: Generic Bluetooth USB driver ver 0.6

[   16.243804] usbcore: registered new interface driver btusb

[   16.249437] sdhci: Secure Digital Host Controller Interface driver

[   16.255623] sdhci: Copyright(c) Pierre Ossman

[   16.260386] mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA

[   16.267756] mmc1: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA

[   16.275002] mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed

[   16.286210] VPU initialized

[   16.289955] mxc_asrc registered

[   16.317073] Thermal calibration data is 0x5874c87d

[   16.321870] Thermal sensor with ratio = 183

[   16.345881] Anatop Thermal registered as thermal_zone0

[   16.351169] anatop_thermal_probe: default cooling device is cpufreq!

[   16.358317] usbcore: registered new interface driver usbhid

[   16.363893] usbhid: USB HID core driver

[   16.368144] usbcore: registered new interface driver snd-usb-audio

[   16.374848] mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio

[   16.380296] Cirrus Logic CS42888 ALSA SoC Codec Driver

[   16.385539] i2c-core: driver [cs42888] using legacy suspend method

[   16.387149] mmc0: new high speed SDHC card at address 0001

[   16.397244] i2c-core: driver [cs42888] using legacy resume method

[   16.403550] mmcblk0: mmc0:0001 00000 7.44 GiB

[   16.404126] imx-hdmi-soc-dai imx-hdmi-soc-dai.0: Failed: Load HDMI-video first.

[   16.404881] imx_3stack asoc driver

[   16.405497] Initialize HDMI-audio failed. Load HDMI-video first!

[   16.405505] ALSA device list:

[   16.405510]   No soundcards found.

[   16.405716] NET: Registered protocol family 26

[   16.406295] TCP cubic registered

[   16.406303] NET: Registered protocol family 17

[   16.406320] can: controller area network core (rev 20090105 abi 8)

[   16.406391] NET: Registered protocol family 29

[   16.406407] can: raw protocol (rev 20090105)

[   16.406413] can: broadcast manager protocol (rev 20090105 t)

[   16.425829] usb 2-1: new high speed USB device number 2 using fsl-ehci

[   16.470303] Bluetooth: RFCOMM TTY layer initialized

[   16.471595]  mmcblk0: p1

[   16.477735] Bluetooth: RFCOMM socket layer initialized

[   16.482876] Bluetooth: RFCOMM ver 1.11

[   16.486635] Bluetooth: BNEP (Ethernet Emulation) ver 1.3

[   16.491949] Bluetooth: BNEP filters: protocol multicast

[   16.497189] Bluetooth: HIDP (Human Interface Emulation) ver 1.2

[   16.503241] lib80211: common routines for IEEE802.11 drivers

[   16.508958] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

[   16.516994] Bus freq driver module loaded

[   16.521011] Bus freq driver Enabled

[   16.526514] mxc_dvfs_core_probe

[   16.529846] DVFS driver module loaded

[   16.535886] snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 05:59:54 UTC (21594)

[   16.549411] EXT3-fs: barriers not enabled

[   16.554225] kjournald starting.  Commit interval 5 seconds

[   16.558984] EXT3-fs (mmcblk0p1): using internal journal

[   16.558996] EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode

[   16.559027] VFS: Mounted root (ext3 filesystem) on device 179:1.

[   16.559086] Freeing init memory: 204K

[   16.648921] hub 2-1:1.0: USB hub found

[   16.652848] hub 2-1:1.0: 3 ports detected

starting pid 1354, tty '': '/etc/rc.d/rcS'

Mounting /proc and /sys

Starting the hotplug events dispatcher udevd

[   16.886688] udevd (1372): /proc/1372/oom_adj is deprecated, please use /proc/1372/oom_score_adj instead.

Synthesizing initial hotplug events

Setting the hostname to boundary

Mounting filesystems

mount: mounting usbfs on /proc/bus/usb failed: No such file or directory

Running sysctl

Setting up networking on loopback device:

Setting up networking on eth0:

udhcpc (v1.20.2) started

[   19.039687] eth0: Freescale FEC PHY driver [Micrel KSZ9021 Gigabit PHY] (mii_bus:phy_addr=1:06, irq=-1)

Sending discover...

Sending discover...

Sending discover...

No lease, forking to background

Starting the dropbear ssh server:

starting pid 3060, tty '': '/etc/rc.d/rc_gpu.S'

starting pid 3068, tty '': '/etc/rc.d/rc_mxc.S'

arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)

root filesystem built on Tue, 18 Jun 2013 12:28:53 -0700

Freescale Semiconductor, Inc.

boundary login:

U-Boot 2013.01-rc1-00120-g7c28db0 (Nov 12 2012 - 09:15:04)

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz

So the behaviour is that the board boots, and blocks at: "PCIe EP: waiting for link up..." and as soon as I switch on the PC, it goes on all the way to the login prompt.

At that stage, knowing that by default the IMX6q is at 125Mhz and that the CLK signal are not connected on the PCIe connector of the board, so it uses internal PLL, and that the standard for PCIe is 100Mhz. Is it sure that the link isr really UP ?

Obviously on the PC side, if I issue a "lspci" I don't see anything. :smileysad:

The thing is that according to the patch, it's supposed to set the VID/PID to "DEADBEAF" but when I look at the memory, I see the default VID/PID:

$ ./memtool -32 01FFC000 20

Reading 0x20 count starting at address 0x01FFC000

0x01FFC000:  ABCD16C3 00100000 00000001 00000000

0x01FFC010:  0000000C 00000000 00000008 00000001

0x01FFC020:  00000000 00000000 00000000 00000000

0x01FFC030:  00000000 00000040 00000000 000001FF

0x01FFC040:  DBC35001 00000000 00000000 00000000

0x01FFC050:  01807005 00000000 00000000 00000000

0x01FFC060:  00000000 00000000 00000000 00000000

0x01FFC070:  00020010 00008700 00102010 0001CC12

So I must be doing something wrong. any help would be welcome.

just for info, i even patched my sabrelite files like that:

====

arch/arm/mach-mx6/board-mx6q_sabrelite.c

+#define SABREAUTO_MAX7310_1_BASE_ADDR   IMX_GPIO_NR(8, 0)

+#define SABREAUTO_PCIE_RST_B_REVB       (SABREAUTO_MAX7310_1_BASE_ADDR + 2)

+static const struct imx_pcie_platform_data mx6_sabrelite_pcie_data __initconst = {

+        .pcie_pwr_en    = -EINVAL,

+        .pcie_rst       = SABREAUTO_PCIE_RST_B_REVB,

+        .pcie_wake_up   = -EINVAL,

+        .pcie_dis       = -EINVAL,

+#ifdef CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS

+        .type_ep        = 1,

+#else

+        .type_ep        = 0,

+#endif

+};

static void __init mx6_sabrelite_board_init(void)

+        /* Add PCIe RC interface support */

+        imx6q_add_pcie(&mx6_sabrelite_pcie_data);

        imx6q_add_perfmon(0);

        imx6q_add_perfmon(1);

        imx6q_add_perfmon(2);

}

regards

Hi:

Wow, It's amazing, pcie link is still up, cable of the connector is a little long of your HW.

About link is up or not, you can make a double check on the bit4 of Debug Register 1(0x01ff_c72c), link is up if this bit is set.

Best Regards

Richard.

Hi, thx for your answer. My question was more: If it says link is UP, is it really UP ? or is it just because there is some electrical activity on the RX path ?

Right now, I believe the board is at 125Mhz and not 100Mhz (how can I check that?) and since it's inserted inside a PC, the freq of the bus in a PC should be 100Mhz, no ? in this case how would the link be up ?

Also, on the PC side, I don't see any PCI interface corresponding to the board as a memory device when I issue a "lspci". So does your patch for EP and "emulating a memory device" work for beeing seen as a memory device on the other side ?

regards

Hello.

I have same issue as "keytwo.

Short cable help me avoid the problem when kernel hang up after message "PCIE: Waiting for link up..." (or something like this).

Now kernel booting right, but i have no "dead_beaf" device on root complex.

I use PC on root complex side. My question is "Is it possible to make the board working as EP with usual PC with usual linux 3.11?" I have no more freescale boards.

Regards.

I just checked my register with memtool. "while(true) ; do sleep 1 ; ./memtool -32 01ffc72c 1 | grep -v add | grep 0x; done"

in fact the 4th bit switches from 1 to 0 then 1 again.. randomly.

so maybe something is wrong with my cable. or, it's the fact that my device might be sync at 125Mhz while the normal PCI bus is sync at 100Mhz therefor it desync and link goes down.

richard.zhu How do I know if I'm in 125Mhz or 100Mhz ?

Too bad there is no demonstration of how to turn the device into EP with a normal PC instead of 2 Sabre boards.

aleksandrmuraviov Could you post a pic of your setup ? 


On the board i'm using, the TX+/TX- signals get separated for a couple of centimeters because i was doing single face PCB, so that might be the reason it doesnt work.


keytwothat is - https://community.freescale.com/docs/DOC-98614

Sorry, but i cannot paste image right here.

The situation that i am writing about were without pink and orange plug on the adapter.

I added it in hope to it will provide clock to the board. But now i have no any signals from root complex. Kernel load hang up on the message "PCIe EP: waiting for link up...".

Regards.

After checking the uplink register on a while loop, i realized that my device was in fact loosing the link up.

So i decided to make a new cable, where I respect the proximity of the TX/RX lines by putting the track right next to eachother, with a new type of connector

image (2).jpeg

so on one side I come from the SABRE Lite J23 connector, to my little adapter, and that goes to a KZ-B21 ( http://www.bplus.com.tw/ExtenderBoard/KZ-B21.html )

I tested this one on several PC, and on one of them (just one) when I do a "lspci" i see my dead:beaf device as a RAM pcie card.

On the Sabrelite, the link stays UP (0x00000310) It looks like the cable was really an issue here.

I still can not read the PC's memmory.

I still don't know if the device is working on 100Mhz or 125Mhz and if I don't have a clock problem. What I know for sure is that on another PC, the link gets UP and Down non stop. So I still wonder if I don't have a clock issue.

maybe richard.zhu could tell us more about it ? What i know is that on some EP implementation, it activates the CLK1 of LVDS port in input. is it switching into external clock ?

As of aleksandrmuraviov could you tell me more about the board you are using ? (btw, to post a picture here, just drag and drop)

Hi key two:

It's great that you can look at imx ep at one of your pc.

Sorry, I'm busy on one internal critical release in these days, don't have much time here.

Imx6q pcie uses 125mhz as internal ref clk.

Actually, it's doesn't matter when the standalone ref clk is used by ep and rc.

Another ref clk solution, imx6q pcie ep can use the 100m clk provided by pc pcie rc in theory.

But some configurations are required,you can make a reference to the topic when the 100m external OSC is implemented in this community.

Best regards

Richard

在 2013-11-28,下午6:38,"key two" <admin@community.freescale.com<mailto:admin@community.freescale.com>> 写道:

<https://community.freescale.com/>

<https://community.freescale.com/>

i.MX6Q PCIe EP/RC Validation System

new comment by key two<https://community.freescale.com/people/keytwo?et=watches.email.document_comment> View all comments on this document<https://community.freescale.com/docs/DOC-95014?et=watches.email.document_comment#comment-8508>

Hi richard.zhu,

it's true it doesn't matter if EP and RC use each of them an internal clock, but in the case of a PC, the PC acting as a RC is providing the CLK to the EP (here the imx) and I believe this clock is 100Mhz as it's standard. (unless i'm wrong?)

So here the problem is that if the IMX is set at 125Mhz, that it only uses TX/RX but NOT the CLK coming from the RC which is at 100Mhz. what happens ?

Could it be the reason it works only in 1 PC ?

Hello, Hongxing Zhu.

Do you mean that PC not provide LVDS differencial clock that required by freescale?

Is it possible to make PC provide this signal? I can not find anything relation option in kernel menuconfig of PC.

Regards

The PCIe from the PC always sends the CLK signal, it's not an option, it's mandatory !

The EP can use this CLK signal, or can use it's internal clock, and relay on the 8b10b clock recovery.

In the case of the MX6Q, the way it is implemented currently in the kernel, it uses it's internal clock.

It is also possible to give the MX6 an external clock (coming from the PC) but in this case you need to patch the kernel in order to use the external clock !

I suggest you to run "while(true) ; do sleep 1 ; ./memtool -32 01ffc72c 1 | grep -v add | grep 0x; done" and see the value you get. if it's something like "xxxxxx1x" then the link is up, if it's something like "xxxxxx0x" then the link is down !

Hi:

Imx pcie can use external 100m ref clk, after the responding sw modifications.

The modifications can be made reference to the external OSC usage topic in this community.

Best Regards

Richard

Sent from Huawei Mobile

aleksandr Muraviov <admin@community.freescale.com>编写:

<https://community.freescale.com/>

i.MX6Q PCIe EP/RC Validation System

new comment by aleksandr Muraviov<https://community.freescale.com/people/aleksandrmuraviov?et=watches.email.document_comment> View all comments on this document<https://community.freescale.com/docs/DOC-95014?et=watches.email.document_comment#comment-8518>

Thanks for this post, works perfectly.

Little question : if i create some 4K IO in BAR0, they are seen at 0x1E00000 on RC. Thats' fine. But how to read/write the IO space from the endpoint itself ? Where is it allocated ?

Another question : any example on how to sent PCIe interrupt from the EP to the RC ? I have tested various settings with the iATU, but no result up to now. Any ideas ?

We currently try to archive high bandwidth data transfers from a Xilinx Artix7 FPGA to the DDR of the iMX6. We finally got something running but unfortunately the data transfer bandwidth was not as good as we would have expected on the i.MX6. We generate a data stream within the FPGA using a clock counter and send it using the FPGA as a bus master to the iMX6 RC. By subtracting the last transferred data word from the first we calculated the data transfer speed, so calculation should not depend on any CPU latencies. Some precision might get lost, as we currently sending the generated clock values to the PCIe core of the FPGA that buffers them. As we could see in chipscope the iMX6 always has some stalls on the PCIe bus after 128bytes (probably the payload size limitation), but we can only see gaps in the received data words on the iMX6' DDR after about 2048 bytes so there seem to be a buffer in the Xilinx PCIe core, that makes the timing values not synchronous to the real PCIe data packages. But it shouldn't have a big impact on the overall calculation of bandwidth speed.

Nevertheless when transferring a 512KByte buffer from the FPGA to the i.MX6 we got 270MB/s while we got ~400MB/s on an x86 system with one PCIe 2.0 lane.

Is there any obvious reason (apart from the maximum payload size of 128byte on the i.MX6) that the transfer rate is only that low? As the maximum payload size on the FPGA is currently limited to 256 bytes anyway it shouldn't have a very big effect in comparison to the x86 system.

I'm also wondering why in your case you only reach 344MB/s as a maximum. Shouldn't the PCIe interface allow a bit higher bandwidth?

Hi richard.zhu

I've been trying to repeat this validation on an i.MX6DL setup but failed so far. Can you see any reason why such setup fails? It looks like it fails on hardware access after link training has been started. A lot of code is "labeled" iMX6Q but used for iMX6DL, I've reviewed it and can't find anything obvious wrong, most differences are handled by if iMX6Q or iMX6DL

My community post on the matter. Have anyone successfully reproduced i.MX6Q PCIe EP/RC Validation System on an i.MX6DL setup

Any feedback is appreciated.


Regards

Andreas

Hi,
I am using the same setup to validate PCIe througput from imx6 end point to root complex. I want to know how can we change TLP size when arm core is used as bus master. More importantly, how tlp paload size can have any impact on read throughput when arm core can only read 4 bytes at a time. Why are we setting TLP size to 32 bytes when arm core is used as bus master? Does it have any affect on read performance? or we just get same numbers irrespective of TLP size?

Hi:
As I know that the MAX_PAY_LOAD_SIZE of imx6 pcie is 128bytes.

The actual data size on one tlp is decided by the cache-burst capability of the pcie master.

That's why the data size in the imx6 pcie ep/rc validation is 32 when arm core is used as the bus master.

And the data size is 64 when IPU(DMA) used as the bus master.

Best Regards.

Richard.

Hi richard.zhu keytwo

I have successfully run the validation system with the two Sabre_Lite boards.

Now I am trying to run PCIe endpoint (Sabre_Lite) with other Root Complexes (like PC). My link is not up when I connect my EP to other RC than the Sabre_Lite. Is using internal ref 125Mhz clock be the issue.

Since Sabre_Lite PCIe connector does not have input CLK signal, will I be a needing hardware modification If I have to pass RC reference clock to EP?.

If yes, can hardware modification be prevented.

Thanks,

Haider

HW modifications is mandatory required, since the REF CLK is sourced from pll in the original imx6 pcie hw design.

Best Regards.

Richard

One customer uses RTL8111e and reported kernel panic issue,

eth1      Link encap:Ethernet  HWaddr 00:E0:4C:68:A2:04
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1002 (1002.0 B)  TX bytes:0 (0.0 B)
          Interrupt:155 Base address:0xe000

<5-2666-gbdde708/kernel/drivers/net/r8168-8.039.00$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
kernel BUG at arch/arm/mm/dma-mapping.c:478!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 80004000
[00000000] *pgd=00000000
Internal error: Oops: 817 [#1] PREEMPT SMP
Modules linked in: r8168
CPU: 2    Not tainted  (3.0.35-2666-gbdde708 #20)
PC is at __bug+0x1c/0x28
LR is at __bug+0x18/0x28
pc : [<800462c8>]    lr : [<800462c4>]    psr: 60000193
sp : bffb5dc8  ip : c097a000  fp : ba074000
r10: 0000021c  r9 : 7f03d544  r8 : ff9f2000
r7 : ff9f8000  r6 : 00000001  r5 : 00000012  r4 : ff9f2000
r3 : 00000000  r2 : 80ad329c  r1 : 60000193  r0 : 00000033
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c53c7d  Table: 4a2b404a  DAC: 00000015
Process swapper (pid: 0, stack limit = 0xbffb42f0)
Stack: (0xbffb5dc8 to 0xbffb6000)
5dc0:                   80b16930 8004cb08 00000012 00400000 0000002a 7f0019f8
5de0: 00000000 80000000 00000000 bfd92480 ba0744b4 ff9f8000 ff9f8000 80000113
5e00: c0b7e000 bfc938a0 00000000 60004980 bfd92480 ba074000 00000000 80abc11c
5e20: 7f03d544 bfd82480 80439354 8042f11c 00000006 ba07418c bfc1ec08 bfd3dd02
5e40: ba074000 bfd3df00 ba074000 bfd3df5c bfd92480 bfd82480 00000000 00000002
5e60: 80439354 8044a694 bfd82480 bfd3df00 bfd92480 ba074000 bfd82480 bfd3df5c
5e80: 00000000 8042f5a0 bfd3df5c bfd3de00 00000000 00000000 00000000 bfd92240
5ea0: ba074000 0100a8c0 0200a8c0 00000000 bfd3de00 8047d8fc 0200a8c0 00000000
5ec0: bfc1ec08 00000000 00000010 bfd92240 bfd9225c bfd92254 bfd923c0 00000000
5ee0: 00000103 80439558 bffb5f08 bffcc000 80aa8080 bffb4000 00200200 80082f84
5f00: 000000fa 8436ae00 bffb5f08 bffb5f08 00000000 00000141 80aa8044 bffb4000
5f20: 00000103 80b102e0 00000002 80aa8040 00000001 8007d078 839e72da 000000fa
5f40: 839e72da 0000000a 839e72da bffb4000 bffb4000 8003bc00 00000000 00000002
5f60: bffb4000 00000000 00000000 8007d5b4 80abbcc0 8003d2e0 ffffffff f2a00100
5f80: 00000002 00000002 00000001 80042a0c 80b11c40 80000093 00000001 00000000
5fa0: bffb4000 80b0a744 80abba70 8051d870 80abef0c 412fc09a 00000000 00000000
5fc0: 00000000 bffb5fd8 80051e2c 80043b04 40000013 ffffffff 80043ae0 80043d20
5fe0: 4ffb806a 00000015 10c03c7d 80b0a8f8 1000406a 10511694 8102080c 22705244
[<800462c8>] (__bug+0x1c/0x28) from [<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4)
[<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4) from [<7f0019f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168])
[<7f0019f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168]) from [<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c)
[<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c) from [<8044a694>] (sch_direct_xmit+0xb0/0x1dc)
[<8044a694>] (sch_direct_xmit+0xb0/0x1dc) from [<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c)
[<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c) from [<8047d8fc>] (arp_solicit+0xd4/0x1b0)
[<8047d8fc>] (arp_solicit+0xd4/0x1b0) from [<80439558>] (neigh_timer_handler+0x204/0x38c)
[<80439558>] (neigh_timer_handler+0x204/0x38c) from [<80082f84>] (run_timer_softirq+0xec/0x214)
[<80082f84>] (run_timer_softirq+0xec/0x214) from [<8007d078>] (__do_softirq+0xac/0x140)
[<8007d078>] (__do_softirq+0xac/0x140) from [<8007d5b4>] (irq_exit+0x94/0x9c)
[<8007d5b4>] (irq_exit+0x94/0x9c) from [<8003d2e0>] (do_IPI+0x10c/0x17c)
[<8003d2e0>] (do_IPI+0x10c/0x17c) from [<80042a0c>] (__irq_svc+0x4c/0xe8)
Exception stack(0xbffb5f90 to 0xbffb5fd8)
5f80:                                     80b11c40 80000093 00000001 00000000
5fa0: bffb4000 80b0a744 80abba70 8051d870 80abef0c 412fc09a 00000000 00000000
5fc0: 00000000 bffb5fd8 80051e2c 80043b04 40000013 ffffffff
[<80042a0c>] (__irq_svc+0x4c/0xe8) from [<80043b04>] (default_idle+0x24/0x28)
[<80043b04>] (default_idle+0x24/0x28) from [<80043d20>] (cpu_idle+0xe0/0x124)
[<80043d20>] (cpu_idle+0xe0/0x124) from [<10511694>] (0x10511694)
Code: e59f0010 e1a01003 eb133c07 e3a03000 (e5833000)
clk_enable cannot be called in an interrupt context
[<80049e34>] (unwind_backtrace+0x0/0xf8) from [<8006563c>] (clk_enable+0x88/0xa0)
[<8006563c>] (clk_enable+0x88/0xa0) from [<8039b608>] (_ipu_get+0xc/0x24)
[<8039b608>] (_ipu_get+0xc/0x24) from [<8039c4bc>] (ipu_clear_irq+0x18/0x8c)
[<8039c4bc>] (ipu_clear_irq+0x18/0x8c) from [<802714bc>] (mxcfb_set_par+0xb8/0x6d0)
[<802714bc>] (mxcfb_set_par+0xb8/0x6d0) from [<80271b78>] (mxcfb_blank+0xa4/0xb8)
[<80271b78>] (mxcfb_blank+0xa4/0xb8) from [<80259d24>] (fb_blank+0x3c/0x68)
[<80259d24>] (fb_blank+0x3c/0x68) from [<80263b18>] (fbcon_blank+0x1c4/0x258)
[<80263b18>] (fbcon_blank+0x1c4/0x258) from [<80297fa0>] (do_unblank_screen+0x94/0x194)
[<80297fa0>] (do_unblank_screen+0x94/0x194) from [<8023c004>] (bust_spinlocks+0x24/0x4c)
[<8023c004>] (bust_spinlocks+0x24/0x4c) from [<800465c0>] (die+0xa8/0x284)
[<800465c0>] (die+0xa8/0x284) from [<8051464c>] (__do_kernel_fault.part.4+0x54/0x74)
[<8051464c>] (__do_kernel_fault.part.4+0x54/0x74) from [<8004da68>] (do_page_fault+0x2b4/0x31c)
[<8004da68>] (do_page_fault+0x2b4/0x31c) from [<8003d384>] (do_DataAbort+0x34/0x9c)
[<8003d384>] (do_DataAbort+0x34/0x9c) from [<80042990>] (__dabt_svc+0x70/0xa0)
Exception stack(0xbffb5d80 to 0xbffb5dc8)
5d80: 00000033 60000193 80ad329c 00000000 ff9f2000 00000012 00000001 ff9f8000
5da0: ff9f2000 7f03d544 0000021c ba074000 c097a000 bffb5dc8 800462c4 800462c8
5dc0: 60000193 ffffffff
[<80042990>] (__dabt_svc+0x70/0xa0) from [<800462c8>] (__bug+0x1c/0x28)
[<800462c8>] (__bug+0x1c/0x28) from [<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4)
[<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4) from [<7f0019f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168])
[<7f0019f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168]) from [<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c)
[<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c) from [<8044a694>] (sch_direct_xmit+0xb0/0x1dc)
[<8044a694>] (sch_direct_xmit+0xb0/0x1dc) from [<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c)
[<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c) from [<8047d8fc>] (arp_solicit+0xd4/0x1b0)
[<8047d8fc>] (arp_solicit+0xd4/0x1b0) from [<80439558>] (neigh_timer_handler+0x204/0x38c)
[<80439558>] (neigh_timer_handler+0x204/0x38c) from [<80082f84>] (run_timer_softirq+0xec/0x214)
[<80082f84>] (run_timer_softirq+0xec/0x214) from [<8007d078>] (__do_softirq+0xac/0x140)
[<8007d078>] (__do_softirq+0xac/0x140) from [<8007d5b4>] (irq_exit+0x94/0x9c)
[<8007d5b4>] (irq_exit+0x94/0x9c) from [<8003d2e0>] (do_IPI+0x10c/0x17c)
[<8003d2e0>] (do_IPI+0x10c/0x17c) from [<80042a0c>] (__irq_svc+0x4c/0xe8)
Exception stack(0xbffb5f90 to 0xbffb5fd8)
5f80:                                     80b11c40 80000093 00000001 00000000
5fa0: bffb4000 80b0a744 80abba70 8051d870 80abef0c 412fc09a 00000000 00000000
5fc0: 00000000 bffb5fd8 80051e2c 80043b04 40000013 ffffffff
[<80042a0c>] (__irq_svc+0x4c/0xe8) from [<80043b04>] (default_idle+0x24/0x28)
[<80043b04>] (default_idle+0x24/0x28) from [<80043d20>] (cpu_idle+0xe0/0x124)
[<80043d20>] (cpu_idle+0xe0/0x124) from [<10511694>] (0x10511694)
kernel BUG at arch/arm/plat-mxc/clock.c:101!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 80004000
[00000000] *pgd=00000000

What's kernel version used by customer and what's the activities of the RTL8111e when it report the kernel panic?

Richard

Richard

       kernel version is :Linux version 3.0.35-2666-gbdde708

     kernel boot log :

Uncompressing Linux... done, booting the kernel.
Linux version 3.0.35-2666-gbdde708 (user@ubuntu) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #20 SMP PREEMPT Sun Jan 11 02:32:04 PST 2015
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writealloc
CPU identified as i.MX6Q, silicon rev 1.2
PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 194560
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk1p1 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 512MB 256MB = 768MB total
Memory: 765672k/765672k available, 282904k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)
    vmalloc : 0xc0800000 - 0xf2000000   ( 792 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .init : 0x80008000 - 0x8003d000   ( 212 kB)
      .text : 0x8003d000 - 0x80aa54f0   (10658 kB)
      .data : 0x80aa6000 - 0x80b0a660   ( 402 kB)
       .bss : 0x80b0a684 - 0x80b58b8c   ( 314 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:624
MXC GPIO hardware
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
arm_max_freq=1GHz
MXC_Early serial console at MMIO 0x2020000 (options '115200')
bootconsole [ttymxc0] enabled
Console: colour dummy device 80x30
Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
CPU1: Booted secondary processor
CPU2: Booted secondary processor
CPU3: Booted secondary processor
Brought up 4 CPUs
SMP: Total of 4 processors activated (6324.22 BogoMIPS).
print_constraints: dummy:
NET: Registered protocol family 16
print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal
print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal
print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal
print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal
print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal
print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal
hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.
hw-breakpoint: maximum watchpoint size is 4 bytes.
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B
bio: create slab <bio-0> at 0
mxs-dma mxs-dma-apbh: initialized
print_constraints: SPKVDD: 4200 mV
print_constraints: vmmc: 3300 mV
vgaarb: loaded
SCSI subsystem initialized
spi_imx imx6q-ecspi.0: probed
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Freescale USB OTG Driver loaded, $Revision: 1.55 $
mc_pfuze 1-0008: ID: 0,Full lay: 1 ,Metal lay: 1
mc_pfuze 1-0008: FAB: 0 ,FIN: 0
print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1300 mV
print_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mV
print_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1300 mV
print_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3300 mV
print_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1500 mV
print_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mV
print_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3150 mV
print_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mV
print_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mV
print_constraints: PFUZE100_VREFDDR: at 750 mV
print_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 1500 mV
print_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mV
print_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 2800 mV
print_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mV
print_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 3000 mV
print_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3300 mV
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)
mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed
mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Version 1.0.24.
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
cfg80211: Calling CRDA to update world regulatory domain
max17135 2-0048: PMIC MAX17135 for eInk display
i2c-core: driver [max17135] using legacy suspend method
i2c-core: driver [max17135] using legacy resume method
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PMU: registered new PMU device of type 0
Static Power Management for Freescale i.MX6
wait mode is enabled for i.MX6
cpaddr = c0880000 suspend_iram_base=c091c000
PM driver module loaded
iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.
PCIE: imx_pcie_pltfm_probe start link up.
IMX PCIe port: link up.
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers disabled
pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff 64bit pref]
pci 0000:00:00.0: BAR 0: set to [mem 0x01000000-0x010fffff 64bit pref] (PCI address [0x1000000-0x10fffff])
pci 0000:00:00.0: BAR 9: assigned [mem 0x01100000-0x011fffff pref]
pci 0000:00:00.0: BAR 6: assigned [mem 0x01200000-0x0120ffff pref]
pci 0000:00:00.0: BAR 7: assigned [io  0x1e00000-0x1e00fff]
pci 0000:01:00.0: BAR 4: assigned [mem 0x01100000-0x01103fff 64bit pref]
pci 0000:01:00.0: BAR 4: set to [mem 0x01100000-0x01103fff 64bit pref] (PCI address [0x1100000-0x1103fff])
pci 0000:01:00.0: BAR 2: assigned [mem 0x01104000-0x01104fff 64bit pref]
pci 0000:01:00.0: BAR 2: set to [mem 0x01104000-0x01104fff 64bit pref] (PCI address [0x1104000-0x1104fff])
pci 0000:01:00.0: BAR 0: assigned [io  0x1e00000-0x1e000ff]
pci 0000:01:00.0: BAR 0: set to [io  0x1e00000-0x1e000ff] (PCI address [0x1e00000-0x1e000ff])
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0:   bridge window [io  0x1e00000-0x1e00fff]
pci 0000:00:00.0:   bridge window [mem disabled]
pci 0000:00:00.0:   bridge window [mem 0x01100000-0x011fffff pref]
IMX usb wakeup probe
add wake up source irq 75
IMX usb wakeup probe
cpu regulator mode:ldo_bypass
_regulator_get: get() with no identifier
mx6_cpu_regulator_init: failed to get pu regulator
i.MXC CPU frequency driver
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 1495
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
mxc_mipi_dsi mxc_mipi_dsi: i.MX MIPI DSI driver probed
MIPI DSI driver module loaded
mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver hdmi
mxc_hdmi mxc_hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1
fbcvt: 1920x1080@60: CVT Name - 2.073M9
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 240x67
mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver ldb
_regulator_get: get() with no identifier
mxc_sdc_fb mxc_sdc_fb.2: register mxc display driver lcd
mxc_sdc_fb mxc_sdc_fb.2: ipu0-di0 already in use
mxc_sdc_fb: probe of mxc_sdc_fb.2 failed with error -16
mxc_sdc_fb mxc_sdc_fb.3: register mxc display driver ldb
imx-sdma imx-sdma: loaded firmware 1.1
imx-sdma imx-sdma: initialized
Serial: IMX driver
imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
console [ttymxc0] enabled, bootconsole disabled
console [ttymxc0] enabled, bootconsole disabled
loop: module loaded
No sata disk.
m25p80 spi0.0: found m25p32, expected sst25vf016b
m25p80 spi0.0: m25p32 (4096 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000100000 : "bootloader"
0x000000100000-0x000000400000 : "kernel"
GPMI NAND driver registered. (IMX)
vcan: Virtual CAN interface driver
CAN device driver interface
flexcan netdevice driver
FEC Ethernet Driver
fec_enet_mii_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
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
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ARC USBOTG Device Controller driver (1 August 2005)
mousedev: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys/input/input0
input: max11801_ts as /devices/platform/imx-i2c.1/i2c-1/1-0048/input/input1
egalax_ts 1-0004: egalax_ts: failed to read firmware version
egalax_ts: probe of 1-0004 failed with error -5
input: eGalax Touch Screen as /devices/platform/imx-i2c.2/i2c-2/2-0004/input/input2
elan - Read Hello Packet Failed
elan-touch: probe of 2-0010 failed with error -22
input: isl29023 light sensor as /devices/virtual/input/input3
isl29023 2-0044: driver version 1.0 enabled
i2c-core: driver [isl29023] using legacy suspend method
i2c-core: driver [isl29023] using legacy resume method
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: V4L2 device registered as video16
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video18
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video19
mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video20
mag3110 2-000e: check mag3110 chip ID
input: mag3110 as /devices/virtual/input/input4
mag3110 2-000e: mag3110 is probed
i2c-core: driver [mag3110] using legacy suspend method
i2c-core: driver [mag3110] using legacy resume method
input: mma845x as /devices/virtual/input/input5
imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)
Bluetooth: Virtual HCI driver ver 1.3
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCIATH3K protocol initialized
Bluetooth: Generic Bluetooth USB driver ver 0.6
usbcore: registered new interface driver btusb
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA
mmc1: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA
mmc2: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA
mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
VPU initialized
mxc_asrc registered
Galcore version 4.6.9.6622
Thermal calibration data is 0x55c4af7d
Thermal sensor with ratio = 176
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
usbcore: registered new interface driver snd-usb-audio
mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio
Cirrus Logic CS42888 ALSA SoC Codec Driver
i2c-core: driver [cs42888] using legacy suspend method
i2c-core: driver [cs42888] using legacy resume method
wm8962 0-001a: customer id 0 revision D
input: WM8962 Beep Generator as /devices/platform/imx-i2c.0/i2c-0/0-001a/input/input6
asoc: wm8962 <-> imx-ssi.1 mapping ok
input: wm8962-audio DMIC as /devices/platform/soc-audio.5/sound/card0/input7
input: wm8962-audio Ext Spk as /devices/platform/soc-audio.5/sound/card0/input8
imx_3stack asoc driver
asoc: mxc-hdmi-soc <-> imx-hdmi-soc-dai.0 mapping ok
ALSA device list:
  #0: wm8962-audio
  #1: imx-hdmi-soc
NET: Registered protocol family 26
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: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
mmc0: new high speed DDR MMC card at address 0001
mmcblk0: mmc0:0001 SEM08G 7.39 GiB
mmcblk0boot0: mmc0:0001 SEM08G partition 1 2.00 MiB
mmcblk0boot1: mmc0:0001 SEM08G partition 2 2.00 MiB
mmcblk0: p1
Bluetooth: BNEP filters: protocol multicast
mmcblk0boot1: unknown partition table
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
mmcblk0boot0: unknown partition table
lib80211: common routines for IEEE802.11 drivers
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
Bus freq driver module loaded
Bus freq driver Enabled
mxc_dvfs_core_probe
DVFS driver module loaded
regulator_init_complete: PFUZE100_VGEN6: incomplete constraints, leaving on
regulator_init_complete: PFUZE100_VGEN3: incomplete constraints, leaving on
regulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving on
regulator_init_complete: PFUZE100_VGEN1: incomplete constraints, leaving on
snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:01 UTC (1)
Waiting for root device /dev/mmcblk1p1...
mmc2: new high speed SDHC card at address 1234
mmcblk1: mmc2:1234 SA04G 3.63 GiB
mmcblk1: p1
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk1p1): using internal journal
EXT3-fs (mmcblk1p1): recovery complete
EXT3-fs (mmcblk1p1): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:25.
Freeing init memory: 212K
starting pid 1468, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys
Starting the hotplug events dispatcher udevd
udevd (1477): /proc/1477/oom_adj is deprecated, please use /proc/1477/oom_score_adj instead.
Synthesizing initial hotplug events
Setting the hostname to freescale
Mounting filesystems
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
cp: write error: No space left on device
mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
starting pid 3292, tty '': '/etc/rc.d/rc_gpu.S'
starting pid 3298, tty '': '/etc/rc.d/rc_mxc.S'

arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)
root filesystem built on Wed, 31 Dec 2014 21:03:35 -0800
Freescale Semiconductor, Inc.

    command lspci output :

<5-2666-gbdde708/kernel/drivers/net/r8168-8.039.00$ lspci

00:00.0 Class 0604: 16c3:abcd

01:00.0 Class 0200: 10ec:8168

    Then I load the RTL8111E driver, and config the interface eth1:

<5-2666-gbdde708/kernel/drivers/net/r8168-8.039.00$ insmod r8168.ko

r8168 Gigabit Ethernet driver 8.039.00-NAPI loaded

r8168 0000:01:00.0: no MSI. Back to INTx.

r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.

r8168  Copyright (C) 2014  Realtek NIC software team <nicfae@realtek.com>

This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>.

This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>.

<vers/net/r8168-8.039.00$ ifconfig eth1 192.168.0.2 up
eth1: 0xc0b86000, 00:e0:4c:68:a2:04, IRQ 155
<5-2666-gbdde708/kernel/drivers/net/r8168-8.039.00$ r8168: eth1: link up

<5-2666-gbdde708/kernel/drivers/net/r8168-8.039.00$ ifconfig
eth1      Link encap:Ethernet  HWaddr 00:E0:4C:68:A2:04
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:155 Base address:0x6000

  

The kernel coredump when I run the command "PING 192.168.0.1"

<5-2666-gbdde708/kernel/drivers/net/r8168-8.039.00$ ping 192.168.0.1

PING 192.168.0.1 (192.168.0.1): 5kernel BUG at arch/arm/mm/dma-mapping.c:478!

6 data bytes

Unable to handle kernel NULL pointer dereference at virtual address 00000000

pgd = 80004000

[00000000] *pgd=00000000

Internal error: Oops: 817 [#1] PREEMPT SMP

Modules linked in: r8168 [last unloaded: r8168]

CPU: 2    Not tainted  (3.0.35-2666-gbdde708 #20)

PC is at __bug+0x1c/0x28

LR is at __bug+0x18/0x28

pc : [<800462c8>]    lr : [<800462c4>]    psr: 60000193

sp : bffb5dc8  ip : c097a000  fp : bfb80000

r10: 0000021c  r9 : 7f084544  r8 : ff9f2000

r7 : ff9f8000  r6 : 00000001  r5 : 00000012  r4 : ff9f2000

r3 : 00000000  r2 : 80ad329c  r1 : 60000193  r0 : 00000033

Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

Control: 10c53c7d  Table: 4a70404a  DAC: 00000015

Process swapper (pid: 0, stack limit = 0xbffb42f0)

Stack: (0xbffb5dc8 to 0xbffb6000)

5dc0:                   80b16930 8004cb08 00000012 00400000 0000002a 7f0489f8

5de0: 00000000 80000000 00000000 bfcbfd80 bfb804b4 ff9f8000 ff9f8000 80000113

5e00: c0b86000 ba14f090 00000000 60004980 bfcbfd80 bfb80000 00000000 80abc11c

5e20: 7f084544 bfdb8a20 80439354 8042f11c 00000006 bfb8018c bfcd0608 bfe7ed02

5e40: bfb80000 bfe7ef00 bfb80000 bfe7ef5c bfcbfd80 bfdb8a20 00000000 00000002

5e60: 80439354 8044a694 bfdb8a20 bfe7ef00 bfcbfd80 bfb80000 bfdb8a20 bfe7ef5c

5e80: 00000000 8042f5a0 bfe7ef5c bfe7ee00 00000000 00000000 00000000 bfcbfb40

5ea0: bfb80000 0100a8c0 0200a8c0 00000000 bfe7ee00 8047d8fc 0200a8c0 00000000

5ec0: bfcd0608 00000000 00000010 bfcbfb40 bfcbfb5c bfcbfb54 bfcbfcc0 00000000

5ee0: 00000103 80439558 bffb5f08 bffcc000 80aa8080 bffb4000 00200200 80082f84

5f00: 0000024e 7abe5a80 bffb5f08 bffb5f08 00000000 00000141 80aa8044 bffb4000

5f20: 00000103 80b102e0 00000002 80aa8040 00000001 8007d078 7a264549 0000024e

5f40: 7a264549 0000000a 7a264549 bffb4000 bffb4000 8003bc00 00000000 00000002

5f60: bffb4000 00000000 00000000 8007d5b4 80abbcc0 8003d2e0 ffffffff f2a00100

5f80: 00000002 00000002 00000001 80042a0c 80b11c40 80000093 00000001 00000000

5fa0: bffb4000 80b0a744 80abba70 8051d870 80abef0c 412fc09a 00000000 00000000

5fc0: 00000000 bffb5fd8 80051e2c 80043b04 40000013 ffffffff 80043ae0 80043d20

5fe0: 4ffb806a 00000015 10c03c7d 80b0a8f8 1000406a 10511694 81022cce 22705254

[<800462c8>] (__bug+0x1c/0x28) from [<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4)

[<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4) from [<7f0489f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168])

[<7f0489f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168]) from [<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c)

[<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c) from [<8044a694>] (sch_direct_xmit+0xb0/0x1dc)

[<8044a694>] (sch_direct_xmit+0xb0/0x1dc) from [<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c)

[<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c) from [<8047d8fc>] (arp_solicit+0xd4/0x1b0)

[<8047d8fc>] (arp_solicit+0xd4/0x1b0) from [<80439558>] (neigh_timer_handler+0x204/0x38c)

[<80439558>] (neigh_timer_handler+0x204/0x38c) from [<80082f84>] (run_timer_softirq+0xec/0x214)

[<80082f84>] (run_timer_softirq+0xec/0x214) from [<8007d078>] (__do_softirq+0xac/0x140)

[<8007d078>] (__do_softirq+0xac/0x140) from [<8007d5b4>] (irq_exit+0x94/0x9c)

[<8007d5b4>] (irq_exit+0x94/0x9c) from [<8003d2e0>] (do_IPI+0x10c/0x17c)

[<8003d2e0>] (do_IPI+0x10c/0x17c) from [<80042a0c>] (__irq_svc+0x4c/0xe8)

Exception stack(0xbffb5f90 to 0xbffb5fd8)

5f80:                                     80b11c40 80000093 00000001 00000000

5fa0: bffb4000 80b0a744 80abba70 8051d870 80abef0c 412fc09a 00000000 00000000

5fc0: 00000000 bffb5fd8 80051e2c 80043b04 40000013 ffffffff

[<80042a0c>] (__irq_svc+0x4c/0xe8) from [<80043b04>] (default_idle+0x24/0x28)

[<80043b04>] (default_idle+0x24/0x28) from [<80043d20>] (cpu_idle+0xe0/0x124)

[<80043d20>] (cpu_idle+0xe0/0x124) from [<10511694>] (0x10511694)

Code: e59f0010 e1a01003 eb133c07 e3a03000 (e5833000)

clk_enable cannot be called in an interrupt context

[<80049e34>] (unwind_backtrace+0x0/0xf8) from [<8006563c>] (clk_enable+0x88/0xa0)

[<8006563c>] (clk_enable+0x88/0xa0) from [<8039b608>] (_ipu_get+0xc/0x24)

[<8039b608>] (_ipu_get+0xc/0x24) from [<8039c4bc>] (ipu_clear_irq+0x18/0x8c)

[<8039c4bc>] (ipu_clear_irq+0x18/0x8c) from [<802714bc>] (mxcfb_set_par+0xb8/0x6d0)

[<802714bc>] (mxcfb_set_par+0xb8/0x6d0) from [<80271b78>] (mxcfb_blank+0xa4/0xb8)

[<80271b78>] (mxcfb_blank+0xa4/0xb8) from [<80259d24>] (fb_blank+0x3c/0x68)

[<80259d24>] (fb_blank+0x3c/0x68) from [<80263b18>] (fbcon_blank+0x1c4/0x258)

[<80263b18>] (fbcon_blank+0x1c4/0x258) from [<80297fa0>] (do_unblank_screen+0x94/0x194)

[<80297fa0>] (do_unblank_screen+0x94/0x194) from [<8023c004>] (bust_spinlocks+0x24/0x4c)

[<8023c004>] (bust_spinlocks+0x24/0x4c) from [<800465c0>] (die+0xa8/0x284)

[<800465c0>] (die+0xa8/0x284) from [<8051464c>] (__do_kernel_fault.part.4+0x54/0x74)

[<8051464c>] (__do_kernel_fault.part.4+0x54/0x74) from [<8004da68>] (do_page_fault+0x2b4/0x31c)

[<8004da68>] (do_page_fault+0x2b4/0x31c) from [<8003d384>] (do_DataAbort+0x34/0x9c)

[<8003d384>] (do_DataAbort+0x34/0x9c) from [<80042990>] (__dabt_svc+0x70/0xa0)

Exception stack(0xbffb5d80 to 0xbffb5dc8)

5d80: 00000033 60000193 80ad329c 00000000 ff9f2000 00000012 00000001 ff9f8000

5da0: ff9f2000 7f084544 0000021c bfb80000 c097a000 bffb5dc8 800462c4 800462c8

5dc0: 60000193 ffffffff

[<80042990>] (__dabt_svc+0x70/0xa0) from [<800462c8>] (__bug+0x1c/0x28)

[<800462c8>] (__bug+0x1c/0x28) from [<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4)

[<8004cb08>] (___dma_single_cpu_to_dev+0x94/0xa4) from [<7f0489f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168])

[<7f0489f8>] (rtl8168_start_xmit+0x514/0x6c4 [r8168]) from [<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c)

[<8042f11c>] (dev_hard_start_xmit+0x2f4/0x59c) from [<8044a694>] (sch_direct_xmit+0xb0/0x1dc)

[<8044a694>] (sch_direct_xmit+0xb0/0x1dc) from [<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c)

[<8042f5a0>] (dev_queue_xmit+0x1dc/0x60c) from [<8047d8fc>] (arp_solicit+0xd4/0x1b0)

[<8047d8fc>] (arp_solicit+0xd4/0x1b0) from [<80439558>] (neigh_timer_handler+0x204/0x38c)

[<80439558>] (neigh_timer_handler+0x204/0x38c) from [<80082f84>] (run_timer_softirq+0xec/0x214)

[<80082f84>] (run_timer_softirq+0xec/0x214) from [<8007d078>] (__do_softirq+0xac/0x140)

[<8007d078>] (__do_softirq+0xac/0x140) from [<8007d5b4>] (irq_exit+0x94/0x9c)

[<8007d5b4>] (irq_exit+0x94/0x9c) from [<8003d2e0>] (do_IPI+0x10c/0x17c)

[<8003d2e0>] (do_IPI+0x10c/0x17c) from [<80042a0c>] (__irq_svc+0x4c/0xe8)

Exception stack(0xbffb5f90 to 0xbffb5fd8)

5f80:                                     80b11c40 80000093 00000001 00000000

5fa0: bffb4000 80b0a744 80abba70 8051d870 80abef0c 412fc09a 00000000 00000000

5fc0: 00000000 bffb5fd8 80051e2c 80043b04 40000013 ffffffff

[<80042a0c>] (__irq_svc+0x4c/0xe8) from [<80043b04>] (default_idle+0x24/0x28)

[<80043b04>] (default_idle+0x24/0x28) from [<80043d20>] (cpu_idle+0xe0/0x124)

[<80043d20>] (cpu_idle+0xe0/0x124) from [<10511694>] (0x10511694)

kernel BUG at arch/arm/plat-mxc/clock.c:101!

Unable to handle kernel NULL pointer dereference at virtual address 00000000

pgd = 80004000

[00000000] *pgd=00000000

add kernel's configure:

  x x     <*> PCI Stub driver                                                        x x
  x x     [ ] PCI IOV support                                                        x x
  x x     [*] PCI Express support                                                    x x
  x x     [*]   Root Port Advanced Error Reporting support                           x x
  x x     [ ] PCI Express ECRC settings control                                  x x
  x x     < > PCIe AER error injector support                                    x x
  x x     [*]   PCI Express ASPM control                                             x x
  x x     [ ] Debug PCI Express ASPM                                             x x
No ratings
Version history
Last update:
‎06-20-2013 06:36 PM
Updated by: