AnsweredAssumed Answered

Linux Kernel 4.9 , mmc driver issue.while upgrading from Kernel 4.1

Question asked by abhay kumar on Jul 9, 2018

Hi everyone,

 I'm not able to probe MMC connected to sdhci with s32v234evb board.

 

device tree                   

    usdhc0: usdhc@4005D000 {
                                compatible = "fsl,s32v234-usdhc", "fsl,s32v234-usdhc";
                                reg = <0x0 0x4005D000 0x0 0x1000>;
                                interrupts = <0 28 4>;
                                clocks = <&clks S32V234_CLK_SDHC>,
                                         <&clks S32V234_CLK_SDHC>,
                                         <&clks S32V234_CLK_SDHC>;
                                clock-names = "ipg", "ahb", "per";
                                bus-width = <4>;
                                status = "disabled";
                        };

 

The boot log says:

 

Starting kernel ...

 

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.17 + (user@00132) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #52 SMP PREEMPT Fri Jul 6 18
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] percpu: Embedded 20 pages/cpu @ffffffc07ff97000 s42368 r8192 d31360 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 517120
[    0.000000] Kernel command line: console=ttyLF0,115200 root=/dev/mmcblk0p2 rootwait rw
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Memory: 2057980K/2097152K available (4670K kernel code, 278K rwdata, 1156K rodata, 320K init, 399K bss, 39172K reserv)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000   (   250 GB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008510000   (  4672 KB)
[    0.000000]     .rodata : 0xffffff8008510000 - 0xffffff8008640000   (  1216 KB)
[    0.000000]       .init : 0xffffff8008640000 - 0xffffff8008690000   (   320 KB)
[    0.000000]       .data : 0xffffff8008690000 - 0xffffff80086d5808   (   279 KB)
[    0.000000]        .bss : 0xffffff80086d5808 - 0xffffff80087394f0   (   400 KB)
[    0.000000]     fixed   : 0xffffffbefe7fd000 - 0xffffffbefec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffffffbf00000000 - 0xffffffc000000000   (     4 GB maximum)
[    0.000000]               0xffffffbf00000000 - 0xffffffbf01c00000   (    28 MB actual)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc080000000   (  2048 MB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 10.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000003] sched_clock: 56 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[    0.000300] Console: colour dummy device 80x25
[    0.000312] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
[    0.000321] pid_max: default: 32768 minimum: 301
[    0.000424] Security Framework initialized
[    0.000465] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000473] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.001140] ASID allocator initialised with 65536 entries
[    0.068308] Detected VIPT I-cache on CPU1
[    0.068349] CPU1: Booted secondary processor [410fd034]
[    0.096352] Detected VIPT I-cache on CPU2
[    0.096391] CPU2: Booted secondary processor [410fd034]
[    0.124407] Detected VIPT I-cache on CPU3
[    0.124430] CPU3: Booted secondary processor [410fd034]
[    0.124510] Brought up 4 CPUs
[    0.124538] SMP: Total of 4 processors activated.
[    0.124549] CPU features: detected feature: 32-bit EL0 Support
[    0.124560] CPU: All CPU(s) started at EL1
[    0.124589] alternatives: patching kernel code
[    0.125634] devtmpfs: initialized
[    0.128557] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.128680] pinctrl core: initialized pinctrl subsystem
[    0.129351] NET: Registered protocol family 16
[    0.130224] vdso: 2 pages (1 code @ ffffff8008517000, 1 data @ ffffff8008694000)
[    0.130245] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.130496] DMA: preallocated 256 KiB pool for atomic allocations
[    0.135128] s32v234-siul2 4006c000.siul: initialized s32 pinctrl driver
[    0.144593] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.145891] i2c i2c-0: IMX I2C adapter registered
[    0.145908] i2c i2c-0: can't use DMA, using PIO instead.
[    0.146304] i2c i2c-1: IMX I2C adapter registered
[    0.146316] i2c i2c-1: can't use DMA, using PIO instead.
[    0.146577] i2c i2c-2: IMX I2C adapter registered
[    0.146592] i2c i2c-2: can't use DMA, using PIO instead.
[    0.146674] pps_core: LinuxPPS API ver. 1 registered
[    0.146682] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146709] PTP clock support registered
[    0.147449] clocksource: Switched to clocksource arch_sys_counter
[    0.156235] NET: Registered protocol family 2
[    0.156813] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.156979] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.157272] TCP: Hash tables configured (established 16384 bind 16384)
[    0.157357] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.157411] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.157616] NET: Registered protocol family 1
[    0.157970] RPC: Registered named UNIX socket transport module.
[    0.157977] RPC: Registered udp transport module.
[    0.157983] RPC: Registered tcp transport module.
[    0.157988] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.158300] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.159286] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.164059] workingset: timestamp_bits=62 max_order=19 bucket_order=0
[    0.165135] fuse init (API version 7.26)
[    0.165977] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.165991] io scheduler noop registered
[    0.165999] io scheduler deadline registered
[    0.166015] io scheduler cfq registered (default)
[    0.169572] sii902x 1-0039: cound not find device
[    0.171316] 40053000.serial: ttyLF0 at MMIO 0x40053000 (irq = 23, base_baud = 4166666) is a FSL_LINFLEX
[    0.776770] console [ttyLF0] enabled
[    0.781076] 400bc000.serial: ttyLF1 at MMIO 0x400bc000 (irq = 31, base_baud = 4166666) is a FSL_LINFLEX
[    0.791949] Unable to detect cache hierarchy from DT for CPU 0
[    0.799460] libphy: Fixed MDIO Bus: probed
[    0.804466] vcan: Virtual CAN interface driver
[    0.809388] slcan: serial line CAN interface driver
[    0.814785] slcan: 10 dynamic interface channels.
[    0.819988] CAN device driver interface
[    0.824346] s32v234-siul2 4006c000.siul: failed to get pin(2) name
[    0.831183] s32v234-siul2 4006c000.siul: failed to get pin(3) name
[    0.838022] s32v234-siul2 4006c000.siul: failed to get pin(700) name
[    0.845049] pinconfig core: failed to register map default (1): no group/pin given
[    0.853430] flexcan: probe of 40055000.flexcan failed with error -22
[    0.860517] s32v234-siul2 4006c000.siul: failed to get pin(42) name
[    0.867449] s32v234-siul2 4006c000.siul: failed to get pin(43) name
[    0.874385] s32v234-siul2 4006c000.siul: failed to get pin(701) name
[    0.881411] pinconfig core: failed to register map default (1): no group/pin given
[    0.889784] flexcan: probe of 400be000.flexcan failed with error -22
[    0.897116] i2c /dev entries driver
[    0.901913] sdhci: Secure Digital Host Controller Interface driver
[    0.908762] sdhci: Copyright(c) Pierre Ossman
[    0.913580] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.920163] sdhci-esdhc-imx 4005d000.usdhc: could not get ultra high speed state, work on normal mode
[    0.930404] Unhandled fault: synchronous external abort (0x96000210) at 0xffffff800806706c
[    0.939551] Internal error: : 96000210 [#1] PREEMPT SMP
[    0.945316] Modules linked in:
[    0.948687] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.9.17 + #52
[    0.955507] Hardware name: Freescale S32V234 (DT)
[    0.960696] task: ffffffc07d070d00 task.stack: ffffffc07d074000
[    0.967234] PC is at sdhci_esdhc_imx_probe+0x44c/0x708
[    0.972904] LR is at sdhci_esdhc_imx_probe+0x3e8/0x708
[    0.978573] pc : [<ffffff80083c29e4>] lr : [<ffffff80083c2980>] pstate: 80000045
[    0.986737] sp : ffffffc07d077c00
[    0.990389] x29: ffffffc07d077c00 x28: 0000000000000000
[    0.996254] x27: ffffff8008668f00 x26: ffffff8008640470
[    1.002119] x25: ffffff8008663b28 x24: ffffffc07d3888b0
[    1.007984] x23: ffffffc07d314410 x22: ffffffc07d314400
[    1.013848] x21: ffffffc07d388880 x20: 0000000000000000
[    1.019713] x19: ffffffc07d388500 x18: 000000000000000e
[    1.025577] x17: 0000000000000000 x16: 0000000000000001
[    1.031441] x15: 0000000000000011 x14: 6574617473206465
[    1.037305] x13: 6570732068676968 x12: 206172746c752074
[    1.043170] x11: 0000000000000006 x10: 0101010101010101
[    1.049034] x9 : fffffffffffffff9 x8 : 7f7f7f7f7f7f7f7f
[    1.054899] x7 : fefefeff646c606d x6 : 030c0e48f0f7f2f3
[    1.060763] x5 : 73727770480e0c03 x4 : 8080808000000000
[    1.066627] x3 : 0000000000000001 x2 : 0000000000000000
[    1.072492] x1 : ffffff8008067028 x0 : ffffff800806706c
[    1.078355]
[    1.079993] Process swapper/0 (pid: 1, stack limit = 0xffffffc07d074020)
[    1.087390] Stack: (0xffffffc07d077c00 to 0xffffffc07d078000)
[    1.093734] 7c00: ffffffc07d077c40 ffffff800836cb6c ffffffc07d314410 ffffffc07d314410
[    1.102380] 7c20: ffffff80086c5540 ffffff80086c5568 ffffff80086bc000 0000000000000000
[    1.111026] 7c40: ffffffc07d077c70 ffffff800836b308 ffffffc07d314410 ffffff8008721000
[    1.119672] 7c60: 0000000000000000 ffffff8008721000 ffffffc07d077cb0 ffffff800836b454
[    1.128318] 7c80: ffffffc07d314410 ffffff80086c5568 ffffffc07d314470 ffffff80086bd1d8
[    1.136965] 7ca0: ffffff80086bc000 ffffff8008663bc0 ffffffc07d077ce0 ffffff80083690e0
[    1.145611] 7cc0: 0000000000000000 ffffff80086c5568 ffffff800836b3a8 ffffffc07d091ed0
[    1.154257] 7ce0: ffffffc07d077d20 ffffff800836abe0 ffffff80086c5568 ffffffc07d435a00
[    1.162903] 7d00: 0000000000000000 ffffff800836a770 ffffffc07d091ea8 ffffffc07d306668
[    1.171549] 7d20: ffffffc07d077d30 ffffff800836a854 ffffffc07d077d70 ffffff800836bb50
[    1.180195] 7d40: ffffff80086c5568 0000000000000000 0000000000000000 0000000000000006
[    1.188841] 7d60: ffffff80086d9000 0000000000000006 ffffffc07d077d90 ffffff800836cab0
[    1.197487] 7d80: ffffffc07d074000 ffffff8008658c4c ffffffc07d077da0 ffffff8008658c68
[    1.206133] 7da0: ffffffc07d077db0 ffffff8008082930 ffffffc07d077e20 ffffff8008640ca0
[    1.214779] 7dc0: 0000000000000069 ffffff80086d9000 ffffff800862f3d8 0000000000000006
[    1.223425] 7de0: ffffffc07d077e00 ffffff80085bfc68 ffffffc07d077e00 ffffff80085bf488
[    1.232071] 7e00: 0000000600000006 0000000000000000 0000000000000000 ffffff800862f3d8
[    1.240717] 7e20: ffffffc07d077e80 ffffff80084fe0e8 ffffff800869c000 0000000000000000
[    1.249363] 7e40: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.258009] 7e60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.266655] 7e80: 0000000000000000 ffffff8008082680 ffffff80084fe0d0 0000000000000000
[    1.275300] 7ea0: 0000000000000000 0000000000000000 ffffff80084fe0d0 0000000000000000
[    1.283946] 7ec0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.292591] 7ee0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.301237] 7f00: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.309882] 7f20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.318528] 7f40: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.327174] 7f60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.335819] 7f80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.344464] 7fa0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.353110] 7fc0: 0000000000000000 0000000000000005 0000000000000000 0000000000000000
[    1.361755] 7fe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    1.370399] Call trace:
[    1.373093] Exception stack(0xffffffc07d077a30 to 0xffffffc07d077b60)
[    1.380202] 7a20:                                   ffffffc07d388500 0000008000000000
[    1.388848] 7a40: ffffffc07d077c00 ffffff80083c29e4 0000000000000007 0000000000000000
[    1.397494] 7a60: ffffff800806706c ffffffc07d388000 ffffffc07d314410 ffffffc07d077ad8
[    1.406140] 7a80: ffffffc07d077ab0 ffffff80083cfc64 ffffffc07d388000 ffffff80085e7368
[    1.414786] 7aa0: 0000000000000000 0000000000000004 ffffffc07d077b20 ffffff80083cfd18
[    1.423432] 7ac0: ffffffc07d388000 ffffffc07fff0b00 ffffff800806706c ffffff8008067028
[    1.432078] 7ae0: 0000000000000000 0000000000000001 8080808000000000 73727770480e0c03
[    1.440724] 7b00: 030c0e48f0f7f2f3 fefefeff646c606d 7f7f7f7f7f7f7f7f fffffffffffffff9
[    1.449370] 7b20: 0101010101010101 0000000000000006 206172746c752074 6570732068676968
[    1.458016] 7b40: 6574617473206465 0000000000000011 0000000000000001 0000000000000000
[    1.466662] [<ffffff80083c29e4>] sdhci_esdhc_imx_probe+0x44c/0x708
[    1.473486] [<ffffff800836cb6c>] platform_drv_probe+0x50/0xc8
[    1.479829] [<ffffff800836b308>] driver_probe_device+0x218/0x2b8
[    1.486459] [<ffffff800836b454>] __driver_attach+0xac/0xb0
[    1.492515] [<ffffff80083690e0>] bus_for_each_dev+0x58/0x98
[    1.498665] [<ffffff800836abe0>] driver_attach+0x20/0x28
[    1.504527] [<ffffff800836a854>] bus_add_driver+0x1c8/0x22c
[    1.510677] [<ffffff800836bb50>] driver_register+0x74/0x10c
[    1.516828] [<ffffff800836cab0>] __platform_driver_register+0x4c/0x54
[    1.523940] [<ffffff8008658c68>] sdhci_esdhc_imx_driver_init+0x1c/0x24
[    1.531148] [<ffffff8008082930>] do_one_initcall+0x38/0x128
[    1.537300] [<ffffff8008640ca0>] kernel_init_freeable+0x148/0x1ec
[    1.544028] [<ffffff80084fe0e8>] kernel_init+0x18/0x13c
[    1.549794] [<ffffff8008082680>] ret_from_fork+0x10/0x50
[    1.555658] Code: b9000020 d5033e9f f9400e60 9101b000 (b9400000)
[    1.562408] ---[ end trace 6308881df92114c8 ]---
[    1.567527] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.567527]
[    1.577615] SMP: stopping secondary CPUs
[    1.581945] Kernel Offset: disabled
[    1.585793] Memory Limit: none
[    1.589166] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

 

Some advices ?

thanks

Outcomes