Message ID | 20170508150224.GA7458@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Peter, Às 4:02 PM de 5/8/2017, Peter Senna Tschudin escreveu: > Hello Kishon, > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > linux-next and I could bisect until: > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > Author: Kishon Vijay Abraham I <kishon@ti.com> > Date: Wed Feb 15 18:48:14 2017 +0530 > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > fine with 4.10, and also boots if we disable pcie with: > > diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts > index 2c1e98e..e655fd7 100644 > --- a/arch/arm/boot/dts/imx6q-b850v3.dts > +++ b/arch/arm/boot/dts/imx6q-b850v3.dts > @@ -212,3 +212,8 @@ > }; > }; > }; > + > +&pcie { > + status = "disabled"; > +}; > > But otherwise our system freezes while initializing PCI, see dmesg with > some more information. Is this something specific of our system/dt or > can this be a bug that is affecting others as well? > > Kind Regards, > > Peter > > Starting kernel ... > > Uncompressing Linux... done, booting the kernel. > [ 0.000000] Booting Linux on physical CPU 0x0 > [ 0.000000] Linux version 4.11.0-next-20170508-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) 7 > [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d > [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache > [ 0.000000] OF: fdt: Machine model: General Electric B850v3 > [ 0.000000] earlycon: ec_imx21 at MMIO 0x021ec000 (options '') > [ 0.000000] bootconsole [ec_imx21] enabled > [ 0.000000] Memory policy: Data cache writealloc > [ 0.000000] cma: Reserved 128 MiB at 0x88000000 > [ 0.000000] On node 0 totalpages: 524288 > [ 0.000000] free_area_init_node: node 0, pgdat 80d74fc0, node_mem_map eeff7000 > [ 0.000000] Normal zone: 3584 pages used for memmap > [ 0.000000] Normal zone: 0 pages reserved > [ 0.000000] Normal zone: 458752 pages, LIFO batch:31 > [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 > [ 0.000000] percpu: Embedded 17 pages/cpu @eefb3000 s37900 r8192 d23540 u69632 > [ 0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=17*4096 > [ 0.000000] pcpu-alloc: [0] 0 [0] 1 > [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520704 > [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 ro rootwait cma=128M video=DP-1:1024x768@60 video=HDMI-A-1:1024x768@60 earlycon logl0 > [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) > [ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes) > [ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes) > [ 0.000000] Memory: 1934676K/2097152K available (8192K kernel code, 502K rwdata, 2220K rodata, 1024K init, 309K bss, 31404K reserved, 131) > [ 0.000000] Virtual kernel memory layout: > [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) > [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) > [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) > [ 0.000000] lowmem : 0x80000000 - 0xf0000000 (1792 MB) > [ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) > [ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB) > [ 0.000000] .text : 0x80008000 - 0x80900000 (9184 kB) > [ 0.000000] .init : 0x80c00000 - 0x80d00000 (1024 kB) > [ 0.000000] .data : 0x80d00000 - 0x80d7d874 ( 503 kB) > [ 0.000000] .bss : 0x80d7f000 - 0x80dcc6c0 ( 310 kB) > [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 > [ 0.000000] ftrace: allocating 28081 entries in 83 pages > [ 0.000000] Hierarchical RCU implementation. > [ 0.000000] RCU debugfs-based tracing is enabled. > [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. > [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 > [ 0.000000] NR_IRQS:16 nr_irqs:16 16 > [ 0.000000] L2C-310 errata 752271 769419 enabled > [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 > [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 > [ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines > [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled > [ 0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB > [ 0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001 > [ 0.000000] Switching to timer-based delay loop, resolution 333ns > [ 0.000007] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns > [ 0.008183] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns > [ 0.019149] Console: colour dummy device 80x30 > [ 0.022277] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000) > [ 0.032459] pid_max: default: 32768 minimum: 301 > [ 0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes) > [ 0.043765] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes) > [ 0.051388] CPU: Testing write buffer coherency: ok > [ 0.056014] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 > [ 0.061774] Setting up static identity map for 0x10100000 - 0x10100054 > [ 0.068619] smp: Bringing up secondary CPUs ... > [ 0.073110] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 > [ 0.073195] smp: Brought up 1 node, 2 CPUs > [ 0.082212] SMP: Total of 2 processors activated (12.00 BogoMIPS). > [ 0.088397] CPU: All CPU(s) started in SVC mode. > [ 0.093925] devtmpfs: initialized > [ 0.106030] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 > [ 0.110962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns > [ 0.120713] futex hash table entries: 512 (order: 3, 32768 bytes) > [ 0.132529] pinctrl core: initialized pinctrl subsystem > [ 0.135868] NET: Registered protocol family 16 > [ 0.141371] DMA: preallocated 256 KiB pool for atomic coherent allocations > [ 0.147347] CPU identified as i.MX6Q, silicon rev 1.5 > [ 0.157099] vdd1p1: supplied by regulator-dummy > [ 0.159154] vdd3p0: supplied by regulator-dummy > [ 0.163643] vdd2p5: supplied by regulator-dummy > [ 0.168222] vddarm: supplied by regulator-dummy > [ 0.172734] vddpu: supplied by regulator-dummy > [ 0.177183] vddsoc: supplied by regulator-dummy > [ 0.188863] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. > [ 0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes. > [ 0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver > [ 0.225818] mxs-dma 110000.dma-apbh: initialized > [ 0.229977] vgaarb: loaded > [ 0.230724] SCSI subsystem initialized > [ 0.234208] libata version 3.00 loaded. > [ 0.238082] usbcore: registered new interface driver usbfs > [ 0.243402] usbcore: registered new interface driver hub > [ 0.248696] usbcore: registered new device driver usb > [ 0.254761] i2c i2c-0: IMX I2C adapter registered > [ 0.258390] i2c i2c-0: can't use DMA, using PIO instead. > [ 0.264098] i2c i2c-1: IMX I2C adapter registered > [ 0.268390] i2c i2c-1: can't use DMA, using PIO instead. > [ 0.274206] i2c i2c-2: IMX I2C adapter registered > [ 0.278396] i2c i2c-2: can't use DMA, using PIO instead. > [ 0.283829] pps_core: LinuxPPS API ver. 1 registered > [ 0.288657] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> > [ 0.297822] PTP clock support registered > [ 0.301979] Advanced Linux Sound Architecture Driver Initialized. > [ 0.309622] clocksource: Switched to clocksource mxc_timer1 > [ 0.370378] NET: Registered protocol family 2 > [ 0.372439] TCP established hash table entries: 16384 (order: 4, 65536 bytes) > [ 0.379153] TCP bind hash table entries: 16384 (order: 5, 131072 bytes) > [ 0.385901] TCP: Hash tables configured (established 16384 bind 16384) > [ 0.392300] UDP hash table entries: 1024 (order: 3, 32768 bytes) > [ 0.398227] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) > [ 0.404824] NET: Registered protocol family 1 > [ 0.408971] PCI: CLS 0 bytes, default 64 > [ 0.413582] hw perfevents: no interrupt-affinity property for /soc/pmu, guessing. > [ 0.420576] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available > [ 0.429443] audit: initializing netlink subsys (disabled) > [ 0.434049] audit: type=2000 audit(0.424:1): state=initialized audit_enabled=0 res=1 > [ 0.434655] workingset: timestamp_bits=30 max_order=19 bucket_order=0 > [ 0.445347] bounce: pool size: 64 pages > [ 0.445354] io scheduler noop registered > [ 0.445358] io scheduler deadline registered > [ 0.445392] io scheduler cfq registered (default) > [ 0.445396] io scheduler mq-deadline registered > [ 0.445400] io scheduler kyber registered > [ 0.501998] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: > [ 0.507275] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 > [ 0.513202] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 > [ 0.739697] imx6q-pcie 1ffc000.pcie: link up > [ 0.741115] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled > [ 0.746421] imx6q-pcie 1ffc000.pcie: Link up, Gen1 > [ 0.751343] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > [ 0.757475] pci_bus 0000:00: root bus resource [bus 00-ff] > [ 0.762974] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] > [ 0.769128] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] > [ 0.776052] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 > [ 0.782044] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] > [ 0.788279] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] > [ 0.795041] pci 0000:00:00.0: supports D1 > [ 0.798971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold > [ 0.805503] PCI: bus0: Fast back to back transfers disabled > [ 0.811079] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 > [ 0.817034] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] > [ 0.823778] pci 0000:01:00.0: supports D1 D2 > [ 0.827418] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold > [ 0.859773] PCI: bus1: Fast back to back transfers disabled > [ 0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring > [ 0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) > [ 0.880800] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a40000 > [ 0.888416] pgd = 80004000 > [ 0.891112] [f0a40000] *pgd=7e01d811, *pte=01f40243, *ppte=01f40013 > [ 0.897384] Internal error: : 1008 [#1] SMP ARM > [ 0.901903] Modules linked in: > [ 0.904951] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-next-20170508-dirty #106 > [ 0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) > [ 0.919302] task: ee908000 task.stack: ee906000 > [ 0.923836] PC is at dw_pcie_read+0x60/0x8c > [ 0.928005] LR is at dw_pcie_rd_conf+0x188/0x1e0 > [ 0.932616] pc : [<804125b8>] lr : [<80413308>] psr: 60000093 > [ 0.932616] sp : ee907af0 ip : ee907b00 fp : ee907afc > [ 0.944096] r10: 00000000 r9 : eea28b10 r8 : 00000000 > [ 0.949317] r7 : 00000000 r6 : 00000000 r5 : f0a40000 r4 : eea28b28 > [ 0.955840] r3 : 00000000 r2 : ee907b6c r1 : 00000004 r0 : f0a40000 > [ 0.962368] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none > [ 0.969589] Control: 10c5387d Table: 1000404a DAC: 00000051 > [ 0.975330] Process swapper/0 (pid: 1, stack limit = 0xee906210) > [ 0.981333] Stack: (0xee907af0 to 0xee908000) > [ 0.985686] 7ae0: ee907b54 ee907b00 80413308 80412564 > [ 0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126ec 01f40000 00000000 > [ 1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000013 00000000 00000002 > [ 1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318c ee907b6c 80412564 > [ 1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000000 ee907bd4 0000ea60 > [ 1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000000 ee907bfc 80400974 > [ 1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000002 00000000 00000001 > [ 1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b4 00000008 eeb1be00 > [ 1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec4 00000008 eeb1be00 > [ 1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f88 eeb1bc00 eeb1be00 > [ 1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c40 803f8d58 803f9008 > [ 1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000000 00000000 00000000 > [ 1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc14 00000001 00000001 > [ 1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab4 eeb1ba00 eeb1bc00 > [ 1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc0 803f8ca0 803f9008 > [ 1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000000 00000000 00000000 > [ 1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba14 00000000 00000000 > [ 1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab4 00000000 eeb1ba00 > [ 1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d40 803f92d4 803f9008 > [ 1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d60 80413d20 803f9274 > [ 1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d70 ee803e00 00000000 > [ 1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00660 ee907ddc ee907da8 > [ 1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e10 ee803e10 80d308fc > [ 1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de0 804e10e8 8041441c > [ 1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b0 ee803e10 80d308fc > [ 1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e20 804df610 804df2b4 > [ 1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e40 804dd74c 804df548 > [ 1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40850 ee907e74 ee907e68 > [ 1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def00 80a88880 ee907e88 > [ 1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea0 804dfe9c 804de958 > [ 1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe20 ee907edc ee907ec8 > [ 1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee0 80101c78 80c2c088 > [ 1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f00 80142b54 80c0066c > [ 1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8644 efffea30 efffea38 > [ 1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a834 80b29414 000000b9 > [ 1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000006 00000000 80c00660 > [ 1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000000 00000000 00000000 > [ 1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d88 00000000 8088ee80 > [ 1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000000 00000000 00000000 > [ 1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > [ 1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff > [ 1.320978] Backtrace: > [ 1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_rd_conf+0x188/0x1e0) > [ 1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bus_read_config_dword+0x78/0xa0) > [ 1.340387] r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60000013 r5:ee907bd4 > [ 1.348210] r4:80413180 > [ 1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f6598>] (pci_bus_read_dev_vendor_id+0x34/0x104) > [ 1.360740] r6:0000ea60 r5:ee907bd4 r4:00000000 > [ 1.365358] [<803f6564>] (pci_bus_read_dev_vendor_id) from [<803f7f08>] (pci_scan_single_device+0x50/0xc4) > [ 1.375011] r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00000000 r5:eeb1be00 > [ 1.382835] r4:00000000 > [ 1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (pci_scan_slot+0x70/0x118) > [ 1.393975] r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008 > [ 1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_child_bus+0x30/0x108) > [ 1.407895] r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008 > [ 1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_scan_bridge+0x2b0/0x554) > [ 1.422078] r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be00 r4:eeb1bc00 > [ 1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) > [ 1.438261] r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1bc14 r5:eeb1bc00 > [ 1.446085] r4:eea16000 > [ 1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_scan_bridge+0x1f8/0x554) > [ 1.457138] r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc00 r4:eeb1ba00 > [ 1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) > [ 1.473321] r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1ba14 r5:eeb1ba00 > [ 1.481145] r4:eea15c00 > [ 1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_scan_root_bus_msi+0x6c/0xd4) > [ 1.492549] r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba00 r4:00000000 > [ 1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (dw_pcie_host_init+0x250/0x4f8) > [ 1.509249] r5:80d3082c r4:eea28b28 > [ 1.512822] [<80413ad0>] (dw_pcie_host_init) from [<8041479c>] (imx6_pcie_probe+0x38c/0x540) > [ 1.521259] r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803e10 r5:eea28b10 > [ 1.529083] r4:00000000 > [ 1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platform_drv_probe+0x44/0x7c) > [ 1.539963] r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d308fc r4:ee803e10 > [ 1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (really_probe+0x1f0/0x294) > [ 1.555967] r5:ee803e10 r4:80dc0d30 > [ 1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_attach+0xd4/0xd8) > [ 1.567367] r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308fc r4:ee803e10 > [ 1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_for_each_dev+0x7c/0xb0) > [ 1.583286] r7:00000000 r6:804df53c r5:80d308fc r4:00000000 > [ 1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driver_attach+0x28/0x30) > [ 1.596945] r6:80d40850 r5:ee01a380 r4:80d308fc > [ 1.601560] [<804deef4>] (driver_attach) from [<804dea5c>] (bus_add_driver+0x110/0x220) > [ 1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_register+0x88/0x104) > [ 1.617652] r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc > [ 1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platform_driver_register+0x40/0x54) > [ 1.632353] r5:ffffe000 r4:80c2c07c > [ 1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0bc>] (imx6_pcie_init+0x40/0x54) > [ 1.644890] [<80c2c07c>] (imx6_pcie_init) from [<80101c78>] (do_one_initcall+0x4c/0x17c) > [ 1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_init_freeable+0x134/0x1f4) > [ 1.661675] r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e94 > [ 1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (kernel_init+0x18/0x124) > [ 1.676641] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:8088ee80 > [ 1.684464] r4:00000000 > [ 1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fork+0x14/0x3c) > [ 1.694558] r5:8088ee80 r4:00000000 > [ 1.698131] Code: ee073f9a e1a00003 e5821000 e89da800 (e5901000) > [ 1.704224] ---[ end trace dc8f87ab88f61701 ]--- > [ 1.708894] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > [ 1.708894] > [ 1.717974] CPU1: stopping > [ 1.720663] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.11.0-next-20170508-dirty #106 > [ 1.729705] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) > [ 1.736230] Backtrace: > [ 1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_stack+0x20/0x24) > [ 1.746239] r7:00000001 r6:60000193 r5:00000000 r4:80d2f200 > [ 1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x94/0xb0) > [ 1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x28c/0x334) > [ 1.766510] r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310 > [ 1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_irq+0xa8/0xc4) > [ 1.779735] r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:000003ff r5:000003eb > [ 1.787561] r4:f400010c r3:00000000 > [ 1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_svc+0x6c/0x90) > [ 1.798609] Exception stack(0xee92df38 to 0xee92df80) > [ 1.803657] df20: 0000062c 6e329000 > [ 1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03cac 80d16f9f 80a5d91c > [ 1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a04 60000013 ffffffff > [ 1.828194] r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffffffff r5:60000013 > [ 1.836019] r4:80108a04 > [ 1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_idle_call+0x30/0x3c) > [ 1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idle+0xc4/0x14c) > [ 1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entry+0x28/0x2c) > [ 1.861864] r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000001 r4:00000087 > [ 1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secondary_start_kernel+0x148/0x174) > [ 1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0x1010196c) > [ 1.886046] r5:00000051 r4:7e92006a > [ 1.889619] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > [ 1.889619] > Could you please check if you specific SoC driver is implementing the dw_pcie_ops structure? You can see an example here: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/tree/drivers/pci/dwc/pcie-designware-plat.c?h=next#n89 The hang in the boot could be achieved by not declaring this op's structure. Hope this helps. Joao
Hi Joao, On Monday 08 May 2017 08:43 PM, Joao Pinto wrote: > > Hi Peter, > > Às 4:02 PM de 5/8/2017, Peter Senna Tschudin escreveu: >> Hello Kishon, >> >> Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest >> linux-next and I could bisect until: >> >> commit 442ec4c04d1235f8c664a74004dae54a7a574d18 >> Author: Kishon Vijay Abraham I <kishon@ti.com> >> Date: Wed Feb 15 18:48:14 2017 +0530 >> >> PCI: dwc: all: Split struct pcie_port into host-only and core structures >> >> Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots >> fine with 4.10, and also boots if we disable pcie with: >> >> diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts >> index 2c1e98e..e655fd7 100644 >> --- a/arch/arm/boot/dts/imx6q-b850v3.dts >> +++ b/arch/arm/boot/dts/imx6q-b850v3.dts >> @@ -212,3 +212,8 @@ >> }; >> }; >> }; >> + >> +&pcie { >> + status = "disabled"; >> +}; >> >> But otherwise our system freezes while initializing PCI, see dmesg with >> some more information. Is this something specific of our system/dt or >> can this be a bug that is affecting others as well? >> >> Kind Regards, >> >> Peter >> >> Starting kernel ... >> >> Uncompressing Linux... done, booting the kernel. >> [ 0.000000] Booting Linux on physical CPU 0x0 >> [ 0.000000] Linux version 4.11.0-next-20170508-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) 7 >> [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d >> [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache >> [ 0.000000] OF: fdt: Machine model: General Electric B850v3 >> [ 0.000000] earlycon: ec_imx21 at MMIO 0x021ec000 (options '') >> [ 0.000000] bootconsole [ec_imx21] enabled >> [ 0.000000] Memory policy: Data cache writealloc >> [ 0.000000] cma: Reserved 128 MiB at 0x88000000 >> [ 0.000000] On node 0 totalpages: 524288 >> [ 0.000000] free_area_init_node: node 0, pgdat 80d74fc0, node_mem_map eeff7000 >> [ 0.000000] Normal zone: 3584 pages used for memmap >> [ 0.000000] Normal zone: 0 pages reserved >> [ 0.000000] Normal zone: 458752 pages, LIFO batch:31 >> [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 >> [ 0.000000] percpu: Embedded 17 pages/cpu @eefb3000 s37900 r8192 d23540 u69632 >> [ 0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=17*4096 >> [ 0.000000] pcpu-alloc: [0] 0 [0] 1 >> [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520704 >> [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 ro rootwait cma=128M video=DP-1:1024x768@60 video=HDMI-A-1:1024x768@60 earlycon logl0 >> [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) >> [ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes) >> [ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes) >> [ 0.000000] Memory: 1934676K/2097152K available (8192K kernel code, 502K rwdata, 2220K rodata, 1024K init, 309K bss, 31404K reserved, 131) >> [ 0.000000] Virtual kernel memory layout: >> [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) >> [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) >> [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) >> [ 0.000000] lowmem : 0x80000000 - 0xf0000000 (1792 MB) >> [ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) >> [ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB) >> [ 0.000000] .text : 0x80008000 - 0x80900000 (9184 kB) >> [ 0.000000] .init : 0x80c00000 - 0x80d00000 (1024 kB) >> [ 0.000000] .data : 0x80d00000 - 0x80d7d874 ( 503 kB) >> [ 0.000000] .bss : 0x80d7f000 - 0x80dcc6c0 ( 310 kB) >> [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 >> [ 0.000000] ftrace: allocating 28081 entries in 83 pages >> [ 0.000000] Hierarchical RCU implementation. >> [ 0.000000] RCU debugfs-based tracing is enabled. >> [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. >> [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 >> [ 0.000000] NR_IRQS:16 nr_irqs:16 16 >> [ 0.000000] L2C-310 errata 752271 769419 enabled >> [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 >> [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 >> [ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines >> [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled >> [ 0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB >> [ 0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001 >> [ 0.000000] Switching to timer-based delay loop, resolution 333ns >> [ 0.000007] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns >> [ 0.008183] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns >> [ 0.019149] Console: colour dummy device 80x30 >> [ 0.022277] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000) >> [ 0.032459] pid_max: default: 32768 minimum: 301 >> [ 0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes) >> [ 0.043765] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes) >> [ 0.051388] CPU: Testing write buffer coherency: ok >> [ 0.056014] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 >> [ 0.061774] Setting up static identity map for 0x10100000 - 0x10100054 >> [ 0.068619] smp: Bringing up secondary CPUs ... >> [ 0.073110] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 >> [ 0.073195] smp: Brought up 1 node, 2 CPUs >> [ 0.082212] SMP: Total of 2 processors activated (12.00 BogoMIPS). >> [ 0.088397] CPU: All CPU(s) started in SVC mode. >> [ 0.093925] devtmpfs: initialized >> [ 0.106030] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 >> [ 0.110962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns >> [ 0.120713] futex hash table entries: 512 (order: 3, 32768 bytes) >> [ 0.132529] pinctrl core: initialized pinctrl subsystem >> [ 0.135868] NET: Registered protocol family 16 >> [ 0.141371] DMA: preallocated 256 KiB pool for atomic coherent allocations >> [ 0.147347] CPU identified as i.MX6Q, silicon rev 1.5 >> [ 0.157099] vdd1p1: supplied by regulator-dummy >> [ 0.159154] vdd3p0: supplied by regulator-dummy >> [ 0.163643] vdd2p5: supplied by regulator-dummy >> [ 0.168222] vddarm: supplied by regulator-dummy >> [ 0.172734] vddpu: supplied by regulator-dummy >> [ 0.177183] vddsoc: supplied by regulator-dummy >> [ 0.188863] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. >> [ 0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes. >> [ 0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver >> [ 0.225818] mxs-dma 110000.dma-apbh: initialized >> [ 0.229977] vgaarb: loaded >> [ 0.230724] SCSI subsystem initialized >> [ 0.234208] libata version 3.00 loaded. >> [ 0.238082] usbcore: registered new interface driver usbfs >> [ 0.243402] usbcore: registered new interface driver hub >> [ 0.248696] usbcore: registered new device driver usb >> [ 0.254761] i2c i2c-0: IMX I2C adapter registered >> [ 0.258390] i2c i2c-0: can't use DMA, using PIO instead. >> [ 0.264098] i2c i2c-1: IMX I2C adapter registered >> [ 0.268390] i2c i2c-1: can't use DMA, using PIO instead. >> [ 0.274206] i2c i2c-2: IMX I2C adapter registered >> [ 0.278396] i2c i2c-2: can't use DMA, using PIO instead. >> [ 0.283829] pps_core: LinuxPPS API ver. 1 registered >> [ 0.288657] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> >> [ 0.297822] PTP clock support registered >> [ 0.301979] Advanced Linux Sound Architecture Driver Initialized. >> [ 0.309622] clocksource: Switched to clocksource mxc_timer1 >> [ 0.370378] NET: Registered protocol family 2 >> [ 0.372439] TCP established hash table entries: 16384 (order: 4, 65536 bytes) >> [ 0.379153] TCP bind hash table entries: 16384 (order: 5, 131072 bytes) >> [ 0.385901] TCP: Hash tables configured (established 16384 bind 16384) >> [ 0.392300] UDP hash table entries: 1024 (order: 3, 32768 bytes) >> [ 0.398227] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) >> [ 0.404824] NET: Registered protocol family 1 >> [ 0.408971] PCI: CLS 0 bytes, default 64 >> [ 0.413582] hw perfevents: no interrupt-affinity property for /soc/pmu, guessing. >> [ 0.420576] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available >> [ 0.429443] audit: initializing netlink subsys (disabled) >> [ 0.434049] audit: type=2000 audit(0.424:1): state=initialized audit_enabled=0 res=1 >> [ 0.434655] workingset: timestamp_bits=30 max_order=19 bucket_order=0 >> [ 0.445347] bounce: pool size: 64 pages >> [ 0.445354] io scheduler noop registered >> [ 0.445358] io scheduler deadline registered >> [ 0.445392] io scheduler cfq registered (default) >> [ 0.445396] io scheduler mq-deadline registered >> [ 0.445400] io scheduler kyber registered >> [ 0.501998] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: >> [ 0.507275] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 >> [ 0.513202] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 >> [ 0.739697] imx6q-pcie 1ffc000.pcie: link up >> [ 0.741115] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled >> [ 0.746421] imx6q-pcie 1ffc000.pcie: Link up, Gen1 >> [ 0.751343] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 >> [ 0.757475] pci_bus 0000:00: root bus resource [bus 00-ff] >> [ 0.762974] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] >> [ 0.769128] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] >> [ 0.776052] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 >> [ 0.782044] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] >> [ 0.788279] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] >> [ 0.795041] pci 0000:00:00.0: supports D1 >> [ 0.798971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold >> [ 0.805503] PCI: bus0: Fast back to back transfers disabled >> [ 0.811079] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 >> [ 0.817034] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] >> [ 0.823778] pci 0000:01:00.0: supports D1 D2 >> [ 0.827418] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold >> [ 0.859773] PCI: bus1: Fast back to back transfers disabled >> [ 0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring >> [ 0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) >> [ 0.880800] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a40000 >> [ 0.888416] pgd = 80004000 >> [ 0.891112] [f0a40000] *pgd=7e01d811, *pte=01f40243, *ppte=01f40013 >> [ 0.897384] Internal error: : 1008 [#1] SMP ARM >> [ 0.901903] Modules linked in: >> [ 0.904951] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-next-20170508-dirty #106 >> [ 0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >> [ 0.919302] task: ee908000 task.stack: ee906000 >> [ 0.923836] PC is at dw_pcie_read+0x60/0x8c >> [ 0.928005] LR is at dw_pcie_rd_conf+0x188/0x1e0 >> [ 0.932616] pc : [<804125b8>] lr : [<80413308>] psr: 60000093 >> [ 0.932616] sp : ee907af0 ip : ee907b00 fp : ee907afc >> [ 0.944096] r10: 00000000 r9 : eea28b10 r8 : 00000000 >> [ 0.949317] r7 : 00000000 r6 : 00000000 r5 : f0a40000 r4 : eea28b28 >> [ 0.955840] r3 : 00000000 r2 : ee907b6c r1 : 00000004 r0 : f0a40000 >> [ 0.962368] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none >> [ 0.969589] Control: 10c5387d Table: 1000404a DAC: 00000051 >> [ 0.975330] Process swapper/0 (pid: 1, stack limit = 0xee906210) >> [ 0.981333] Stack: (0xee907af0 to 0xee908000) >> [ 0.985686] 7ae0: ee907b54 ee907b00 80413308 80412564 >> [ 0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126ec 01f40000 00000000 >> [ 1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000013 00000000 00000002 >> [ 1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318c ee907b6c 80412564 >> [ 1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000000 ee907bd4 0000ea60 >> [ 1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000000 ee907bfc 80400974 >> [ 1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000002 00000000 00000001 >> [ 1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b4 00000008 eeb1be00 >> [ 1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec4 00000008 eeb1be00 >> [ 1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f88 eeb1bc00 eeb1be00 >> [ 1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c40 803f8d58 803f9008 >> [ 1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000000 00000000 00000000 >> [ 1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc14 00000001 00000001 >> [ 1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab4 eeb1ba00 eeb1bc00 >> [ 1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc0 803f8ca0 803f9008 >> [ 1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000000 00000000 00000000 >> [ 1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba14 00000000 00000000 >> [ 1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab4 00000000 eeb1ba00 >> [ 1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d40 803f92d4 803f9008 >> [ 1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d60 80413d20 803f9274 >> [ 1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d70 ee803e00 00000000 >> [ 1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00660 ee907ddc ee907da8 >> [ 1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e10 ee803e10 80d308fc >> [ 1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de0 804e10e8 8041441c >> [ 1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b0 ee803e10 80d308fc >> [ 1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e20 804df610 804df2b4 >> [ 1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e40 804dd74c 804df548 >> [ 1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40850 ee907e74 ee907e68 >> [ 1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def00 80a88880 ee907e88 >> [ 1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea0 804dfe9c 804de958 >> [ 1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe20 ee907edc ee907ec8 >> [ 1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee0 80101c78 80c2c088 >> [ 1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f00 80142b54 80c0066c >> [ 1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8644 efffea30 efffea38 >> [ 1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a834 80b29414 000000b9 >> [ 1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000006 00000000 80c00660 >> [ 1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000000 00000000 00000000 >> [ 1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d88 00000000 8088ee80 >> [ 1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000000 00000000 00000000 >> [ 1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >> [ 1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff >> [ 1.320978] Backtrace: >> [ 1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_rd_conf+0x188/0x1e0) >> [ 1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bus_read_config_dword+0x78/0xa0) >> [ 1.340387] r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60000013 r5:ee907bd4 >> [ 1.348210] r4:80413180 >> [ 1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f6598>] (pci_bus_read_dev_vendor_id+0x34/0x104) >> [ 1.360740] r6:0000ea60 r5:ee907bd4 r4:00000000 >> [ 1.365358] [<803f6564>] (pci_bus_read_dev_vendor_id) from [<803f7f08>] (pci_scan_single_device+0x50/0xc4) >> [ 1.375011] r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00000000 r5:eeb1be00 >> [ 1.382835] r4:00000000 >> [ 1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (pci_scan_slot+0x70/0x118) >> [ 1.393975] r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008 >> [ 1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_child_bus+0x30/0x108) >> [ 1.407895] r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008 >> [ 1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_scan_bridge+0x2b0/0x554) >> [ 1.422078] r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be00 r4:eeb1bc00 >> [ 1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >> [ 1.438261] r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1bc14 r5:eeb1bc00 >> [ 1.446085] r4:eea16000 >> [ 1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_scan_bridge+0x1f8/0x554) >> [ 1.457138] r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc00 r4:eeb1ba00 >> [ 1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >> [ 1.473321] r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1ba14 r5:eeb1ba00 >> [ 1.481145] r4:eea15c00 >> [ 1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_scan_root_bus_msi+0x6c/0xd4) >> [ 1.492549] r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba00 r4:00000000 >> [ 1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (dw_pcie_host_init+0x250/0x4f8) >> [ 1.509249] r5:80d3082c r4:eea28b28 >> [ 1.512822] [<80413ad0>] (dw_pcie_host_init) from [<8041479c>] (imx6_pcie_probe+0x38c/0x540) >> [ 1.521259] r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803e10 r5:eea28b10 >> [ 1.529083] r4:00000000 >> [ 1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platform_drv_probe+0x44/0x7c) >> [ 1.539963] r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d308fc r4:ee803e10 >> [ 1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (really_probe+0x1f0/0x294) >> [ 1.555967] r5:ee803e10 r4:80dc0d30 >> [ 1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_attach+0xd4/0xd8) >> [ 1.567367] r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308fc r4:ee803e10 >> [ 1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_for_each_dev+0x7c/0xb0) >> [ 1.583286] r7:00000000 r6:804df53c r5:80d308fc r4:00000000 >> [ 1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driver_attach+0x28/0x30) >> [ 1.596945] r6:80d40850 r5:ee01a380 r4:80d308fc >> [ 1.601560] [<804deef4>] (driver_attach) from [<804dea5c>] (bus_add_driver+0x110/0x220) >> [ 1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_register+0x88/0x104) >> [ 1.617652] r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc >> [ 1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platform_driver_register+0x40/0x54) >> [ 1.632353] r5:ffffe000 r4:80c2c07c >> [ 1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0bc>] (imx6_pcie_init+0x40/0x54) >> [ 1.644890] [<80c2c07c>] (imx6_pcie_init) from [<80101c78>] (do_one_initcall+0x4c/0x17c) >> [ 1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_init_freeable+0x134/0x1f4) >> [ 1.661675] r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e94 >> [ 1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (kernel_init+0x18/0x124) >> [ 1.676641] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:8088ee80 >> [ 1.684464] r4:00000000 >> [ 1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fork+0x14/0x3c) >> [ 1.694558] r5:8088ee80 r4:00000000 >> [ 1.698131] Code: ee073f9a e1a00003 e5821000 e89da800 (e5901000) >> [ 1.704224] ---[ end trace dc8f87ab88f61701 ]--- >> [ 1.708894] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >> [ 1.708894] >> [ 1.717974] CPU1: stopping >> [ 1.720663] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.11.0-next-20170508-dirty #106 >> [ 1.729705] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >> [ 1.736230] Backtrace: >> [ 1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_stack+0x20/0x24) >> [ 1.746239] r7:00000001 r6:60000193 r5:00000000 r4:80d2f200 >> [ 1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x94/0xb0) >> [ 1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x28c/0x334) >> [ 1.766510] r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310 >> [ 1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_irq+0xa8/0xc4) >> [ 1.779735] r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:000003ff r5:000003eb >> [ 1.787561] r4:f400010c r3:00000000 >> [ 1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_svc+0x6c/0x90) >> [ 1.798609] Exception stack(0xee92df38 to 0xee92df80) >> [ 1.803657] df20: 0000062c 6e329000 >> [ 1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03cac 80d16f9f 80a5d91c >> [ 1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a04 60000013 ffffffff >> [ 1.828194] r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffffffff r5:60000013 >> [ 1.836019] r4:80108a04 >> [ 1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_idle_call+0x30/0x3c) >> [ 1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idle+0xc4/0x14c) >> [ 1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entry+0x28/0x2c) >> [ 1.861864] r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000001 r4:00000087 >> [ 1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secondary_start_kernel+0x148/0x174) >> [ 1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0x1010196c) >> [ 1.886046] r5:00000051 r4:7e92006a >> [ 1.889619] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >> [ 1.889619] >> > > Could you please check if you specific SoC driver is implementing the > dw_pcie_ops structure? You can see an example here: > > https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/tree/drivers/pci/dwc/pcie-designware-plat.c?h=next#n89 > > The hang in the boot could be achieved by not declaring this op's structure. just checked pci-imx6.c has both dw_pcie_ops and dw_pcie_host_ops. Thanks Kishon
Às 4:20 PM de 5/8/2017, Kishon Vijay Abraham I escreveu: > Hi Joao, > > On Monday 08 May 2017 08:43 PM, Joao Pinto wrote: >> >> Hi Peter, >> >> Às 4:02 PM de 5/8/2017, Peter Senna Tschudin escreveu: >>> Hello Kishon, >>> >>> Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest >>> linux-next and I could bisect until: >>> >>> commit 442ec4c04d1235f8c664a74004dae54a7a574d18 >>> Author: Kishon Vijay Abraham I <kishon@ti.com> >>> Date: Wed Feb 15 18:48:14 2017 +0530 >>> >>> PCI: dwc: all: Split struct pcie_port into host-only and core structures >>> >>> Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots >>> fine with 4.10, and also boots if we disable pcie with: >>> >>> diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts >>> index 2c1e98e..e655fd7 100644 >>> --- a/arch/arm/boot/dts/imx6q-b850v3.dts >>> +++ b/arch/arm/boot/dts/imx6q-b850v3.dts >>> @@ -212,3 +212,8 @@ >>> }; >>> }; >>> }; >>> + >>> +&pcie { >>> + status = "disabled"; >>> +}; >>> >>> But otherwise our system freezes while initializing PCI, see dmesg with >>> some more information. Is this something specific of our system/dt or >>> can this be a bug that is affecting others as well? >>> >>> Kind Regards, >>> >>> Peter >>> >>> Starting kernel ... >>> >>> Uncompressing Linux... done, booting the kernel. >>> [ 0.000000] Booting Linux on physical CPU 0x0 >>> [ 0.000000] Linux version 4.11.0-next-20170508-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) 7 >>> [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d >>> [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache >>> [ 0.000000] OF: fdt: Machine model: General Electric B850v3 >>> [ 0.000000] earlycon: ec_imx21 at MMIO 0x021ec000 (options '') >>> [ 0.000000] bootconsole [ec_imx21] enabled >>> [ 0.000000] Memory policy: Data cache writealloc >>> [ 0.000000] cma: Reserved 128 MiB at 0x88000000 >>> [ 0.000000] On node 0 totalpages: 524288 >>> [ 0.000000] free_area_init_node: node 0, pgdat 80d74fc0, node_mem_map eeff7000 >>> [ 0.000000] Normal zone: 3584 pages used for memmap >>> [ 0.000000] Normal zone: 0 pages reserved >>> [ 0.000000] Normal zone: 458752 pages, LIFO batch:31 >>> [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 >>> [ 0.000000] percpu: Embedded 17 pages/cpu @eefb3000 s37900 r8192 d23540 u69632 >>> [ 0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=17*4096 >>> [ 0.000000] pcpu-alloc: [0] 0 [0] 1 >>> [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520704 >>> [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 ro rootwait cma=128M video=DP-1:1024x768@60 video=HDMI-A-1:1024x768@60 earlycon logl0 >>> [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) >>> [ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes) >>> [ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes) >>> [ 0.000000] Memory: 1934676K/2097152K available (8192K kernel code, 502K rwdata, 2220K rodata, 1024K init, 309K bss, 31404K reserved, 131) >>> [ 0.000000] Virtual kernel memory layout: >>> [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) >>> [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) >>> [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) >>> [ 0.000000] lowmem : 0x80000000 - 0xf0000000 (1792 MB) >>> [ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) >>> [ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB) >>> [ 0.000000] .text : 0x80008000 - 0x80900000 (9184 kB) >>> [ 0.000000] .init : 0x80c00000 - 0x80d00000 (1024 kB) >>> [ 0.000000] .data : 0x80d00000 - 0x80d7d874 ( 503 kB) >>> [ 0.000000] .bss : 0x80d7f000 - 0x80dcc6c0 ( 310 kB) >>> [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 >>> [ 0.000000] ftrace: allocating 28081 entries in 83 pages >>> [ 0.000000] Hierarchical RCU implementation. >>> [ 0.000000] RCU debugfs-based tracing is enabled. >>> [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. >>> [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 >>> [ 0.000000] NR_IRQS:16 nr_irqs:16 16 >>> [ 0.000000] L2C-310 errata 752271 769419 enabled >>> [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 >>> [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 >>> [ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines >>> [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled >>> [ 0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB >>> [ 0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001 >>> [ 0.000000] Switching to timer-based delay loop, resolution 333ns >>> [ 0.000007] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns >>> [ 0.008183] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns >>> [ 0.019149] Console: colour dummy device 80x30 >>> [ 0.022277] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000) >>> [ 0.032459] pid_max: default: 32768 minimum: 301 >>> [ 0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes) >>> [ 0.043765] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes) >>> [ 0.051388] CPU: Testing write buffer coherency: ok >>> [ 0.056014] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 >>> [ 0.061774] Setting up static identity map for 0x10100000 - 0x10100054 >>> [ 0.068619] smp: Bringing up secondary CPUs ... >>> [ 0.073110] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 >>> [ 0.073195] smp: Brought up 1 node, 2 CPUs >>> [ 0.082212] SMP: Total of 2 processors activated (12.00 BogoMIPS). >>> [ 0.088397] CPU: All CPU(s) started in SVC mode. >>> [ 0.093925] devtmpfs: initialized >>> [ 0.106030] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 >>> [ 0.110962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns >>> [ 0.120713] futex hash table entries: 512 (order: 3, 32768 bytes) >>> [ 0.132529] pinctrl core: initialized pinctrl subsystem >>> [ 0.135868] NET: Registered protocol family 16 >>> [ 0.141371] DMA: preallocated 256 KiB pool for atomic coherent allocations >>> [ 0.147347] CPU identified as i.MX6Q, silicon rev 1.5 >>> [ 0.157099] vdd1p1: supplied by regulator-dummy >>> [ 0.159154] vdd3p0: supplied by regulator-dummy >>> [ 0.163643] vdd2p5: supplied by regulator-dummy >>> [ 0.168222] vddarm: supplied by regulator-dummy >>> [ 0.172734] vddpu: supplied by regulator-dummy >>> [ 0.177183] vddsoc: supplied by regulator-dummy >>> [ 0.188863] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. >>> [ 0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes. >>> [ 0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver >>> [ 0.225818] mxs-dma 110000.dma-apbh: initialized >>> [ 0.229977] vgaarb: loaded >>> [ 0.230724] SCSI subsystem initialized >>> [ 0.234208] libata version 3.00 loaded. >>> [ 0.238082] usbcore: registered new interface driver usbfs >>> [ 0.243402] usbcore: registered new interface driver hub >>> [ 0.248696] usbcore: registered new device driver usb >>> [ 0.254761] i2c i2c-0: IMX I2C adapter registered >>> [ 0.258390] i2c i2c-0: can't use DMA, using PIO instead. >>> [ 0.264098] i2c i2c-1: IMX I2C adapter registered >>> [ 0.268390] i2c i2c-1: can't use DMA, using PIO instead. >>> [ 0.274206] i2c i2c-2: IMX I2C adapter registered >>> [ 0.278396] i2c i2c-2: can't use DMA, using PIO instead. >>> [ 0.283829] pps_core: LinuxPPS API ver. 1 registered >>> [ 0.288657] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> >>> [ 0.297822] PTP clock support registered >>> [ 0.301979] Advanced Linux Sound Architecture Driver Initialized. >>> [ 0.309622] clocksource: Switched to clocksource mxc_timer1 >>> [ 0.370378] NET: Registered protocol family 2 >>> [ 0.372439] TCP established hash table entries: 16384 (order: 4, 65536 bytes) >>> [ 0.379153] TCP bind hash table entries: 16384 (order: 5, 131072 bytes) >>> [ 0.385901] TCP: Hash tables configured (established 16384 bind 16384) >>> [ 0.392300] UDP hash table entries: 1024 (order: 3, 32768 bytes) >>> [ 0.398227] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) >>> [ 0.404824] NET: Registered protocol family 1 >>> [ 0.408971] PCI: CLS 0 bytes, default 64 >>> [ 0.413582] hw perfevents: no interrupt-affinity property for /soc/pmu, guessing. >>> [ 0.420576] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available >>> [ 0.429443] audit: initializing netlink subsys (disabled) >>> [ 0.434049] audit: type=2000 audit(0.424:1): state=initialized audit_enabled=0 res=1 >>> [ 0.434655] workingset: timestamp_bits=30 max_order=19 bucket_order=0 >>> [ 0.445347] bounce: pool size: 64 pages >>> [ 0.445354] io scheduler noop registered >>> [ 0.445358] io scheduler deadline registered >>> [ 0.445392] io scheduler cfq registered (default) >>> [ 0.445396] io scheduler mq-deadline registered >>> [ 0.445400] io scheduler kyber registered >>> [ 0.501998] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: >>> [ 0.507275] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 >>> [ 0.513202] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 >>> [ 0.739697] imx6q-pcie 1ffc000.pcie: link up >>> [ 0.741115] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled >>> [ 0.746421] imx6q-pcie 1ffc000.pcie: Link up, Gen1 >>> [ 0.751343] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 >>> [ 0.757475] pci_bus 0000:00: root bus resource [bus 00-ff] >>> [ 0.762974] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] >>> [ 0.769128] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] >>> [ 0.776052] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 >>> [ 0.782044] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] >>> [ 0.788279] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] >>> [ 0.795041] pci 0000:00:00.0: supports D1 >>> [ 0.798971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold >>> [ 0.805503] PCI: bus0: Fast back to back transfers disabled >>> [ 0.811079] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 >>> [ 0.817034] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] >>> [ 0.823778] pci 0000:01:00.0: supports D1 D2 >>> [ 0.827418] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold >>> [ 0.859773] PCI: bus1: Fast back to back transfers disabled >>> [ 0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring >>> [ 0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) >>> [ 0.880800] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a40000 >>> [ 0.888416] pgd = 80004000 >>> [ 0.891112] [f0a40000] *pgd=7e01d811, *pte=01f40243, *ppte=01f40013 >>> [ 0.897384] Internal error: : 1008 [#1] SMP ARM >>> [ 0.901903] Modules linked in: >>> [ 0.904951] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-next-20170508-dirty #106 >>> [ 0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >>> [ 0.919302] task: ee908000 task.stack: ee906000 >>> [ 0.923836] PC is at dw_pcie_read+0x60/0x8c >>> [ 0.928005] LR is at dw_pcie_rd_conf+0x188/0x1e0 >>> [ 0.932616] pc : [<804125b8>] lr : [<80413308>] psr: 60000093 >>> [ 0.932616] sp : ee907af0 ip : ee907b00 fp : ee907afc >>> [ 0.944096] r10: 00000000 r9 : eea28b10 r8 : 00000000 >>> [ 0.949317] r7 : 00000000 r6 : 00000000 r5 : f0a40000 r4 : eea28b28 >>> [ 0.955840] r3 : 00000000 r2 : ee907b6c r1 : 00000004 r0 : f0a40000 >>> [ 0.962368] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none >>> [ 0.969589] Control: 10c5387d Table: 1000404a DAC: 00000051 >>> [ 0.975330] Process swapper/0 (pid: 1, stack limit = 0xee906210) >>> [ 0.981333] Stack: (0xee907af0 to 0xee908000) >>> [ 0.985686] 7ae0: ee907b54 ee907b00 80413308 80412564 >>> [ 0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126ec 01f40000 00000000 >>> [ 1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000013 00000000 00000002 >>> [ 1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318c ee907b6c 80412564 >>> [ 1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000000 ee907bd4 0000ea60 >>> [ 1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000000 ee907bfc 80400974 >>> [ 1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000002 00000000 00000001 >>> [ 1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b4 00000008 eeb1be00 >>> [ 1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec4 00000008 eeb1be00 >>> [ 1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f88 eeb1bc00 eeb1be00 >>> [ 1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c40 803f8d58 803f9008 >>> [ 1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000000 00000000 00000000 >>> [ 1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc14 00000001 00000001 >>> [ 1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab4 eeb1ba00 eeb1bc00 >>> [ 1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc0 803f8ca0 803f9008 >>> [ 1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000000 00000000 00000000 >>> [ 1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba14 00000000 00000000 >>> [ 1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab4 00000000 eeb1ba00 >>> [ 1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d40 803f92d4 803f9008 >>> [ 1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d60 80413d20 803f9274 >>> [ 1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d70 ee803e00 00000000 >>> [ 1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00660 ee907ddc ee907da8 >>> [ 1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e10 ee803e10 80d308fc >>> [ 1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de0 804e10e8 8041441c >>> [ 1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b0 ee803e10 80d308fc >>> [ 1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e20 804df610 804df2b4 >>> [ 1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e40 804dd74c 804df548 >>> [ 1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40850 ee907e74 ee907e68 >>> [ 1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def00 80a88880 ee907e88 >>> [ 1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea0 804dfe9c 804de958 >>> [ 1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe20 ee907edc ee907ec8 >>> [ 1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee0 80101c78 80c2c088 >>> [ 1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f00 80142b54 80c0066c >>> [ 1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8644 efffea30 efffea38 >>> [ 1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a834 80b29414 000000b9 >>> [ 1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000006 00000000 80c00660 >>> [ 1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000000 00000000 00000000 >>> [ 1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d88 00000000 8088ee80 >>> [ 1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000000 00000000 00000000 >>> [ 1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >>> [ 1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff >>> [ 1.320978] Backtrace: >>> [ 1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_rd_conf+0x188/0x1e0) >>> [ 1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bus_read_config_dword+0x78/0xa0) >>> [ 1.340387] r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60000013 r5:ee907bd4 >>> [ 1.348210] r4:80413180 >>> [ 1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f6598>] (pci_bus_read_dev_vendor_id+0x34/0x104) >>> [ 1.360740] r6:0000ea60 r5:ee907bd4 r4:00000000 >>> [ 1.365358] [<803f6564>] (pci_bus_read_dev_vendor_id) from [<803f7f08>] (pci_scan_single_device+0x50/0xc4) >>> [ 1.375011] r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00000000 r5:eeb1be00 >>> [ 1.382835] r4:00000000 >>> [ 1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (pci_scan_slot+0x70/0x118) >>> [ 1.393975] r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008 >>> [ 1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_child_bus+0x30/0x108) >>> [ 1.407895] r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008 >>> [ 1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_scan_bridge+0x2b0/0x554) >>> [ 1.422078] r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be00 r4:eeb1bc00 >>> [ 1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >>> [ 1.438261] r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1bc14 r5:eeb1bc00 >>> [ 1.446085] r4:eea16000 >>> [ 1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_scan_bridge+0x1f8/0x554) >>> [ 1.457138] r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc00 r4:eeb1ba00 >>> [ 1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >>> [ 1.473321] r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1ba14 r5:eeb1ba00 >>> [ 1.481145] r4:eea15c00 >>> [ 1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_scan_root_bus_msi+0x6c/0xd4) >>> [ 1.492549] r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba00 r4:00000000 >>> [ 1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (dw_pcie_host_init+0x250/0x4f8) >>> [ 1.509249] r5:80d3082c r4:eea28b28 >>> [ 1.512822] [<80413ad0>] (dw_pcie_host_init) from [<8041479c>] (imx6_pcie_probe+0x38c/0x540) >>> [ 1.521259] r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803e10 r5:eea28b10 >>> [ 1.529083] r4:00000000 >>> [ 1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platform_drv_probe+0x44/0x7c) >>> [ 1.539963] r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d308fc r4:ee803e10 >>> [ 1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (really_probe+0x1f0/0x294) >>> [ 1.555967] r5:ee803e10 r4:80dc0d30 >>> [ 1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_attach+0xd4/0xd8) >>> [ 1.567367] r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308fc r4:ee803e10 >>> [ 1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_for_each_dev+0x7c/0xb0) >>> [ 1.583286] r7:00000000 r6:804df53c r5:80d308fc r4:00000000 >>> [ 1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driver_attach+0x28/0x30) >>> [ 1.596945] r6:80d40850 r5:ee01a380 r4:80d308fc >>> [ 1.601560] [<804deef4>] (driver_attach) from [<804dea5c>] (bus_add_driver+0x110/0x220) >>> [ 1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_register+0x88/0x104) >>> [ 1.617652] r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc >>> [ 1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platform_driver_register+0x40/0x54) >>> [ 1.632353] r5:ffffe000 r4:80c2c07c >>> [ 1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0bc>] (imx6_pcie_init+0x40/0x54) >>> [ 1.644890] [<80c2c07c>] (imx6_pcie_init) from [<80101c78>] (do_one_initcall+0x4c/0x17c) >>> [ 1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_init_freeable+0x134/0x1f4) >>> [ 1.661675] r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e94 >>> [ 1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (kernel_init+0x18/0x124) >>> [ 1.676641] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:8088ee80 >>> [ 1.684464] r4:00000000 >>> [ 1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fork+0x14/0x3c) >>> [ 1.694558] r5:8088ee80 r4:00000000 >>> [ 1.698131] Code: ee073f9a e1a00003 e5821000 e89da800 (e5901000) >>> [ 1.704224] ---[ end trace dc8f87ab88f61701 ]--- >>> [ 1.708894] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >>> [ 1.708894] >>> [ 1.717974] CPU1: stopping >>> [ 1.720663] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.11.0-next-20170508-dirty #106 >>> [ 1.729705] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >>> [ 1.736230] Backtrace: >>> [ 1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_stack+0x20/0x24) >>> [ 1.746239] r7:00000001 r6:60000193 r5:00000000 r4:80d2f200 >>> [ 1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x94/0xb0) >>> [ 1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x28c/0x334) >>> [ 1.766510] r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310 >>> [ 1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_irq+0xa8/0xc4) >>> [ 1.779735] r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:000003ff r5:000003eb >>> [ 1.787561] r4:f400010c r3:00000000 >>> [ 1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_svc+0x6c/0x90) >>> [ 1.798609] Exception stack(0xee92df38 to 0xee92df80) >>> [ 1.803657] df20: 0000062c 6e329000 >>> [ 1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03cac 80d16f9f 80a5d91c >>> [ 1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a04 60000013 ffffffff >>> [ 1.828194] r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffffffff r5:60000013 >>> [ 1.836019] r4:80108a04 >>> [ 1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_idle_call+0x30/0x3c) >>> [ 1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idle+0xc4/0x14c) >>> [ 1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entry+0x28/0x2c) >>> [ 1.861864] r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000001 r4:00000087 >>> [ 1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secondary_start_kernel+0x148/0x174) >>> [ 1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0x1010196c) >>> [ 1.886046] r5:00000051 r4:7e92006a >>> [ 1.889619] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >>> [ 1.889619] >>> >> >> Could you please check if you specific SoC driver is implementing the >> dw_pcie_ops structure? You can see an example here: >> >> https://urldefense.proofpoint.com/v2/url?u=https-3A__git.kernel.org_pub_scm_linux_kernel_git_helgaas_pci.git_tree_drivers_pci_dwc_pcie-2Ddesignware-2Dplat.c-3Fh-3Dnext-23n89&d=DwID-g&c=DPL6_X_6JkXFx7AXWqB0tg&r=s2fO0hii0OGNOv9qQy_HRXy-xAJUD1NNoEcc3io_kx0&m=W1o6gVTGVGc3xn2ju9_MIEp82TgHJFpOKbls4-qJyB4&s=e_EFnyFiqJ8foA366Hd97K4NpVoswMHhAxvsJ0bagVw&e= >> >> The hang in the boot could be achieved by not declaring this op's structure. > > just checked pci-imx6.c has both dw_pcie_ops and dw_pcie_host_ops. Ok, so from the dmesg we can see that it crashes when trying to read a register. Do you think that maybe the size parameter might not be well defined for this driver? > > Thanks > Kishon >
Hi, On Monday 08 May 2017 08:32 PM, Peter Senna Tschudin wrote: > Hello Kishon, > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > linux-next and I could bisect until: > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > Author: Kishon Vijay Abraham I <kishon@ti.com> > Date: Wed Feb 15 18:48:14 2017 +0530 > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > fine with 4.10, and also boots if we disable pcie with: > > diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts > index 2c1e98e..e655fd7 100644 > --- a/arch/arm/boot/dts/imx6q-b850v3.dts > +++ b/arch/arm/boot/dts/imx6q-b850v3.dts > @@ -212,3 +212,8 @@ > }; > }; > }; > + > +&pcie { > + status = "disabled"; > +}; > > But otherwise our system freezes while initializing PCI, see dmesg with > some more information. Is this something specific of our system/dt or > can this be a bug that is affecting others as well? Haven't seen this in dra7xx. I've tried with few ethernet PCIe cards and also a PCIe-to-PCI bridge. > > Kind Regards, > > Peter > > Starting kernel ... > > Uncompressing Linux... done, booting the kernel. . . <snip> . . > [ 0.501998] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: > [ 0.507275] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 > [ 0.513202] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 > [ 0.739697] imx6q-pcie 1ffc000.pcie: link up > [ 0.741115] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled > [ 0.746421] imx6q-pcie 1ffc000.pcie: Link up, Gen1 > [ 0.751343] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > [ 0.757475] pci_bus 0000:00: root bus resource [bus 00-ff] > [ 0.762974] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] > [ 0.769128] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] > [ 0.776052] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 > [ 0.782044] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] > [ 0.788279] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] > [ 0.795041] pci 0000:00:00.0: supports D1 > [ 0.798971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold > [ 0.805503] PCI: bus0: Fast back to back transfers disabled > [ 0.811079] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 I could see a couple of device detected [16c3:abcd and [10b5:8605]. What other devices are connected? > [ 0.817034] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] > [ 0.823778] pci 0000:01:00.0: supports D1 D2 > [ 0.827418] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold > [ 0.859773] PCI: bus1: Fast back to back transfers disabled > [ 0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring > [ 0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) Do you get the above message in the working scenario? > [ 0.880800] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a40000 > [ 0.888416] pgd = 80004000 > [ 0.891112] [f0a40000] *pgd=7e01d811, *pte=01f40243, *ppte=01f40013 > [ 0.897384] Internal error: : 1008 [#1] SMP ARM > [ 0.901903] Modules linked in: > [ 0.904951] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-next-20170508-dirty #106 > [ 0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) > [ 0.919302] task: ee908000 task.stack: ee906000 > [ 0.923836] PC is at dw_pcie_read+0x60/0x8c > [ 0.928005] LR is at dw_pcie_rd_conf+0x188/0x1e0 > [ 0.932616] pc : [<804125b8>] lr : [<80413308>] psr: 60000093 > [ 0.932616] sp : ee907af0 ip : ee907b00 fp : ee907afc > [ 0.944096] r10: 00000000 r9 : eea28b10 r8 : 00000000 > [ 0.949317] r7 : 00000000 r6 : 00000000 r5 : f0a40000 r4 : eea28b28 > [ 0.955840] r3 : 00000000 r2 : ee907b6c r1 : 00000004 r0 : f0a40000 > [ 0.962368] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none > [ 0.969589] Control: 10c5387d Table: 1000404a DAC: 00000051 > [ 0.975330] Process swapper/0 (pid: 1, stack limit = 0xee906210) > [ 0.981333] Stack: (0xee907af0 to 0xee908000) > [ 0.985686] 7ae0: ee907b54 ee907b00 80413308 80412564 > [ 0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126ec 01f40000 00000000 > [ 1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000013 00000000 00000002 > [ 1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318c ee907b6c 80412564 > [ 1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000000 ee907bd4 0000ea60 > [ 1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000000 ee907bfc 80400974 > [ 1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000002 00000000 00000001 > [ 1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b4 00000008 eeb1be00 > [ 1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec4 00000008 eeb1be00 > [ 1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f88 eeb1bc00 eeb1be00 > [ 1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c40 803f8d58 803f9008 > [ 1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000000 00000000 00000000 > [ 1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc14 00000001 00000001 > [ 1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab4 eeb1ba00 eeb1bc00 > [ 1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc0 803f8ca0 803f9008 > [ 1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000000 00000000 00000000 > [ 1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba14 00000000 00000000 > [ 1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab4 00000000 eeb1ba00 > [ 1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d40 803f92d4 803f9008 > [ 1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d60 80413d20 803f9274 > [ 1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d70 ee803e00 00000000 > [ 1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00660 ee907ddc ee907da8 > [ 1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e10 ee803e10 80d308fc > [ 1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de0 804e10e8 8041441c > [ 1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b0 ee803e10 80d308fc > [ 1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e20 804df610 804df2b4 > [ 1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e40 804dd74c 804df548 > [ 1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40850 ee907e74 ee907e68 > [ 1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def00 80a88880 ee907e88 > [ 1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea0 804dfe9c 804de958 > [ 1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe20 ee907edc ee907ec8 > [ 1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee0 80101c78 80c2c088 > [ 1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f00 80142b54 80c0066c > [ 1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8644 efffea30 efffea38 > [ 1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a834 80b29414 000000b9 > [ 1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000006 00000000 80c00660 > [ 1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000000 00000000 00000000 > [ 1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d88 00000000 8088ee80 > [ 1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000000 00000000 00000000 > [ 1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > [ 1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff > [ 1.320978] Backtrace: > [ 1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_rd_conf+0x188/0x1e0) > [ 1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bus_read_config_dword+0x78/0xa0) > [ 1.340387] r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60000013 r5:ee907bd4 > [ 1.348210] r4:80413180 > [ 1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f6598>] (pci_bus_read_dev_vendor_id+0x34/0x104) > [ 1.360740] r6:0000ea60 r5:ee907bd4 r4:00000000 > [ 1.365358] [<803f6564>] (pci_bus_read_dev_vendor_id) from [<803f7f08>] (pci_scan_single_device+0x50/0xc4) > [ 1.375011] r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00000000 r5:eeb1be00 > [ 1.382835] r4:00000000 > [ 1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (pci_scan_slot+0x70/0x118) > [ 1.393975] r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008 > [ 1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_child_bus+0x30/0x108) > [ 1.407895] r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008 > [ 1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_scan_bridge+0x2b0/0x554) > [ 1.422078] r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be00 r4:eeb1bc00 > [ 1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) > [ 1.438261] r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1bc14 r5:eeb1bc00 > [ 1.446085] r4:eea16000 > [ 1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_scan_bridge+0x1f8/0x554) > [ 1.457138] r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc00 r4:eeb1ba00 > [ 1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) > [ 1.473321] r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1ba14 r5:eeb1ba00 > [ 1.481145] r4:eea15c00 > [ 1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_scan_root_bus_msi+0x6c/0xd4) > [ 1.492549] r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba00 r4:00000000 > [ 1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (dw_pcie_host_init+0x250/0x4f8) > [ 1.509249] r5:80d3082c r4:eea28b28 > [ 1.512822] [<80413ad0>] (dw_pcie_host_init) from [<8041479c>] (imx6_pcie_probe+0x38c/0x540) > [ 1.521259] r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803e10 r5:eea28b10 > [ 1.529083] r4:00000000 > [ 1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platform_drv_probe+0x44/0x7c) > [ 1.539963] r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d308fc r4:ee803e10 > [ 1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (really_probe+0x1f0/0x294) > [ 1.555967] r5:ee803e10 r4:80dc0d30 > [ 1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_attach+0xd4/0xd8) > [ 1.567367] r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308fc r4:ee803e10 > [ 1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_for_each_dev+0x7c/0xb0) > [ 1.583286] r7:00000000 r6:804df53c r5:80d308fc r4:00000000 > [ 1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driver_attach+0x28/0x30) > [ 1.596945] r6:80d40850 r5:ee01a380 r4:80d308fc > [ 1.601560] [<804deef4>] (driver_attach) from [<804dea5c>] (bus_add_driver+0x110/0x220) > [ 1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_register+0x88/0x104) > [ 1.617652] r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc > [ 1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platform_driver_register+0x40/0x54) > [ 1.632353] r5:ffffe000 r4:80c2c07c > [ 1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0bc>] (imx6_pcie_init+0x40/0x54) > [ 1.644890] [<80c2c07c>] (imx6_pcie_init) from [<80101c78>] (do_one_initcall+0x4c/0x17c) > [ 1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_init_freeable+0x134/0x1f4) > [ 1.661675] r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e94 > [ 1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (kernel_init+0x18/0x124) > [ 1.676641] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:8088ee80 > [ 1.684464] r4:00000000 > [ 1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fork+0x14/0x3c) > [ 1.694558] r5:8088ee80 r4:00000000 > [ 1.698131] Code: ee073f9a e1a00003 e5821000 e89da800 (e5901000) > [ 1.704224] ---[ end trace dc8f87ab88f61701 ]--- > [ 1.708894] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > [ 1.708894] > [ 1.717974] CPU1: stopping > [ 1.720663] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.11.0-next-20170508-dirty #106 > [ 1.729705] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) > [ 1.736230] Backtrace: > [ 1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_stack+0x20/0x24) > [ 1.746239] r7:00000001 r6:60000193 r5:00000000 r4:80d2f200 > [ 1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x94/0xb0) > [ 1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x28c/0x334) > [ 1.766510] r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310 > [ 1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_irq+0xa8/0xc4) > [ 1.779735] r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:000003ff r5:000003eb > [ 1.787561] r4:f400010c r3:00000000 > [ 1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_svc+0x6c/0x90) > [ 1.798609] Exception stack(0xee92df38 to 0xee92df80) > [ 1.803657] df20: 0000062c 6e329000 > [ 1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03cac 80d16f9f 80a5d91c > [ 1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a04 60000013 ffffffff > [ 1.828194] r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffffffff r5:60000013 > [ 1.836019] r4:80108a04 > [ 1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_idle_call+0x30/0x3c) > [ 1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idle+0xc4/0x14c) > [ 1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entry+0x28/0x2c) > [ 1.861864] r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000001 r4:00000087 > [ 1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secondary_start_kernel+0x148/0x174) > [ 1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0x1010196c) > [ 1.886046] r5:00000051 r4:7e92006a > [ 1.889619] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > [ 1.889619] > -Kishon
Hi Joao, On Monday 08 May 2017 09:01 PM, Joao Pinto wrote: > Às 4:20 PM de 5/8/2017, Kishon Vijay Abraham I escreveu: >> Hi Joao, >> >> On Monday 08 May 2017 08:43 PM, Joao Pinto wrote: >>> >>> Hi Peter, >>> >>> Às 4:02 PM de 5/8/2017, Peter Senna Tschudin escreveu: >>>> Hello Kishon, >>>> >>>> Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest >>>> linux-next and I could bisect until: >>>> >>>> commit 442ec4c04d1235f8c664a74004dae54a7a574d18 >>>> Author: Kishon Vijay Abraham I <kishon@ti.com> >>>> Date: Wed Feb 15 18:48:14 2017 +0530 >>>> >>>> PCI: dwc: all: Split struct pcie_port into host-only and core structures >>>> >>>> Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots >>>> fine with 4.10, and also boots if we disable pcie with: >>>> >>>> diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts >>>> index 2c1e98e..e655fd7 100644 >>>> --- a/arch/arm/boot/dts/imx6q-b850v3.dts >>>> +++ b/arch/arm/boot/dts/imx6q-b850v3.dts >>>> @@ -212,3 +212,8 @@ >>>> }; >>>> }; >>>> }; >>>> + >>>> +&pcie { >>>> + status = "disabled"; >>>> +}; >>>> >>>> But otherwise our system freezes while initializing PCI, see dmesg with >>>> some more information. Is this something specific of our system/dt or >>>> can this be a bug that is affecting others as well? >>>> >>>> Kind Regards, >>>> >>>> Peter >>>> >>>> Starting kernel ... >>>> >>>> Uncompressing Linux... done, booting the kernel. >>>> [ 0.000000] Booting Linux on physical CPU 0x0 >>>> [ 0.000000] Linux version 4.11.0-next-20170508-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) 7 >>>> [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d >>>> [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache >>>> [ 0.000000] OF: fdt: Machine model: General Electric B850v3 >>>> [ 0.000000] earlycon: ec_imx21 at MMIO 0x021ec000 (options '') >>>> [ 0.000000] bootconsole [ec_imx21] enabled >>>> [ 0.000000] Memory policy: Data cache writealloc >>>> [ 0.000000] cma: Reserved 128 MiB at 0x88000000 >>>> [ 0.000000] On node 0 totalpages: 524288 >>>> [ 0.000000] free_area_init_node: node 0, pgdat 80d74fc0, node_mem_map eeff7000 >>>> [ 0.000000] Normal zone: 3584 pages used for memmap >>>> [ 0.000000] Normal zone: 0 pages reserved >>>> [ 0.000000] Normal zone: 458752 pages, LIFO batch:31 >>>> [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 >>>> [ 0.000000] percpu: Embedded 17 pages/cpu @eefb3000 s37900 r8192 d23540 u69632 >>>> [ 0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=17*4096 >>>> [ 0.000000] pcpu-alloc: [0] 0 [0] 1 >>>> [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520704 >>>> [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 ro rootwait cma=128M video=DP-1:1024x768@60 video=HDMI-A-1:1024x768@60 earlycon logl0 >>>> [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) >>>> [ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes) >>>> [ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes) >>>> [ 0.000000] Memory: 1934676K/2097152K available (8192K kernel code, 502K rwdata, 2220K rodata, 1024K init, 309K bss, 31404K reserved, 131) >>>> [ 0.000000] Virtual kernel memory layout: >>>> [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) >>>> [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) >>>> [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) >>>> [ 0.000000] lowmem : 0x80000000 - 0xf0000000 (1792 MB) >>>> [ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) >>>> [ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB) >>>> [ 0.000000] .text : 0x80008000 - 0x80900000 (9184 kB) >>>> [ 0.000000] .init : 0x80c00000 - 0x80d00000 (1024 kB) >>>> [ 0.000000] .data : 0x80d00000 - 0x80d7d874 ( 503 kB) >>>> [ 0.000000] .bss : 0x80d7f000 - 0x80dcc6c0 ( 310 kB) >>>> [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 >>>> [ 0.000000] ftrace: allocating 28081 entries in 83 pages >>>> [ 0.000000] Hierarchical RCU implementation. >>>> [ 0.000000] RCU debugfs-based tracing is enabled. >>>> [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. >>>> [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 >>>> [ 0.000000] NR_IRQS:16 nr_irqs:16 16 >>>> [ 0.000000] L2C-310 errata 752271 769419 enabled >>>> [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 >>>> [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 >>>> [ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines >>>> [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled >>>> [ 0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB >>>> [ 0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001 >>>> [ 0.000000] Switching to timer-based delay loop, resolution 333ns >>>> [ 0.000007] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns >>>> [ 0.008183] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns >>>> [ 0.019149] Console: colour dummy device 80x30 >>>> [ 0.022277] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000) >>>> [ 0.032459] pid_max: default: 32768 minimum: 301 >>>> [ 0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes) >>>> [ 0.043765] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes) >>>> [ 0.051388] CPU: Testing write buffer coherency: ok >>>> [ 0.056014] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 >>>> [ 0.061774] Setting up static identity map for 0x10100000 - 0x10100054 >>>> [ 0.068619] smp: Bringing up secondary CPUs ... >>>> [ 0.073110] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 >>>> [ 0.073195] smp: Brought up 1 node, 2 CPUs >>>> [ 0.082212] SMP: Total of 2 processors activated (12.00 BogoMIPS). >>>> [ 0.088397] CPU: All CPU(s) started in SVC mode. >>>> [ 0.093925] devtmpfs: initialized >>>> [ 0.106030] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 >>>> [ 0.110962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns >>>> [ 0.120713] futex hash table entries: 512 (order: 3, 32768 bytes) >>>> [ 0.132529] pinctrl core: initialized pinctrl subsystem >>>> [ 0.135868] NET: Registered protocol family 16 >>>> [ 0.141371] DMA: preallocated 256 KiB pool for atomic coherent allocations >>>> [ 0.147347] CPU identified as i.MX6Q, silicon rev 1.5 >>>> [ 0.157099] vdd1p1: supplied by regulator-dummy >>>> [ 0.159154] vdd3p0: supplied by regulator-dummy >>>> [ 0.163643] vdd2p5: supplied by regulator-dummy >>>> [ 0.168222] vddarm: supplied by regulator-dummy >>>> [ 0.172734] vddpu: supplied by regulator-dummy >>>> [ 0.177183] vddsoc: supplied by regulator-dummy >>>> [ 0.188863] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. >>>> [ 0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes. >>>> [ 0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver >>>> [ 0.225818] mxs-dma 110000.dma-apbh: initialized >>>> [ 0.229977] vgaarb: loaded >>>> [ 0.230724] SCSI subsystem initialized >>>> [ 0.234208] libata version 3.00 loaded. >>>> [ 0.238082] usbcore: registered new interface driver usbfs >>>> [ 0.243402] usbcore: registered new interface driver hub >>>> [ 0.248696] usbcore: registered new device driver usb >>>> [ 0.254761] i2c i2c-0: IMX I2C adapter registered >>>> [ 0.258390] i2c i2c-0: can't use DMA, using PIO instead. >>>> [ 0.264098] i2c i2c-1: IMX I2C adapter registered >>>> [ 0.268390] i2c i2c-1: can't use DMA, using PIO instead. >>>> [ 0.274206] i2c i2c-2: IMX I2C adapter registered >>>> [ 0.278396] i2c i2c-2: can't use DMA, using PIO instead. >>>> [ 0.283829] pps_core: LinuxPPS API ver. 1 registered >>>> [ 0.288657] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> >>>> [ 0.297822] PTP clock support registered >>>> [ 0.301979] Advanced Linux Sound Architecture Driver Initialized. >>>> [ 0.309622] clocksource: Switched to clocksource mxc_timer1 >>>> [ 0.370378] NET: Registered protocol family 2 >>>> [ 0.372439] TCP established hash table entries: 16384 (order: 4, 65536 bytes) >>>> [ 0.379153] TCP bind hash table entries: 16384 (order: 5, 131072 bytes) >>>> [ 0.385901] TCP: Hash tables configured (established 16384 bind 16384) >>>> [ 0.392300] UDP hash table entries: 1024 (order: 3, 32768 bytes) >>>> [ 0.398227] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) >>>> [ 0.404824] NET: Registered protocol family 1 >>>> [ 0.408971] PCI: CLS 0 bytes, default 64 >>>> [ 0.413582] hw perfevents: no interrupt-affinity property for /soc/pmu, guessing. >>>> [ 0.420576] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available >>>> [ 0.429443] audit: initializing netlink subsys (disabled) >>>> [ 0.434049] audit: type=2000 audit(0.424:1): state=initialized audit_enabled=0 res=1 >>>> [ 0.434655] workingset: timestamp_bits=30 max_order=19 bucket_order=0 >>>> [ 0.445347] bounce: pool size: 64 pages >>>> [ 0.445354] io scheduler noop registered >>>> [ 0.445358] io scheduler deadline registered >>>> [ 0.445392] io scheduler cfq registered (default) >>>> [ 0.445396] io scheduler mq-deadline registered >>>> [ 0.445400] io scheduler kyber registered >>>> [ 0.501998] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: >>>> [ 0.507275] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 >>>> [ 0.513202] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 >>>> [ 0.739697] imx6q-pcie 1ffc000.pcie: link up >>>> [ 0.741115] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled >>>> [ 0.746421] imx6q-pcie 1ffc000.pcie: Link up, Gen1 >>>> [ 0.751343] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 >>>> [ 0.757475] pci_bus 0000:00: root bus resource [bus 00-ff] >>>> [ 0.762974] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] >>>> [ 0.769128] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] >>>> [ 0.776052] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 >>>> [ 0.782044] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] >>>> [ 0.788279] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] >>>> [ 0.795041] pci 0000:00:00.0: supports D1 >>>> [ 0.798971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold >>>> [ 0.805503] PCI: bus0: Fast back to back transfers disabled >>>> [ 0.811079] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 >>>> [ 0.817034] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] >>>> [ 0.823778] pci 0000:01:00.0: supports D1 D2 >>>> [ 0.827418] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold >>>> [ 0.859773] PCI: bus1: Fast back to back transfers disabled >>>> [ 0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring >>>> [ 0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) >>>> [ 0.880800] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a40000 >>>> [ 0.888416] pgd = 80004000 >>>> [ 0.891112] [f0a40000] *pgd=7e01d811, *pte=01f40243, *ppte=01f40013 >>>> [ 0.897384] Internal error: : 1008 [#1] SMP ARM >>>> [ 0.901903] Modules linked in: >>>> [ 0.904951] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-next-20170508-dirty #106 >>>> [ 0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >>>> [ 0.919302] task: ee908000 task.stack: ee906000 >>>> [ 0.923836] PC is at dw_pcie_read+0x60/0x8c >>>> [ 0.928005] LR is at dw_pcie_rd_conf+0x188/0x1e0 >>>> [ 0.932616] pc : [<804125b8>] lr : [<80413308>] psr: 60000093 >>>> [ 0.932616] sp : ee907af0 ip : ee907b00 fp : ee907afc >>>> [ 0.944096] r10: 00000000 r9 : eea28b10 r8 : 00000000 >>>> [ 0.949317] r7 : 00000000 r6 : 00000000 r5 : f0a40000 r4 : eea28b28 >>>> [ 0.955840] r3 : 00000000 r2 : ee907b6c r1 : 00000004 r0 : f0a40000 >>>> [ 0.962368] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none >>>> [ 0.969589] Control: 10c5387d Table: 1000404a DAC: 00000051 >>>> [ 0.975330] Process swapper/0 (pid: 1, stack limit = 0xee906210) >>>> [ 0.981333] Stack: (0xee907af0 to 0xee908000) >>>> [ 0.985686] 7ae0: ee907b54 ee907b00 80413308 80412564 >>>> [ 0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126ec 01f40000 00000000 >>>> [ 1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000013 00000000 00000002 >>>> [ 1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318c ee907b6c 80412564 >>>> [ 1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000000 ee907bd4 0000ea60 >>>> [ 1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000000 ee907bfc 80400974 >>>> [ 1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000002 00000000 00000001 >>>> [ 1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b4 00000008 eeb1be00 >>>> [ 1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec4 00000008 eeb1be00 >>>> [ 1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f88 eeb1bc00 eeb1be00 >>>> [ 1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c40 803f8d58 803f9008 >>>> [ 1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000000 00000000 00000000 >>>> [ 1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc14 00000001 00000001 >>>> [ 1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab4 eeb1ba00 eeb1bc00 >>>> [ 1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc0 803f8ca0 803f9008 >>>> [ 1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000000 00000000 00000000 >>>> [ 1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba14 00000000 00000000 >>>> [ 1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab4 00000000 eeb1ba00 >>>> [ 1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d40 803f92d4 803f9008 >>>> [ 1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d60 80413d20 803f9274 >>>> [ 1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d70 ee803e00 00000000 >>>> [ 1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00660 ee907ddc ee907da8 >>>> [ 1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e10 ee803e10 80d308fc >>>> [ 1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de0 804e10e8 8041441c >>>> [ 1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b0 ee803e10 80d308fc >>>> [ 1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e20 804df610 804df2b4 >>>> [ 1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e40 804dd74c 804df548 >>>> [ 1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40850 ee907e74 ee907e68 >>>> [ 1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def00 80a88880 ee907e88 >>>> [ 1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea0 804dfe9c 804de958 >>>> [ 1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe20 ee907edc ee907ec8 >>>> [ 1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee0 80101c78 80c2c088 >>>> [ 1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f00 80142b54 80c0066c >>>> [ 1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8644 efffea30 efffea38 >>>> [ 1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a834 80b29414 000000b9 >>>> [ 1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000006 00000000 80c00660 >>>> [ 1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000000 00000000 00000000 >>>> [ 1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d88 00000000 8088ee80 >>>> [ 1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000000 00000000 00000000 >>>> [ 1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >>>> [ 1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff >>>> [ 1.320978] Backtrace: >>>> [ 1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_rd_conf+0x188/0x1e0) >>>> [ 1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bus_read_config_dword+0x78/0xa0) >>>> [ 1.340387] r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60000013 r5:ee907bd4 >>>> [ 1.348210] r4:80413180 >>>> [ 1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f6598>] (pci_bus_read_dev_vendor_id+0x34/0x104) >>>> [ 1.360740] r6:0000ea60 r5:ee907bd4 r4:00000000 >>>> [ 1.365358] [<803f6564>] (pci_bus_read_dev_vendor_id) from [<803f7f08>] (pci_scan_single_device+0x50/0xc4) >>>> [ 1.375011] r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00000000 r5:eeb1be00 >>>> [ 1.382835] r4:00000000 >>>> [ 1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (pci_scan_slot+0x70/0x118) >>>> [ 1.393975] r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008 >>>> [ 1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_child_bus+0x30/0x108) >>>> [ 1.407895] r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008 >>>> [ 1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_scan_bridge+0x2b0/0x554) >>>> [ 1.422078] r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be00 r4:eeb1bc00 >>>> [ 1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >>>> [ 1.438261] r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1bc14 r5:eeb1bc00 >>>> [ 1.446085] r4:eea16000 >>>> [ 1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_scan_bridge+0x1f8/0x554) >>>> [ 1.457138] r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc00 r4:eeb1ba00 >>>> [ 1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >>>> [ 1.473321] r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1ba14 r5:eeb1ba00 >>>> [ 1.481145] r4:eea15c00 >>>> [ 1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_scan_root_bus_msi+0x6c/0xd4) >>>> [ 1.492549] r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba00 r4:00000000 >>>> [ 1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (dw_pcie_host_init+0x250/0x4f8) >>>> [ 1.509249] r5:80d3082c r4:eea28b28 >>>> [ 1.512822] [<80413ad0>] (dw_pcie_host_init) from [<8041479c>] (imx6_pcie_probe+0x38c/0x540) >>>> [ 1.521259] r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803e10 r5:eea28b10 >>>> [ 1.529083] r4:00000000 >>>> [ 1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platform_drv_probe+0x44/0x7c) >>>> [ 1.539963] r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d308fc r4:ee803e10 >>>> [ 1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (really_probe+0x1f0/0x294) >>>> [ 1.555967] r5:ee803e10 r4:80dc0d30 >>>> [ 1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_attach+0xd4/0xd8) >>>> [ 1.567367] r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308fc r4:ee803e10 >>>> [ 1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_for_each_dev+0x7c/0xb0) >>>> [ 1.583286] r7:00000000 r6:804df53c r5:80d308fc r4:00000000 >>>> [ 1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driver_attach+0x28/0x30) >>>> [ 1.596945] r6:80d40850 r5:ee01a380 r4:80d308fc >>>> [ 1.601560] [<804deef4>] (driver_attach) from [<804dea5c>] (bus_add_driver+0x110/0x220) >>>> [ 1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_register+0x88/0x104) >>>> [ 1.617652] r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc >>>> [ 1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platform_driver_register+0x40/0x54) >>>> [ 1.632353] r5:ffffe000 r4:80c2c07c >>>> [ 1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0bc>] (imx6_pcie_init+0x40/0x54) >>>> [ 1.644890] [<80c2c07c>] (imx6_pcie_init) from [<80101c78>] (do_one_initcall+0x4c/0x17c) >>>> [ 1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_init_freeable+0x134/0x1f4) >>>> [ 1.661675] r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e94 >>>> [ 1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (kernel_init+0x18/0x124) >>>> [ 1.676641] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:8088ee80 >>>> [ 1.684464] r4:00000000 >>>> [ 1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fork+0x14/0x3c) >>>> [ 1.694558] r5:8088ee80 r4:00000000 >>>> [ 1.698131] Code: ee073f9a e1a00003 e5821000 e89da800 (e5901000) >>>> [ 1.704224] ---[ end trace dc8f87ab88f61701 ]--- >>>> [ 1.708894] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >>>> [ 1.708894] >>>> [ 1.717974] CPU1: stopping >>>> [ 1.720663] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.11.0-next-20170508-dirty #106 >>>> [ 1.729705] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >>>> [ 1.736230] Backtrace: >>>> [ 1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_stack+0x20/0x24) >>>> [ 1.746239] r7:00000001 r6:60000193 r5:00000000 r4:80d2f200 >>>> [ 1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x94/0xb0) >>>> [ 1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x28c/0x334) >>>> [ 1.766510] r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310 >>>> [ 1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_irq+0xa8/0xc4) >>>> [ 1.779735] r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:000003ff r5:000003eb >>>> [ 1.787561] r4:f400010c r3:00000000 >>>> [ 1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_svc+0x6c/0x90) >>>> [ 1.798609] Exception stack(0xee92df38 to 0xee92df80) >>>> [ 1.803657] df20: 0000062c 6e329000 >>>> [ 1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03cac 80d16f9f 80a5d91c >>>> [ 1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a04 60000013 ffffffff >>>> [ 1.828194] r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffffffff r5:60000013 >>>> [ 1.836019] r4:80108a04 >>>> [ 1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_idle_call+0x30/0x3c) >>>> [ 1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idle+0xc4/0x14c) >>>> [ 1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entry+0x28/0x2c) >>>> [ 1.861864] r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000001 r4:00000087 >>>> [ 1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secondary_start_kernel+0x148/0x174) >>>> [ 1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0x1010196c) >>>> [ 1.886046] r5:00000051 r4:7e92006a >>>> [ 1.889619] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >>>> [ 1.889619] >>>> >>> >>> Could you please check if you specific SoC driver is implementing the >>> dw_pcie_ops structure? You can see an example here: >>> >>> https://urldefense.proofpoint.com/v2/url?u=https-3A__git.kernel.org_pub_scm_linux_kernel_git_helgaas_pci.git_tree_drivers_pci_dwc_pcie-2Ddesignware-2Dplat.c-3Fh-3Dnext-23n89&d=DwID-g&c=DPL6_X_6JkXFx7AXWqB0tg&r=s2fO0hii0OGNOv9qQy_HRXy-xAJUD1NNoEcc3io_kx0&m=W1o6gVTGVGc3xn2ju9_MIEp82TgHJFpOKbls4-qJyB4&s=e_EFnyFiqJ8foA366Hd97K4NpVoswMHhAxvsJ0bagVw&e= >>> >>> The hang in the boot could be achieved by not declaring this op's structure. >> >> just checked pci-imx6.c has both dw_pcie_ops and dw_pcie_host_ops. > > Ok, so from the dmesg we can see that it crashes when trying to read a register. > Do you think that maybe the size parameter might not be well defined for this > driver? > Not sure. I could see a couple of devices detected, so there is nothing I could suspect on patch mentioned in $subject. Thanks Kishon
Hi, On Monday 08 May 2017 09:09 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Monday 08 May 2017 08:32 PM, Peter Senna Tschudin wrote: >> Hello Kishon, >> >> Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest >> linux-next and I could bisect until: >> >> commit 442ec4c04d1235f8c664a74004dae54a7a574d18 >> Author: Kishon Vijay Abraham I <kishon@ti.com> >> Date: Wed Feb 15 18:48:14 2017 +0530 >> >> PCI: dwc: all: Split struct pcie_port into host-only and core structures >> >> Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots >> fine with 4.10, and also boots if we disable pcie with: >> >> diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts >> index 2c1e98e..e655fd7 100644 >> --- a/arch/arm/boot/dts/imx6q-b850v3.dts >> +++ b/arch/arm/boot/dts/imx6q-b850v3.dts >> @@ -212,3 +212,8 @@ >> }; >> }; >> }; >> + >> +&pcie { >> + status = "disabled"; >> +}; >> >> But otherwise our system freezes while initializing PCI, see dmesg with >> some more information. Is this something specific of our system/dt or >> can this be a bug that is affecting others as well? > > Haven't seen this in dra7xx. I've tried with few ethernet PCIe cards and also a > PCIe-to-PCI bridge. Can you enable PCI_DEBUG and share the logs? Thanks Kishon >> >> Kind Regards, >> >> Peter >> >> Starting kernel ... >> >> Uncompressing Linux... done, booting the kernel. > . > . > <snip> > . > . >> [ 0.501998] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: >> [ 0.507275] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 >> [ 0.513202] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 >> [ 0.739697] imx6q-pcie 1ffc000.pcie: link up >> [ 0.741115] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled >> [ 0.746421] imx6q-pcie 1ffc000.pcie: Link up, Gen1 >> [ 0.751343] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 >> [ 0.757475] pci_bus 0000:00: root bus resource [bus 00-ff] >> [ 0.762974] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] >> [ 0.769128] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] >> [ 0.776052] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 >> [ 0.782044] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] >> [ 0.788279] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] >> [ 0.795041] pci 0000:00:00.0: supports D1 >> [ 0.798971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold >> [ 0.805503] PCI: bus0: Fast back to back transfers disabled >> [ 0.811079] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 > > I could see a couple of device detected [16c3:abcd and [10b5:8605]. What other > devices are connected? >> [ 0.817034] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] >> [ 0.823778] pci 0000:01:00.0: supports D1 D2 >> [ 0.827418] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold >> [ 0.859773] PCI: bus1: Fast back to back transfers disabled >> [ 0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring >> [ 0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) > > Do you get the above message in the working scenario? >> [ 0.880800] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a40000 >> [ 0.888416] pgd = 80004000 >> [ 0.891112] [f0a40000] *pgd=7e01d811, *pte=01f40243, *ppte=01f40013 >> [ 0.897384] Internal error: : 1008 [#1] SMP ARM >> [ 0.901903] Modules linked in: >> [ 0.904951] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-next-20170508-dirty #106 >> [ 0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >> [ 0.919302] task: ee908000 task.stack: ee906000 >> [ 0.923836] PC is at dw_pcie_read+0x60/0x8c >> [ 0.928005] LR is at dw_pcie_rd_conf+0x188/0x1e0 >> [ 0.932616] pc : [<804125b8>] lr : [<80413308>] psr: 60000093 >> [ 0.932616] sp : ee907af0 ip : ee907b00 fp : ee907afc >> [ 0.944096] r10: 00000000 r9 : eea28b10 r8 : 00000000 >> [ 0.949317] r7 : 00000000 r6 : 00000000 r5 : f0a40000 r4 : eea28b28 >> [ 0.955840] r3 : 00000000 r2 : ee907b6c r1 : 00000004 r0 : f0a40000 >> [ 0.962368] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none >> [ 0.969589] Control: 10c5387d Table: 1000404a DAC: 00000051 >> [ 0.975330] Process swapper/0 (pid: 1, stack limit = 0xee906210) >> [ 0.981333] Stack: (0xee907af0 to 0xee908000) >> [ 0.985686] 7ae0: ee907b54 ee907b00 80413308 80412564 >> [ 0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126ec 01f40000 00000000 >> [ 1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000013 00000000 00000002 >> [ 1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318c ee907b6c 80412564 >> [ 1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000000 ee907bd4 0000ea60 >> [ 1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000000 ee907bfc 80400974 >> [ 1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000002 00000000 00000001 >> [ 1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b4 00000008 eeb1be00 >> [ 1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec4 00000008 eeb1be00 >> [ 1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f88 eeb1bc00 eeb1be00 >> [ 1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c40 803f8d58 803f9008 >> [ 1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000000 00000000 00000000 >> [ 1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc14 00000001 00000001 >> [ 1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab4 eeb1ba00 eeb1bc00 >> [ 1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc0 803f8ca0 803f9008 >> [ 1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000000 00000000 00000000 >> [ 1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba14 00000000 00000000 >> [ 1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab4 00000000 eeb1ba00 >> [ 1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d40 803f92d4 803f9008 >> [ 1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d60 80413d20 803f9274 >> [ 1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d70 ee803e00 00000000 >> [ 1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00660 ee907ddc ee907da8 >> [ 1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e10 ee803e10 80d308fc >> [ 1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de0 804e10e8 8041441c >> [ 1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b0 ee803e10 80d308fc >> [ 1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e20 804df610 804df2b4 >> [ 1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e40 804dd74c 804df548 >> [ 1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40850 ee907e74 ee907e68 >> [ 1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def00 80a88880 ee907e88 >> [ 1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea0 804dfe9c 804de958 >> [ 1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe20 ee907edc ee907ec8 >> [ 1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee0 80101c78 80c2c088 >> [ 1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f00 80142b54 80c0066c >> [ 1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8644 efffea30 efffea38 >> [ 1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a834 80b29414 000000b9 >> [ 1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000006 00000000 80c00660 >> [ 1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000000 00000000 00000000 >> [ 1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d88 00000000 8088ee80 >> [ 1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000000 00000000 00000000 >> [ 1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >> [ 1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff >> [ 1.320978] Backtrace: >> [ 1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_rd_conf+0x188/0x1e0) >> [ 1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bus_read_config_dword+0x78/0xa0) >> [ 1.340387] r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60000013 r5:ee907bd4 >> [ 1.348210] r4:80413180 >> [ 1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f6598>] (pci_bus_read_dev_vendor_id+0x34/0x104) >> [ 1.360740] r6:0000ea60 r5:ee907bd4 r4:00000000 >> [ 1.365358] [<803f6564>] (pci_bus_read_dev_vendor_id) from [<803f7f08>] (pci_scan_single_device+0x50/0xc4) >> [ 1.375011] r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00000000 r5:eeb1be00 >> [ 1.382835] r4:00000000 >> [ 1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (pci_scan_slot+0x70/0x118) >> [ 1.393975] r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008 >> [ 1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_child_bus+0x30/0x108) >> [ 1.407895] r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008 >> [ 1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_scan_bridge+0x2b0/0x554) >> [ 1.422078] r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be00 r4:eeb1bc00 >> [ 1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >> [ 1.438261] r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1bc14 r5:eeb1bc00 >> [ 1.446085] r4:eea16000 >> [ 1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_scan_bridge+0x1f8/0x554) >> [ 1.457138] r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc00 r4:eeb1ba00 >> [ 1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) >> [ 1.473321] r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1ba14 r5:eeb1ba00 >> [ 1.481145] r4:eea15c00 >> [ 1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_scan_root_bus_msi+0x6c/0xd4) >> [ 1.492549] r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba00 r4:00000000 >> [ 1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (dw_pcie_host_init+0x250/0x4f8) >> [ 1.509249] r5:80d3082c r4:eea28b28 >> [ 1.512822] [<80413ad0>] (dw_pcie_host_init) from [<8041479c>] (imx6_pcie_probe+0x38c/0x540) >> [ 1.521259] r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803e10 r5:eea28b10 >> [ 1.529083] r4:00000000 >> [ 1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platform_drv_probe+0x44/0x7c) >> [ 1.539963] r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d308fc r4:ee803e10 >> [ 1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (really_probe+0x1f0/0x294) >> [ 1.555967] r5:ee803e10 r4:80dc0d30 >> [ 1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_attach+0xd4/0xd8) >> [ 1.567367] r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308fc r4:ee803e10 >> [ 1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_for_each_dev+0x7c/0xb0) >> [ 1.583286] r7:00000000 r6:804df53c r5:80d308fc r4:00000000 >> [ 1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driver_attach+0x28/0x30) >> [ 1.596945] r6:80d40850 r5:ee01a380 r4:80d308fc >> [ 1.601560] [<804deef4>] (driver_attach) from [<804dea5c>] (bus_add_driver+0x110/0x220) >> [ 1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_register+0x88/0x104) >> [ 1.617652] r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc >> [ 1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platform_driver_register+0x40/0x54) >> [ 1.632353] r5:ffffe000 r4:80c2c07c >> [ 1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0bc>] (imx6_pcie_init+0x40/0x54) >> [ 1.644890] [<80c2c07c>] (imx6_pcie_init) from [<80101c78>] (do_one_initcall+0x4c/0x17c) >> [ 1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_init_freeable+0x134/0x1f4) >> [ 1.661675] r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e94 >> [ 1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (kernel_init+0x18/0x124) >> [ 1.676641] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:8088ee80 >> [ 1.684464] r4:00000000 >> [ 1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fork+0x14/0x3c) >> [ 1.694558] r5:8088ee80 r4:00000000 >> [ 1.698131] Code: ee073f9a e1a00003 e5821000 e89da800 (e5901000) >> [ 1.704224] ---[ end trace dc8f87ab88f61701 ]--- >> [ 1.708894] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >> [ 1.708894] >> [ 1.717974] CPU1: stopping >> [ 1.720663] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.11.0-next-20170508-dirty #106 >> [ 1.729705] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) >> [ 1.736230] Backtrace: >> [ 1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_stack+0x20/0x24) >> [ 1.746239] r7:00000001 r6:60000193 r5:00000000 r4:80d2f200 >> [ 1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x94/0xb0) >> [ 1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x28c/0x334) >> [ 1.766510] r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310 >> [ 1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_irq+0xa8/0xc4) >> [ 1.779735] r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:000003ff r5:000003eb >> [ 1.787561] r4:f400010c r3:00000000 >> [ 1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_svc+0x6c/0x90) >> [ 1.798609] Exception stack(0xee92df38 to 0xee92df80) >> [ 1.803657] df20: 0000062c 6e329000 >> [ 1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03cac 80d16f9f 80a5d91c >> [ 1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a04 60000013 ffffffff >> [ 1.828194] r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffffffff r5:60000013 >> [ 1.836019] r4:80108a04 >> [ 1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_idle_call+0x30/0x3c) >> [ 1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idle+0xc4/0x14c) >> [ 1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entry+0x28/0x2c) >> [ 1.861864] r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000001 r4:00000087 >> [ 1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secondary_start_kernel+0x148/0x174) >> [ 1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0x1010196c) >> [ 1.886046] r5:00000051 r4:7e92006a >> [ 1.889619] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b >> [ 1.889619] >> > > -Kishon >
On Mon, May 08, 2017 at 09:09:32PM +0530, Kishon Vijay Abraham I wrote: . . <snip> . . > > [ 0.501998] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: > > [ 0.507275] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 > > [ 0.513202] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 > > [ 0.739697] imx6q-pcie 1ffc000.pcie: link up > > [ 0.741115] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled > > [ 0.746421] imx6q-pcie 1ffc000.pcie: Link up, Gen1 > > [ 0.751343] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 > > [ 0.757475] pci_bus 0000:00: root bus resource [bus 00-ff] > > [ 0.762974] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] > > [ 0.769128] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] > > [ 0.776052] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 > > [ 0.782044] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] > > [ 0.788279] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] > > [ 0.795041] pci 0000:00:00.0: supports D1 > > [ 0.798971] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold > > [ 0.805503] PCI: bus0: Fast back to back transfers disabled > > [ 0.811079] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 > > I could see a couple of device detected [16c3:abcd and [10b5:8605]. What other > devices are connected? $ lspci -v 00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 301 Memory at 01000000 (32-bit, non-prefetchable) [size=1M] Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 00001000-00002fff Memory behind bridge: 01100000-014fffff Prefetchable memory behind bridge: 01500000-016fffff [virtual] Expansion ROM at 01700000 [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 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev ab) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 302 Memory at 01400000 (32-bit, non-prefetchable) [size=16K] Bus: primary=01, secondary=02, subordinate=05, sec-latency=0 I/O behind bridge: 00001000-00002fff Memory behind bridge: 01100000-013fffff Prefetchable memory behind bridge: 0000000001500000-00000000016fffff Capabilities: [40] Power Management version 3 Capabilities: [48] MSI: Enable+ Count=1/4 Maskable+ 64bit+ Capabilities: [68] Express Upstream Port, MSI 00 Capabilities: [a4] Subsystem: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch Capabilities: [100] Device Serial Number ab-86-02-10-b5-df-0e-00 Capabilities: [fb4] Advanced Error Reporting Capabilities: [138] Power Budgeting <?> Capabilities: [148] Virtual Channel Capabilities: [950] Vendor Specific Information: ID=0001 Rev=0 Len=028 <?> Kernel driver in use: pcieport 02:01.0 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev ab) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 303 Bus: primary=02, secondary=03, subordinate=03, sec-latency=0 I/O behind bridge: 00001000-00001fff Memory behind bridge: 01100000-012fffff Prefetchable memory behind bridge: 0000000001500000-00000000016fffff Capabilities: [40] Power Management version 3 Capabilities: [48] MSI: Enable+ Count=1/4 Maskable+ 64bit+ Capabilities: [68] Express Downstream Port (Slot+), MSI 00 Capabilities: [a4] Subsystem: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch Capabilities: [100] Device Serial Number ab-86-02-10-b5-df-0e-00 Capabilities: [fb4] Advanced Error Reporting Capabilities: [148] Virtual Channel Capabilities: [520] Access Control Services Capabilities: [950] Vendor Specific Information: ID=0001 Rev=0 Len=028 <?> Kernel driver in use: pcieport 02:02.0 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev ab) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 304 Bus: primary=02, secondary=04, subordinate=04, sec-latency=0 I/O behind bridge: 00002000-00002fff Memory behind bridge: 01300000-013fffff Capabilities: [40] Power Management version 3 Capabilities: [48] MSI: Enable+ Count=1/4 Maskable+ 64bit+ Capabilities: [68] Express Downstream Port (Slot+), MSI 00 Capabilities: [a4] Subsystem: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch Capabilities: [100] Device Serial Number ab-86-02-10-b5-df-0e-00 Capabilities: [fb4] Advanced Error Reporting Capabilities: [148] Virtual Channel Capabilities: [520] Access Control Services Capabilities: [950] Vendor Specific Information: ID=0001 Rev=0 Len=028 <?> Kernel driver in use: pcieport 02:03.0 PCI bridge: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch (rev ab) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 305 Bus: primary=02, secondary=05, subordinate=05, sec-latency=0 Capabilities: [40] Power Management version 3 Capabilities: [48] MSI: Enable+ Count=1/4 Maskable+ 64bit+ Capabilities: [68] Express Downstream Port (Slot+), MSI 00 Capabilities: [a4] Subsystem: PLX Technology, Inc. PEX 8605 PCI Express 4-port Gen2 Switch Capabilities: [100] Device Serial Number ab-86-02-10-b5-df-0e-00 Capabilities: [fb4] Advanced Error Reporting Capabilities: [148] Virtual Channel Capabilities: [520] Access Control Services Capabilities: [950] Vendor Specific Information: ID=0001 Rev=0 Len=028 <?> Kernel driver in use: pcieport 03:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) Flags: bus master, fast devsel, latency 0, IRQ 306 Memory at 01100000 (32-bit, non-prefetchable) [size=512K] I/O ports at 1000 [disabled] [size=32] Memory at 01180000 (32-bit, non-prefetchable) [size=16K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable+ Count=1/1 Maskable+ 64bit+ Capabilities: [70] MSI-X: Enable- Count=5 Masked- Capabilities: [a0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number 00-a0-c9-ff-ff-00-00-00 Capabilities: [1a0] Transaction Processing Hints Kernel driver in use: igb 04:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03) Flags: bus master, fast devsel, latency 0, IRQ 307 Memory at 01300000 (32-bit, non-prefetchable) [size=512K] I/O ports at 2000 [disabled] [size=32] Memory at 01380000 (32-bit, non-prefetchable) [size=16K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable+ Count=1/1 Maskable+ 64bit+ Capabilities: [70] MSI-X: Enable- Count=5 Masked- Capabilities: [a0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number 00-40-97-ff-ff-29-04-44 Capabilities: [1a0] Transaction Processing Hints Kernel driver in use: igb > > [ 0.817034] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] > > [ 0.823778] pci 0000:01:00.0: supports D1 D2 > > [ 0.827418] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold > > [ 0.859773] PCI: bus1: Fast back to back transfers disabled > > [ 0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring > > [ 0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) > > Do you get the above message in the working scenario? Yes, same message in the working scenario. Sending full log of working scenario compiling with head at 40f67fb, which is the last good commit according to bisect. dmesg of working scenario compiled with head at 40f67fb: Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.10.0-rc1-00012-g40f67fb-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (7 [ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: General Electric B850v3 [ 0.000000] earlycon: ec_imx21 at MMIO 0x021ec000 (options '') [ 0.000000] bootconsole [ec_imx21] enabled [ 0.000000] cma: Reserved 128 MiB at 0x88000000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 524288 [ 0.000000] free_area_init_node: node 0, pgdat 80d6ea00, node_mem_map eeff7000 [ 0.000000] Normal zone: 3584 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 458752 pages, LIFO batch:31 [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 [ 0.000000] percpu: Embedded 15 pages/cpu @eefb7000 s28876 r8192 d24372 u61440 [ 0.000000] pcpu-alloc: s28876 r8192 d24372 u61440 alloc=15*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 520704 [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 ro rootwait cma=128M video=DP-1:1024x768@60 video=HDMI-A-1:1024x768@60 earlycon logl0 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Memory: 1934728K/2097152K available (8192K kernel code, 475K rwdata, 2160K rodata, 1024K init, 302K bss, 31352K reserved, 131) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0x80000000 - 0xf0000000 (1792 MB) [ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) [ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB) [ 0.000000] .text : 0x80008000 - 0x80900000 (9184 kB) [ 0.000000] .init : 0x80c00000 - 0x80d00000 (1024 kB) [ 0.000000] .data : 0x80d00000 - 0x80d76e24 ( 476 kB) [ 0.000000] .bss : 0x80d78000 - 0x80dc3b28 ( 303 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] L2C-310 errata 752271 769419 enabled [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001 [ 0.000000] Switching to timer-based delay loop, resolution 333ns [ 0.000009] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns [ 0.008182] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns [ 0.019522] Console: colour dummy device 80x30 [ 0.022280] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000) [ 0.032462] pid_max: default: 32768 minimum: 301 [ 0.037155] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.043759] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.051553] CPU: Testing write buffer coherency: ok [ 0.055765] ftrace: allocating 26241 entries in 77 pages [ 0.109701] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.112820] Setting up static identity map for 0x10100000 - 0x1010004c [ 0.119822] smp: Bringing up secondary CPUs ... [ 0.124245] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.124335] smp: Brought up 1 node, 2 CPUs [ 0.133305] SMP: Total of 2 processors activated (12.00 BogoMIPS). [ 0.139491] CPU: All CPU(s) started in SVC mode. [ 0.145077] devtmpfs: initialized [ 0.158299] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.163258] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.178699] pinctrl core: initialized pinctrl subsystem [ 0.182057] NET: Registered protocol family 16 [ 0.187232] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.193622] CPU identified as i.MX6Q, silicon rev 1.5 [ 0.213537] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.218727] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.225735] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver [ 0.251527] mxs-dma 110000.dma-apbh: initialized [ 0.256010] vgaarb: loaded [ 0.256456] SCSI subsystem initialized [ 0.259917] libata version 3.00 loaded. [ 0.263807] usbcore: registered new interface driver usbfs [ 0.269118] usbcore: registered new interface driver hub [ 0.274418] usbcore: registered new device driver usb [ 0.280477] i2c i2c-0: IMX I2C adapter registered [ 0.284100] i2c i2c-0: can't use DMA, using PIO instead. [ 0.289821] i2c i2c-1: IMX I2C adapter registered [ 0.294101] i2c i2c-1: can't use DMA, using PIO instead. [ 0.299904] i2c i2c-2: IMX I2C adapter registered [ 0.304107] i2c i2c-2: can't use DMA, using PIO instead. [ 0.309531] pps_core: LinuxPPS API ver. 1 registered [ 0.314376] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.323516] PTP clock support registered [ 0.327704] Advanced Linux Sound Architecture Driver Initialized. [ 0.335376] clocksource: Switched to clocksource mxc_timer1 [ 0.378644] NET: Registered protocol family 2 [ 0.380733] TCP established hash table entries: 16384 (order: 4, 65536 bytes) [ 0.387454] TCP bind hash table entries: 16384 (order: 5, 131072 bytes) [ 0.394126] TCP: Hash tables configured (established 16384 bind 16384) [ 0.400537] UDP hash table entries: 1024 (order: 3, 32768 bytes) [ 0.406518] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) [ 0.413060] NET: Registered protocol family 1 [ 0.417269] PCI: CLS 0 bytes, default 64 [ 0.421839] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available [ 0.430197] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.435393] audit: initializing netlink subsys (disabled) [ 0.440986] audit: type=2000 audit(0.400:1): initialized [ 0.446121] workingset: timestamp_bits=30 max_order=19 bucket_order=0 [ 0.463381] bounce: pool size: 64 pages [ 0.464363] io scheduler noop registered [ 0.468301] io scheduler deadline registered [ 0.472676] io scheduler cfq registered (default) [ 0.477737] imx-weim 21b8000.weim: Invalid 'ranges' configuration [ 0.483352] imx-weim: probe of 21b8000.weim failed with error -22 [ 0.490619] OF: PCI: host bridge /soc/pcie@0x01000000 ranges: [ 0.495163] OF: PCI: No bus range found for /soc/pcie@0x01000000, using [bus 00-ff] [ 0.503027] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 [ 0.508927] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 [ 0.735447] imx6q-pcie 1ffc000.pcie: link up [ 0.736863] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled [ 0.742169] imx6q-pcie 1ffc000.pcie: link up [ 0.746459] imx6q-pcie 1ffc000.pcie: Link up, Gen1 [ 0.751360] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00 [ 0.757506] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.762966] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 0.769164] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff] [ 0.776055] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400 [ 0.782036] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff] [ 0.788308] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref] [ 0.795043] pci 0000:00:00.0: supports D1 [ 0.799000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold [ 0.805539] PCI: bus0: Fast back to back transfers disabled [ 0.811085] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400 [ 0.817010] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff] [ 0.823755] pci 0000:01:00.0: supports D1 D2 [ 0.827453] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.855481] PCI: bus1: Fast back to back transfers disabled [ 0.858210] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.866522] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01]) [ 0.876603] pci 0000:02:01.0: [10b5:8605] type 01 class 0x060400 [ 0.883143] pci 0000:02:01.0: supports D1 D2 [ 0.886755] pci 0000:02:01.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.893703] pci 0000:02:02.0: [10b5:8605] type 01 class 0x060400 [ 0.900037] pci 0000:02:02.0: supports D1 D2 [ 0.903613] pci 0000:02:02.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.910593] pci 0000:02:03.0: [10b5:8605] type 01 class 0x060400 [ 0.916909] pci 0000:02:03.0: supports D1 D2 [ 0.920491] pci 0000:02:03.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.927774] PCI: bus2: Fast back to back transfers disabled [ 0.932681] pci 0000:02:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.940737] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.948737] pci 0000:02:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.957113] pci 0000:03:00.0: [8086:1533] type 00 class 0x020000 [ 0.962785] pci 0000:03:00.0: reg 0x10: [mem 0x00000000-0x0007ffff] [ 0.969062] pci 0000:03:00.0: reg 0x18: [io 0x0000-0x001f] [ 0.974565] pci 0000:03:00.0: reg 0x1c: [mem 0x00000000-0x00003fff] [ 0.981383] pci 0000:03:00.0: PME# supported from D0 D3hot D3cold [ 0.987402] PCI: bus3: Fast back to back transfers disabled [ 0.992446] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03 [ 0.999085] pci_bus 0000:03: [bus 03] partially hidden behind bridge 0000:01 [bus 01] [ 1.007287] pci 0000:04:00.0: [8086:1533] type 00 class 0x020000 [ 1.012979] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x0007ffff] [ 1.019261] pci 0000:04:00.0: reg 0x18: [io 0x0000-0x001f] [ 1.024764] pci 0000:04:00.0: reg 0x1c: [mem 0x00000000-0x00003fff] [ 1.031574] pci 0000:04:00.0: PME# supported from D0 D3hot D3cold [ 1.037601] PCI: bus4: Fast back to back transfers disabled [ 1.042643] pci_bus 0000:04: busn_res: [bus 04-ff] end is updated to 04 [ 1.049285] pci_bus 0000:04: [bus 04] partially hidden behind bridge 0000:01 [bus 01] [ 1.057388] PCI: bus5: Fast back to back transfers enabled [ 1.062567] pci_bus 0000:05: busn_res: [bus 05-ff] end is updated to 05 [ 1.069206] pci_bus 0000:05: [bus 05] partially hidden behind bridge 0000:01 [bus 01] [ 1.077032] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 05 [ 1.083621] pci_bus 0000:02: busn_res: can not insert [bus 02-05] under [bus 01] (conflicts with (null) [bus 01]) [ 1.093910] pci_bus 0000:02: [bus 02-05] partially hidden behind bridge 0000:01 [bus 01] [ 1.102000] pci 0000:00:00.0: bridge has subordinate 01 but max busn 05 [ 1.109331] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff] [ 1.115409] pci 0000:00:00.0: BAR 8: assigned [mem 0x01100000-0x014fffff] [ 1.122163] pci 0000:00:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff pref] [ 1.129401] pci 0000:00:00.0: BAR 6: assigned [mem 0x01700000-0x0170ffff pref] [ 1.136618] pci 0000:00:00.0: BAR 7: assigned [io 0x1000-0x2fff] [ 1.142701] pci 0000:01:00.0: BAR 8: assigned [mem 0x01100000-0x013fffff] [ 1.149496] pci 0000:01:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref] [ 1.157238] pci 0000:01:00.0: BAR 0: assigned [mem 0x01400000-0x01403fff] [ 1.164024] pci 0000:01:00.0: BAR 7: assigned [io 0x1000-0x2fff] [ 1.170118] pci 0000:02:01.0: BAR 8: assigned [mem 0x01100000-0x012fffff] [ 1.176898] pci 0000:02:01.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref] [ 1.184626] pci 0000:02:02.0: BAR 8: assigned [mem 0x01300000-0x013fffff] [ 1.191426] pci 0000:02:01.0: BAR 7: assigned [io 0x1000-0x1fff] [ 1.197515] pci 0000:02:02.0: BAR 7: assigned [io 0x2000-0x2fff] [ 1.203596] pci 0000:03:00.0: BAR 0: assigned [mem 0x01100000-0x0117ffff] [ 1.210415] pci 0000:03:00.0: BAR 3: assigned [mem 0x01180000-0x01183fff] [ 1.217198] pci 0000:03:00.0: BAR 2: assigned [io 0x1000-0x101f] [ 1.223272] pci 0000:02:01.0: PCI bridge to [bus 03] [ 1.228237] pci 0000:02:01.0: bridge window [io 0x1000-0x1fff] [ 1.234326] pci 0000:02:01.0: bridge window [mem 0x01100000-0x012fffff] [ 1.241119] pci 0000:02:01.0: bridge window [mem 0x01500000-0x016fffff 64bit pref] [ 1.248887] pci 0000:04:00.0: BAR 0: assigned [mem 0x01300000-0x0137ffff] [ 1.255653] pci 0000:04:00.0: BAR 3: assigned [mem 0x01380000-0x01383fff] [ 1.262422] pci 0000:04:00.0: BAR 2: assigned [io 0x2000-0x201f] [ 1.268528] pci 0000:02:02.0: PCI bridge to [bus 04] [ 1.273459] pci 0000:02:02.0: bridge window [io 0x2000-0x2fff] [ 1.279581] pci 0000:02:02.0: bridge window [mem 0x01300000-0x013fffff] [ 1.286388] pci 0000:02:03.0: PCI bridge to [bus 05] [ 1.291356] pci 0000:01:00.0: PCI bridge to [bus 02-05] [ 1.296528] pci 0000:01:00.0: bridge window [io 0x1000-0x2fff] [ 1.302619] pci 0000:01:00.0: bridge window [mem 0x01100000-0x013fffff] [ 1.309413] pci 0000:01:00.0: bridge window [mem 0x01500000-0x016fffff 64bit pref] [ 1.317170] pci 0000:00:00.0: PCI bridge to [bus 01] [ 1.322085] pci 0000:00:00.0: bridge window [io 0x1000-0x2fff] [ 1.328190] pci 0000:00:00.0: bridge window [mem 0x01100000-0x014fffff] [ 1.334962] pci 0000:00:00.0: bridge window [mem 0x01500000-0x016fffff pref] [ 1.342527] pcieport 0000:00:00.0: AER enabled with IRQ 301 [ 1.347920] pcieport 0000:01:00.0: enabling device (0140 -> 0143) [ 1.354637] pcieport 0000:02:01.0: enabling device (0140 -> 0143) [ 1.360799] pcieport 0000:02:02.0: enabling device (0140 -> 0143) ...
Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > Hello Kishon, > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > linux-next and I could bisect until: > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > Author: Kishon Vijay Abraham I <kishon@ti.com> > Date: Wed Feb 15 18:48:14 2017 +0530 > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > fine with 4.10, and also boots if we disable pcie with: Are you sure about this bisect? It seems more likely that the secondary bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space non-posting patches landed in next, so the root cause of this might just be the driver hooking the wrong fault code now. Async and synchronous aborts are different fault codes on ARM. Can you see of removing the "16 +" in hook_fault_code() in drivers/pci/dwc/pci-imx6.c fixes this issue? Regards, Lucas
On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > Hello Kishon, > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > linux-next and I could bisect until: > > > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > Date: Wed Feb 15 18:48:14 2017 +0530 > > > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > > fine with 4.10, and also boots if we disable pcie with: > > Are you sure about this bisect? It seems more likely that the secondary > bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space > non-posting patches landed in next, so the root cause of this might just > be the driver hooking the wrong fault code now. > > Async and synchronous aborts are different fault codes on ARM. Can you > see of removing the "16 +" in hook_fault_code() in > drivers/pci/dwc/pci-imx6.c fixes this issue? changing it to: hook_fault_code(6, imx6q_pcie_abort_handler, SIGBUS, 0, "imprecise external abort"); made no difference, problem persists... > > Regards, > Lucas >
Am Montag, den 08.05.2017, 18:44 +0200 schrieb Peter Senna Tschudin: > On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > > Hello Kishon, > > > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > > linux-next and I could bisect until: > > > > > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > > Date: Wed Feb 15 18:48:14 2017 +0530 > > > > > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > > > > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > > > fine with 4.10, and also boots if we disable pcie with: > > > > Are you sure about this bisect? It seems more likely that the secondary > > bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space > > non-posting patches landed in next, so the root cause of this might just > > be the driver hooking the wrong fault code now. > > > > Async and synchronous aborts are different fault codes on ARM. Can you > > see of removing the "16 +" in hook_fault_code() in > > drivers/pci/dwc/pci-imx6.c fixes this issue? > > changing it to: > > hook_fault_code(6, imx6q_pcie_abort_handler, SIGBUS, 0, > "imprecise external abort"); > > made no difference, problem persists... Can you test if 8 or 10 works? Regards, Lucas
On Mon, May 08, 2017 at 06:48:48PM +0200, Lucas Stach wrote: > Am Montag, den 08.05.2017, 18:44 +0200 schrieb Peter Senna Tschudin: > > On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > > > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > > > Hello Kishon, > > > > > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > > > linux-next and I could bisect until: > > > > > > > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > > > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > > > Date: Wed Feb 15 18:48:14 2017 +0530 > > > > > > > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > > > > > > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > > > > fine with 4.10, and also boots if we disable pcie with: > > > > > > Are you sure about this bisect? It seems more likely that the secondary > > > bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space > > > non-posting patches landed in next, so the root cause of this might just > > > be the driver hooking the wrong fault code now. > > > > > > Async and synchronous aborts are different fault codes on ARM. Can you > > > see of removing the "16 +" in hook_fault_code() in > > > drivers/pci/dwc/pci-imx6.c fixes this issue? > > > > changing it to: > > > > hook_fault_code(6, imx6q_pcie_abort_handler, SIGBUS, 0, > > "imprecise external abort"); > > > > made no difference, problem persists... > > Can you test if 8 or 10 works? Also fails with 8 and with 10... > > Regards, > Lucas > >
On Mon, May 08, 2017 at 09:20:36PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Monday 08 May 2017 09:09 PM, Kishon Vijay Abraham I wrote: > > Hi, > > > > On Monday 08 May 2017 08:32 PM, Peter Senna Tschudin wrote: > >> Hello Kishon, > >> > >> Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > >> linux-next and I could bisect until: > >> > >> commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > >> Author: Kishon Vijay Abraham I <kishon@ti.com> > >> Date: Wed Feb 15 18:48:14 2017 +0530 > >> > >> PCI: dwc: all: Split struct pcie_port into host-only and core structures > >> > >> Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > >> fine with 4.10, and also boots if we disable pcie with: > >> > >> diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts > >> index 2c1e98e..e655fd7 100644 > >> --- a/arch/arm/boot/dts/imx6q-b850v3.dts > >> +++ b/arch/arm/boot/dts/imx6q-b850v3.dts > >> @@ -212,3 +212,8 @@ > >> }; > >> }; > >> }; > >> + > >> +&pcie { > >> + status = "disabled"; > >> +}; > >> > >> But otherwise our system freezes while initializing PCI, see dmesg with > >> some more information. Is this something specific of our system/dt or > >> can this be a bug that is affecting others as well? > > > > Haven't seen this in dra7xx. I've tried with few ethernet PCIe cards and also a > > PCIe-to-PCI bridge. > > Can you enable PCI_DEBUG and share the logs? Enabling CONFIG_PCI_DEBUG did not change anything on the output on the scenario that does not work, suggestions? And unfortuantely the parameter pci=earlydump seems to be x86 only...
On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > Hello Kishon, > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > linux-next and I could bisect until: > > > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > Date: Wed Feb 15 18:48:14 2017 +0530 > > > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > > fine with 4.10, and also boots if we disable pcie with: > > Are you sure about this bisect? It seems more likely that the secondary > bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space > non-posting patches landed in next, so the root cause of this might just > be the driver hooking the wrong fault code now. > > Async and synchronous aborts are different fault codes on ARM. Can you > see of removing the "16 +" in hook_fault_code() in > drivers/pci/dwc/pci-imx6.c fixes this issue? You can also s/pci_remap_cfgspace/ioremap in pcie-designware-host.c to see if my patches are the issue, it is quite a mechanical change. Thanks, Lorenzo
On Mon, May 08, 2017 at 05:02:24PM +0200, Peter Senna Tschudin wrote: [...] > [ 0.880800] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf0a40000 ^^^^^^ That's the fsr, 0x8 should be the hook number or I am reading it wrong ? Lorenzo > [ 0.888416] pgd = 80004000 > [ 0.891112] [f0a40000] *pgd=7e01d811, *pte=01f40243, *ppte=01f40013 > [ 0.897384] Internal error: : 1008 [#1] SMP ARM > [ 0.901903] Modules linked in: > [ 0.904951] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-next-20170508-dirty #106 > [ 0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) > [ 0.919302] task: ee908000 task.stack: ee906000 > [ 0.923836] PC is at dw_pcie_read+0x60/0x8c > [ 0.928005] LR is at dw_pcie_rd_conf+0x188/0x1e0 > [ 0.932616] pc : [<804125b8>] lr : [<80413308>] psr: 60000093 > [ 0.932616] sp : ee907af0 ip : ee907b00 fp : ee907afc > [ 0.944096] r10: 00000000 r9 : eea28b10 r8 : 00000000 > [ 0.949317] r7 : 00000000 r6 : 00000000 r5 : f0a40000 r4 : eea28b28 > [ 0.955840] r3 : 00000000 r2 : ee907b6c r1 : 00000004 r0 : f0a40000 > [ 0.962368] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none > [ 0.969589] Control: 10c5387d Table: 1000404a DAC: 00000051 > [ 0.975330] Process swapper/0 (pid: 1, stack limit = 0xee906210) > [ 0.981333] Stack: (0xee907af0 to 0xee908000) > [ 0.985686] 7ae0: ee907b54 ee907b00 80413308 80412564 > [ 0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126ec 01f40000 00000000 > [ 1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000013 00000000 00000002 > [ 1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318c ee907b6c 80412564 > [ 1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000000 ee907bd4 0000ea60 > [ 1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000000 ee907bfc 80400974 > [ 1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000002 00000000 00000001 > [ 1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b4 00000008 eeb1be00 > [ 1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec4 00000008 eeb1be00 > [ 1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f88 eeb1bc00 eeb1be00 > [ 1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c40 803f8d58 803f9008 > [ 1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000000 00000000 00000000 > [ 1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc14 00000001 00000001 > [ 1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab4 eeb1ba00 eeb1bc00 > [ 1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc0 803f8ca0 803f9008 > [ 1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000000 00000000 00000000 > [ 1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba14 00000000 00000000 > [ 1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab4 00000000 eeb1ba00 > [ 1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d40 803f92d4 803f9008 > [ 1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d60 80413d20 803f9274 > [ 1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d70 ee803e00 00000000 > [ 1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00660 ee907ddc ee907da8 > [ 1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e10 ee803e10 80d308fc > [ 1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de0 804e10e8 8041441c > [ 1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b0 ee803e10 80d308fc > [ 1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e20 804df610 804df2b4 > [ 1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e40 804dd74c 804df548 > [ 1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40850 ee907e74 ee907e68 > [ 1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def00 80a88880 ee907e88 > [ 1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea0 804dfe9c 804de958 > [ 1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe20 ee907edc ee907ec8 > [ 1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee0 80101c78 80c2c088 > [ 1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f00 80142b54 80c0066c > [ 1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8644 efffea30 efffea38 > [ 1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a834 80b29414 000000b9 > [ 1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000006 00000000 80c00660 > [ 1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000000 00000000 00000000 > [ 1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d88 00000000 8088ee80 > [ 1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000000 00000000 00000000 > [ 1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > [ 1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff > [ 1.320978] Backtrace: > [ 1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_rd_conf+0x188/0x1e0) > [ 1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bus_read_config_dword+0x78/0xa0) > [ 1.340387] r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60000013 r5:ee907bd4 > [ 1.348210] r4:80413180 > [ 1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f6598>] (pci_bus_read_dev_vendor_id+0x34/0x104) > [ 1.360740] r6:0000ea60 r5:ee907bd4 r4:00000000 > [ 1.365358] [<803f6564>] (pci_bus_read_dev_vendor_id) from [<803f7f08>] (pci_scan_single_device+0x50/0xc4) > [ 1.375011] r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00000000 r5:eeb1be00 > [ 1.382835] r4:00000000 > [ 1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (pci_scan_slot+0x70/0x118) > [ 1.393975] r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008 > [ 1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_child_bus+0x30/0x108) > [ 1.407895] r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008 > [ 1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_scan_bridge+0x2b0/0x554) > [ 1.422078] r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be00 r4:eeb1bc00 > [ 1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) > [ 1.438261] r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1bc14 r5:eeb1bc00 > [ 1.446085] r4:eea16000 > [ 1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_scan_bridge+0x1f8/0x554) > [ 1.457138] r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc00 r4:eeb1ba00 > [ 1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_scan_child_bus+0x8c/0x108) > [ 1.473321] r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1ba14 r5:eeb1ba00 > [ 1.481145] r4:eea15c00 > [ 1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_scan_root_bus_msi+0x6c/0xd4) > [ 1.492549] r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba00 r4:00000000 > [ 1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (dw_pcie_host_init+0x250/0x4f8) > [ 1.509249] r5:80d3082c r4:eea28b28 > [ 1.512822] [<80413ad0>] (dw_pcie_host_init) from [<8041479c>] (imx6_pcie_probe+0x38c/0x540) > [ 1.521259] r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803e10 r5:eea28b10 > [ 1.529083] r4:00000000 > [ 1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platform_drv_probe+0x44/0x7c) > [ 1.539963] r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d308fc r4:ee803e10 > [ 1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (really_probe+0x1f0/0x294) > [ 1.555967] r5:ee803e10 r4:80dc0d30 > [ 1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_attach+0xd4/0xd8) > [ 1.567367] r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308fc r4:ee803e10 > [ 1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_for_each_dev+0x7c/0xb0) > [ 1.583286] r7:00000000 r6:804df53c r5:80d308fc r4:00000000 > [ 1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driver_attach+0x28/0x30) > [ 1.596945] r6:80d40850 r5:ee01a380 r4:80d308fc > [ 1.601560] [<804deef4>] (driver_attach) from [<804dea5c>] (bus_add_driver+0x110/0x220) > [ 1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_register+0x88/0x104) > [ 1.617652] r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc > [ 1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platform_driver_register+0x40/0x54) > [ 1.632353] r5:ffffe000 r4:80c2c07c > [ 1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0bc>] (imx6_pcie_init+0x40/0x54) > [ 1.644890] [<80c2c07c>] (imx6_pcie_init) from [<80101c78>] (do_one_initcall+0x4c/0x17c) > [ 1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_init_freeable+0x134/0x1f4) > [ 1.661675] r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e94 > [ 1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (kernel_init+0x18/0x124) > [ 1.676641] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:8088ee80 > [ 1.684464] r4:00000000 > [ 1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fork+0x14/0x3c) > [ 1.694558] r5:8088ee80 r4:00000000 > [ 1.698131] Code: ee073f9a e1a00003 e5821000 e89da800 (e5901000) > [ 1.704224] ---[ end trace dc8f87ab88f61701 ]--- > [ 1.708894] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > [ 1.708894] > [ 1.717974] CPU1: stopping > [ 1.720663] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.11.0-next-20170508-dirty #106 > [ 1.729705] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) > [ 1.736230] Backtrace: > [ 1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_stack+0x20/0x24) > [ 1.746239] r7:00000001 r6:60000193 r5:00000000 r4:80d2f200 > [ 1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x94/0xb0) > [ 1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x28c/0x334) > [ 1.766510] r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310 > [ 1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_irq+0xa8/0xc4) > [ 1.779735] r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:000003ff r5:000003eb > [ 1.787561] r4:f400010c r3:00000000 > [ 1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_svc+0x6c/0x90) > [ 1.798609] Exception stack(0xee92df38 to 0xee92df80) > [ 1.803657] df20: 0000062c 6e329000 > [ 1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03cac 80d16f9f 80a5d91c > [ 1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a04 60000013 ffffffff > [ 1.828194] r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffffffff r5:60000013 > [ 1.836019] r4:80108a04 > [ 1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_idle_call+0x30/0x3c) > [ 1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idle+0xc4/0x14c) > [ 1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entry+0x28/0x2c) > [ 1.861864] r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000001 r4:00000087 > [ 1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secondary_start_kernel+0x148/0x174) > [ 1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0x1010196c) > [ 1.886046] r5:00000051 r4:7e92006a > [ 1.889619] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > [ 1.889619]
On Mon, May 08, 2017 at 06:55:36PM +0100, Lorenzo Pieralisi wrote: > On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > > Hello Kishon, > > > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > > linux-next and I could bisect until: > > > > > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > > Date: Wed Feb 15 18:48:14 2017 +0530 > > > > > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > > > > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > > > fine with 4.10, and also boots if we disable pcie with: > > > > Are you sure about this bisect? It seems more likely that the secondary > > bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space > > non-posting patches landed in next, so the root cause of this might just > > be the driver hooking the wrong fault code now. > > > > Async and synchronous aborts are different fault codes on ARM. Can you > > see of removing the "16 +" in hook_fault_code() in > > drivers/pci/dwc/pci-imx6.c fixes this issue? > > You can also s/pci_remap_cfgspace/ioremap in pcie-designware-host.c > to see if my patches are the issue, it is quite a mechanical change. No change. Exactly same issue, but I noticed that devm_pci_remap_cfgspace() is called twice for the same device, can this be a problem? ... [ 0.505069] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: [ 0.510586] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 [ 0.516474] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 [ 0.522420] imx6q-pcie 1ffc000.pcie: devm_pci_remap_cfgspace() [ 0.528656] imx6q-pcie 1ffc000.pcie: devm_pci_remap_cfgspace() ...
Hi Peter, On Mon, May 8, 2017 at 12:02 PM, Peter Senna Tschudin <peter.senna@collabora.com> wrote: > Hello Kishon, > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > linux-next and I could bisect until: > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > Author: Kishon Vijay Abraham I <kishon@ti.com> > Date: Wed Feb 15 18:48:14 2017 +0530 > > PCI: dwc: all: Split struct pcie_port into host-only and core structures I can reproduce the same problem on a custom imx6q board with a PCI bridge chip. Other mx6 boards without PCI bridge boot fine. I haven't bisected it, but the problem for me does not happen on 4.11. It happens only in linux-next. The commit you mentioned above is from 4.11 and does not cause the problem on my tests. Can you double check if you really have issues with 4.11?
On Mon, May 08, 2017 at 10:33:25PM +0200, Peter Senna Tschudin wrote: > On Mon, May 08, 2017 at 06:55:36PM +0100, Lorenzo Pieralisi wrote: > > On Mon, May 08, 2017 at 06:34:08PM +0200, Lucas Stach wrote: > > > Am Montag, den 08.05.2017, 17:02 +0200 schrieb Peter Senna Tschudin: > > > > Hello Kishon, > > > > > > > > Our iMX6 hardware (imx6q-b850v3.dts) is not booting with latest > > > > linux-next and I could bisect until: > > > > > > > > commit 442ec4c04d1235f8c664a74004dae54a7a574d18 > > > > Author: Kishon Vijay Abraham I <kishon@ti.com> > > > > Date: Wed Feb 15 18:48:14 2017 +0530 > > > > > > > > PCI: dwc: all: Split struct pcie_port into host-only and core structures > > > > > > > > Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boots > > > > fine with 4.10, and also boots if we disable pcie with: > > > > > > Are you sure about this bisect? It seems more likely that the secondary > > > bus scanning goes wrong. It seems Lorenzo Pieralisi's cfg space > > > non-posting patches landed in next, so the root cause of this might just > > > be the driver hooking the wrong fault code now. > > > > > > Async and synchronous aborts are different fault codes on ARM. Can you > > > see of removing the "16 +" in hook_fault_code() in > > > drivers/pci/dwc/pci-imx6.c fixes this issue? > > > > You can also s/pci_remap_cfgspace/ioremap in pcie-designware-host.c > > to see if my patches are the issue, it is quite a mechanical change. > > No change. Exactly same issue, but I noticed that > devm_pci_remap_cfgspace() is called twice for the same device, can this > be a problem? No and anyway, given that you basically tested with pci_remap_cfgspace() reverted I do not see how it may affect your platform but that's not what you are asking, so yes, it is safe to call it for multiple resources in a given device, think of it as ioremap for configuration space resources. I still do not understand if you manage to bisect and fix the issue, PCI tree was merged in the mainline last night so you could give it a shot, it may be easier to bisect than -next. Thanks ! Lorenzo > ... > [ 0.505069] OF: PCI: host bridge /soc/pcie@1ffc000 ranges: > [ 0.510586] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000 > [ 0.516474] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000 > [ 0.522420] imx6q-pcie 1ffc000.pcie: devm_pci_remap_cfgspace() > [ 0.528656] imx6q-pcie 1ffc000.pcie: devm_pci_remap_cfgspace() > ...
diff --git a/arch/arm/boot/dts/imx6q-b850v3.dts b/arch/arm/boot/dts/imx6q-b850v3.dts index 2c1e98e..e655fd7 100644 --- a/arch/arm/boot/dts/imx6q-b850v3.dts +++ b/arch/arm/boot/dts/imx6q-b850v3.dts @@ -212,3 +212,8 @@ }; }; }; + +&pcie { + status = "disabled"; +};