All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:02 ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 15:02 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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]

^ permalink raw reply related	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:02 ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 15:02 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Stanimir Varbanov, Minghuan Lian, Zhou Wang,
	Murali Karicheri, Niklas Cassel, Bjorn Helgaas, Mingkai Hu,
	Roy Zang, linux-arm-kernel, Lucas Stach

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]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:02 ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 15:02 UTC (permalink / raw)
  To: linux-arm-kernel

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 at 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 at 60 video=HDMI-A-1:1024x768 at 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 at 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]

^ permalink raw reply related	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:02 ` Peter Senna Tschudin
  (?)
@ 2017-05-08 15:13   ` Joao Pinto
  -1 siblings, 0 replies; 71+ messages in thread
From: Joao Pinto @ 2017-05-08 15:13 UTC (permalink / raw)
  To: Peter Senna Tschudin, Kishon Vijay Abraham I
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel


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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:13   ` Joao Pinto
  0 siblings, 0 replies; 71+ messages in thread
From: Joao Pinto @ 2017-05-08 15:13 UTC (permalink / raw)
  To: Peter Senna Tschudin, Kishon Vijay Abraham I
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Stanimir Varbanov, Minghuan Lian, Zhou Wang,
	Murali Karicheri, Niklas Cassel, Bjorn Helgaas, Mingkai Hu,
	Roy Zang, linux-arm-kernel, Lucas Stach


Hi Peter,

=C0s 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 structu=
res
> =

> 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 =3D "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-pet=
er.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=3D=
10c5387d
> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing ins=
truction 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 d2354=
0 u69632
> [    0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=3D17*4096
> [    0.000000] pcpu-alloc: [0] 0 [0] 1
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  To=
tal pages: 520704
> [    0.000000] Kernel command line: root=3D/dev/mmcblk0p2 ro rootwait cma=
=3D128M video=3DDP-1:1024x768@60 video=3DHDMI-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 b=
ytes)
> [    0.000000] Memory: 1934676K/2097152K available (8192K kernel code, 50=
2K 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=3D64, Order=3D0-3, MinObjects=3D0, CPUs=3D2,=
 Nodes=3D1
> [    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=3D4 to nr_cpu_ids=3D2.
> [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=3D16, nr_cpu_i=
ds=3D2
> [    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 e=
very 715827882841ns
> [    0.008183] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xff=
ffffff, max_idle_ns: 637086815595 ns
> [    0.019149] Console: colour dummy device 80x30
> [    0.022277] Calibrating delay loop (skipped), value calculated using t=
imer frequency.. 6.00 BogoMIPS (lpj=3D30000)
> [    0.032459] pid_max: default: 32768 minimum: 301
> [    0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 byte=
s)
> [    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 va=
riant 9 rev 4
> [    0.110962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xfffff=
fff, 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 allocat=
ions
> [    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 watc=
hpoint registers.
> [    0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes.
> [    0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driv=
er
> [    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 Rodolf=
o 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=3D2000 audit(0.424:1): state=3Dinitialized aud=
it_enabled=3D0 res=3D1
> [    0.434655] workingset: timestamp_bits=3D30 max_order=3D19 bucket_orde=
r=3D0
> [    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-0x01eff=
fff]
> [    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 pre=
f]
> [    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] unde=
r [bus 01] (conflicts with (null) [bus 01])
> [    0.880800] Unhandled fault: external abort on non-linefetch (0x1008) =
at 0xf0a40000
> [    0.888416] pgd =3D 80004000
> [    0.891112] [f0a40000] *pgd=3D7e01d811, *pte=3D01f40243, *ppte=3D01f40=
013
> [    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-2017=
0508-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  Segm=
ent none
> [    0.969589] Control: 10c5387d  Table: 1000404a  DAC: 00000051
> [    0.975330] Process swapper/0 (pid: 1, stack limit =3D 0xee906210)
> [    0.981333] Stack: (0xee907af0 to 0xee908000)
> [    0.985686] 7ae0:                                     ee907b54 ee907b0=
0 80413308 80412564
> [    0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126e=
c 01f40000 00000000
> [    1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 6000001=
3 00000000 00000002
> [    1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041318=
c ee907b6c 80412564
> [    1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 0000000=
0 ee907bd4 0000ea60
> [    1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 0000000=
0 ee907bfc 80400974
> [    1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 0000000=
2 00000000 00000001
> [    1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80b=
4 00000008 eeb1be00
> [    1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7ec=
4 00000008 eeb1be00
> [    1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f8=
8 eeb1bc00 eeb1be00
> [    1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c4=
0 803f8d58 803f9008
> [    1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 0000000=
0 00000000 00000000
> [    1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc1=
4 00000001 00000001
> [    1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8ab=
4 eeb1ba00 eeb1bc00
> [    1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907cc=
0 803f8ca0 803f9008
> [    1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 0000000=
0 00000000 00000000
> [    1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba1=
4 00000000 00000000
> [    1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8ab=
4 00000000 eeb1ba00
> [    1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d4=
0 803f92d4 803f9008
> [    1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d6=
0 80413d20 803f9274
> [    1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d7=
0 ee803e00 00000000
> [    1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c0066=
0 ee907ddc ee907da8
> [    1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e1=
0 ee803e10 80d308fc
> [    1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907de=
0 804e10e8 8041441c
> [    1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10b=
0 ee803e10 80d308fc
> [    1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e2=
0 804df610 804df2b4
> [    1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e4=
0 804dd74c 804df548
> [    1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d4085=
0 ee907e74 ee907e68
> [    1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def0=
0 80a88880 ee907e88
> [    1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907ea=
0 804dfe9c 804de958
> [    1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe2=
0 ee907edc ee907ec8
> [    1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907ee=
0 80101c78 80c2c088
> [    1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f0=
0 80142b54 80c0066c
> [    1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab864=
4 efffea30 efffea38
> [    1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a83=
4 80b29414 000000b9
> [    1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 0000000=
6 00000000 80c00660
> [    1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 0000000=
0 00000000 00000000
> [    1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d8=
8 00000000 8088ee80
> [    1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 0000000=
0 00000000 00000000
> [    1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 0000000=
0 00000000 00000000
> [    1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 0000000=
0 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:60000=
013 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:00000=
000 r5:eeb1be00
> [    1.382835]  r4:00000000
> [    1.385366] [<803f7eb8>] (pci_scan_single_device) from [<803f7fec>] (p=
ci_scan_slot+0x70/0x118)
> [    1.393975]  r7:00000000 r6:eea16000 r5:eeb1be00 r4:00000008
> [    1.399634] [<803f7f7c>] (pci_scan_slot) from [<803f902c>] (pci_scan_c=
hild_bus+0x30/0x108)
> [    1.407895]  r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008
> [    1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pci_s=
can_bridge+0x2b0/0x554)
> [    1.422078]  r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb1be=
00 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:eeb1b=
c14 r5:eeb1bc00
> [    1.446085]  r4:eea16000
> [    1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pci_s=
can_bridge+0x1f8/0x554)
> [    1.457138]  r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb1bc=
00 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:eeb1b=
a14 r5:eeb1ba00
> [    1.481145]  r4:eea15c00
> [    1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pci_s=
can_root_bus_msi+0x6c/0xd4)
> [    1.492549]  r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb1ba=
00 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_p=
cie_probe+0x38c/0x540)
> [    1.521259]  r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee803=
e10 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:80d308=
fc r4:ee803e10
> [    1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (reall=
y_probe+0x1f0/0x294)
> [    1.555967]  r5:ee803e10 r4:80dc0d30
> [    1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_at=
tach+0xd4/0xd8)
> [    1.567367]  r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d308=
fc 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_dr=
iver+0x110/0x220)
> [    1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_re=
gister+0x88/0x104)
> [    1.617652]  r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc
> [    1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platfo=
rm_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_in=
itcall+0x4c/0x17c)
> [    1.652983] [<80101c2c>] (do_one_initcall) from [<80c00eb0>] (kernel_i=
nit_freeable+0x134/0x1f4)
> [    1.661675]  r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c99e=
94
> [    1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (ker=
nel_init+0x18/0x124)
> [    1.676641]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000=
000 r5:8088ee80
> [    1.684464]  r4:00000000
> [    1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_for=
k+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! exitco=
de=3D0x0000000b
> [    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_stac=
k+0x20/0x24)
> [    1.746239]  r7:00000001 r6:60000193 r5:00000000 r4:80d2f200
> [    1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0x=
94/0xb0)
> [    1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0x=
28c/0x334)
> [    1.766510]  r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310
> [    1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_ir=
q+0xa8/0xc4)
> [    1.779735]  r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:00000=
3ff 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 80d03ca=
c 80d16f9f 80a5d91c
> [    1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a0=
4 60000013 ffffffff
> [    1.828194]  r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:fffff=
fff r5:60000013
> [    1.836019]  r4:80108a04
> [    1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_id=
le_call+0x30/0x3c)
> [    1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_idl=
e+0xc4/0x14c)
> [    1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_entr=
y+0x28/0x2c)
> [    1.861864]  r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:000000=
01 r4:00000087
> [    1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (second=
ary_start_kernel+0x148/0x174)
> [    1.878656] [<8010f0a4>] (secondary_start_kernel) from [<1010196c>] (0=
x1010196c)
> [    1.886046]  r5:00000051 r4:7e92006a
> [    1.889619] ---[ end Kernel panic - not syncing: Attempted to kill ini=
t! exitcode=3D0x0000000b
> [    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/driver=
s/pci/dwc/pcie-designware-plat.c?h=3Dnext#n89

The hang in the boot could be achieved by not declaring this op's structure.

Hope this helps.

Joao



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:13   ` Joao Pinto
  0 siblings, 0 replies; 71+ messages in thread
From: Joao Pinto @ 2017-05-08 15:13 UTC (permalink / raw)
  To: linux-arm-kernel


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 at 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 at 60 video=HDMI-A-1:1024x768 at 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 at 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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:13   ` Joao Pinto
  (?)
@ 2017-05-08 15:20     ` Kishon Vijay Abraham I
  -1 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:20 UTC (permalink / raw)
  To: Joao Pinto, Peter Senna Tschudin
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Zhou Wang,
	Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand, linux-pci,
	linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:20     ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:20 UTC (permalink / raw)
  To: Joao Pinto, Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Richard Zhu, Gabriele Paoloni,
	Jingoo Han, Pratyush Anand, linux-pci, linux-kernel,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

Hi Joao,

On Monday 08 May 2017 08:43 PM, Joao Pinto wrote:
> =

> Hi Peter,
> =

> =C0s 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 struct=
ures
>>
>> 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/imx6=
q-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 =3D "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-pe=
ter.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=
=3D10c5387d
>> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing in=
struction 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 d235=
40 u69632
>> [    0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=3D17*4096
>> [    0.000000] pcpu-alloc: [0] 0 [0] 1
>> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  T=
otal pages: 520704
>> [    0.000000] Kernel command line: root=3D/dev/mmcblk0p2 ro rootwait cm=
a=3D128M video=3DDP-1:1024x768@60 video=3DHDMI-A-1:1024x768@60 earlycon log=
l0
>> [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
>> [    0.000000] Dentry cache hash table entries: 262144 (order: 8, 104857=
6 bytes)
>> [    0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 =
bytes)
>> [    0.000000] Memory: 1934676K/2097152K available (8192K kernel code, 5=
02K 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=3D64, Order=3D0-3, MinObjects=3D0, CPUs=3D2=
, Nodes=3D1
>> [    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=3D4 to nr_cpu_ids=3D2.
>> [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=3D16, nr_cpu_=
ids=3D2
>> [    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: 0xf=
fffffff, 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=3D30000)
>> [    0.032459] pid_max: default: 32768 minimum: 301
>> [    0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 byt=
es)
>> [    0.043765] Mountpoint-cache hash table entries: 4096 (order: 2, 1638=
4 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 v=
ariant 9 rev 4
>> [    0.110962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffff=
ffff, 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 alloca=
tions
>> [    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 wat=
chpoint registers.
>> [    0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes.
>> [    0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl dri=
ver
>> [    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 Rodol=
fo 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, 6553=
6 bytes)
>> [    0.379153] TCP bind hash table entries: 16384 (order: 5, 131072 byte=
s)
>> [    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/pm=
u, 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=3D2000 audit(0.424:1): state=3Dinitialized au=
dit_enabled=3D0 res=3D1
>> [    0.434655] workingset: timestamp_bits=3D30 max_order=3D19 bucket_ord=
er=3D0
>> [    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-0x01ef=
ffff]
>> [    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 pr=
ef]
>> [    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 D3co=
ld
>> [    0.859773] PCI: bus1: Fast back to back transfers disabled
>> [    0.862502] pci 0000:01:00.0: bridge configuration invalid ([bus 00-0=
0]), reconfiguring
>> [    0.870810] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] und=
er [bus 01] (conflicts with (null) [bus 01])
>> [    0.880800] Unhandled fault: external abort on non-linefetch (0x1008)=
 at 0xf0a40000
>> [    0.888416] pgd =3D 80004000
>> [    0.891112] [f0a40000] *pgd=3D7e01d811, *pte=3D01f40243, *ppte=3D01f4=
0013
>> [    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-201=
70508-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  Seg=
ment none
>> [    0.969589] Control: 10c5387d  Table: 1000404a  DAC: 00000051
>> [    0.975330] Process swapper/0 (pid: 1, stack limit =3D 0xee906210)
>> [    0.981333] Stack: (0xee907af0 to 0xee908000)
>> [    0.985686] 7ae0:                                     ee907b54 ee907b=
00 80413308 80412564
>> [    0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 804126=
ec 01f40000 00000000
>> [    1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 600000=
13 00000000 00000002
>> [    1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 804131=
8c ee907b6c 80412564
>> [    1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 000000=
00 ee907bd4 0000ea60
>> [    1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 000000=
00 ee907bfc 80400974
>> [    1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 000000=
02 00000000 00000001
>> [    1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db80=
b4 00000008 eeb1be00
>> [    1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7e=
c4 00000008 eeb1be00
>> [    1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7f=
88 eeb1bc00 eeb1be00
>> [    1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907c=
40 803f8d58 803f9008
>> [    1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 000000=
00 00000000 00000000
>> [    1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1bc=
14 00000001 00000001
>> [    1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8a=
b4 eeb1ba00 eeb1bc00
>> [    1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907c=
c0 803f8ca0 803f9008
>> [    1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 000000=
00 00000000 00000000
>> [    1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1ba=
14 00000000 00000000
>> [    1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8a=
b4 00000000 eeb1ba00
>> [    1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907d=
40 803f92d4 803f9008
>> [    1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907d=
60 80413d20 803f9274
>> [    1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907d=
70 ee803e00 00000000
>> [    1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c006=
60 ee907ddc ee907da8
>> [    1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803e=
10 ee803e10 80d308fc
>> [    1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907d=
e0 804e10e8 8041441c
>> [    1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e10=
b0 ee803e10 80d308fc
>> [    1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907e=
20 804df610 804df2b4
>> [    1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907e=
40 804dd74c 804df548
>> [    1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d408=
50 ee907e74 ee907e68
>> [    1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804def=
00 80a88880 ee907e88
>> [    1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907e=
a0 804dfe9c 804de958
>> [    1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804dfe=
20 ee907edc ee907ec8
>> [    1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907e=
e0 80101c78 80c2c088
>> [    1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907f=
00 80142b54 80c0066c
>> [    1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab86=
44 efffea30 efffea38
>> [    1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a8=
34 80b29414 000000b9
>> [    1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 000000=
06 00000000 80c00660
>> [    1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 000000=
00 00000000 00000000
>> [    1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00d=
88 00000000 8088ee80
>> [    1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 000000=
00 00000000 00000000
>> [    1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 000000=
00 00000000 00000000
>> [    1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 000000=
00 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:6000=
0013 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:0000=
0000 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:eeb1b=
e00 r4:eeb1bc00
>> [    1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_sca=
n_child_bus+0x8c/0x108)
>> [    1.438261]  r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb1=
bc14 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:eeb1b=
c00 r4:eeb1ba00
>> [    1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_sca=
n_child_bus+0x8c/0x108)
>> [    1.473321]  r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb1=
ba14 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:eeb1b=
a00 r4:00000000
>> [    1.500292] [<803f9268>] (pci_scan_root_bus_msi) from [<80413d20>] (d=
w_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:ee80=
3e10 r5:eea28b10
>> [    1.529083]  r4:00000000
>> [    1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platfor=
m_drv_probe+0x44/0x7c)
>> [    1.539963]  r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d30=
8fc r4:ee803e10
>> [    1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (real=
ly_probe+0x1f0/0x294)
>> [    1.555967]  r5:ee803e10 r4:80dc0d30
>> [    1.559540] [<804df2a8>] (really_probe) from [<804df610>] (__driver_a=
ttach+0xd4/0xd8)
>> [    1.567367]  r9:80c6a83c r8:00000000 r7:00000000 r6:ee803e44 r5:80d30=
8fc 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_d=
river+0x110/0x220)
>> [    1.609564] [<804de94c>] (bus_add_driver) from [<804dfe9c>] (driver_r=
egister+0x88/0x104)
>> [    1.617652]  r7:80b29414 r6:80c6a834 r5:ffffe000 r4:80d308fc
>> [    1.623311] [<804dfe14>] (driver_register) from [<804e1090>] (__platf=
orm_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_i=
nitcall+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:80c99=
e94
>> [    1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (ke=
rnel_init+0x18/0x124)
>> [    1.676641]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:0000=
0000 r5:8088ee80
>> [    1.684464]  r4:00000000
>> [    1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_fo=
rk+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! exitc=
ode=3D0x0000000b
>> [    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_sta=
ck+0x20/0x24)
>> [    1.746239]  r7:00000001 r6:60000193 r5:00000000 r4:80d2f200
>> [    1.751902] [<8010cab4>] (show_stack) from [<803b1970>] (dump_stack+0=
x94/0xb0)
>> [    1.759120] [<803b18dc>] (dump_stack) from [<8010f708>] (handle_IPI+0=
x28c/0x334)
>> [    1.766510]  r7:00000001 r6:80ca1e0c r5:ee92df38 r4:80d7f310
>> [    1.772167] [<8010f47c>] (handle_IPI) from [<801015a4>] (gic_handle_i=
rq+0xa8/0xc4)
>> [    1.779735]  r10:80d0432c r9:f4000100 r8:80d2f648 r7:ee92df38 r6:0000=
03ff r5:000003eb
>> [    1.787561]  r4:f400010c r3:00000000
>> [    1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_sv=
c+0x6c/0x90)
>> [    1.798609] Exception stack(0xee92df38 to 0xee92df80)
>> [    1.803657] df20:                                                    =
   0000062c 6e329000
>> [    1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03c=
ac 80d16f9f 80a5d91c
>> [    1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108a=
04 60000013 ffffffff
>> [    1.828194]  r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ffff=
ffff r5:60000013
>> [    1.836019]  r4:80108a04
>> [    1.838552] [<801089c4>] (arch_cpu_idle) from [<8089424c>] (default_i=
dle_call+0x30/0x3c)
>> [    1.846647] [<8089421c>] (default_idle_call) from [<8015ed88>] (do_id=
le+0xc4/0x14c)
>> [    1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_ent=
ry+0x28/0x2c)
>> [    1.861864]  r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:00000=
001 r4:00000087
>> [    1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (secon=
dary_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 in=
it! exitcode=3D0x0000000b
>> [    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/driv=
ers/pci/dwc/pcie-designware-plat.c?h=3Dnext#n89
> =

> The hang in the boot could be achieved by not declaring this op's structu=
re.

just checked pci-imx6.c has both dw_pcie_ops and dw_pcie_host_ops.

Thanks
Kishon

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:20     ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:20 UTC (permalink / raw)
  To: linux-arm-kernel

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 at 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 at 60 video=HDMI-A-1:1024x768 at 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 at 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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:20     ` Kishon Vijay Abraham I
  (?)
@ 2017-05-08 15:31       ` Joao Pinto
  -1 siblings, 0 replies; 71+ messages in thread
From: Joao Pinto @ 2017-05-08 15:31 UTC (permalink / raw)
  To: Kishon Vijay Abraham I, Joao Pinto, Peter Senna Tschudin
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Zhou Wang,
	Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand, linux-pci,
	linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:31       ` Joao Pinto
  0 siblings, 0 replies; 71+ messages in thread
From: Joao Pinto @ 2017-05-08 15:31 UTC (permalink / raw)
  To: Kishon Vijay Abraham I, Joao Pinto, Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Richard Zhu, Gabriele Paoloni,
	Jingoo Han, Pratyush Anand, linux-pci, linux-kernel,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

=C0s 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,
>>
>> =C0s 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 struc=
tures
>>>
>>> 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/imx=
6q-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 =3D "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-p=
eter.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=
=3D10c5387d
>>> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing i=
nstruction 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_ma=
p 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 d23=
540 u69632
>>> [    0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=3D17*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=3D/dev/mmcblk0p2 ro rootwait c=
ma=3D128M video=3DDP-1:1024x768@60 video=3DHDMI-A-1:1024x768@60 earlycon lo=
gl0
>>> [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
>>> [    0.000000] Dentry cache hash table entries: 262144 (order: 8, 10485=
76 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=3D64, Order=3D0-3, MinObjects=3D0, CPUs=3D=
2, Nodes=3D1
>>> [    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=3D4 to nr_cpu_ids=3D2.
>>> [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=3D16, nr_cpu=
_ids=3D2
>>> [    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 enabl=
ed
>>> [    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: 0x=
ffffffff, 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=3D30000)
>>> [    0.032459] pid_max: default: 32768 minimum: 301
>>> [    0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 by=
tes)
>>> [    0.043765] Mountpoint-cache hash table entries: 4096 (order: 2, 163=
84 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 - 0x101000=
54
>>> [    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: 0xfff=
fffff, 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 alloc=
ations
>>> [    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 wa=
tchpoint registers.
>>> [    0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes.
>>> [    0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl dr=
iver
>>> [    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 Rodo=
lfo 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, 655=
36 bytes)
>>> [    0.379153] TCP bind hash table entries: 16384 (order: 5, 131072 byt=
es)
>>> [    0.385901] TCP: Hash tables configured (established 16384 bind 1638=
4)
>>> [    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/p=
mu, 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=3D2000 audit(0.424:1): state=3Dinitialized a=
udit_enabled=3D0 res=3D1
>>> [    0.434655] workingset: timestamp_bits=3D30 max_order=3D19 bucket_or=
der=3D0
>>> [    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-0x01e=
fffff]
>>> [    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 p=
ref]
>>> [    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 D3c=
old
>>> [    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] un=
der [bus 01] (conflicts with (null) [bus 01])
>>> [    0.880800] Unhandled fault: external abort on non-linefetch (0x1008=
) at 0xf0a40000
>>> [    0.888416] pgd =3D 80004000
>>> [    0.891112] [f0a40000] *pgd=3D7e01d811, *pte=3D01f40243, *ppte=3D01f=
40013
>>> [    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-20=
170508-dirty #106
>>> [    0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tre=
e)
>>> [    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 : eea28b=
28
>>> [    0.955840] r3 : 00000000  r2 : ee907b6c  r1 : 00000004  r0 : f0a400=
00
>>> [    0.962368] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Se=
gment none
>>> [    0.969589] Control: 10c5387d  Table: 1000404a  DAC: 00000051
>>> [    0.975330] Process swapper/0 (pid: 1, stack limit =3D 0xee906210)
>>> [    0.981333] Stack: (0xee907af0 to 0xee908000)
>>> [    0.985686] 7ae0:                                     ee907b54 ee907=
b00 80413308 80412564
>>> [    0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 80412=
6ec 01f40000 00000000
>>> [    1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 60000=
013 00000000 00000002
>>> [    1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 80413=
18c ee907b6c 80412564
>>> [    1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 00000=
000 ee907bd4 0000ea60
>>> [    1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 00000=
000 ee907bfc 80400974
>>> [    1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 00000=
002 00000000 00000001
>>> [    1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db8=
0b4 00000008 eeb1be00
>>> [    1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f7=
ec4 00000008 eeb1be00
>>> [    1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f7=
f88 eeb1bc00 eeb1be00
>>> [    1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee907=
c40 803f8d58 803f9008
>>> [    1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 00000=
000 00000000 00000000
>>> [    1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1b=
c14 00000001 00000001
>>> [    1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f8=
ab4 eeb1ba00 eeb1bc00
>>> [    1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee907=
cc0 803f8ca0 803f9008
>>> [    1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 00000=
000 00000000 00000000
>>> [    1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1b=
a14 00000000 00000000
>>> [    1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f8=
ab4 00000000 eeb1ba00
>>> [    1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee907=
d40 803f92d4 803f9008
>>> [    1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee907=
d60 80413d20 803f9274
>>> [    1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee907=
d70 ee803e00 00000000
>>> [    1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c00=
660 ee907ddc ee907da8
>>> [    1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee803=
e10 ee803e10 80d308fc
>>> [    1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee907=
de0 804e10e8 8041441c
>>> [    1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e1=
0b0 ee803e10 80d308fc
>>> [    1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee907=
e20 804df610 804df2b4
>>> [    1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee907=
e40 804dd74c 804df548
>>> [    1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d40=
850 ee907e74 ee907e68
>>> [    1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804de=
f00 80a88880 ee907e88
>>> [    1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee907=
ea0 804dfe9c 804de958
>>> [    1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804df=
e20 ee907edc ee907ec8
>>> [    1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee907=
ee0 80101c78 80c2c088
>>> [    1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee907=
f00 80142b54 80c0066c
>>> [    1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab8=
644 efffea30 efffea38
>>> [    1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6a=
834 80b29414 000000b9
>>> [    1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 00000=
006 00000000 80c00660
>>> [    1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 00000=
000 00000000 00000000
>>> [    1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c00=
d88 00000000 8088ee80
>>> [    1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 00000=
000 00000000 00000000
>>> [    1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000=
000 00000000 00000000
>>> [    1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000=
000 ffffffff ffffffff
>>> [    1.320978] Backtrace:
>>> [    1.323425] [<80412558>] (dw_pcie_read) from [<80413308>] (dw_pcie_r=
d_conf+0x188/0x1e0)
>>> [    1.331433] [<80413180>] (dw_pcie_rd_conf) from [<803f3eac>] (pci_bu=
s_read_config_dword+0x78/0xa0)
>>> [    1.340387]  r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:600=
00013 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 [<803f7f0=
8>] (pci_scan_single_device+0x50/0xc4)
>>> [    1.375011]  r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:000=
00000 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:eeb1=
be00 r4:eeb1bc00
>>> [    1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_sc=
an_child_bus+0x8c/0x108)
>>> [    1.438261]  r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:eeb=
1bc14 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:eeb1=
bc00 r4:eeb1ba00
>>> [    1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_sc=
an_child_bus+0x8c/0x108)
>>> [    1.473321]  r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:eeb=
1ba14 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:eeb1=
ba00 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:ee8=
03e10 r5:eea28b10
>>> [    1.529083]  r4:00000000
>>> [    1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platfo=
rm_drv_probe+0x44/0x7c)
>>> [    1.539963]  r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d3=
08fc r4:ee803e10
>>> [    1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (rea=
lly_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:80d3=
08fc r4:ee803e10
>>> [    1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_fo=
r_each_dev+0x7c/0xb0)
>>> [    1.583286]  r7:00000000 r6:804df53c r5:80d308fc r4:00000000
>>> [    1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (drive=
r_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>] (__plat=
form_driver_register+0x40/0x54)
>>> [    1.632353]  r5:ffffe000 r4:80c2c07c
>>> [    1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0b=
c>] (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:80c9=
9e94
>>> [    1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (k=
ernel_init+0x18/0x124)
>>> [    1.676641]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:000=
00000 r5:8088ee80
>>> [    1.684464]  r4:00000000
>>> [    1.687000] [<8088ee80>] (kernel_init) from [<801080f8>] (ret_from_f=
ork+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! exit=
code=3D0x0000000b
>>> [    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 Tre=
e)
>>> [    1.736230] Backtrace:
>>> [    1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_st=
ack+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:000=
003ff r5:000003eb
>>> [    1.787561]  r4:f400010c r3:00000000
>>> [    1.791134] [<801014fc>] (gic_handle_irq) from [<80894a6c>] (__irq_s=
vc+0x6c/0x90)
>>> [    1.798609] Exception stack(0xee92df38 to 0xee92df80)
>>> [    1.803657] df20:                                                   =
    0000062c 6e329000
>>> [    1.811839] df40: 00000000 8011bd60 ee92c000 00000000 80d03cf8 80d03=
cac 80d16f9f 80a5d91c
>>> [    1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 80108=
a04 60000013 ffffffff
>>> [    1.828194]  r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:fff=
fffff 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_i=
dle+0xc4/0x14c)
>>> [    1.854296] [<8015ecc4>] (do_idle) from [<8015f09c>] (cpu_startup_en=
try+0x28/0x2c)
>>> [    1.861864]  r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:0000=
0001 r4:00000087
>>> [    1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (seco=
ndary_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 i=
nit! exitcode=3D0x0000000b
>>> [    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=3Dhttps-3A__git.kernel.org_pu=
b_scm_linux_kernel_git_helgaas_pci.git_tree_drivers_pci_dwc_pcie-2Ddesignwa=
re-2Dplat.c-3Fh-3Dnext-23n89&d=3DDwID-g&c=3DDPL6_X_6JkXFx7AXWqB0tg&r=3Ds2fO=
0hii0OGNOv9qQy_HRXy-xAJUD1NNoEcc3io_kx0&m=3DW1o6gVTGVGc3xn2ju9_MIEp82TgHJFp=
OKbls4-qJyB4&s=3De_EFnyFiqJ8foA366Hd97K4NpVoswMHhAxvsJ0bagVw&e=3D =

>>
>> The hang in the boot could be achieved by not declaring this op's struct=
ure.
> =

> 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 regi=
ster.
Do you think that maybe the size parameter might not be well defined for th=
is
driver?

> =

> Thanks
> Kishon
> =



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:31       ` Joao Pinto
  0 siblings, 0 replies; 71+ messages in thread
From: Joao Pinto @ 2017-05-08 15:31 UTC (permalink / raw)
  To: linux-arm-kernel

?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 at 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 at 60 video=HDMI-A-1:1024x768 at 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 at 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
> 

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:02 ` Peter Senna Tschudin
  (?)
@ 2017-05-08 15:39   ` Kishon Vijay Abraham I
  -1 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:39 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:39   ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:39 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Stanimir Varbanov, Minghuan Lian, Zhou Wang,
	Murali Karicheri, Niklas Cassel, Bjorn Helgaas, Mingkai Hu,
	Roy Zang, linux-arm-kernel, Lucas Stach

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:39   ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:39 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:31       ` Joao Pinto
  (?)
@ 2017-05-08 15:46         ` Kishon Vijay Abraham I
  -1 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:46 UTC (permalink / raw)
  To: Joao Pinto, Peter Senna Tschudin
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Zhou Wang,
	Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand, linux-pci,
	linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:46         ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:46 UTC (permalink / raw)
  To: Joao Pinto, Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Richard Zhu, Gabriele Paoloni,
	Jingoo Han, Pratyush Anand, linux-pci, linux-kernel,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

Hi Joao,

On Monday 08 May 2017 09:01 PM, Joao Pinto wrote:
> =C0s 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,
>>>
>>> =C0s 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 stru=
ctures
>>>>
>>>> Which seem to be causing our issues. Our device (imx6q-b850v3.dts) boo=
ts
>>>> 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/im=
x6q-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 =3D "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=
=3D10c5387d
>>>> [    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_m=
ap 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 d2=
3540 u69632
>>>> [    0.000000] pcpu-alloc: s37900 r8192 d23540 u69632 alloc=3D17*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=3D/dev/mmcblk0p2 ro rootwait =
cma=3D128M video=3DDP-1:1024x768@60 video=3DHDMI-A-1:1024x768@60 earlycon l=
ogl0
>>>> [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
>>>> [    0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048=
576 bytes)
>>>> [    0.000000] Inode-cache hash table entries: 131072 (order: 7, 52428=
8 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=3D64, Order=3D0-3, MinObjects=3D0, CPUs=
=3D2, Nodes=3D1
>>>> [    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=3D4 to nr_cpu_ids=3D=
2.
>>>> [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=3D16, nr_cp=
u_ids=3D2
>>>> [    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 enab=
led
>>>> [    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, wrap=
s every 715827882841ns
>>>> [    0.008183] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0=
xffffffff, max_idle_ns: 637086815595 ns
>>>> [    0.019149] Console: colour dummy device 80x30
>>>> [    0.022277] Calibrating delay loop (skipped), value calculated usin=
g timer frequency.. 6.00 BogoMIPS (lpj=3D30000)
>>>> [    0.032459] pid_max: default: 32768 minimum: 301
>>>> [    0.037145] Mount-cache hash table entries: 4096 (order: 2, 16384 b=
ytes)
>>>> [    0.043765] Mountpoint-cache hash table entries: 4096 (order: 2, 16=
384 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 - 0x10100=
054
>>>> [    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: 0xff=
ffffff, 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 allo=
cations
>>>> [    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 w=
atchpoint registers.
>>>> [    0.194018] hw-breakpoint: maximum watchpoint size is 4 bytes.
>>>> [    0.200687] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl d=
river
>>>> [    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 Rod=
olfo 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, 65=
536 bytes)
>>>> [    0.379153] TCP bind hash table entries: 16384 (order: 5, 131072 by=
tes)
>>>> [    0.385901] TCP: Hash tables configured (established 16384 bind 163=
84)
>>>> [    0.392300] UDP hash table entries: 1024 (order: 3, 32768 bytes)
>>>> [    0.398227] UDP-Lite hash table entries: 1024 (order: 3, 32768 byte=
s)
>>>> [    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=3D2000 audit(0.424:1): state=3Dinitialized =
audit_enabled=3D0 res=3D1
>>>> [    0.434655] workingset: timestamp_bits=3D30 max_order=3D19 bucket_o=
rder=3D0
>>>> [    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-0x01=
efffff]
>>>> [    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 D3=
cold
>>>> [    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] u=
nder [bus 01] (conflicts with (null) [bus 01])
>>>> [    0.880800] Unhandled fault: external abort on non-linefetch (0x100=
8) at 0xf0a40000
>>>> [    0.888416] pgd =3D 80004000
>>>> [    0.891112] [f0a40000] *pgd=3D7e01d811, *pte=3D01f40243, *ppte=3D01=
f40013
>>>> [    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-2=
0170508-dirty #106
>>>> [    0.912775] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tr=
ee)
>>>> [    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 : eea28=
b28
>>>> [    0.955840] r3 : 00000000  r2 : ee907b6c  r1 : 00000004  r0 : f0a40=
000
>>>> [    0.962368] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  S=
egment none
>>>> [    0.969589] Control: 10c5387d  Table: 1000404a  DAC: 00000051
>>>> [    0.975330] Process swapper/0 (pid: 1, stack limit =3D 0xee906210)
>>>> [    0.981333] Stack: (0xee907af0 to 0xee908000)
>>>> [    0.985686] 7ae0:                                     ee907b54 ee90=
7b00 80413308 80412564
>>>> [    0.993864] 7b00: 01f40000 00000000 02000000 00000000 00040000 8041=
26ec 01f40000 00000000
>>>> [    1.002041] 7b20: 804126ec 00000004 ee907b44 80413180 ee907bd4 6000=
0013 00000000 00000002
>>>> [    1.010220] 7b40: 00000000 eeb1be00 ee907b8c ee907b58 803f3eac 8041=
318c ee907b6c 80412564
>>>> [    1.018397] 7b60: 00000000 00000000 ee907b84 00000000 00000000 0000=
0000 ee907bd4 0000ea60
>>>> [    1.026577] 7b80: ee907bcc ee907b90 803f6598 803f3e40 eea28b10 0000=
0000 ee907bfc 80400974
>>>> [    1.034754] 7ba0: 00000000 00000000 eeb1be00 00000000 00000000 0000=
0002 00000000 00000001
>>>> [    1.042932] 7bc0: ee907bf4 ee907bd0 803f7f08 803f6570 ee907bfc 80db=
80b4 00000008 eeb1be00
>>>> [    1.051109] 7be0: eea16000 00000000 ee907c14 ee907bf8 803f7fec 803f=
7ec4 00000008 eeb1be00
>>>> [    1.059287] 7c00: eea16000 00000002 ee907c3c ee907c18 803f902c 803f=
7f88 eeb1bc00 eeb1be00
>>>> [    1.067466] 7c20: eea16000 00000001 00000002 00000000 ee907c94 ee90=
7c40 803f8d58 803f9008
>>>> [    1.075643] 7c40: 8010e080 802097c8 80a57698 00000001 00000000 0000=
0000 00000000 00000000
>>>> [    1.083821] 7c60: 00000001 00ff0201 ee907c94 eea16000 eeb1bc00 eeb1=
bc14 00000001 00000001
>>>> [    1.091999] 7c80: 00000001 00000001 ee907cbc ee907c98 803f9088 803f=
8ab4 eeb1ba00 eeb1bc00
>>>> [    1.100177] 7ca0: eea15c00 00000000 00000001 00000001 ee907d14 ee90=
7cc0 803f8ca0 803f9008
>>>> [    1.108355] 7cc0: 8010e080 802097c8 80a57698 00000000 00000000 0000=
0000 00000000 00000000
>>>> [    1.116533] 7ce0: 00000001 00010100 ee907d14 eea15c00 eeb1ba00 eeb1=
ba14 00000000 00000000
>>>> [    1.124712] 7d00: ee803e10 00000000 ee907d3c ee907d18 803f9088 803f=
8ab4 00000000 eeb1ba00
>>>> [    1.132890] 7d20: 80d308b4 ee907d70 ee907d70 ee803e10 ee907d5c ee90=
7d40 803f92d4 803f9008
>>>> [    1.141069] 7d40: ee907d70 80d308b4 eea28b28 80d3082c ee907da4 ee90=
7d60 80413d20 803f9274
>>>> [    1.149247] 7d60: ee907d70 80d308b4 8016f3bc eefd9ef8 ee907d70 ee90=
7d70 ee803e00 00000000
>>>> [    1.157425] 7d80: eea28b10 ee803e10 ee01a490 ee803e00 eefd9ef8 80c0=
0660 ee907ddc ee907da8
>>>> [    1.165603] 7da0: 8041479c 80413adc 00010080 80a886e4 ee01a490 ee80=
3e10 ee803e10 80d308fc
>>>> [    1.173781] 7dc0: 00000000 00000000 80d308fc 00000000 ee907df4 ee90=
7de0 804e10e8 8041441c
>>>> [    1.181959] 7de0: 80dc0d30 ee803e10 ee907e1c ee907df8 804df498 804e=
10b0 ee803e10 80d308fc
>>>> [    1.190136] 7e00: ee803e44 00000000 00000000 80c6a83c ee907e3c ee90=
7e20 804df610 804df2b4
>>>> [    1.198313] 7e20: 00000000 80d308fc 804df53c 00000000 ee907e64 ee90=
7e40 804dd74c 804df548
>>>> [    1.206493] 7e40: ee947058 ee8f8434 ee94706c 80d308fc ee01a380 80d4=
0850 ee907e74 ee907e68
>>>> [    1.214669] 7e60: 804def1c 804dd6dc ee907e9c ee907e78 804dea5c 804d=
ef00 80a88880 ee907e88
>>>> [    1.222848] 7e80: 80d308fc ffffe000 80c6a834 80b29414 ee907eb4 ee90=
7ea0 804dfe9c 804de958
>>>> [    1.231026] 7ea0: 80c2c07c ffffe000 ee907ec4 ee907eb8 804e1090 804d=
fe20 ee907edc ee907ec8
>>>> [    1.239204] 7ec0: 80c2c0bc 804e105c 80a58f90 ffffe000 ee907f4c ee90=
7ee0 80101c78 80c2c088
>>>> [    1.247383] 7ee0: 80c00684 803b9664 80b2a200 000000b9 ee907f4c ee90=
7f00 80142b54 80c0066c
>>>> [    1.255559] 7f00: 8015ddd4 00000006 00000006 00000000 80b29414 80ab=
8644 efffea30 efffea38
>>>> [    1.263739] 7f20: 00000000 00000006 80d7f000 80c99e94 80d7f000 80c6=
a834 80b29414 000000b9
>>>> [    1.271916] 7f40: ee907f94 ee907f50 80c00eb0 80101c38 00000006 0000=
0006 00000000 80c00660
>>>> [    1.280093] 7f60: 00000000 00000007 8088ee80 00000000 8088ee80 0000=
0000 00000000 00000000
>>>> [    1.288272] 7f80: 00000000 00000000 ee907fac ee907f98 8088ee98 80c0=
0d88 00000000 8088ee80
>>>> [    1.296450] 7fa0: 00000000 ee907fb0 801080f8 8088ee8c 00000000 0000=
0000 00000000 00000000
>>>> [    1.304627] 7fc0: 00000000 00000000 00000000 00000000 00000000 0000=
0000 00000000 00000000
>>>> [    1.312805] 7fe0: 00000000 00000000 00000000 00000000 00000013 0000=
0000 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_b=
us_read_config_dword+0x78/0xa0)
>>>> [    1.340387]  r10:eeb1be00 r9:00000000 r8:00000002 r7:00000000 r6:60=
000013 r5:ee907bd4
>>>> [    1.348210]  r4:80413180
>>>> [    1.350744] [<803f3e34>] (pci_bus_read_config_dword) from [<803f659=
8>] (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 [<803f7f=
08>] (pci_scan_single_device+0x50/0xc4)
>>>> [    1.375011]  r10:00000001 r9:00000000 r8:00000002 r7:00000000 r6:00=
000000 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_sca=
n_child_bus+0x30/0x108)
>>>> [    1.407895]  r7:00000002 r6:eea16000 r5:eeb1be00 r4:00000008
>>>> [    1.413551] [<803f8ffc>] (pci_scan_child_bus) from [<803f8d58>] (pc=
i_scan_bridge+0x2b0/0x554)
>>>> [    1.422078]  r9:00000000 r8:00000002 r7:00000001 r6:eea16000 r5:eeb=
1be00 r4:eeb1bc00
>>>> [    1.429820] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_s=
can_child_bus+0x8c/0x108)
>>>> [    1.438261]  r10:00000001 r9:00000001 r8:00000001 r7:00000001 r6:ee=
b1bc14 r5:eeb1bc00
>>>> [    1.446085]  r4:eea16000
>>>> [    1.448612] [<803f8ffc>] (pci_scan_child_bus) from [<803f8ca0>] (pc=
i_scan_bridge+0x1f8/0x554)
>>>> [    1.457138]  r9:00000001 r8:00000001 r7:00000000 r6:eea15c00 r5:eeb=
1bc00 r4:eeb1ba00
>>>> [    1.464881] [<803f8aa8>] (pci_scan_bridge) from [<803f9088>] (pci_s=
can_child_bus+0x8c/0x108)
>>>> [    1.473321]  r10:00000000 r9:ee803e10 r8:00000000 r7:00000000 r6:ee=
b1ba14 r5:eeb1ba00
>>>> [    1.481145]  r4:eea15c00
>>>> [    1.483675] [<803f8ffc>] (pci_scan_child_bus) from [<803f92d4>] (pc=
i_scan_root_bus_msi+0x6c/0xd4)
>>>> [    1.492549]  r9:ee803e10 r8:ee907d70 r7:ee907d70 r6:80d308b4 r5:eeb=
1ba00 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>] (imx=
6_pcie_probe+0x38c/0x540)
>>>> [    1.521259]  r10:80c00660 r9:eefd9ef8 r8:ee803e00 r7:ee01a490 r6:ee=
803e10 r5:eea28b10
>>>> [    1.529083]  r4:00000000
>>>> [    1.531619] [<80414410>] (imx6_pcie_probe) from [<804e10e8>] (platf=
orm_drv_probe+0x44/0x7c)
>>>> [    1.539963]  r9:00000000 r8:80d308fc r7:00000000 r6:00000000 r5:80d=
308fc r4:ee803e10
>>>> [    1.547709] [<804e10a4>] (platform_drv_probe) from [<804df498>] (re=
ally_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:80d=
308fc r4:ee803e10
>>>> [    1.575113] [<804df53c>] (__driver_attach) from [<804dd74c>] (bus_f=
or_each_dev+0x7c/0xb0)
>>>> [    1.583286]  r7:00000000 r6:804df53c r5:80d308fc r4:00000000
>>>> [    1.588945] [<804dd6d0>] (bus_for_each_dev) from [<804def1c>] (driv=
er_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>] (__pla=
tform_driver_register+0x40/0x54)
>>>> [    1.632353]  r5:ffffe000 r4:80c2c07c
>>>> [    1.635931] [<804e1050>] (__platform_driver_register) from [<80c2c0=
bc>] (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>] (kerne=
l_init_freeable+0x134/0x1f4)
>>>> [    1.661675]  r8:000000b9 r7:80b29414 r6:80c6a834 r5:80d7f000 r4:80c=
99e94
>>>> [    1.668385] [<80c00d7c>] (kernel_init_freeable) from [<8088ee98>] (=
kernel_init+0x18/0x124)
>>>> [    1.676641]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00=
000000 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! exi=
tcode=3D0x0000000b
>>>> [    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 Tr=
ee)
>>>> [    1.736230] Backtrace:
>>>> [    1.738676] [<8010c7d0>] (dump_backtrace) from [<8010cad4>] (show_s=
tack+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:00=
0003ff 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 80d0=
3cac 80d16f9f 80a5d91c
>>>> [    1.820016] df60: 00000000 ee92df94 ee92df98 ee92df88 80108a00 8010=
8a04 60000013 ffffffff
>>>> [    1.828194]  r10:00000000 r9:ee92c000 r8:80d16f9f r7:ee92df6c r6:ff=
ffffff 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_e=
ntry+0x28/0x2c)
>>>> [    1.861864]  r9:412fc09a r8:1000406a r7:80d7f320 r6:10c0387d r5:000=
00001 r4:00000087
>>>> [    1.869609] [<8015f074>] (cpu_startup_entry) from [<8010f1ec>] (sec=
ondary_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=3D0x0000000b
>>>> [    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=3Dhttps-3A__git.kernel.org_p=
ub_scm_linux_kernel_git_helgaas_pci.git_tree_drivers_pci_dwc_pcie-2Ddesignw=
are-2Dplat.c-3Fh-3Dnext-23n89&d=3DDwID-g&c=3DDPL6_X_6JkXFx7AXWqB0tg&r=3Ds2f=
O0hii0OGNOv9qQy_HRXy-xAJUD1NNoEcc3io_kx0&m=3DW1o6gVTGVGc3xn2ju9_MIEp82TgHJF=
pOKbls4-qJyB4&s=3De_EFnyFiqJ8foA366Hd97K4NpVoswMHhAxvsJ0bagVw&e=3D =

>>>
>>> The hang in the boot could be achieved by not declaring this op's struc=
ture.
>>
>> 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 re=
gister.
> 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 c=
ould
suspect on patch mentioned in $subject.

Thanks
Kishon

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:46         ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:46 UTC (permalink / raw)
  To: linux-arm-kernel

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 at 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 at 60 video=HDMI-A-1:1024x768 at 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 at 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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:39   ` Kishon Vijay Abraham I
  (?)
@ 2017-05-08 15:50     ` Kishon Vijay Abraham I
  -1 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:50 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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
> 

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:50     ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:50 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Stanimir Varbanov, Minghuan Lian, Zhou Wang,
	Murali Karicheri, Niklas Cassel, Bjorn Helgaas, Mingkai Hu,
	Roy Zang, linux-arm-kernel, Lucas Stach

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
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 15:50     ` Kishon Vijay Abraham I
  0 siblings, 0 replies; 71+ messages in thread
From: Kishon Vijay Abraham I @ 2017-05-08 15:50 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:39   ` Kishon Vijay Abraham I
  (?)
@ 2017-05-08 16:13     ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:13 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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)
...

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:13     ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:13 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Stanimir Varbanov, Minghuan Lian, Zhou Wang,
	Murali Karicheri, Niklas Cassel, Bjorn Helgaas, Mingkai Hu,
	Roy Zang, linux-arm-kernel, Lucas Stach

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)
...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:13     ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:13 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, May 08, 2017 at 09:09:32PM +0530, Kishon Vijay Abraham I wrote:
.
.
<snip>
.
.
> > [    0.501998] OF: PCI: host bridge /soc/pcie at 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 at 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 at 60 video=HDMI-A-1:1024x768 at 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 at 0x01000000 ranges:
[    0.495163] OF: PCI:   No bus range found for /soc/pcie at 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)
...

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:02 ` Peter Senna Tschudin
  (?)
@ 2017-05-08 16:34   ` Lucas Stach
  -1 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-08 16:34 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:34   ` Lucas Stach
  0 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-08 16:34 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Kishon Vijay Abraham I, Stanimir Varbanov,
	Minghuan Lian, Zhou Wang, Murali Karicheri, Niklas Cassel,
	Bjorn Helgaas, Mingkai Hu, Roy Zang, linux-arm-kernel

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:34   ` Lucas Stach
  0 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-08 16:34 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 16:34   ` Lucas Stach
@ 2017-05-08 16:44     ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:44 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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
> 

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:44     ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:44 UTC (permalink / raw)
  To: linux-arm-kernel

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
> 

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 16:44     ` Peter Senna Tschudin
  (?)
@ 2017-05-08 16:48       ` Lucas Stach
  -1 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-08 16:48 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:48       ` Lucas Stach
  0 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-08 16:48 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Kishon Vijay Abraham I, Stanimir Varbanov,
	Minghuan Lian, Zhou Wang, Murali Karicheri, Niklas Cassel,
	Bjorn Helgaas, Mingkai Hu, Roy Zang, linux-arm-kernel

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



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:48       ` Lucas Stach
  0 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-08 16:48 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 16:48       ` Lucas Stach
  (?)
@ 2017-05-08 16:58         ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:58 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:58         ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:58 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Kishon Vijay Abraham I, Stanimir Varbanov,
	Minghuan Lian, Zhou Wang, Murali Karicheri, Niklas Cassel,
	Bjorn Helgaas, Mingkai Hu, Roy Zang, linux-arm-kernel

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 16:58         ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 16:58 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:50     ` Kishon Vijay Abraham I
  (?)
@ 2017-05-08 17:15       ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 17:15 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Bjorn Helgaas, Jingoo Han, Richard Zhu, Lucas Stach,
	Murali Karicheri, Minghuan Lian, Mingkai Hu, Roy Zang,
	Thomas Petazzoni, Niklas Cassel, Jesper Nilsson, Joao Pinto,
	Zhou Wang, Gabriele Paoloni, Stanimir Varbanov, Pratyush Anand,
	linux-pci, linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 17:15       ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 17:15 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Stanimir Varbanov, Minghuan Lian, Zhou Wang,
	Murali Karicheri, Niklas Cassel, Bjorn Helgaas, Mingkai Hu,
	Roy Zang, linux-arm-kernel, Lucas Stach

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



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 17:15       ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 17:15 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 16:34   ` Lucas Stach
  (?)
@ 2017-05-08 17:55     ` Lorenzo Pieralisi
  -1 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-08 17:55 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Peter Senna Tschudin, Kishon Vijay Abraham I, Bjorn Helgaas,
	Jingoo Han, Richard Zhu, Murali Karicheri, Minghuan Lian,
	Mingkai Hu, Roy Zang, Thomas Petazzoni, Niklas Cassel,
	Jesper Nilsson, Joao Pinto, Zhou Wang, Gabriele Paoloni,
	Stanimir Varbanov, Pratyush Anand, linux-pci, linux-arm-kernel,
	linux-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 17:55     ` Lorenzo Pieralisi
  0 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-08 17:55 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Kishon Vijay Abraham I, Stanimir Varbanov,
	Minghuan Lian, Zhou Wang, Murali Karicheri, Peter Senna Tschudin,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 17:55     ` Lorenzo Pieralisi
  0 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-08 17:55 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:02 ` Peter Senna Tschudin
  (?)
@ 2017-05-08 18:23   ` Lorenzo Pieralisi
  -1 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-08 18:23 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Lucas Stach, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel

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]

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 18:23   ` Lorenzo Pieralisi
  0 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-08 18:23 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Kishon Vijay Abraham I, Stanimir Varbanov,
	Minghuan Lian, Zhou Wang, Murali Karicheri, Niklas Cassel,
	Bjorn Helgaas, Mingkai Hu, Roy Zang, linux-arm-kernel,
	Lucas Stach

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]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 18:23   ` Lorenzo Pieralisi
  0 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-08 18:23 UTC (permalink / raw)
  To: linux-arm-kernel

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]

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 17:55     ` Lorenzo Pieralisi
  (?)
@ 2017-05-08 20:33       ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 20:33 UTC (permalink / raw)
  To: Lorenzo Pieralisi
  Cc: Lucas Stach, Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han,
	Richard Zhu, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel

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()
...

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 20:33       ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 20:33 UTC (permalink / raw)
  To: Lorenzo Pieralisi
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Kishon Vijay Abraham I, Stanimir Varbanov,
	Minghuan Lian, Zhou Wang, Murali Karicheri, Niklas Cassel,
	Bjorn Helgaas, Mingkai Hu, Roy Zang, linux-arm-kernel,
	Lucas Stach

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()
...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-08 20:33       ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-08 20:33 UTC (permalink / raw)
  To: linux-arm-kernel

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 at 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()
...

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 15:02 ` Peter Senna Tschudin
  (?)
@ 2017-05-09  1:30   ` Fabio Estevam
  -1 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-09  1:30 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Lucas Stach, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel,
	Tim Harvey

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?

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09  1:30   ` Fabio Estevam
  0 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-09  1:30 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Tim Harvey, Pratyush Anand,
	linux-pci, linux-kernel, Kishon Vijay Abraham I,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

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?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09  1:30   ` Fabio Estevam
  0 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-09  1:30 UTC (permalink / raw)
  To: linux-arm-kernel

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?

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-09  1:30   ` Fabio Estevam
  (?)
@ 2017-05-09  6:34     ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-09  6:34 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Lucas Stach, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel,
	Tim Harvey

On Mon, May 08, 2017 at 10:30:13PM -0300, Fabio Estevam wrote:
> 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?

Something that ocurred to me is that u-boot is initializing the PCI, and
the PCI networkd cards.  Ideally this should not affect anything, but
can this be related to the issue?

	U-Boot 2017.01 (Mar 29 2017 - 13:13:19 +0100)

	CPU:   Freescale i.MX6D rev1.5 at 792 MHz
	Reset cause: POR
	BOARD: General Electric B850v3
	I2C:   ready
	DRAM:  2 GiB
	MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
	SF: Detected n25q32 with page size 256 Bytes, erase size 4 KiB, total 4 MiB
	PCI:
	  00:01.0     - 16c3:abcd - Bridge device
	   01:00.0    - 10b5:8605 - Bridge device
	    02:01.0   - 10b5:8605 - Bridge device
	     03:00.0  - 8086:1533 - Network controller
	    02:02.0   - 10b5:8605 - Bridge device
	     04:00.0  - 8086:1533 - Network controller
	    02:03.0   - 10b5:8605 - Bridge device
	In:    serial
	Out:   serial
	Err:   serial
	Net:   e1000: 00:a0:c9:00:00:00
	       e1000: 00:40:97:29:04:44
	       e1000#0, e1000#1, FEC [PRIME]


It works fine with v4.10, but I have a similar problem on v4.11
(a351e9b9fc24e982ec2f0e76379a49826036da12), but it is not the same.
Similar as that system freezes on PCI initialization:

	Starting kernel ...

	Uncompressing Linux... done, booting the kernel.
	[    0.000000] Booting Linux on physical CPU 0x0
	[    0.000000] Linux version 4.11.0-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) ) #1
	...
	[    0.437377] PCI: CLS 0 bytes, default 64
	[    0.442000] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
	[    0.450394] audit: initializing netlink subsys (disabled)
	[    0.454974] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
	[    0.455546] workingset: timestamp_bits=30 max_order=19 bucket_order=0
	[    0.474842] bounce: pool size: 64 pages
	[    0.475825] io scheduler noop registered
	[    0.479762] io scheduler deadline registered
	[    0.484151] io scheduler cfq registered (default)
	[    0.488699] io scheduler mq-deadline registered
	[    0.494867] OF: PCI: host bridge /soc/pcie@0x01000000 ranges:
	[    0.498969] OF: PCI:   No bus range found for /soc/pcie@0x01000000, using [bus 00-ff]
	[    0.506847] OF: PCI:    IO 0x01f80000..0x01f8ffff -> 0x00000000
	[    0.512737] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000

	It freezes here...

But is different as this patch makes the the system to boot:

diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c
index 801e46c..a562c14 100644
--- a/drivers/pci/dwc/pci-imx6.c
+++ b/drivers/pci/dwc/pci-imx6.c
@@ -523,6 +523,7 @@ static void imx6_pcie_host_init(struct pcie_port *pp)
 {
        struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
        struct imx6_pcie *imx6_pcie = to_imx6_pcie(pci);
+       printk(KERN_ERR "DEBUG: %s\n", __func__);

        imx6_pcie_assert_core_reset(imx6_pcie);
        imx6_pcie_init_phy(imx6_pcie);

I'm using CONFIG_EARLY_PRINTK (and a few others that are needed on iMX6
in order to enable early_printk), and the patch only makes my system
boot if 'earlycon loglevel=15' is passed to kernel. Here is full output
with v4.11 with the patch applied, and with 'earlycon loglevel=15'
passed to kernel, with the "[    0.520080] DEBUG: imx6_pcie_host_init "
message:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.11.0-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) ) #137 SMP Tue7
[    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 80d72000, 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 s37132 r8192 d24308 u69632
[    0.000000] pcpu-alloc: s37132 r8192 d24308 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: 1934692K/2097152K available (8192K kernel code, 489K rwdata, 2184K rodata, 1024K init, 301K bss, 31388K 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 - 0x80d7a79c   ( 490 kB)
[    0.000000]        .bss : 0x80d7c000 - 0x80dc77e0   ( 302 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU debugfs-based tracing is enabled.
[    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.000008] 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.019540] Console: colour dummy device 80x30
[    0.022282] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.032462] pid_max: default: 32768 minimum: 301
[    0.037162] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.043760] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.051479] CPU: Testing write buffer coherency: ok
[    0.055764] ftrace: allocating 26500 entries in 78 pages
[    0.110144] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.113341] Setting up static identity map for 0x10100000 - 0x1010004c
[    0.120205] smp: Bringing up secondary CPUs ...
[    0.124674] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.124766] smp: Brought up 1 node, 2 CPUs
[    0.133750] SMP: Total of 2 processors activated (12.00 BogoMIPS).
[    0.139937] CPU: All CPU(s) started in SVC mode.
[    0.145503] devtmpfs: initialized
[    0.157365] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.162338] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.172047] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.183864] pinctrl core: initialized pinctrl subsystem
[    0.187242] NET: Registered protocol family 16
[    0.192540] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.198685] CPU identified as i.MX6Q, silicon rev 1.5
[    0.218293] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.223452] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.230096] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.255639] mxs-dma 110000.dma-apbh: initialized
[    0.260025] vgaarb: loaded
[    0.260478] SCSI subsystem initialized
[    0.264013] libata version 3.00 loaded.
[    0.267925] usbcore: registered new interface driver usbfs
[    0.273201] usbcore: registered new interface driver hub
[    0.278526] usbcore: registered new device driver usb
[    0.284555] i2c i2c-0: IMX I2C adapter registered
[    0.288233] i2c i2c-0: can't use DMA, using PIO instead.
[    0.293892] i2c i2c-1: IMX I2C adapter registered
[    0.298233] i2c i2c-1: can't use DMA, using PIO instead.
[    0.303993] i2c i2c-2: IMX I2C adapter registered
[    0.308237] i2c i2c-2: can't use DMA, using PIO instead.
[    0.313626] pps_core: LinuxPPS API ver. 1 registered
[    0.318494] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.327642] PTP clock support registered
[    0.331780] Advanced Linux Sound Architecture Driver Initialized.
[    0.339544] clocksource: Switched to clocksource mxc_timer1
[    0.398977] NET: Registered protocol family 2
[    0.401102] TCP established hash table entries: 16384 (order: 4, 65536 bytes)
[    0.407750] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[    0.414493] TCP: Hash tables configured (established 16384 bind 16384)
[    0.420897] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.426824] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.433424] NET: Registered protocol family 1
[    0.437568] PCI: CLS 0 bytes, default 64
[    0.442188] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.450574] audit: initializing netlink subsys (disabled)
[    0.455158] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
[    0.455748] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.474988] bounce: pool size: 64 pages
[    0.475970] io scheduler noop registered
[    0.479908] io scheduler deadline registered
[    0.484295] io scheduler cfq registered (default)
[    0.488843] io scheduler mq-deadline registered
[    0.495021] OF: PCI: host bridge /soc/pcie@0x01000000 ranges:
[    0.499114] OF: PCI:   No bus range found for /soc/pcie@0x01000000, using [bus 00-ff]
[    0.506994] OF: PCI:    IO 0x01f80000..0x01f8ffff -> 0x00000000
[    0.512884] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000
[    0.520080] DEBUG: imx6_pcie_host_init
[    0.739622] imx6q-pcie 1ffc000.pcie: link up
[    0.741037] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled
[    0.746343] imx6q-pcie 1ffc000.pcie: link up
[    0.750634] imx6q-pcie 1ffc000.pcie: Link up, Gen1
[    0.755502] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[    0.761681] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.767140] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.773337] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[    0.780203] pci_bus 0000:00: scanning bus
[    0.784213] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[    0.790231] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.796466] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    0.803207] pci 0000:00:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.809376] pci 0000:00:00.0: supports D1
[    0.813356] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.819704] pci 0000:00:00.0: PME# disabled
[    0.824013] pci_bus 0000:00: fixups for bus
[    0.828040] PCI: bus0: Fast back to back transfers disabled
[    0.833630] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 0
[    0.840401] pci_bus 0000:01: scanning bus
[    0.844398] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400
[    0.850414] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
[    0.856750] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.863193] pci 0000:01:00.0: supports D1 D2
[    0.867013] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.873659] pci 0000:01:00.0: PME# disabled
[    0.899642] pci_bus 0000:01: fixups for bus
[    0.901016] PCI: bus1: Fast back to back transfers disabled
[    0.906547] pci 0000:01:00.0: scanning [bus 00-00] behind bridge, pass 0
[    0.913262] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.921302] pci 0000:01:00.0: scanning [bus 00-00] behind bridge, pass 1
[    0.928187] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01])
[    0.938232] pci_bus 0000:02: scanning bus
[    0.942325] pci 0000:02:01.0: [10b5:8605] type 01 class 0x060400
[    0.948485] pci 0000:02:01.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.954818] pci 0000:02:01.0: supports D1 D2
[    0.958651] pci 0000:02:01.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.965296] pci 0000:02:01.0: PME# disabled
[    0.969765] pci 0000:02:02.0: [10b5:8605] type 01 class 0x060400
[    0.975712] pci 0000:02:02.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.982049] pci 0000:02:02.0: supports D1 D2
[    0.985882] pci 0000:02:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.992528] pci 0000:02:02.0: PME# disabled
[    0.996985] pci 0000:02:03.0: [10b5:8605] type 01 class 0x060400
[    1.002967] pci 0000:02:03.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.009258] pci 0000:02:03.0: supports D1 D2
[    1.013133] pci 0000:02:03.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.019755] pci 0000:02:03.0: PME# disabled
[    1.024378] pci_bus 0000:02: fixups for bus
[    1.028215] PCI: bus2: Fast back to back transfers disabled
[    1.033683] pci 0000:02:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.040362] pci 0000:02:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.048392] pci 0000:02:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.055062] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.063105] pci 0000:02:03.0: scanning [bus 00-00] behind bridge, pass 0
[    1.069765] pci 0000:02:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.077795] pci 0000:02:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.084718] pci_bus 0000:03: scanning bus
[    1.088565] pci 0000:03:00.0: [8086:1533] type 00 class 0x020000
[    1.094522] pci 0000:03:00.0: calling quirk_f0_vpd_link+0x0/0x7c
[    1.100548] pci 0000:03:00.0: reg 0x10: [mem 0x00000000-0x0007ffff]
[    1.106815] pci 0000:03:00.0: reg 0x18: [io  0x0000-0x001f]
[    1.112357] pci 0000:03:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[    1.118750] pci 0000:03:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.125155] pci 0000:03:00.0: PME# supported from D0 D3hot D3cold
[    1.130857] pci 0000:03:00.0: PME# disabled
[    1.135562] pci_bus 0000:03: fixups for bus
[    1.139210] PCI: bus3: Fast back to back transfers disabled
[    1.144776] pci_bus 0000:03: bus scan returning with max=03
[    1.150336] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    1.156938] pci_bus 0000:03: [bus 03] partially hidden behind bridge 0000:01 [bus 01]
[    1.164796] pci 0000:02:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.171735] pci_bus 0000:04: scanning bus
[    1.175565] pci 0000:04:00.0: [8086:1533] type 00 class 0x020000
[    1.181520] pci 0000:04:00.0: calling quirk_f0_vpd_link+0x0/0x7c
[    1.187529] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x0007ffff]
[    1.193834] pci 0000:04:00.0: reg 0x18: [io  0x0000-0x001f]
[    1.199338] pci 0000:04:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[    1.205769] pci 0000:04:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.212155] pci 0000:04:00.0: PME# supported from D0 D3hot D3cold
[    1.217841] pci 0000:04:00.0: PME# disabled
[    1.222581] pci_bus 0000:04: fixups for bus
[    1.226209] PCI: bus4: Fast back to back transfers disabled
[    1.231765] pci_bus 0000:04: bus scan returning with max=04
[    1.237315] pci_bus 0000:04: busn_res: [bus 04-ff] end is updated to 04
[    1.243953] pci_bus 0000:04: [bus 04] partially hidden behind bridge 0000:01 [bus 01]
[    1.251789] pci 0000:02:03.0: scanning [bus 00-00] behind bridge, pass 1
[    1.258703] pci_bus 0000:05: scanning bus
[    1.262487] pci_bus 0000:05: fixups for bus
[    1.266629] PCI: bus5: Fast back to back transfers enabled
[    1.272130] pci_bus 0000:05: bus scan returning with max=05
[    1.277681] pci_bus 0000:05: busn_res: [bus 05-ff] end is updated to 05
[    1.284320] pci_bus 0000:05: [bus 05] partially hidden behind bridge 0000:01 [bus 01]
[    1.292152] pci_bus 0000:02: bus scan returning with max=05
[    1.297691] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 05
[    1.304324] pci_bus 0000:02: busn_res: can not insert [bus 02-05] under [bus 01] (conflicts with (null) [bus 01])
[    1.314596] pci_bus 0000:02: [bus 02-05] partially hidden behind bridge 0000:01 [bus 01]
[    1.322685] pci_bus 0000:01: bus scan returning with max=05
[    1.328228] pci 0000:00:00.0: bridge has subordinate 01 but max busn 05
[    1.334860] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 1
[    1.341557] pci_bus 0000:00: bus scan returning with max=01
[    1.347194] pci 0000:00:00.0: fixup irq: got 333
[    1.351742] pci 0000:00:00.0: assigning IRQ 333
[    1.356282] pci 0000:01:00.0: fixup irq: got 333
[    1.360872] pci 0000:01:00.0: assigning IRQ 333
[    1.365472] pci 0000:02:01.0: fixup irq: got 334
[    1.370010] pci 0000:02:01.0: assigning IRQ 334
[    1.374625] pci 0000:02:02.0: fixup irq: got 335
[    1.379122] pci 0000:02:02.0: assigning IRQ 335
[    1.383734] pci 0000:02:03.0: fixup irq: got 23
[    1.388169] pci 0000:02:03.0: assigning IRQ 23
[    1.392674] pci 0000:03:00.0: fixup irq: got 334
[    1.397217] pci 0000:03:00.0: assigning IRQ 334
[    1.401814] pci 0000:04:00.0: fixup irq: got 335
[    1.406352] pci 0000:04:00.0: assigning IRQ 335
[    1.411140] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[    1.417670] pci 0000:00:00.0: BAR 8: assigned [mem 0x01100000-0x014fffff]
[    1.424482] pci 0000:00:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff pref]
[    1.431694] pci 0000:00:00.0: BAR 6: assigned [mem 0x01700000-0x0170ffff pref]
[    1.438895] pci 0000:00:00.0: BAR 7: assigned [io  0x1000-0x2fff]
[    1.445006] pci 0000:01:00.0: BAR 8: assigned [mem 0x01100000-0x013fffff]
[    1.451787] pci 0000:01:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref]
[    1.459513] pci 0000:01:00.0: BAR 0: assigned [mem 0x01400000-0x01403fff]
[    1.466335] pci 0000:01:00.0: BAR 7: assigned [io  0x1000-0x2fff]
[    1.472411] pci 0000:02:01.0: BAR 8: assigned [mem 0x01100000-0x012fffff]
[    1.479176] pci 0000:02:01.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref]
[    1.486935] pci 0000:02:02.0: BAR 8: assigned [mem 0x01300000-0x013fffff]
[    1.493721] pci 0000:02:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    1.499811] pci 0000:02:02.0: BAR 7: assigned [io  0x2000-0x2fff]
[    1.505887] pci 0000:03:00.0: BAR 0: assigned [mem 0x01100000-0x0117ffff]
[    1.512707] pci 0000:03:00.0: BAR 3: assigned [mem 0x01180000-0x01183fff]
[    1.519476] pci 0000:03:00.0: BAR 2: assigned [io  0x1000-0x101f]
[    1.525582] pci 0000:02:01.0: PCI bridge to [bus 03]
[    1.530529] pci 0000:02:01.0:   bridge window [io  0x1000-0x1fff]
[    1.536618] pci 0000:02:01.0:   bridge window [mem 0x01100000-0x012fffff]
[    1.543414] pci 0000:02:01.0:   bridge window [mem 0x01500000-0x016fffff 64bit pref]
[    1.551182] pci 0000:04:00.0: BAR 0: assigned [mem 0x01300000-0x0137ffff]
[    1.557930] pci 0000:04:00.0: BAR 3: assigned [mem 0x01380000-0x01383fff]
[    1.564734] pci 0000:04:00.0: BAR 2: assigned [io  0x2000-0x201f]
[    1.570820] pci 0000:02:02.0: PCI bridge to [bus 04]
[    1.575751] pci 0000:02:02.0:   bridge window [io  0x2000-0x2fff]
[    1.581873] pci 0000:02:02.0:   bridge window [mem 0x01300000-0x013fffff]
[    1.588667] pci 0000:02:03.0: PCI bridge to [bus 05]
[    1.593666] pci 0000:01:00.0: PCI bridge to [bus 02-05]
[    1.598806] pci 0000:01:00.0:   bridge window [io  0x1000-0x2fff]
[    1.604929] pci 0000:01:00.0:   bridge window [mem 0x01100000-0x013fffff]
[    1.611706] pci 0000:01:00.0:   bridge window [mem 0x01500000-0x016fffff 64bit pref]
[    1.619447] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.624393] pci 0000:00:00.0:   bridge window [io  0x1000-0x2fff]
[    1.630483] pci 0000:00:00.0:   bridge window [mem 0x01100000-0x014fffff]
[    1.637253] pci 0000:00:00.0:   bridge window [mem 0x01500000-0x016fffff pref]
[    1.644791] pcieport 0000:00:00.0: AER enabled with IRQ 301
[    1.650209] pcieport 0000:01:00.0: enabling device (0140 -> 0143)
[    1.656268] pcieport 0000:01:00.0: enabling bus mastering
[    1.662189] pcieport 0000:02:01.0: enabling device (0140 -> 0143)
[    1.667758] pcieport 0000:02:01.0: enabling bus mastering
[    1.673719] pcieport 0000:02:02.0: enabling device (0140 -> 0143)
[    1.679224] pcieport 0000:02:02.0: enabling bus mastering
[    1.685282] pcieport 0000:02:03.0: enabling bus mastering
[    1.690510] pci 0000:03:00.0: calling quirk_e100_interrupt+0x0/0x1f0
[    1.696266] pci 0000:04:00.0: calling quirk_e100_interrupt+0x0/0x1f0
[    1.703545] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.715529] imx-sdma 20ec000.sdma: loaded firmware 1.1
[    1.716036] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 69, base_baud = 5000000) is a IMX
[    1.729342] console [ttymxc2] enabled
[    1.729342] console [ttymxc2] enabled
[    1.733831] bootconsole [ec_imx21] disabled
[    1.733831] bootconsole [ec_imx21] disabled
[    1.742658] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 70, base_baud = 5000000) is a IMX
[    1.758535] etnaviv gpu-subsystem: bound 134000.gpu (ops 0x80947af8)
[    1.764948] etnaviv gpu-subsystem: bound 130000.gpu (ops 0x80947af8)
[    1.771335] etnaviv gpu-subsystem: bound 2204000.gpu (ops 0x80947af8)
[    1.777790] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[    1.831594] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[    1.882155] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[    1.888267] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[    1.894967] [drm] Initialized etnaviv 1.0.0 20151214 for gpu-subsystem on minor 0
[    1.903627] imx-ipuv3 2400000.ipu: IPUv3H probed
[    1.909122] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.915760] [drm] No driver support for vblank timestamp query.
[    1.921800] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops 0x80940bcc)
[    1.929124] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops 0x80940bcc)
[    1.936466] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops 0x80940bcc)
[    1.943796] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops 0x80940bcc)
[    1.951176] imx-drm display-subsystem: failed to bind 120000.hdmi (ops 0x80940d44): -517
[    1.959381] imx-drm display-subsystem: master bind failed: -517
[    1.965349] imx-ipuv3 2800000.ipu: IPUv3H probed
[    1.978695] brd: module loaded
[    1.988614] loop: module loaded
[    1.998057] da9063 2-0058: Device detected (chip-ID: 0x61, var-ID: 0x60)
[    2.030150] DA9063_BCORE1: Bringing 1380000uV into 1420000-1420000uV
[    2.043622] DA9063_BCORE2: Bringing 1380000uV into 1420000-1420000uV
[    2.058022] random: fast init done
[    2.063364] DA9063_BMEM: Bringing 1500000uV into 1800000-1800000uV
[    2.076596] DA9063_BIO: Bringing 3160000uV into 1800000-1800000uV
[    2.117375] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[    2.125344] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[    2.133373] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[    2.141574] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[    2.152094] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[    2.159086] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    2.167913] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[    2.178159] scsi host0: ahci-imx
[    2.181635] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 73
[    2.192873] m25p80 spi0.0: n25q032 (4096 Kbytes)
[    2.197522] 3 ofpart partitions found on MTD device spi0.0
[    2.203048] Creating 3 MTD partitions on "spi0.0":
[    2.207850] 0x000000000000-0x0000000c0000 : "U-Boot"
[    2.213778] 0x0000000c0000-0x0000000d0000 : "env"
[    2.219365] 0x0000000d0000-0x000000200000 : "spare"
[    2.225192] spi_imx 2008000.ecspi: probed
[    2.230736] at25 spi4.0: 32 KByte at25 eeprom, pagesize 64
[    2.236247] spi_imx 2018000.ecspi: probed
[    2.241083] libphy: Fixed MDIO Bus: probed
[    2.246101] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    2.255166] pps pps0: new PPS source ptp0
[    2.263370] libphy: fec_enet_mii_bus: probed
[    2.268150] fec 2188000.ethernet eth0: registered PHC device 0
[    2.274216] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    2.281199] igb: Copyright (c) 2007-2014 Intel Corporation.
[    2.286866] igb 0000:03:00.0: enabling device (0140 -> 0142)
[    2.292622] igb 0000:03:00.0: enabling bus mastering
[    2.521069] ata1: SATA link down (SStatus 0 SControl 300)
[    2.526506] ahci-imx 2200000.sata: no device found, disabling link.
[    2.529628] pps pps1: new PPS source ptp1
[    2.529637] igb 0000:03:00.0: added PHC on eth1
[    2.529642] igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
[    2.529649] igb 0000:03:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 00:a0:c9:00:00:00
[    2.529726] igb 0000:03:00.0: eth1: PBA No: 000300-000
[    2.529732] igb 0000:03:00.0: Using MSI interrupts. 1 rx queue(s), 1 tx queue(s)
[    2.529824] igb 0000:04:00.0: enabling device (0140 -> 0142)
[    2.529915] igb 0000:04:00.0: enabling bus mastering
[    2.578559] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[    2.764559] pps pps2: new PPS source ptp2
[    2.768581] igb 0000:04:00.0: added PHC on eth2
[    2.773144] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
[    2.780043] igb 0000:04:00.0: eth2: (PCIe:2.5Gb/s:Width x1) 00:40:97:29:04:44
[    2.787255] igb 0000:04:00.0: eth2: PBA No: 000300-000
[    2.792416] igb 0000:04:00.0: Using MSI interrupts. 1 rx queue(s), 1 tx queue(s)
[    2.800367] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.806902] ehci-pci: EHCI PCI platform driver
[    2.811431] ehci-mxc: Freescale On-Chip EHCI Host driver
[    2.816881] usbcore: registered new interface driver cdc_acm
[    2.822567] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.830654] usbcore: registered new interface driver usb-storage
[    2.842020] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    2.846924] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    2.879574] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    2.885775] hub 1-0:1.0: USB hub found
[    2.889618] hub 1-0:1.0: 1 port detected
[    2.897826] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    2.902761] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    2.939567] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    2.945689] hub 2-0:1.0: USB hub found
[    2.949492] hub 2-0:1.0: 1 port detected
[    2.954278] usbcore: registered new interface driver usbtouchscreen
[    2.967299] input: da9063-onkey as /devices/soc0/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0058/da9063-onkey/input/input0
[    2.982525] rtc-rx8010 2-0032: IRQ 183 supplied
[    2.991070] rtc-rx8010 2-0032: rtc core: registered rx8010 as rtc0
[    2.997757] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1
[    3.006602] i2c /dev entries driver
[    3.012015] i2c i2c-0: Added multiplexed i2c bus 3
[    3.018575] at24 4-0050: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
[    3.025458] i2c i2c-0: Added multiplexed i2c bus 4
[    3.030505] i2c i2c-0: Added multiplexed i2c bus 5
[    3.035635] i2c i2c-0: Added multiplexed i2c bus 6
[    3.040821] pca953x 7-0074: 7-0074 supply vcc not found, using dummy regulator
[    3.051956] GPIO line 502 (PCA9539-P06) hogged as output/low
[    3.058716] GPIO line 503 (PCA9539-P07) hogged as output/low
[    3.065536] GPIO line 504 (PCA9539-P10) hogged as output/low
[    3.072346] GPIO line 505 (PCA9539-P11) hogged as output/low
[    3.079138] GPIO line 506 (PCA9539-P12) hogged as output/low
[    3.085946] GPIO line 507 (PCA9539-P13) hogged as output/low
[    3.092754] GPIO line 508 (PCA9539-P14) hogged as output/low
[    3.099559] GPIO line 509 (PCA9539-P15) hogged as output/low
[    3.106345] GPIO line 510 (PCA9539-P16) hogged as output/low
[    3.113150] GPIO line 511 (PCA9539-P17) hogged as output/low
[    3.120518] i2c i2c-0: Added multiplexed i2c bus 7
[    3.125531] i2c i2c-0: Added multiplexed i2c bus 8
[    3.130568] i2c i2c-0: Added multiplexed i2c bus 9
[    3.135559] i2c i2c-0: Added multiplexed i2c bus 10
[    3.140481] pca954x 0-0070: registered 8 multiplexed busses for I2C mux pca9547
[    3.148524] i2c i2c-1: Added multiplexed i2c bus 11
[    3.153632] i2c i2c-1: Added multiplexed i2c bus 12
[    3.158705] i2c i2c-1: Added multiplexed i2c bus 13
[    3.163817] i2c i2c-1: Added multiplexed i2c bus 14
[    3.168937] i2c i2c-1: Added multiplexed i2c bus 15
[    3.174109] i2c i2c-1: Added multiplexed i2c bus 16
[    3.179193] i2c i2c-1: Added multiplexed i2c bus 17
[    3.184318] i2c i2c-1: Added multiplexed i2c bus 18
[    3.189206] pca954x 1-0070: registered 8 multiplexed busses for I2C mux pca9547
[    3.201006] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    3.207544] sdhci: Secure Digital Host Controller Interface driver
[    3.213760] sdhci: Copyright(c) Pierre Ossman
[    3.218121] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.224690] sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on normal mode
[    3.259573] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    3.299572] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    3.308401] usbcore: registered new interface driver usbhid
[    3.309567] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[    3.320470] usbhid: USB HID core driver
[    3.327081] mma8452 3-001c: registering fsl,mma8453 accelerometer; ID 0x3a
[    3.410591] mmc0: new DDR MMC card at address 0001
[    3.415849] mmcblk0: mmc0:0001 BGND3R 29.1 GiB
[    3.420631] mmcblk0boot0: mmc0:0001 BGND3R partition 1 4.00 MiB
[    3.426801] mmcblk0boot1: mmc0:0001 BGND3R partition 2 4.00 MiB
[    3.432905] sgtl5000 6-000a: sgtl5000 revision 0x11
[    3.432982] mmcblk0rpmb: mmc0:0001 BGND3R partition 3 4.00 MiB
[    3.444504]  mmcblk0: p1 p2 p3 p4 < p5 >
[    3.446177] sgtl5000 6-000a: Using internal LDO instead of VDDD: check ER1
[    3.456964] hub 1-1:1.0: USB hub found
[    3.461219] hub 1-1:1.0: 3 ports detected
[    3.475293] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[    3.496884] imx-sgtl5000 sound: sgtl5000 <-> 2028000.ssi mapping ok
[    3.505192] NET: Registered protocol family 10
[    3.510963] Segment Routing with IPv6
[    3.514701] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.521240] NET: Registered protocol family 17
[    3.525700] 8021q: 802.1Q VLAN Support v1.8
[    3.529944] Key type dns_resolver registered
[    3.536393] Registering SWP/SWPB emulation handler
[    3.536406] hub 2-1:1.0: USB hub found
[    3.536538] hub 2-1:1.0: 4 ports detected
[    3.559106] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.565764] [drm] No driver support for vblank timestamp query.
[    3.571772] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops 0x80940bcc)
[    3.579024] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops 0x80940bcc)
[    3.586301] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops 0x80940bcc)
[    3.593565] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops 0x80940bcc)
[    3.600990] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
[    3.610641] imx-drm display-subsystem: bound 120000.hdmi (ops 0x80940d44)
[    3.617542] /soc/aips-bus@02000000/ldb/lvds-channel@0: could not find display-timings node
[    3.625839] /soc/aips-bus@02000000/ldb/lvds-channel@0: no timings specified
[    3.632960] imx-ldb 2000000.aips-bus:ldb: dual-channel mode, ignoring second output
[    3.640643] imx-drm display-subsystem: bound 2000000.aips-bus:ldb (ops 0x809408b0)
[    3.725015] Console: switching to colour frame buffer device 128x48
[    3.747978] imx-drm display-subsystem: fb0:  frame buffer device
[    3.754350] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[    3.762724] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    3.775089] imx_thermal 2000000.aips-bus:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C
[    3.849560] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[    3.879565] usb 1-1.1: new full-speed USB device number 3 using ci_hdrc
[    3.949552] mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[    3.963290] rtc-rx8010 2-0032: setting system clock to 2017-05-09 07:22:12 UTC (1494314532)
[    3.972213] lvds_ppen: disabling
[    4.000083] DA9063_LDO5: disabling
[    4.006268] hub 2-1.1:1.0: USB hub found
[    4.010413] hub 2-1.1:1.0: 3 ports detected
[    4.018614] DA9063_LDO6: disabling
[    4.025896] DA9063_LDO7: disabling
[    4.033392] DA9063_LDO8: disabling
[    4.040814] DA9063_LDO9: disabling
[    4.048416] DA9063_LDO10: disabling
[    4.064439] input: Silicon Laboratories B850 2nd video audio interface as /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/11
[    4.099577] ALSA device list:
[    4.102555]   #0: imx6q-ba16-sgtl5000
[    4.149722] hid-generic 0003:1901:0191.0001: input: USB HID v1.11 Device [Silicon Laboratories B850 2nd video audio interface] on usb-ci_2
[    4.166269] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
[    4.187392] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.195554] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[    4.207517] devtmpfs: mounted
[    4.211506] Freeing unused kernel memory: 1024K
[    4.269588] usb 1-1.3: new full-speed USB device number 4 using ci_hdrc
[    4.349641] systemd[1]: systemd 232 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -G)
[    4.368028] systemd[1]: Detected architecture arm.
...

^ permalink raw reply related	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09  6:34     ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-09  6:34 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Tim Harvey, Pratyush Anand,
	linux-pci, linux-kernel, Kishon Vijay Abraham I,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

On Mon, May 08, 2017 at 10:30:13PM -0300, Fabio Estevam wrote:
> 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?

Something that ocurred to me is that u-boot is initializing the PCI, and
the PCI networkd cards.  Ideally this should not affect anything, but
can this be related to the issue?

	U-Boot 2017.01 (Mar 29 2017 - 13:13:19 +0100)

	CPU:   Freescale i.MX6D rev1.5 at 792 MHz
	Reset cause: POR
	BOARD: General Electric B850v3
	I2C:   ready
	DRAM:  2 GiB
	MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
	SF: Detected n25q32 with page size 256 Bytes, erase size 4 KiB, total 4 MiB
	PCI:
	  00:01.0     - 16c3:abcd - Bridge device
	   01:00.0    - 10b5:8605 - Bridge device
	    02:01.0   - 10b5:8605 - Bridge device
	     03:00.0  - 8086:1533 - Network controller
	    02:02.0   - 10b5:8605 - Bridge device
	     04:00.0  - 8086:1533 - Network controller
	    02:03.0   - 10b5:8605 - Bridge device
	In:    serial
	Out:   serial
	Err:   serial
	Net:   e1000: 00:a0:c9:00:00:00
	       e1000: 00:40:97:29:04:44
	       e1000#0, e1000#1, FEC [PRIME]


It works fine with v4.10, but I have a similar problem on v4.11
(a351e9b9fc24e982ec2f0e76379a49826036da12), but it is not the same.
Similar as that system freezes on PCI initialization:

	Starting kernel ...

	Uncompressing Linux... done, booting the kernel.
	[    0.000000] Booting Linux on physical CPU 0x0
	[    0.000000] Linux version 4.11.0-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) ) #1
	...
	[    0.437377] PCI: CLS 0 bytes, default 64
	[    0.442000] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
	[    0.450394] audit: initializing netlink subsys (disabled)
	[    0.454974] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
	[    0.455546] workingset: timestamp_bits=30 max_order=19 bucket_order=0
	[    0.474842] bounce: pool size: 64 pages
	[    0.475825] io scheduler noop registered
	[    0.479762] io scheduler deadline registered
	[    0.484151] io scheduler cfq registered (default)
	[    0.488699] io scheduler mq-deadline registered
	[    0.494867] OF: PCI: host bridge /soc/pcie@0x01000000 ranges:
	[    0.498969] OF: PCI:   No bus range found for /soc/pcie@0x01000000, using [bus 00-ff]
	[    0.506847] OF: PCI:    IO 0x01f80000..0x01f8ffff -> 0x00000000
	[    0.512737] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000

	It freezes here...

But is different as this patch makes the the system to boot:

diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c
index 801e46c..a562c14 100644
--- a/drivers/pci/dwc/pci-imx6.c
+++ b/drivers/pci/dwc/pci-imx6.c
@@ -523,6 +523,7 @@ static void imx6_pcie_host_init(struct pcie_port *pp)
 {
        struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
        struct imx6_pcie *imx6_pcie = to_imx6_pcie(pci);
+       printk(KERN_ERR "DEBUG: %s\n", __func__);

        imx6_pcie_assert_core_reset(imx6_pcie);
        imx6_pcie_init_phy(imx6_pcie);

I'm using CONFIG_EARLY_PRINTK (and a few others that are needed on iMX6
in order to enable early_printk), and the patch only makes my system
boot if 'earlycon loglevel=15' is passed to kernel. Here is full output
with v4.11 with the patch applied, and with 'earlycon loglevel=15'
passed to kernel, with the "[    0.520080] DEBUG: imx6_pcie_host_init "
message:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.11.0-dirty (peter@lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) ) #137 SMP Tue7
[    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 80d72000, 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 s37132 r8192 d24308 u69632
[    0.000000] pcpu-alloc: s37132 r8192 d24308 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: 1934692K/2097152K available (8192K kernel code, 489K rwdata, 2184K rodata, 1024K init, 301K bss, 31388K 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 - 0x80d7a79c   ( 490 kB)
[    0.000000]        .bss : 0x80d7c000 - 0x80dc77e0   ( 302 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU debugfs-based tracing is enabled.
[    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.000008] 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.019540] Console: colour dummy device 80x30
[    0.022282] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.032462] pid_max: default: 32768 minimum: 301
[    0.037162] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.043760] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.051479] CPU: Testing write buffer coherency: ok
[    0.055764] ftrace: allocating 26500 entries in 78 pages
[    0.110144] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.113341] Setting up static identity map for 0x10100000 - 0x1010004c
[    0.120205] smp: Bringing up secondary CPUs ...
[    0.124674] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.124766] smp: Brought up 1 node, 2 CPUs
[    0.133750] SMP: Total of 2 processors activated (12.00 BogoMIPS).
[    0.139937] CPU: All CPU(s) started in SVC mode.
[    0.145503] devtmpfs: initialized
[    0.157365] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.162338] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.172047] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.183864] pinctrl core: initialized pinctrl subsystem
[    0.187242] NET: Registered protocol family 16
[    0.192540] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.198685] CPU identified as i.MX6Q, silicon rev 1.5
[    0.218293] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.223452] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.230096] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.255639] mxs-dma 110000.dma-apbh: initialized
[    0.260025] vgaarb: loaded
[    0.260478] SCSI subsystem initialized
[    0.264013] libata version 3.00 loaded.
[    0.267925] usbcore: registered new interface driver usbfs
[    0.273201] usbcore: registered new interface driver hub
[    0.278526] usbcore: registered new device driver usb
[    0.284555] i2c i2c-0: IMX I2C adapter registered
[    0.288233] i2c i2c-0: can't use DMA, using PIO instead.
[    0.293892] i2c i2c-1: IMX I2C adapter registered
[    0.298233] i2c i2c-1: can't use DMA, using PIO instead.
[    0.303993] i2c i2c-2: IMX I2C adapter registered
[    0.308237] i2c i2c-2: can't use DMA, using PIO instead.
[    0.313626] pps_core: LinuxPPS API ver. 1 registered
[    0.318494] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.327642] PTP clock support registered
[    0.331780] Advanced Linux Sound Architecture Driver Initialized.
[    0.339544] clocksource: Switched to clocksource mxc_timer1
[    0.398977] NET: Registered protocol family 2
[    0.401102] TCP established hash table entries: 16384 (order: 4, 65536 bytes)
[    0.407750] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[    0.414493] TCP: Hash tables configured (established 16384 bind 16384)
[    0.420897] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.426824] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.433424] NET: Registered protocol family 1
[    0.437568] PCI: CLS 0 bytes, default 64
[    0.442188] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.450574] audit: initializing netlink subsys (disabled)
[    0.455158] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
[    0.455748] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.474988] bounce: pool size: 64 pages
[    0.475970] io scheduler noop registered
[    0.479908] io scheduler deadline registered
[    0.484295] io scheduler cfq registered (default)
[    0.488843] io scheduler mq-deadline registered
[    0.495021] OF: PCI: host bridge /soc/pcie@0x01000000 ranges:
[    0.499114] OF: PCI:   No bus range found for /soc/pcie@0x01000000, using [bus 00-ff]
[    0.506994] OF: PCI:    IO 0x01f80000..0x01f8ffff -> 0x00000000
[    0.512884] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000
[    0.520080] DEBUG: imx6_pcie_host_init
[    0.739622] imx6q-pcie 1ffc000.pcie: link up
[    0.741037] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled
[    0.746343] imx6q-pcie 1ffc000.pcie: link up
[    0.750634] imx6q-pcie 1ffc000.pcie: Link up, Gen1
[    0.755502] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[    0.761681] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.767140] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.773337] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[    0.780203] pci_bus 0000:00: scanning bus
[    0.784213] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[    0.790231] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.796466] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    0.803207] pci 0000:00:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.809376] pci 0000:00:00.0: supports D1
[    0.813356] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.819704] pci 0000:00:00.0: PME# disabled
[    0.824013] pci_bus 0000:00: fixups for bus
[    0.828040] PCI: bus0: Fast back to back transfers disabled
[    0.833630] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 0
[    0.840401] pci_bus 0000:01: scanning bus
[    0.844398] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400
[    0.850414] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
[    0.856750] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.863193] pci 0000:01:00.0: supports D1 D2
[    0.867013] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.873659] pci 0000:01:00.0: PME# disabled
[    0.899642] pci_bus 0000:01: fixups for bus
[    0.901016] PCI: bus1: Fast back to back transfers disabled
[    0.906547] pci 0000:01:00.0: scanning [bus 00-00] behind bridge, pass 0
[    0.913262] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.921302] pci 0000:01:00.0: scanning [bus 00-00] behind bridge, pass 1
[    0.928187] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01])
[    0.938232] pci_bus 0000:02: scanning bus
[    0.942325] pci 0000:02:01.0: [10b5:8605] type 01 class 0x060400
[    0.948485] pci 0000:02:01.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.954818] pci 0000:02:01.0: supports D1 D2
[    0.958651] pci 0000:02:01.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.965296] pci 0000:02:01.0: PME# disabled
[    0.969765] pci 0000:02:02.0: [10b5:8605] type 01 class 0x060400
[    0.975712] pci 0000:02:02.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.982049] pci 0000:02:02.0: supports D1 D2
[    0.985882] pci 0000:02:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.992528] pci 0000:02:02.0: PME# disabled
[    0.996985] pci 0000:02:03.0: [10b5:8605] type 01 class 0x060400
[    1.002967] pci 0000:02:03.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.009258] pci 0000:02:03.0: supports D1 D2
[    1.013133] pci 0000:02:03.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.019755] pci 0000:02:03.0: PME# disabled
[    1.024378] pci_bus 0000:02: fixups for bus
[    1.028215] PCI: bus2: Fast back to back transfers disabled
[    1.033683] pci 0000:02:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.040362] pci 0000:02:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.048392] pci 0000:02:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.055062] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.063105] pci 0000:02:03.0: scanning [bus 00-00] behind bridge, pass 0
[    1.069765] pci 0000:02:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.077795] pci 0000:02:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.084718] pci_bus 0000:03: scanning bus
[    1.088565] pci 0000:03:00.0: [8086:1533] type 00 class 0x020000
[    1.094522] pci 0000:03:00.0: calling quirk_f0_vpd_link+0x0/0x7c
[    1.100548] pci 0000:03:00.0: reg 0x10: [mem 0x00000000-0x0007ffff]
[    1.106815] pci 0000:03:00.0: reg 0x18: [io  0x0000-0x001f]
[    1.112357] pci 0000:03:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[    1.118750] pci 0000:03:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.125155] pci 0000:03:00.0: PME# supported from D0 D3hot D3cold
[    1.130857] pci 0000:03:00.0: PME# disabled
[    1.135562] pci_bus 0000:03: fixups for bus
[    1.139210] PCI: bus3: Fast back to back transfers disabled
[    1.144776] pci_bus 0000:03: bus scan returning with max=03
[    1.150336] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    1.156938] pci_bus 0000:03: [bus 03] partially hidden behind bridge 0000:01 [bus 01]
[    1.164796] pci 0000:02:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.171735] pci_bus 0000:04: scanning bus
[    1.175565] pci 0000:04:00.0: [8086:1533] type 00 class 0x020000
[    1.181520] pci 0000:04:00.0: calling quirk_f0_vpd_link+0x0/0x7c
[    1.187529] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x0007ffff]
[    1.193834] pci 0000:04:00.0: reg 0x18: [io  0x0000-0x001f]
[    1.199338] pci 0000:04:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[    1.205769] pci 0000:04:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.212155] pci 0000:04:00.0: PME# supported from D0 D3hot D3cold
[    1.217841] pci 0000:04:00.0: PME# disabled
[    1.222581] pci_bus 0000:04: fixups for bus
[    1.226209] PCI: bus4: Fast back to back transfers disabled
[    1.231765] pci_bus 0000:04: bus scan returning with max=04
[    1.237315] pci_bus 0000:04: busn_res: [bus 04-ff] end is updated to 04
[    1.243953] pci_bus 0000:04: [bus 04] partially hidden behind bridge 0000:01 [bus 01]
[    1.251789] pci 0000:02:03.0: scanning [bus 00-00] behind bridge, pass 1
[    1.258703] pci_bus 0000:05: scanning bus
[    1.262487] pci_bus 0000:05: fixups for bus
[    1.266629] PCI: bus5: Fast back to back transfers enabled
[    1.272130] pci_bus 0000:05: bus scan returning with max=05
[    1.277681] pci_bus 0000:05: busn_res: [bus 05-ff] end is updated to 05
[    1.284320] pci_bus 0000:05: [bus 05] partially hidden behind bridge 0000:01 [bus 01]
[    1.292152] pci_bus 0000:02: bus scan returning with max=05
[    1.297691] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 05
[    1.304324] pci_bus 0000:02: busn_res: can not insert [bus 02-05] under [bus 01] (conflicts with (null) [bus 01])
[    1.314596] pci_bus 0000:02: [bus 02-05] partially hidden behind bridge 0000:01 [bus 01]
[    1.322685] pci_bus 0000:01: bus scan returning with max=05
[    1.328228] pci 0000:00:00.0: bridge has subordinate 01 but max busn 05
[    1.334860] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 1
[    1.341557] pci_bus 0000:00: bus scan returning with max=01
[    1.347194] pci 0000:00:00.0: fixup irq: got 333
[    1.351742] pci 0000:00:00.0: assigning IRQ 333
[    1.356282] pci 0000:01:00.0: fixup irq: got 333
[    1.360872] pci 0000:01:00.0: assigning IRQ 333
[    1.365472] pci 0000:02:01.0: fixup irq: got 334
[    1.370010] pci 0000:02:01.0: assigning IRQ 334
[    1.374625] pci 0000:02:02.0: fixup irq: got 335
[    1.379122] pci 0000:02:02.0: assigning IRQ 335
[    1.383734] pci 0000:02:03.0: fixup irq: got 23
[    1.388169] pci 0000:02:03.0: assigning IRQ 23
[    1.392674] pci 0000:03:00.0: fixup irq: got 334
[    1.397217] pci 0000:03:00.0: assigning IRQ 334
[    1.401814] pci 0000:04:00.0: fixup irq: got 335
[    1.406352] pci 0000:04:00.0: assigning IRQ 335
[    1.411140] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[    1.417670] pci 0000:00:00.0: BAR 8: assigned [mem 0x01100000-0x014fffff]
[    1.424482] pci 0000:00:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff pref]
[    1.431694] pci 0000:00:00.0: BAR 6: assigned [mem 0x01700000-0x0170ffff pref]
[    1.438895] pci 0000:00:00.0: BAR 7: assigned [io  0x1000-0x2fff]
[    1.445006] pci 0000:01:00.0: BAR 8: assigned [mem 0x01100000-0x013fffff]
[    1.451787] pci 0000:01:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref]
[    1.459513] pci 0000:01:00.0: BAR 0: assigned [mem 0x01400000-0x01403fff]
[    1.466335] pci 0000:01:00.0: BAR 7: assigned [io  0x1000-0x2fff]
[    1.472411] pci 0000:02:01.0: BAR 8: assigned [mem 0x01100000-0x012fffff]
[    1.479176] pci 0000:02:01.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref]
[    1.486935] pci 0000:02:02.0: BAR 8: assigned [mem 0x01300000-0x013fffff]
[    1.493721] pci 0000:02:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    1.499811] pci 0000:02:02.0: BAR 7: assigned [io  0x2000-0x2fff]
[    1.505887] pci 0000:03:00.0: BAR 0: assigned [mem 0x01100000-0x0117ffff]
[    1.512707] pci 0000:03:00.0: BAR 3: assigned [mem 0x01180000-0x01183fff]
[    1.519476] pci 0000:03:00.0: BAR 2: assigned [io  0x1000-0x101f]
[    1.525582] pci 0000:02:01.0: PCI bridge to [bus 03]
[    1.530529] pci 0000:02:01.0:   bridge window [io  0x1000-0x1fff]
[    1.536618] pci 0000:02:01.0:   bridge window [mem 0x01100000-0x012fffff]
[    1.543414] pci 0000:02:01.0:   bridge window [mem 0x01500000-0x016fffff 64bit pref]
[    1.551182] pci 0000:04:00.0: BAR 0: assigned [mem 0x01300000-0x0137ffff]
[    1.557930] pci 0000:04:00.0: BAR 3: assigned [mem 0x01380000-0x01383fff]
[    1.564734] pci 0000:04:00.0: BAR 2: assigned [io  0x2000-0x201f]
[    1.570820] pci 0000:02:02.0: PCI bridge to [bus 04]
[    1.575751] pci 0000:02:02.0:   bridge window [io  0x2000-0x2fff]
[    1.581873] pci 0000:02:02.0:   bridge window [mem 0x01300000-0x013fffff]
[    1.588667] pci 0000:02:03.0: PCI bridge to [bus 05]
[    1.593666] pci 0000:01:00.0: PCI bridge to [bus 02-05]
[    1.598806] pci 0000:01:00.0:   bridge window [io  0x1000-0x2fff]
[    1.604929] pci 0000:01:00.0:   bridge window [mem 0x01100000-0x013fffff]
[    1.611706] pci 0000:01:00.0:   bridge window [mem 0x01500000-0x016fffff 64bit pref]
[    1.619447] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.624393] pci 0000:00:00.0:   bridge window [io  0x1000-0x2fff]
[    1.630483] pci 0000:00:00.0:   bridge window [mem 0x01100000-0x014fffff]
[    1.637253] pci 0000:00:00.0:   bridge window [mem 0x01500000-0x016fffff pref]
[    1.644791] pcieport 0000:00:00.0: AER enabled with IRQ 301
[    1.650209] pcieport 0000:01:00.0: enabling device (0140 -> 0143)
[    1.656268] pcieport 0000:01:00.0: enabling bus mastering
[    1.662189] pcieport 0000:02:01.0: enabling device (0140 -> 0143)
[    1.667758] pcieport 0000:02:01.0: enabling bus mastering
[    1.673719] pcieport 0000:02:02.0: enabling device (0140 -> 0143)
[    1.679224] pcieport 0000:02:02.0: enabling bus mastering
[    1.685282] pcieport 0000:02:03.0: enabling bus mastering
[    1.690510] pci 0000:03:00.0: calling quirk_e100_interrupt+0x0/0x1f0
[    1.696266] pci 0000:04:00.0: calling quirk_e100_interrupt+0x0/0x1f0
[    1.703545] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.715529] imx-sdma 20ec000.sdma: loaded firmware 1.1
[    1.716036] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 69, base_baud = 5000000) is a IMX
[    1.729342] console [ttymxc2] enabled
[    1.729342] console [ttymxc2] enabled
[    1.733831] bootconsole [ec_imx21] disabled
[    1.733831] bootconsole [ec_imx21] disabled
[    1.742658] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 70, base_baud = 5000000) is a IMX
[    1.758535] etnaviv gpu-subsystem: bound 134000.gpu (ops 0x80947af8)
[    1.764948] etnaviv gpu-subsystem: bound 130000.gpu (ops 0x80947af8)
[    1.771335] etnaviv gpu-subsystem: bound 2204000.gpu (ops 0x80947af8)
[    1.777790] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[    1.831594] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[    1.882155] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[    1.888267] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[    1.894967] [drm] Initialized etnaviv 1.0.0 20151214 for gpu-subsystem on minor 0
[    1.903627] imx-ipuv3 2400000.ipu: IPUv3H probed
[    1.909122] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.915760] [drm] No driver support for vblank timestamp query.
[    1.921800] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops 0x80940bcc)
[    1.929124] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops 0x80940bcc)
[    1.936466] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops 0x80940bcc)
[    1.943796] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops 0x80940bcc)
[    1.951176] imx-drm display-subsystem: failed to bind 120000.hdmi (ops 0x80940d44): -517
[    1.959381] imx-drm display-subsystem: master bind failed: -517
[    1.965349] imx-ipuv3 2800000.ipu: IPUv3H probed
[    1.978695] brd: module loaded
[    1.988614] loop: module loaded
[    1.998057] da9063 2-0058: Device detected (chip-ID: 0x61, var-ID: 0x60)
[    2.030150] DA9063_BCORE1: Bringing 1380000uV into 1420000-1420000uV
[    2.043622] DA9063_BCORE2: Bringing 1380000uV into 1420000-1420000uV
[    2.058022] random: fast init done
[    2.063364] DA9063_BMEM: Bringing 1500000uV into 1800000-1800000uV
[    2.076596] DA9063_BIO: Bringing 3160000uV into 1800000-1800000uV
[    2.117375] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[    2.125344] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[    2.133373] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[    2.141574] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[    2.152094] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[    2.159086] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    2.167913] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[    2.178159] scsi host0: ahci-imx
[    2.181635] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 73
[    2.192873] m25p80 spi0.0: n25q032 (4096 Kbytes)
[    2.197522] 3 ofpart partitions found on MTD device spi0.0
[    2.203048] Creating 3 MTD partitions on "spi0.0":
[    2.207850] 0x000000000000-0x0000000c0000 : "U-Boot"
[    2.213778] 0x0000000c0000-0x0000000d0000 : "env"
[    2.219365] 0x0000000d0000-0x000000200000 : "spare"
[    2.225192] spi_imx 2008000.ecspi: probed
[    2.230736] at25 spi4.0: 32 KByte at25 eeprom, pagesize 64
[    2.236247] spi_imx 2018000.ecspi: probed
[    2.241083] libphy: Fixed MDIO Bus: probed
[    2.246101] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    2.255166] pps pps0: new PPS source ptp0
[    2.263370] libphy: fec_enet_mii_bus: probed
[    2.268150] fec 2188000.ethernet eth0: registered PHC device 0
[    2.274216] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    2.281199] igb: Copyright (c) 2007-2014 Intel Corporation.
[    2.286866] igb 0000:03:00.0: enabling device (0140 -> 0142)
[    2.292622] igb 0000:03:00.0: enabling bus mastering
[    2.521069] ata1: SATA link down (SStatus 0 SControl 300)
[    2.526506] ahci-imx 2200000.sata: no device found, disabling link.
[    2.529628] pps pps1: new PPS source ptp1
[    2.529637] igb 0000:03:00.0: added PHC on eth1
[    2.529642] igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
[    2.529649] igb 0000:03:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 00:a0:c9:00:00:00
[    2.529726] igb 0000:03:00.0: eth1: PBA No: 000300-000
[    2.529732] igb 0000:03:00.0: Using MSI interrupts. 1 rx queue(s), 1 tx queue(s)
[    2.529824] igb 0000:04:00.0: enabling device (0140 -> 0142)
[    2.529915] igb 0000:04:00.0: enabling bus mastering
[    2.578559] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[    2.764559] pps pps2: new PPS source ptp2
[    2.768581] igb 0000:04:00.0: added PHC on eth2
[    2.773144] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
[    2.780043] igb 0000:04:00.0: eth2: (PCIe:2.5Gb/s:Width x1) 00:40:97:29:04:44
[    2.787255] igb 0000:04:00.0: eth2: PBA No: 000300-000
[    2.792416] igb 0000:04:00.0: Using MSI interrupts. 1 rx queue(s), 1 tx queue(s)
[    2.800367] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.806902] ehci-pci: EHCI PCI platform driver
[    2.811431] ehci-mxc: Freescale On-Chip EHCI Host driver
[    2.816881] usbcore: registered new interface driver cdc_acm
[    2.822567] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.830654] usbcore: registered new interface driver usb-storage
[    2.842020] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    2.846924] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    2.879574] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    2.885775] hub 1-0:1.0: USB hub found
[    2.889618] hub 1-0:1.0: 1 port detected
[    2.897826] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    2.902761] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    2.939567] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    2.945689] hub 2-0:1.0: USB hub found
[    2.949492] hub 2-0:1.0: 1 port detected
[    2.954278] usbcore: registered new interface driver usbtouchscreen
[    2.967299] input: da9063-onkey as /devices/soc0/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0058/da9063-onkey/input/input0
[    2.982525] rtc-rx8010 2-0032: IRQ 183 supplied
[    2.991070] rtc-rx8010 2-0032: rtc core: registered rx8010 as rtc0
[    2.997757] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1
[    3.006602] i2c /dev entries driver
[    3.012015] i2c i2c-0: Added multiplexed i2c bus 3
[    3.018575] at24 4-0050: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
[    3.025458] i2c i2c-0: Added multiplexed i2c bus 4
[    3.030505] i2c i2c-0: Added multiplexed i2c bus 5
[    3.035635] i2c i2c-0: Added multiplexed i2c bus 6
[    3.040821] pca953x 7-0074: 7-0074 supply vcc not found, using dummy regulator
[    3.051956] GPIO line 502 (PCA9539-P06) hogged as output/low
[    3.058716] GPIO line 503 (PCA9539-P07) hogged as output/low
[    3.065536] GPIO line 504 (PCA9539-P10) hogged as output/low
[    3.072346] GPIO line 505 (PCA9539-P11) hogged as output/low
[    3.079138] GPIO line 506 (PCA9539-P12) hogged as output/low
[    3.085946] GPIO line 507 (PCA9539-P13) hogged as output/low
[    3.092754] GPIO line 508 (PCA9539-P14) hogged as output/low
[    3.099559] GPIO line 509 (PCA9539-P15) hogged as output/low
[    3.106345] GPIO line 510 (PCA9539-P16) hogged as output/low
[    3.113150] GPIO line 511 (PCA9539-P17) hogged as output/low
[    3.120518] i2c i2c-0: Added multiplexed i2c bus 7
[    3.125531] i2c i2c-0: Added multiplexed i2c bus 8
[    3.130568] i2c i2c-0: Added multiplexed i2c bus 9
[    3.135559] i2c i2c-0: Added multiplexed i2c bus 10
[    3.140481] pca954x 0-0070: registered 8 multiplexed busses for I2C mux pca9547
[    3.148524] i2c i2c-1: Added multiplexed i2c bus 11
[    3.153632] i2c i2c-1: Added multiplexed i2c bus 12
[    3.158705] i2c i2c-1: Added multiplexed i2c bus 13
[    3.163817] i2c i2c-1: Added multiplexed i2c bus 14
[    3.168937] i2c i2c-1: Added multiplexed i2c bus 15
[    3.174109] i2c i2c-1: Added multiplexed i2c bus 16
[    3.179193] i2c i2c-1: Added multiplexed i2c bus 17
[    3.184318] i2c i2c-1: Added multiplexed i2c bus 18
[    3.189206] pca954x 1-0070: registered 8 multiplexed busses for I2C mux pca9547
[    3.201006] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    3.207544] sdhci: Secure Digital Host Controller Interface driver
[    3.213760] sdhci: Copyright(c) Pierre Ossman
[    3.218121] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.224690] sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on normal mode
[    3.259573] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    3.299572] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    3.308401] usbcore: registered new interface driver usbhid
[    3.309567] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[    3.320470] usbhid: USB HID core driver
[    3.327081] mma8452 3-001c: registering fsl,mma8453 accelerometer; ID 0x3a
[    3.410591] mmc0: new DDR MMC card at address 0001
[    3.415849] mmcblk0: mmc0:0001 BGND3R 29.1 GiB
[    3.420631] mmcblk0boot0: mmc0:0001 BGND3R partition 1 4.00 MiB
[    3.426801] mmcblk0boot1: mmc0:0001 BGND3R partition 2 4.00 MiB
[    3.432905] sgtl5000 6-000a: sgtl5000 revision 0x11
[    3.432982] mmcblk0rpmb: mmc0:0001 BGND3R partition 3 4.00 MiB
[    3.444504]  mmcblk0: p1 p2 p3 p4 < p5 >
[    3.446177] sgtl5000 6-000a: Using internal LDO instead of VDDD: check ER1
[    3.456964] hub 1-1:1.0: USB hub found
[    3.461219] hub 1-1:1.0: 3 ports detected
[    3.475293] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[    3.496884] imx-sgtl5000 sound: sgtl5000 <-> 2028000.ssi mapping ok
[    3.505192] NET: Registered protocol family 10
[    3.510963] Segment Routing with IPv6
[    3.514701] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.521240] NET: Registered protocol family 17
[    3.525700] 8021q: 802.1Q VLAN Support v1.8
[    3.529944] Key type dns_resolver registered
[    3.536393] Registering SWP/SWPB emulation handler
[    3.536406] hub 2-1:1.0: USB hub found
[    3.536538] hub 2-1:1.0: 4 ports detected
[    3.559106] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.565764] [drm] No driver support for vblank timestamp query.
[    3.571772] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops 0x80940bcc)
[    3.579024] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops 0x80940bcc)
[    3.586301] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops 0x80940bcc)
[    3.593565] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops 0x80940bcc)
[    3.600990] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
[    3.610641] imx-drm display-subsystem: bound 120000.hdmi (ops 0x80940d44)
[    3.617542] /soc/aips-bus@02000000/ldb/lvds-channel@0: could not find display-timings node
[    3.625839] /soc/aips-bus@02000000/ldb/lvds-channel@0: no timings specified
[    3.632960] imx-ldb 2000000.aips-bus:ldb: dual-channel mode, ignoring second output
[    3.640643] imx-drm display-subsystem: bound 2000000.aips-bus:ldb (ops 0x809408b0)
[    3.725015] Console: switching to colour frame buffer device 128x48
[    3.747978] imx-drm display-subsystem: fb0:  frame buffer device
[    3.754350] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[    3.762724] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    3.775089] imx_thermal 2000000.aips-bus:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C
[    3.849560] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[    3.879565] usb 1-1.1: new full-speed USB device number 3 using ci_hdrc
[    3.949552] mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[    3.963290] rtc-rx8010 2-0032: setting system clock to 2017-05-09 07:22:12 UTC (1494314532)
[    3.972213] lvds_ppen: disabling
[    4.000083] DA9063_LDO5: disabling
[    4.006268] hub 2-1.1:1.0: USB hub found
[    4.010413] hub 2-1.1:1.0: 3 ports detected
[    4.018614] DA9063_LDO6: disabling
[    4.025896] DA9063_LDO7: disabling
[    4.033392] DA9063_LDO8: disabling
[    4.040814] DA9063_LDO9: disabling
[    4.048416] DA9063_LDO10: disabling
[    4.064439] input: Silicon Laboratories B850 2nd video audio interface as /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/11
[    4.099577] ALSA device list:
[    4.102555]   #0: imx6q-ba16-sgtl5000
[    4.149722] hid-generic 0003:1901:0191.0001: input: USB HID v1.11 Device [Silicon Laboratories B850 2nd video audio interface] on usb-ci_2
[    4.166269] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
[    4.187392] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.195554] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[    4.207517] devtmpfs: mounted
[    4.211506] Freeing unused kernel memory: 1024K
[    4.269588] usb 1-1.3: new full-speed USB device number 4 using ci_hdrc
[    4.349641] systemd[1]: systemd 232 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -G)
[    4.368028] systemd[1]: Detected architecture arm.
...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09  6:34     ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-09  6:34 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, May 08, 2017 at 10:30:13PM -0300, Fabio Estevam wrote:
> 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?

Something that ocurred to me is that u-boot is initializing the PCI, and
the PCI networkd cards.  Ideally this should not affect anything, but
can this be related to the issue?

	U-Boot 2017.01 (Mar 29 2017 - 13:13:19 +0100)

	CPU:   Freescale i.MX6D rev1.5 at 792 MHz
	Reset cause: POR
	BOARD: General Electric B850v3
	I2C:   ready
	DRAM:  2 GiB
	MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
	SF: Detected n25q32 with page size 256 Bytes, erase size 4 KiB, total 4 MiB
	PCI:
	  00:01.0     - 16c3:abcd - Bridge device
	   01:00.0    - 10b5:8605 - Bridge device
	    02:01.0   - 10b5:8605 - Bridge device
	     03:00.0  - 8086:1533 - Network controller
	    02:02.0   - 10b5:8605 - Bridge device
	     04:00.0  - 8086:1533 - Network controller
	    02:03.0   - 10b5:8605 - Bridge device
	In:    serial
	Out:   serial
	Err:   serial
	Net:   e1000: 00:a0:c9:00:00:00
	       e1000: 00:40:97:29:04:44
	       e1000#0, e1000#1, FEC [PRIME]


It works fine with v4.10, but I have a similar problem on v4.11
(a351e9b9fc24e982ec2f0e76379a49826036da12), but it is not the same.
Similar as that system freezes on PCI initialization:

	Starting kernel ...

	Uncompressing Linux... done, booting the kernel.
	[    0.000000] Booting Linux on physical CPU 0x0
	[    0.000000] Linux version 4.11.0-dirty (peter at lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) ) #1
	...
	[    0.437377] PCI: CLS 0 bytes, default 64
	[    0.442000] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
	[    0.450394] audit: initializing netlink subsys (disabled)
	[    0.454974] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
	[    0.455546] workingset: timestamp_bits=30 max_order=19 bucket_order=0
	[    0.474842] bounce: pool size: 64 pages
	[    0.475825] io scheduler noop registered
	[    0.479762] io scheduler deadline registered
	[    0.484151] io scheduler cfq registered (default)
	[    0.488699] io scheduler mq-deadline registered
	[    0.494867] OF: PCI: host bridge /soc/pcie at 0x01000000 ranges:
	[    0.498969] OF: PCI:   No bus range found for /soc/pcie at 0x01000000, using [bus 00-ff]
	[    0.506847] OF: PCI:    IO 0x01f80000..0x01f8ffff -> 0x00000000
	[    0.512737] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000

	It freezes here...

But is different as this patch makes the the system to boot:

diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c
index 801e46c..a562c14 100644
--- a/drivers/pci/dwc/pci-imx6.c
+++ b/drivers/pci/dwc/pci-imx6.c
@@ -523,6 +523,7 @@ static void imx6_pcie_host_init(struct pcie_port *pp)
 {
        struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
        struct imx6_pcie *imx6_pcie = to_imx6_pcie(pci);
+       printk(KERN_ERR "DEBUG: %s\n", __func__);

        imx6_pcie_assert_core_reset(imx6_pcie);
        imx6_pcie_init_phy(imx6_pcie);

I'm using CONFIG_EARLY_PRINTK (and a few others that are needed on iMX6
in order to enable early_printk), and the patch only makes my system
boot if 'earlycon loglevel=15' is passed to kernel. Here is full output
with v4.11 with the patch applied, and with 'earlycon loglevel=15'
passed to kernel, with the "[    0.520080] DEBUG: imx6_pcie_host_init "
message:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.11.0-dirty (peter at lenovo-peter.home) (gcc version 6.1.1 20160621 (Red Hat Cross 6.1.1-2) (GCC) ) #137 SMP Tue7
[    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 80d72000, 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 s37132 r8192 d24308 u69632
[    0.000000] pcpu-alloc: s37132 r8192 d24308 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 at 60 video=HDMI-A-1:1024x768 at 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: 1934692K/2097152K available (8192K kernel code, 489K rwdata, 2184K rodata, 1024K init, 301K bss, 31388K 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 - 0x80d7a79c   ( 490 kB)
[    0.000000]        .bss : 0x80d7c000 - 0x80dc77e0   ( 302 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU debugfs-based tracing is enabled.
[    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.000008] 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.019540] Console: colour dummy device 80x30
[    0.022282] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.032462] pid_max: default: 32768 minimum: 301
[    0.037162] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.043760] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.051479] CPU: Testing write buffer coherency: ok
[    0.055764] ftrace: allocating 26500 entries in 78 pages
[    0.110144] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.113341] Setting up static identity map for 0x10100000 - 0x1010004c
[    0.120205] smp: Bringing up secondary CPUs ...
[    0.124674] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.124766] smp: Brought up 1 node, 2 CPUs
[    0.133750] SMP: Total of 2 processors activated (12.00 BogoMIPS).
[    0.139937] CPU: All CPU(s) started in SVC mode.
[    0.145503] devtmpfs: initialized
[    0.157365] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.162338] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.172047] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.183864] pinctrl core: initialized pinctrl subsystem
[    0.187242] NET: Registered protocol family 16
[    0.192540] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.198685] CPU identified as i.MX6Q, silicon rev 1.5
[    0.218293] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.223452] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.230096] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.255639] mxs-dma 110000.dma-apbh: initialized
[    0.260025] vgaarb: loaded
[    0.260478] SCSI subsystem initialized
[    0.264013] libata version 3.00 loaded.
[    0.267925] usbcore: registered new interface driver usbfs
[    0.273201] usbcore: registered new interface driver hub
[    0.278526] usbcore: registered new device driver usb
[    0.284555] i2c i2c-0: IMX I2C adapter registered
[    0.288233] i2c i2c-0: can't use DMA, using PIO instead.
[    0.293892] i2c i2c-1: IMX I2C adapter registered
[    0.298233] i2c i2c-1: can't use DMA, using PIO instead.
[    0.303993] i2c i2c-2: IMX I2C adapter registered
[    0.308237] i2c i2c-2: can't use DMA, using PIO instead.
[    0.313626] pps_core: LinuxPPS API ver. 1 registered
[    0.318494] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.327642] PTP clock support registered
[    0.331780] Advanced Linux Sound Architecture Driver Initialized.
[    0.339544] clocksource: Switched to clocksource mxc_timer1
[    0.398977] NET: Registered protocol family 2
[    0.401102] TCP established hash table entries: 16384 (order: 4, 65536 bytes)
[    0.407750] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[    0.414493] TCP: Hash tables configured (established 16384 bind 16384)
[    0.420897] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.426824] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.433424] NET: Registered protocol family 1
[    0.437568] PCI: CLS 0 bytes, default 64
[    0.442188] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.450574] audit: initializing netlink subsys (disabled)
[    0.455158] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
[    0.455748] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.474988] bounce: pool size: 64 pages
[    0.475970] io scheduler noop registered
[    0.479908] io scheduler deadline registered
[    0.484295] io scheduler cfq registered (default)
[    0.488843] io scheduler mq-deadline registered
[    0.495021] OF: PCI: host bridge /soc/pcie at 0x01000000 ranges:
[    0.499114] OF: PCI:   No bus range found for /soc/pcie at 0x01000000, using [bus 00-ff]
[    0.506994] OF: PCI:    IO 0x01f80000..0x01f8ffff -> 0x00000000
[    0.512884] OF: PCI:   MEM 0x01000000..0x01efffff -> 0x01000000
[    0.520080] DEBUG: imx6_pcie_host_init
[    0.739622] imx6q-pcie 1ffc000.pcie: link up
[    0.741037] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled
[    0.746343] imx6q-pcie 1ffc000.pcie: link up
[    0.750634] imx6q-pcie 1ffc000.pcie: Link up, Gen1
[    0.755502] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[    0.761681] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.767140] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.773337] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[    0.780203] pci_bus 0000:00: scanning bus
[    0.784213] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[    0.790231] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.796466] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    0.803207] pci 0000:00:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.809376] pci 0000:00:00.0: supports D1
[    0.813356] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.819704] pci 0000:00:00.0: PME# disabled
[    0.824013] pci_bus 0000:00: fixups for bus
[    0.828040] PCI: bus0: Fast back to back transfers disabled
[    0.833630] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 0
[    0.840401] pci_bus 0000:01: scanning bus
[    0.844398] pci 0000:01:00.0: [10b5:8605] type 01 class 0x060400
[    0.850414] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
[    0.856750] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.863193] pci 0000:01:00.0: supports D1 D2
[    0.867013] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.873659] pci 0000:01:00.0: PME# disabled
[    0.899642] pci_bus 0000:01: fixups for bus
[    0.901016] PCI: bus1: Fast back to back transfers disabled
[    0.906547] pci 0000:01:00.0: scanning [bus 00-00] behind bridge, pass 0
[    0.913262] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.921302] pci 0000:01:00.0: scanning [bus 00-00] behind bridge, pass 1
[    0.928187] pci_bus 0000:02: busn_res: can not insert [bus 02-ff] under [bus 01] (conflicts with (null) [bus 01])
[    0.938232] pci_bus 0000:02: scanning bus
[    0.942325] pci 0000:02:01.0: [10b5:8605] type 01 class 0x060400
[    0.948485] pci 0000:02:01.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.954818] pci 0000:02:01.0: supports D1 D2
[    0.958651] pci 0000:02:01.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.965296] pci 0000:02:01.0: PME# disabled
[    0.969765] pci 0000:02:02.0: [10b5:8605] type 01 class 0x060400
[    0.975712] pci 0000:02:02.0: calling pci_fixup_ide_bases+0x0/0x58
[    0.982049] pci 0000:02:02.0: supports D1 D2
[    0.985882] pci 0000:02:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.992528] pci 0000:02:02.0: PME# disabled
[    0.996985] pci 0000:02:03.0: [10b5:8605] type 01 class 0x060400
[    1.002967] pci 0000:02:03.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.009258] pci 0000:02:03.0: supports D1 D2
[    1.013133] pci 0000:02:03.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.019755] pci 0000:02:03.0: PME# disabled
[    1.024378] pci_bus 0000:02: fixups for bus
[    1.028215] PCI: bus2: Fast back to back transfers disabled
[    1.033683] pci 0000:02:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.040362] pci 0000:02:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.048392] pci 0000:02:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.055062] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.063105] pci 0000:02:03.0: scanning [bus 00-00] behind bridge, pass 0
[    1.069765] pci 0000:02:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.077795] pci 0000:02:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.084718] pci_bus 0000:03: scanning bus
[    1.088565] pci 0000:03:00.0: [8086:1533] type 00 class 0x020000
[    1.094522] pci 0000:03:00.0: calling quirk_f0_vpd_link+0x0/0x7c
[    1.100548] pci 0000:03:00.0: reg 0x10: [mem 0x00000000-0x0007ffff]
[    1.106815] pci 0000:03:00.0: reg 0x18: [io  0x0000-0x001f]
[    1.112357] pci 0000:03:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[    1.118750] pci 0000:03:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.125155] pci 0000:03:00.0: PME# supported from D0 D3hot D3cold
[    1.130857] pci 0000:03:00.0: PME# disabled
[    1.135562] pci_bus 0000:03: fixups for bus
[    1.139210] PCI: bus3: Fast back to back transfers disabled
[    1.144776] pci_bus 0000:03: bus scan returning with max=03
[    1.150336] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    1.156938] pci_bus 0000:03: [bus 03] partially hidden behind bridge 0000:01 [bus 01]
[    1.164796] pci 0000:02:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.171735] pci_bus 0000:04: scanning bus
[    1.175565] pci 0000:04:00.0: [8086:1533] type 00 class 0x020000
[    1.181520] pci 0000:04:00.0: calling quirk_f0_vpd_link+0x0/0x7c
[    1.187529] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x0007ffff]
[    1.193834] pci 0000:04:00.0: reg 0x18: [io  0x0000-0x001f]
[    1.199338] pci 0000:04:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[    1.205769] pci 0000:04:00.0: calling pci_fixup_ide_bases+0x0/0x58
[    1.212155] pci 0000:04:00.0: PME# supported from D0 D3hot D3cold
[    1.217841] pci 0000:04:00.0: PME# disabled
[    1.222581] pci_bus 0000:04: fixups for bus
[    1.226209] PCI: bus4: Fast back to back transfers disabled
[    1.231765] pci_bus 0000:04: bus scan returning with max=04
[    1.237315] pci_bus 0000:04: busn_res: [bus 04-ff] end is updated to 04
[    1.243953] pci_bus 0000:04: [bus 04] partially hidden behind bridge 0000:01 [bus 01]
[    1.251789] pci 0000:02:03.0: scanning [bus 00-00] behind bridge, pass 1
[    1.258703] pci_bus 0000:05: scanning bus
[    1.262487] pci_bus 0000:05: fixups for bus
[    1.266629] PCI: bus5: Fast back to back transfers enabled
[    1.272130] pci_bus 0000:05: bus scan returning with max=05
[    1.277681] pci_bus 0000:05: busn_res: [bus 05-ff] end is updated to 05
[    1.284320] pci_bus 0000:05: [bus 05] partially hidden behind bridge 0000:01 [bus 01]
[    1.292152] pci_bus 0000:02: bus scan returning with max=05
[    1.297691] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 05
[    1.304324] pci_bus 0000:02: busn_res: can not insert [bus 02-05] under [bus 01] (conflicts with (null) [bus 01])
[    1.314596] pci_bus 0000:02: [bus 02-05] partially hidden behind bridge 0000:01 [bus 01]
[    1.322685] pci_bus 0000:01: bus scan returning with max=05
[    1.328228] pci 0000:00:00.0: bridge has subordinate 01 but max busn 05
[    1.334860] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 1
[    1.341557] pci_bus 0000:00: bus scan returning with max=01
[    1.347194] pci 0000:00:00.0: fixup irq: got 333
[    1.351742] pci 0000:00:00.0: assigning IRQ 333
[    1.356282] pci 0000:01:00.0: fixup irq: got 333
[    1.360872] pci 0000:01:00.0: assigning IRQ 333
[    1.365472] pci 0000:02:01.0: fixup irq: got 334
[    1.370010] pci 0000:02:01.0: assigning IRQ 334
[    1.374625] pci 0000:02:02.0: fixup irq: got 335
[    1.379122] pci 0000:02:02.0: assigning IRQ 335
[    1.383734] pci 0000:02:03.0: fixup irq: got 23
[    1.388169] pci 0000:02:03.0: assigning IRQ 23
[    1.392674] pci 0000:03:00.0: fixup irq: got 334
[    1.397217] pci 0000:03:00.0: assigning IRQ 334
[    1.401814] pci 0000:04:00.0: fixup irq: got 335
[    1.406352] pci 0000:04:00.0: assigning IRQ 335
[    1.411140] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[    1.417670] pci 0000:00:00.0: BAR 8: assigned [mem 0x01100000-0x014fffff]
[    1.424482] pci 0000:00:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff pref]
[    1.431694] pci 0000:00:00.0: BAR 6: assigned [mem 0x01700000-0x0170ffff pref]
[    1.438895] pci 0000:00:00.0: BAR 7: assigned [io  0x1000-0x2fff]
[    1.445006] pci 0000:01:00.0: BAR 8: assigned [mem 0x01100000-0x013fffff]
[    1.451787] pci 0000:01:00.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref]
[    1.459513] pci 0000:01:00.0: BAR 0: assigned [mem 0x01400000-0x01403fff]
[    1.466335] pci 0000:01:00.0: BAR 7: assigned [io  0x1000-0x2fff]
[    1.472411] pci 0000:02:01.0: BAR 8: assigned [mem 0x01100000-0x012fffff]
[    1.479176] pci 0000:02:01.0: BAR 9: assigned [mem 0x01500000-0x016fffff 64bit pref]
[    1.486935] pci 0000:02:02.0: BAR 8: assigned [mem 0x01300000-0x013fffff]
[    1.493721] pci 0000:02:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    1.499811] pci 0000:02:02.0: BAR 7: assigned [io  0x2000-0x2fff]
[    1.505887] pci 0000:03:00.0: BAR 0: assigned [mem 0x01100000-0x0117ffff]
[    1.512707] pci 0000:03:00.0: BAR 3: assigned [mem 0x01180000-0x01183fff]
[    1.519476] pci 0000:03:00.0: BAR 2: assigned [io  0x1000-0x101f]
[    1.525582] pci 0000:02:01.0: PCI bridge to [bus 03]
[    1.530529] pci 0000:02:01.0:   bridge window [io  0x1000-0x1fff]
[    1.536618] pci 0000:02:01.0:   bridge window [mem 0x01100000-0x012fffff]
[    1.543414] pci 0000:02:01.0:   bridge window [mem 0x01500000-0x016fffff 64bit pref]
[    1.551182] pci 0000:04:00.0: BAR 0: assigned [mem 0x01300000-0x0137ffff]
[    1.557930] pci 0000:04:00.0: BAR 3: assigned [mem 0x01380000-0x01383fff]
[    1.564734] pci 0000:04:00.0: BAR 2: assigned [io  0x2000-0x201f]
[    1.570820] pci 0000:02:02.0: PCI bridge to [bus 04]
[    1.575751] pci 0000:02:02.0:   bridge window [io  0x2000-0x2fff]
[    1.581873] pci 0000:02:02.0:   bridge window [mem 0x01300000-0x013fffff]
[    1.588667] pci 0000:02:03.0: PCI bridge to [bus 05]
[    1.593666] pci 0000:01:00.0: PCI bridge to [bus 02-05]
[    1.598806] pci 0000:01:00.0:   bridge window [io  0x1000-0x2fff]
[    1.604929] pci 0000:01:00.0:   bridge window [mem 0x01100000-0x013fffff]
[    1.611706] pci 0000:01:00.0:   bridge window [mem 0x01500000-0x016fffff 64bit pref]
[    1.619447] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.624393] pci 0000:00:00.0:   bridge window [io  0x1000-0x2fff]
[    1.630483] pci 0000:00:00.0:   bridge window [mem 0x01100000-0x014fffff]
[    1.637253] pci 0000:00:00.0:   bridge window [mem 0x01500000-0x016fffff pref]
[    1.644791] pcieport 0000:00:00.0: AER enabled with IRQ 301
[    1.650209] pcieport 0000:01:00.0: enabling device (0140 -> 0143)
[    1.656268] pcieport 0000:01:00.0: enabling bus mastering
[    1.662189] pcieport 0000:02:01.0: enabling device (0140 -> 0143)
[    1.667758] pcieport 0000:02:01.0: enabling bus mastering
[    1.673719] pcieport 0000:02:02.0: enabling device (0140 -> 0143)
[    1.679224] pcieport 0000:02:02.0: enabling bus mastering
[    1.685282] pcieport 0000:02:03.0: enabling bus mastering
[    1.690510] pci 0000:03:00.0: calling quirk_e100_interrupt+0x0/0x1f0
[    1.696266] pci 0000:04:00.0: calling quirk_e100_interrupt+0x0/0x1f0
[    1.703545] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.715529] imx-sdma 20ec000.sdma: loaded firmware 1.1
[    1.716036] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 69, base_baud = 5000000) is a IMX
[    1.729342] console [ttymxc2] enabled
[    1.729342] console [ttymxc2] enabled
[    1.733831] bootconsole [ec_imx21] disabled
[    1.733831] bootconsole [ec_imx21] disabled
[    1.742658] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 70, base_baud = 5000000) is a IMX
[    1.758535] etnaviv gpu-subsystem: bound 134000.gpu (ops 0x80947af8)
[    1.764948] etnaviv gpu-subsystem: bound 130000.gpu (ops 0x80947af8)
[    1.771335] etnaviv gpu-subsystem: bound 2204000.gpu (ops 0x80947af8)
[    1.777790] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[    1.831594] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[    1.882155] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[    1.888267] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[    1.894967] [drm] Initialized etnaviv 1.0.0 20151214 for gpu-subsystem on minor 0
[    1.903627] imx-ipuv3 2400000.ipu: IPUv3H probed
[    1.909122] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.915760] [drm] No driver support for vblank timestamp query.
[    1.921800] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops 0x80940bcc)
[    1.929124] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops 0x80940bcc)
[    1.936466] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops 0x80940bcc)
[    1.943796] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops 0x80940bcc)
[    1.951176] imx-drm display-subsystem: failed to bind 120000.hdmi (ops 0x80940d44): -517
[    1.959381] imx-drm display-subsystem: master bind failed: -517
[    1.965349] imx-ipuv3 2800000.ipu: IPUv3H probed
[    1.978695] brd: module loaded
[    1.988614] loop: module loaded
[    1.998057] da9063 2-0058: Device detected (chip-ID: 0x61, var-ID: 0x60)
[    2.030150] DA9063_BCORE1: Bringing 1380000uV into 1420000-1420000uV
[    2.043622] DA9063_BCORE2: Bringing 1380000uV into 1420000-1420000uV
[    2.058022] random: fast init done
[    2.063364] DA9063_BMEM: Bringing 1500000uV into 1800000-1800000uV
[    2.076596] DA9063_BIO: Bringing 3160000uV into 1800000-1800000uV
[    2.117375] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[    2.125344] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[    2.133373] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[    2.141574] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[    2.152094] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[    2.159086] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    2.167913] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[    2.178159] scsi host0: ahci-imx
[    2.181635] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 73
[    2.192873] m25p80 spi0.0: n25q032 (4096 Kbytes)
[    2.197522] 3 ofpart partitions found on MTD device spi0.0
[    2.203048] Creating 3 MTD partitions on "spi0.0":
[    2.207850] 0x000000000000-0x0000000c0000 : "U-Boot"
[    2.213778] 0x0000000c0000-0x0000000d0000 : "env"
[    2.219365] 0x0000000d0000-0x000000200000 : "spare"
[    2.225192] spi_imx 2008000.ecspi: probed
[    2.230736] at25 spi4.0: 32 KByte at25 eeprom, pagesize 64
[    2.236247] spi_imx 2018000.ecspi: probed
[    2.241083] libphy: Fixed MDIO Bus: probed
[    2.246101] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    2.255166] pps pps0: new PPS source ptp0
[    2.263370] libphy: fec_enet_mii_bus: probed
[    2.268150] fec 2188000.ethernet eth0: registered PHC device 0
[    2.274216] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    2.281199] igb: Copyright (c) 2007-2014 Intel Corporation.
[    2.286866] igb 0000:03:00.0: enabling device (0140 -> 0142)
[    2.292622] igb 0000:03:00.0: enabling bus mastering
[    2.521069] ata1: SATA link down (SStatus 0 SControl 300)
[    2.526506] ahci-imx 2200000.sata: no device found, disabling link.
[    2.529628] pps pps1: new PPS source ptp1
[    2.529637] igb 0000:03:00.0: added PHC on eth1
[    2.529642] igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
[    2.529649] igb 0000:03:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 00:a0:c9:00:00:00
[    2.529726] igb 0000:03:00.0: eth1: PBA No: 000300-000
[    2.529732] igb 0000:03:00.0: Using MSI interrupts. 1 rx queue(s), 1 tx queue(s)
[    2.529824] igb 0000:04:00.0: enabling device (0140 -> 0142)
[    2.529915] igb 0000:04:00.0: enabling bus mastering
[    2.578559] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[    2.764559] pps pps2: new PPS source ptp2
[    2.768581] igb 0000:04:00.0: added PHC on eth2
[    2.773144] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
[    2.780043] igb 0000:04:00.0: eth2: (PCIe:2.5Gb/s:Width x1) 00:40:97:29:04:44
[    2.787255] igb 0000:04:00.0: eth2: PBA No: 000300-000
[    2.792416] igb 0000:04:00.0: Using MSI interrupts. 1 rx queue(s), 1 tx queue(s)
[    2.800367] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.806902] ehci-pci: EHCI PCI platform driver
[    2.811431] ehci-mxc: Freescale On-Chip EHCI Host driver
[    2.816881] usbcore: registered new interface driver cdc_acm
[    2.822567] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.830654] usbcore: registered new interface driver usb-storage
[    2.842020] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    2.846924] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    2.879574] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    2.885775] hub 1-0:1.0: USB hub found
[    2.889618] hub 1-0:1.0: 1 port detected
[    2.897826] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    2.902761] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    2.939567] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    2.945689] hub 2-0:1.0: USB hub found
[    2.949492] hub 2-0:1.0: 1 port detected
[    2.954278] usbcore: registered new interface driver usbtouchscreen
[    2.967299] input: da9063-onkey as /devices/soc0/soc/2100000.aips-bus/21a8000.i2c/i2c-2/2-0058/da9063-onkey/input/input0
[    2.982525] rtc-rx8010 2-0032: IRQ 183 supplied
[    2.991070] rtc-rx8010 2-0032: rtc core: registered rx8010 as rtc0
[    2.997757] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1
[    3.006602] i2c /dev entries driver
[    3.012015] i2c i2c-0: Added multiplexed i2c bus 3
[    3.018575] at24 4-0050: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
[    3.025458] i2c i2c-0: Added multiplexed i2c bus 4
[    3.030505] i2c i2c-0: Added multiplexed i2c bus 5
[    3.035635] i2c i2c-0: Added multiplexed i2c bus 6
[    3.040821] pca953x 7-0074: 7-0074 supply vcc not found, using dummy regulator
[    3.051956] GPIO line 502 (PCA9539-P06) hogged as output/low
[    3.058716] GPIO line 503 (PCA9539-P07) hogged as output/low
[    3.065536] GPIO line 504 (PCA9539-P10) hogged as output/low
[    3.072346] GPIO line 505 (PCA9539-P11) hogged as output/low
[    3.079138] GPIO line 506 (PCA9539-P12) hogged as output/low
[    3.085946] GPIO line 507 (PCA9539-P13) hogged as output/low
[    3.092754] GPIO line 508 (PCA9539-P14) hogged as output/low
[    3.099559] GPIO line 509 (PCA9539-P15) hogged as output/low
[    3.106345] GPIO line 510 (PCA9539-P16) hogged as output/low
[    3.113150] GPIO line 511 (PCA9539-P17) hogged as output/low
[    3.120518] i2c i2c-0: Added multiplexed i2c bus 7
[    3.125531] i2c i2c-0: Added multiplexed i2c bus 8
[    3.130568] i2c i2c-0: Added multiplexed i2c bus 9
[    3.135559] i2c i2c-0: Added multiplexed i2c bus 10
[    3.140481] pca954x 0-0070: registered 8 multiplexed busses for I2C mux pca9547
[    3.148524] i2c i2c-1: Added multiplexed i2c bus 11
[    3.153632] i2c i2c-1: Added multiplexed i2c bus 12
[    3.158705] i2c i2c-1: Added multiplexed i2c bus 13
[    3.163817] i2c i2c-1: Added multiplexed i2c bus 14
[    3.168937] i2c i2c-1: Added multiplexed i2c bus 15
[    3.174109] i2c i2c-1: Added multiplexed i2c bus 16
[    3.179193] i2c i2c-1: Added multiplexed i2c bus 17
[    3.184318] i2c i2c-1: Added multiplexed i2c bus 18
[    3.189206] pca954x 1-0070: registered 8 multiplexed busses for I2C mux pca9547
[    3.201006] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    3.207544] sdhci: Secure Digital Host Controller Interface driver
[    3.213760] sdhci: Copyright(c) Pierre Ossman
[    3.218121] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.224690] sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on normal mode
[    3.259573] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[    3.299572] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    3.308401] usbcore: registered new interface driver usbhid
[    3.309567] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[    3.320470] usbhid: USB HID core driver
[    3.327081] mma8452 3-001c: registering fsl,mma8453 accelerometer; ID 0x3a
[    3.410591] mmc0: new DDR MMC card at address 0001
[    3.415849] mmcblk0: mmc0:0001 BGND3R 29.1 GiB
[    3.420631] mmcblk0boot0: mmc0:0001 BGND3R partition 1 4.00 MiB
[    3.426801] mmcblk0boot1: mmc0:0001 BGND3R partition 2 4.00 MiB
[    3.432905] sgtl5000 6-000a: sgtl5000 revision 0x11
[    3.432982] mmcblk0rpmb: mmc0:0001 BGND3R partition 3 4.00 MiB
[    3.444504]  mmcblk0: p1 p2 p3 p4 < p5 >
[    3.446177] sgtl5000 6-000a: Using internal LDO instead of VDDD: check ER1
[    3.456964] hub 1-1:1.0: USB hub found
[    3.461219] hub 1-1:1.0: 3 ports detected
[    3.475293] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[    3.496884] imx-sgtl5000 sound: sgtl5000 <-> 2028000.ssi mapping ok
[    3.505192] NET: Registered protocol family 10
[    3.510963] Segment Routing with IPv6
[    3.514701] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.521240] NET: Registered protocol family 17
[    3.525700] 8021q: 802.1Q VLAN Support v1.8
[    3.529944] Key type dns_resolver registered
[    3.536393] Registering SWP/SWPB emulation handler
[    3.536406] hub 2-1:1.0: USB hub found
[    3.536538] hub 2-1:1.0: 4 ports detected
[    3.559106] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.565764] [drm] No driver support for vblank timestamp query.
[    3.571772] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops 0x80940bcc)
[    3.579024] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops 0x80940bcc)
[    3.586301] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops 0x80940bcc)
[    3.593565] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops 0x80940bcc)
[    3.600990] dwhdmi-imx 120000.hdmi: Detected HDMI TX controller v1.30a with HDCP (DWC HDMI 3D TX PHY)
[    3.610641] imx-drm display-subsystem: bound 120000.hdmi (ops 0x80940d44)
[    3.617542] /soc/aips-bus at 02000000/ldb/lvds-channel at 0: could not find display-timings node
[    3.625839] /soc/aips-bus at 02000000/ldb/lvds-channel at 0: no timings specified
[    3.632960] imx-ldb 2000000.aips-bus:ldb: dual-channel mode, ignoring second output
[    3.640643] imx-drm display-subsystem: bound 2000000.aips-bus:ldb (ops 0x809408b0)
[    3.725015] Console: switching to colour frame buffer device 128x48
[    3.747978] imx-drm display-subsystem: fb0:  frame buffer device
[    3.754350] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[    3.762724] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    3.775089] imx_thermal 2000000.aips-bus:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C
[    3.849560] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[    3.879565] usb 1-1.1: new full-speed USB device number 3 using ci_hdrc
[    3.949552] mmc1: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[    3.963290] rtc-rx8010 2-0032: setting system clock to 2017-05-09 07:22:12 UTC (1494314532)
[    3.972213] lvds_ppen: disabling
[    4.000083] DA9063_LDO5: disabling
[    4.006268] hub 2-1.1:1.0: USB hub found
[    4.010413] hub 2-1.1:1.0: 3 ports detected
[    4.018614] DA9063_LDO6: disabling
[    4.025896] DA9063_LDO7: disabling
[    4.033392] DA9063_LDO8: disabling
[    4.040814] DA9063_LDO9: disabling
[    4.048416] DA9063_LDO10: disabling
[    4.064439] input: Silicon Laboratories B850 2nd video audio interface as /devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/11
[    4.099577] ALSA device list:
[    4.102555]   #0: imx6q-ba16-sgtl5000
[    4.149722] hid-generic 0003:1901:0191.0001: input: USB HID v1.11 Device [Silicon Laboratories B850 2nd video audio interface] on usb-ci_2
[    4.166269] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
[    4.187392] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.195554] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[    4.207517] devtmpfs: mounted
[    4.211506] Freeing unused kernel memory: 1024K
[    4.269588] usb 1-1.3: new full-speed USB device number 4 using ci_hdrc
[    4.349641] systemd[1]: systemd 232 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -G)
[    4.368028] systemd[1]: Detected architecture arm.
...

^ permalink raw reply related	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-09  6:34     ` Peter Senna Tschudin
  (?)
@ 2017-05-09 10:21       ` Fabio Estevam
  -1 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-09 10:21 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Lucas Stach, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel,
	Tim Harvey

Hi Peter,

On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
<peter.senna@collabora.com> wrote:

> Something that ocurred to me is that u-boot is initializing the PCI, and
> the PCI networkd cards.  Ideally this should not affect anything, but
> can this be related to the issue?

Yes, in order to narrow things down: please boot 4.11 without PCI
support in U-Boot.

The problem is that mx6q does not have a way to properly reset the PCI block.

On the board I tested there is no PCI support in U-Boot.

Maybe we need the following approach in U-Boot as Lucas did for Barebox:
https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896

According to this patch that went into 4.11 the bootloader must put
PCI back in a safe state:
https://patchwork.kernel.org/patch/9528911

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09 10:21       ` Fabio Estevam
  0 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-09 10:21 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Tim Harvey, Pratyush Anand,
	linux-pci, linux-kernel, Kishon Vijay Abraham I,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

Hi Peter,

On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
<peter.senna@collabora.com> wrote:

> Something that ocurred to me is that u-boot is initializing the PCI, and
> the PCI networkd cards.  Ideally this should not affect anything, but
> can this be related to the issue?

Yes, in order to narrow things down: please boot 4.11 without PCI
support in U-Boot.

The problem is that mx6q does not have a way to properly reset the PCI block.

On the board I tested there is no PCI support in U-Boot.

Maybe we need the following approach in U-Boot as Lucas did for Barebox:
https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896

According to this patch that went into 4.11 the bootloader must put
PCI back in a safe state:
https://patchwork.kernel.org/patch/9528911

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09 10:21       ` Fabio Estevam
  0 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-09 10:21 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Peter,

On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
<peter.senna@collabora.com> wrote:

> Something that ocurred to me is that u-boot is initializing the PCI, and
> the PCI networkd cards.  Ideally this should not affect anything, but
> can this be related to the issue?

Yes, in order to narrow things down: please boot 4.11 without PCI
support in U-Boot.

The problem is that mx6q does not have a way to properly reset the PCI block.

On the board I tested there is no PCI support in U-Boot.

Maybe we need the following approach in U-Boot as Lucas did for Barebox:
https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896

According to this patch that went into 4.11 the bootloader must put
PCI back in a safe state:
https://patchwork.kernel.org/patch/9528911

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-08 20:33       ` Peter Senna Tschudin
  (?)
@ 2017-05-09 16:27         ` Lorenzo Pieralisi
  -1 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-09 16:27 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Lucas Stach, Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han,
	Richard Zhu, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel

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()
> ...

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09 16:27         ` Lorenzo Pieralisi
  0 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-09 16:27 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Pratyush Anand, linux-pci,
	linux-kernel, Kishon Vijay Abraham I, Stanimir Varbanov,
	Minghuan Lian, Zhou Wang, Murali Karicheri, Niklas Cassel,
	Bjorn Helgaas, Mingkai Hu, Roy Zang, linux-arm-kernel,
	Lucas Stach

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()
> ...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-09 16:27         ` Lorenzo Pieralisi
  0 siblings, 0 replies; 71+ messages in thread
From: Lorenzo Pieralisi @ 2017-05-09 16:27 UTC (permalink / raw)
  To: linux-arm-kernel

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 at 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()
> ...

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-09 10:21       ` Fabio Estevam
  (?)
@ 2017-05-10 13:17         ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-10 13:17 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Lucas Stach, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel,
	Tim Harvey

On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> Hi Peter,
> 
> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> <peter.senna@collabora.com> wrote:
> 
> > Something that ocurred to me is that u-boot is initializing the PCI, and
> > the PCI networkd cards.  Ideally this should not affect anything, but
> > can this be related to the issue?
> 
> Yes, in order to narrow things down: please boot 4.11 without PCI
> support in U-Boot.

Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
next still hangs.

> 
> The problem is that mx6q does not have a way to properly reset the PCI block.
> 
> On the board I tested there is no PCI support in U-Boot.
> 
> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896

Maybe we do need, but the kernel is working on v4.10 for our use case,
and it is not working any longer on v4.11. What is the way to continue
from here?

> 
> According to this patch that went into 4.11 the bootloader must put
> PCI back in a safe state:
> https://patchwork.kernel.org/patch/9528911

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 13:17         ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-10 13:17 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Tim Harvey, Pratyush Anand,
	linux-pci, linux-kernel, Kishon Vijay Abraham I,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> Hi Peter,
> 
> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> <peter.senna@collabora.com> wrote:
> 
> > Something that ocurred to me is that u-boot is initializing the PCI, and
> > the PCI networkd cards.  Ideally this should not affect anything, but
> > can this be related to the issue?
> 
> Yes, in order to narrow things down: please boot 4.11 without PCI
> support in U-Boot.

Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
next still hangs.

> 
> The problem is that mx6q does not have a way to properly reset the PCI block.
> 
> On the board I tested there is no PCI support in U-Boot.
> 
> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896

Maybe we do need, but the kernel is working on v4.10 for our use case,
and it is not working any longer on v4.11. What is the way to continue
from here?

> 
> According to this patch that went into 4.11 the bootloader must put
> PCI back in a safe state:
> https://patchwork.kernel.org/patch/9528911

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 13:17         ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-10 13:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> Hi Peter,
> 
> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> <peter.senna@collabora.com> wrote:
> 
> > Something that ocurred to me is that u-boot is initializing the PCI, and
> > the PCI networkd cards.  Ideally this should not affect anything, but
> > can this be related to the issue?
> 
> Yes, in order to narrow things down: please boot 4.11 without PCI
> support in U-Boot.

Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
next still hangs.

> 
> The problem is that mx6q does not have a way to properly reset the PCI block.
> 
> On the board I tested there is no PCI support in U-Boot.
> 
> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896

Maybe we do need, but the kernel is working on v4.10 for our use case,
and it is not working any longer on v4.11. What is the way to continue
from here?

> 
> According to this patch that went into 4.11 the bootloader must put
> PCI back in a safe state:
> https://patchwork.kernel.org/patch/9528911

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-10 13:17         ` Peter Senna Tschudin
  (?)
@ 2017-05-10 13:27           ` Fabio Estevam
  -1 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-10 13:27 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han, Richard Zhu,
	Lucas Stach, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel,
	Tim Harvey

On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
<peter.senna@collabora.com> wrote:
> On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
>> Hi Peter,
>>
>> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
>> <peter.senna@collabora.com> wrote:
>>
>> > Something that ocurred to me is that u-boot is initializing the PCI, and
>> > the PCI networkd cards.  Ideally this should not affect anything, but
>> > can this be related to the issue?
>>
>> Yes, in order to narrow things down: please boot 4.11 without PCI
>> support in U-Boot.
>
> Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> next still hangs.

Ok, good. At least we see the same behaviour now.

We still need a fix for the mx6q hang on systems with PCI switch for
linux/next or 4.12-rc1.

>> The problem is that mx6q does not have a way to properly reset the PCI block.
>>
>> On the board I tested there is no PCI support in U-Boot.
>>
>> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
>> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
>
> Maybe we do need, but the kernel is working on v4.10 for our use case,
> and it is not working any longer on v4.11. What is the way to continue
> from here?

There is no other way other than fixing U-Boot on this case.

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 13:27           ` Fabio Estevam
  0 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-10 13:27 UTC (permalink / raw)
  To: Peter Senna Tschudin
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Tim Harvey, Pratyush Anand,
	linux-pci, linux-kernel, Kishon Vijay Abraham I,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Roy Zang,
	linux-arm-kernel, Lucas Stach

On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
<peter.senna@collabora.com> wrote:
> On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
>> Hi Peter,
>>
>> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
>> <peter.senna@collabora.com> wrote:
>>
>> > Something that ocurred to me is that u-boot is initializing the PCI, and
>> > the PCI networkd cards.  Ideally this should not affect anything, but
>> > can this be related to the issue?
>>
>> Yes, in order to narrow things down: please boot 4.11 without PCI
>> support in U-Boot.
>
> Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> next still hangs.

Ok, good. At least we see the same behaviour now.

We still need a fix for the mx6q hang on systems with PCI switch for
linux/next or 4.12-rc1.

>> The problem is that mx6q does not have a way to properly reset the PCI block.
>>
>> On the board I tested there is no PCI support in U-Boot.
>>
>> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
>> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
>
> Maybe we do need, but the kernel is working on v4.10 for our use case,
> and it is not working any longer on v4.11. What is the way to continue
> from here?

There is no other way other than fixing U-Boot on this case.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 13:27           ` Fabio Estevam
  0 siblings, 0 replies; 71+ messages in thread
From: Fabio Estevam @ 2017-05-10 13:27 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
<peter.senna@collabora.com> wrote:
> On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
>> Hi Peter,
>>
>> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
>> <peter.senna@collabora.com> wrote:
>>
>> > Something that ocurred to me is that u-boot is initializing the PCI, and
>> > the PCI networkd cards.  Ideally this should not affect anything, but
>> > can this be related to the issue?
>>
>> Yes, in order to narrow things down: please boot 4.11 without PCI
>> support in U-Boot.
>
> Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> next still hangs.

Ok, good. At least we see the same behaviour now.

We still need a fix for the mx6q hang on systems with PCI switch for
linux/next or 4.12-rc1.

>> The problem is that mx6q does not have a way to properly reset the PCI block.
>>
>> On the board I tested there is no PCI support in U-Boot.
>>
>> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
>> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
>
> Maybe we do need, but the kernel is working on v4.10 for our use case,
> and it is not working any longer on v4.11. What is the way to continue
> from here?

There is no other way other than fixing U-Boot on this case.

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-10 13:27           ` Fabio Estevam
  (?)
@ 2017-05-10 13:32             ` Lucas Stach
  -1 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-10 13:32 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Peter Senna Tschudin, Kishon Vijay Abraham I, Bjorn Helgaas,
	Jingoo Han, Richard Zhu, Murali Karicheri, Minghuan Lian,
	Mingkai Hu, Roy Zang, Thomas Petazzoni, Niklas Cassel,
	Jesper Nilsson, Joao Pinto, Zhou Wang, Gabriele Paoloni,
	Stanimir Varbanov, Pratyush Anand, linux-pci, linux-arm-kernel,
	linux-kernel, Tim Harvey

Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam:
> On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
> <peter.senna@collabora.com> wrote:
> > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> >> Hi Peter,
> >>
> >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> >> <peter.senna@collabora.com> wrote:
> >>
> >> > Something that ocurred to me is that u-boot is initializing the PCI, and
> >> > the PCI networkd cards.  Ideally this should not affect anything, but
> >> > can this be related to the issue?
> >>
> >> Yes, in order to narrow things down: please boot 4.11 without PCI
> >> support in U-Boot.
> >
> > Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> > next still hangs.
> 
> Ok, good. At least we see the same behaviour now.
> 
> We still need a fix for the mx6q hang on systems with PCI switch for
> linux/next or 4.12-rc1.

I will take a look at this today.

> 
> >> The problem is that mx6q does not have a way to properly reset the PCI block.
> >>
> >> On the board I tested there is no PCI support in U-Boot.
> >>
> >> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> >> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
> >
> > Maybe we do need, but the kernel is working on v4.10 for our use case,
> > and it is not working any longer on v4.11. What is the way to continue
> > from here?
> 
> There is no other way other than fixing U-Boot on this case.

You could also revert the change in the kernel if you are absolutely
sure that this won't cause issues on your system (you are not using the
internal watchdog etc.).

But for the long run and to make sure that _all_ use-cases work
properly, there is no way around fixing your bootloader to behave
correctly.

Regards,
Lucas

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 13:32             ` Lucas Stach
  0 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-10 13:32 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Tim Harvey, Pratyush Anand,
	linux-pci, linux-kernel, Kishon Vijay Abraham I,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Peter Senna Tschudin, Niklas Cassel, Bjorn Helgaas, Mingkai Hu,
	Roy Zang, linux-arm-kernel

Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam:
> On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
> <peter.senna@collabora.com> wrote:
> > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> >> Hi Peter,
> >>
> >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> >> <peter.senna@collabora.com> wrote:
> >>
> >> > Something that ocurred to me is that u-boot is initializing the PCI, and
> >> > the PCI networkd cards.  Ideally this should not affect anything, but
> >> > can this be related to the issue?
> >>
> >> Yes, in order to narrow things down: please boot 4.11 without PCI
> >> support in U-Boot.
> >
> > Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> > next still hangs.
> 
> Ok, good. At least we see the same behaviour now.
> 
> We still need a fix for the mx6q hang on systems with PCI switch for
> linux/next or 4.12-rc1.

I will take a look at this today.

> 
> >> The problem is that mx6q does not have a way to properly reset the PCI block.
> >>
> >> On the board I tested there is no PCI support in U-Boot.
> >>
> >> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> >> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
> >
> > Maybe we do need, but the kernel is working on v4.10 for our use case,
> > and it is not working any longer on v4.11. What is the way to continue
> > from here?
> 
> There is no other way other than fixing U-Boot on this case.

You could also revert the change in the kernel if you are absolutely
sure that this won't cause issues on your system (you are not using the
internal watchdog etc.).

But for the long run and to make sure that _all_ use-cases work
properly, there is no way around fixing your bootloader to behave
correctly.

Regards,
Lucas


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 13:32             ` Lucas Stach
  0 siblings, 0 replies; 71+ messages in thread
From: Lucas Stach @ 2017-05-10 13:32 UTC (permalink / raw)
  To: linux-arm-kernel

Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam:
> On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
> <peter.senna@collabora.com> wrote:
> > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> >> Hi Peter,
> >>
> >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> >> <peter.senna@collabora.com> wrote:
> >>
> >> > Something that ocurred to me is that u-boot is initializing the PCI, and
> >> > the PCI networkd cards.  Ideally this should not affect anything, but
> >> > can this be related to the issue?
> >>
> >> Yes, in order to narrow things down: please boot 4.11 without PCI
> >> support in U-Boot.
> >
> > Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> > next still hangs.
> 
> Ok, good. At least we see the same behaviour now.
> 
> We still need a fix for the mx6q hang on systems with PCI switch for
> linux/next or 4.12-rc1.

I will take a look at this today.

> 
> >> The problem is that mx6q does not have a way to properly reset the PCI block.
> >>
> >> On the board I tested there is no PCI support in U-Boot.
> >>
> >> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> >> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
> >
> > Maybe we do need, but the kernel is working on v4.10 for our use case,
> > and it is not working any longer on v4.11. What is the way to continue
> > from here?
> 
> There is no other way other than fixing U-Boot on this case.

You could also revert the change in the kernel if you are absolutely
sure that this won't cause issues on your system (you are not using the
internal watchdog etc.).

But for the long run and to make sure that _all_ use-cases work
properly, there is no way around fixing your bootloader to behave
correctly.

Regards,
Lucas

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
  2017-05-10 13:32             ` Lucas Stach
  (?)
@ 2017-05-10 14:14               ` Peter Senna Tschudin
  -1 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-10 14:14 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Fabio Estevam, Kishon Vijay Abraham I, Bjorn Helgaas, Jingoo Han,
	Richard Zhu, Murali Karicheri, Minghuan Lian, Mingkai Hu,
	Roy Zang, Thomas Petazzoni, Niklas Cassel, Jesper Nilsson,
	Joao Pinto, Zhou Wang, Gabriele Paoloni, Stanimir Varbanov,
	Pratyush Anand, linux-pci, linux-arm-kernel, linux-kernel,
	Tim Harvey

On Wed, May 10, 2017 at 03:32:19PM +0200, Lucas Stach wrote:
> Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam:
> > On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
> > <peter.senna@collabora.com> wrote:
> > > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> > >> Hi Peter,
> > >>
> > >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> > >> <peter.senna@collabora.com> wrote:
> > >>
> > >> > Something that ocurred to me is that u-boot is initializing the PCI, and
> > >> > the PCI networkd cards.  Ideally this should not affect anything, but
> > >> > can this be related to the issue?
> > >>
> > >> Yes, in order to narrow things down: please boot 4.11 without PCI
> > >> support in U-Boot.
> > >
> > > Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> > > next still hangs.
> > 
> > Ok, good. At least we see the same behaviour now.
> > 
> > We still need a fix for the mx6q hang on systems with PCI switch for
> > linux/next or 4.12-rc1.
> 
> I will take a look at this today.

I'll be more than happy to help. Let me know if you need testing or any
other thing.

> 
> > 
> > >> The problem is that mx6q does not have a way to properly reset the PCI block.
> > >>
> > >> On the board I tested there is no PCI support in U-Boot.
> > >>
> > >> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> > >> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
> > >
> > > Maybe we do need, but the kernel is working on v4.10 for our use case,
> > > and it is not working any longer on v4.11. What is the way to continue
> > > from here?
> > 
> > There is no other way other than fixing U-Boot on this case.
> 
> You could also revert the change in the kernel if you are absolutely
> sure that this won't cause issues on your system (you are not using the
> internal watchdog etc.).
> 
> But for the long run and to make sure that _all_ use-cases work
> properly, there is no way around fixing your bootloader to behave
> correctly.

Thanks!

> 
> Regards,
> Lucas
> 

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Re: Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 14:14               ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-10 14:14 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Thomas Petazzoni, Jesper Nilsson, Joao Pinto, Richard Zhu,
	Gabriele Paoloni, Jingoo Han, Roy Zang, Pratyush Anand,
	linux-pci, linux-kernel, Kishon Vijay Abraham I,
	Stanimir Varbanov, Minghuan Lian, Zhou Wang, Murali Karicheri,
	Niklas Cassel, Bjorn Helgaas, Mingkai Hu, Fabio Estevam,
	Tim Harvey, linux-arm-kernel

On Wed, May 10, 2017 at 03:32:19PM +0200, Lucas Stach wrote:
> Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam:
> > On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
> > <peter.senna@collabora.com> wrote:
> > > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> > >> Hi Peter,
> > >>
> > >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> > >> <peter.senna@collabora.com> wrote:
> > >>
> > >> > Something that ocurred to me is that u-boot is initializing the PCI, and
> > >> > the PCI networkd cards.  Ideally this should not affect anything, but
> > >> > can this be related to the issue?
> > >>
> > >> Yes, in order to narrow things down: please boot 4.11 without PCI
> > >> support in U-Boot.
> > >
> > > Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> > > next still hangs.
> > 
> > Ok, good. At least we see the same behaviour now.
> > 
> > We still need a fix for the mx6q hang on systems with PCI switch for
> > linux/next or 4.12-rc1.
> 
> I will take a look at this today.

I'll be more than happy to help. Let me know if you need testing or any
other thing.

> 
> > 
> > >> The problem is that mx6q does not have a way to properly reset the PCI block.
> > >>
> > >> On the board I tested there is no PCI support in U-Boot.
> > >>
> > >> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> > >> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
> > >
> > > Maybe we do need, but the kernel is working on v4.10 for our use case,
> > > and it is not working any longer on v4.11. What is the way to continue
> > > from here?
> > 
> > There is no other way other than fixing U-Boot on this case.
> 
> You could also revert the change in the kernel if you are absolutely
> sure that this won't cause issues on your system (you are not using the
> internal watchdog etc.).
> 
> But for the long run and to make sure that _all_ use-cases work
> properly, there is no way around fixing your bootloader to behave
> correctly.

Thanks!

> 
> Regards,
> Lucas
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 71+ messages in thread

* Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures
@ 2017-05-10 14:14               ` Peter Senna Tschudin
  0 siblings, 0 replies; 71+ messages in thread
From: Peter Senna Tschudin @ 2017-05-10 14:14 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, May 10, 2017 at 03:32:19PM +0200, Lucas Stach wrote:
> Am Mittwoch, den 10.05.2017, 10:27 -0300 schrieb Fabio Estevam:
> > On Wed, May 10, 2017 at 10:17 AM, Peter Senna Tschudin
> > <peter.senna@collabora.com> wrote:
> > > On Tue, May 09, 2017 at 07:21:24AM -0300, Fabio Estevam wrote:
> > >> Hi Peter,
> > >>
> > >> On Tue, May 9, 2017 at 3:34 AM, Peter Senna Tschudin
> > >> <peter.senna@collabora.com> wrote:
> > >>
> > >> > Something that ocurred to me is that u-boot is initializing the PCI, and
> > >> > the PCI networkd cards.  Ideally this should not affect anything, but
> > >> > can this be related to the issue?
> > >>
> > >> Yes, in order to narrow things down: please boot 4.11 without PCI
> > >> support in U-Boot.
> > >
> > > Yes, removing the PCI code from u-boot makes 4.11 to boot. But latest
> > > next still hangs.
> > 
> > Ok, good. At least we see the same behaviour now.
> > 
> > We still need a fix for the mx6q hang on systems with PCI switch for
> > linux/next or 4.12-rc1.
> 
> I will take a look at this today.

I'll be more than happy to help. Let me know if you need testing or any
other thing.

> 
> > 
> > >> The problem is that mx6q does not have a way to properly reset the PCI block.
> > >>
> > >> On the board I tested there is no PCI support in U-Boot.
> > >>
> > >> Maybe we need the following approach in U-Boot as Lucas did for Barebox:
> > >> https://git.pengutronix.de/cgit/barebox/commit/?id=f1da98da2760c21487bbba8f7fb957c843a22896
> > >
> > > Maybe we do need, but the kernel is working on v4.10 for our use case,
> > > and it is not working any longer on v4.11. What is the way to continue
> > > from here?
> > 
> > There is no other way other than fixing U-Boot on this case.
> 
> You could also revert the change in the kernel if you are absolutely
> sure that this won't cause issues on your system (you are not using the
> internal watchdog etc.).
> 
> But for the long run and to make sure that _all_ use-cases work
> properly, there is no way around fixing your bootloader to behave
> correctly.

Thanks!

> 
> Regards,
> Lucas
> 

^ permalink raw reply	[flat|nested] 71+ messages in thread

end of thread, other threads:[~2017-05-10 14:14 UTC | newest]

Thread overview: 71+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08 15:02 Regression: 442ec4c04d1: PCI: dwc: all: Split struct pcie_port into host-only and core structures Peter Senna Tschudin
2017-05-08 15:02 ` Peter Senna Tschudin
2017-05-08 15:02 ` Peter Senna Tschudin
2017-05-08 15:13 ` Joao Pinto
2017-05-08 15:13   ` Joao Pinto
2017-05-08 15:13   ` Joao Pinto
2017-05-08 15:20   ` Kishon Vijay Abraham I
2017-05-08 15:20     ` Kishon Vijay Abraham I
2017-05-08 15:20     ` Kishon Vijay Abraham I
2017-05-08 15:31     ` Joao Pinto
2017-05-08 15:31       ` Joao Pinto
2017-05-08 15:31       ` Joao Pinto
2017-05-08 15:46       ` Kishon Vijay Abraham I
2017-05-08 15:46         ` Kishon Vijay Abraham I
2017-05-08 15:46         ` Kishon Vijay Abraham I
2017-05-08 15:39 ` Kishon Vijay Abraham I
2017-05-08 15:39   ` Kishon Vijay Abraham I
2017-05-08 15:39   ` Kishon Vijay Abraham I
2017-05-08 15:50   ` Kishon Vijay Abraham I
2017-05-08 15:50     ` Kishon Vijay Abraham I
2017-05-08 15:50     ` Kishon Vijay Abraham I
2017-05-08 17:15     ` Peter Senna Tschudin
2017-05-08 17:15       ` Peter Senna Tschudin
2017-05-08 17:15       ` Peter Senna Tschudin
2017-05-08 16:13   ` Peter Senna Tschudin
2017-05-08 16:13     ` Peter Senna Tschudin
2017-05-08 16:13     ` Peter Senna Tschudin
2017-05-08 16:34 ` Lucas Stach
2017-05-08 16:34   ` Lucas Stach
2017-05-08 16:34   ` Lucas Stach
2017-05-08 16:44   ` Peter Senna Tschudin
2017-05-08 16:44     ` Peter Senna Tschudin
2017-05-08 16:48     ` Lucas Stach
2017-05-08 16:48       ` Lucas Stach
2017-05-08 16:48       ` Lucas Stach
2017-05-08 16:58       ` Peter Senna Tschudin
2017-05-08 16:58         ` Peter Senna Tschudin
2017-05-08 16:58         ` Peter Senna Tschudin
2017-05-08 17:55   ` Lorenzo Pieralisi
2017-05-08 17:55     ` Lorenzo Pieralisi
2017-05-08 17:55     ` Lorenzo Pieralisi
2017-05-08 20:33     ` Peter Senna Tschudin
2017-05-08 20:33       ` Peter Senna Tschudin
2017-05-08 20:33       ` Peter Senna Tschudin
2017-05-09 16:27       ` Lorenzo Pieralisi
2017-05-09 16:27         ` Lorenzo Pieralisi
2017-05-09 16:27         ` Lorenzo Pieralisi
2017-05-08 18:23 ` Lorenzo Pieralisi
2017-05-08 18:23   ` Lorenzo Pieralisi
2017-05-08 18:23   ` Lorenzo Pieralisi
2017-05-09  1:30 ` Fabio Estevam
2017-05-09  1:30   ` Fabio Estevam
2017-05-09  1:30   ` Fabio Estevam
2017-05-09  6:34   ` Peter Senna Tschudin
2017-05-09  6:34     ` Peter Senna Tschudin
2017-05-09  6:34     ` Peter Senna Tschudin
2017-05-09 10:21     ` Fabio Estevam
2017-05-09 10:21       ` Fabio Estevam
2017-05-09 10:21       ` Fabio Estevam
2017-05-10 13:17       ` Peter Senna Tschudin
2017-05-10 13:17         ` Peter Senna Tschudin
2017-05-10 13:17         ` Peter Senna Tschudin
2017-05-10 13:27         ` Fabio Estevam
2017-05-10 13:27           ` Fabio Estevam
2017-05-10 13:27           ` Fabio Estevam
2017-05-10 13:32           ` Lucas Stach
2017-05-10 13:32             ` Lucas Stach
2017-05-10 13:32             ` Lucas Stach
2017-05-10 14:14             ` Peter Senna Tschudin
2017-05-10 14:14               ` Peter Senna Tschudin
2017-05-10 14:14               ` Peter Senna Tschudin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.