[meta-freescale] master/krogoth kernel crash for imx7D
Gary Bisson
gary.bisson at boundarydevices.com
Thu Jun 23 11:09:59 PDT 2016
Hi Daiane,
I've had this CAAM issue in the past:
http://lists.denx.de/pipermail/u-boot/2016-March/250112.html
Are you using mainline U-Boot? If so you need to enable the secure mode,
otherwise CAAM won't work. See the patch I made on our Github repo to fix
it:
https://github.com/boundarydevices/u-boot-imx6/commit/38b5fa7e
Regards,
Gary
On Thu, Jun 23, 2016 at 7:10 PM, Daiane Angolini <daiane.list at gmail.com>
wrote:
> I'm facing the following kernel crash for imx7dsabresd. Any hint?
>
> Starting kernel ...
>
> Booting Linux on physical CPU 0x0
> Linux version 4.1.15-1.1.0+ga4d2a08 (fsl at fsl-Precision-M4800) (gcc
> version 5.3.0 (GCC) ) #1 SMP PREEMPT Thu Jun 23 15:50:23 CEST 2016
> CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
> CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
> Machine model: Freescale i.MX7D SabreSD Board
> Reserved memory: created CMA memory pool at 0xac000000, size 320 MiB
> Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
> Memory policy: Data cache writealloc
> PERCPU: Embedded 12 pages/cpu @ab71c000 s16908 r8192 d24052 u49152
> Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
> Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
> PID hash table entries: 4096 (order: 2, 16384 bytes)
> Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
> Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
> Memory: 698868K/1048576K available (7944K kernel code, 422K rwdata,
> 2832K rodata, 428K init, 440K bss, 22028K reserved, 327680K
> cma-reserved, 0K highmem)
> Virtual kernel memory layout:
> vector : 0xffff0000 - 0xffff1000 ( 4 kB)
> fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
> vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
> lowmem : 0x80000000 - 0xc0000000 (1024 MB)
> pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
> modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
> .text : 0x80008000 - 0x80a8e398 (10777 kB)
> .init : 0x80a8f000 - 0x80afa000 ( 428 kB)
> .data : 0x80afa000 - 0x80b63b40 ( 423 kB)
> .bss : 0x80b66000 - 0x80bd40c0 ( 441 kB)
> SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
> Preemptible hierarchical RCU implementation.
> Additional per-CPU info printed with stalls.
> RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
> RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
> NR_IRQS:16 nr_irqs:16 16
> Architected cp15 timer(s) running at 8.00MHz (phys).
> clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles:
> 0x1d854df40, max_idle_ns: 440795202120 ns
> sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
> Switching to timer-based delay loop, resolution 125ns
> mxc_clocksource_init 3000000
> Ignoring duplicate/late registration of read_current_timer delay
> clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff,
> max_idle_ns: 637086815595 ns
> Console: colour dummy device 80x30
> Calibrating delay loop (skipped), value calculated using timer
> frequency.. 16.00 BogoMIPS (lpj=80000)
> pid_max: default: 32768 minimum: 301
> Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
> Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
> CPU: Testing write buffer coherency: ok
> /cpus/cpu at 0 missing clock-frequency property
> /cpus/cpu at 1 missing clock-frequency property
> CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
> Setting up static identity map for 0x80008280 - 0x800082d8
> CPU1: failed to come online
> Brought up 1 CPUs
> SMP: Total of 1 processors activated (16.00 BogoMIPS).
> CPU: All CPU(s) started in SVC mode.
> devtmpfs: initialized
> device-tree: Duplicate name in lcdif at 30730000, renamed to "display#1"
> VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
> clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff,
> max_idle_ns: 19112604462750000 ns
> pinctrl core: initialized pinctrl subsystem
> NET: Registered protocol family 16
> DMA: preallocated 256 KiB pool for atomic coherent allocations
> cpuidle: using governor ladder
> cpuidle: using governor menu
> DDR type is DDR3!
> hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
> hw-breakpoint: maximum watchpoint size is 8 bytes.
> imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
> imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
> MU is ready for cross core communication!
> mxs-dma 33000000.dma-apbh: initialized
> SCSI subsystem initialized
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> 30800000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
> 30800000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
> i2c i2c-0: IMX I2C adapter registered
> i2c i2c-0: can't use DMA
> i2c i2c-1: IMX I2C adapter registered
> i2c i2c-1: can't use DMA
> i2c i2c-2: IMX I2C adapter registered
> i2c i2c-2: can't use DMA
> i2c i2c-3: IMX I2C adapter registered
> i2c i2c-3: can't use DMA
> Linux video capture interface: v2.00
> pps_core: LinuxPPS API ver. 1 registered
> pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
> <giometti at linux.it>
> PTP clock support registered
> MIPI CSI2 driver module loaded
> Advanced Linux Sound Architecture Driver Initialized.
> Bluetooth: Core ver 2.20
> NET: Registered protocol family 31
> Bluetooth: HCI device and connection manager initialized
> Bluetooth: HCI socket layer initialized
> Bluetooth: L2CAP socket layer initialized
> Bluetooth: SCO socket layer initialized
> Switched to clocksource arch_sys_counter
> NET: Registered protocol family 2
> TCP established hash table entries: 8192 (order: 3, 32768 bytes)
> TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
> TCP: Hash tables configured (established 8192 bind 8192)
> UDP hash table entries: 512 (order: 2, 16384 bytes)
> UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
> NET: Registered protocol family 1
> RPC: Registered named UNIX socket transport module.
> RPC: Registered udp transport module.
> RPC: Registered tcp transport module.
> RPC: Registered tcp NFSv4.1 backchannel transport module.
> imx rpmsg driver is registered.
> Bus freq driver module loaded
> futex hash table entries: 512 (order: 3, 32768 bytes)
> VFS: Disk quotas dquot_6.6.0
> VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> NFS: Registering the id_resolver key type
> Key type id_resolver registered
> Key type id_legacy registered
> jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
> fuse init (API version 7.23)
> io scheduler noop registered
> io scheduler deadline registered
> io scheduler cfq registered (default)
> backlight supply power not found, using dummy regulator
> MIPI DSI driver module loaded
> MIPI DSI driver module loaded
> sii902x 2-0039: No reset pin found
> sii902x 2-0039: Can not read edid
> 30730000.lcdif supply lcd not found, using dummy regulator
> mxsfb 30730000.lcdif: failed to find mxc display driver
> Console: switching to colour frame buffer device 60x34
> mxsfb 30730000.lcdif: initialized
> imx-sdma 30bd0000.sdma: no event needs to be remapped
> imx-sdma 30bd0000.sdma: loaded firmware 4.2
> imx-sdma 30bd0000.sdma: initialized
> pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
> pfuze100-regulator 0-0008: FAB: 0, FIN: 0
> pfuze100-regulator 0-0008: pfuze3000 found.
> 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 279, base_baud =
> 1500000) is a IMX
> console [ttymxc0] enabled
> 30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 288, base_baud =
> 5000000) is a IMX
> 30a80000.serial: ttymxc5 at MMIO 0x30a80000 (irq = 289, base_baud =
> 5000000) is a IMX
> imx sema4 driver is registered.
> [drm] Initialized drm 1.1.0 20060810
> [drm] Initialized vivante 1.0.0 20120216 on minor 0
> brd: module loaded
> loop: module loaded
> input: fxos8700 as
>
> /devices/platform/soc/30800000.aips-bus/30a30000.i2c/i2c-1/1-001e/input/input0
> fxos8700 device driver probe successfully
> input: fxas2100x as
>
> /devices/platform/soc/30800000.aips-bus/30a30000.i2c/i2c-1/1-0020/input/input1
> fxas2100x 1-0020: fxas2100x device driver probe successfully
> spi_gpio spi4: gpio-miso property not found, switching to no-rx mode
> spi_imx 30840000.ecspi: probed
> CAN device driver interface
> flexcan 30a10000.can: device registered (reg_base=f5a10000, irq=283)
> 30be0000.ethernet supply phy not found, using dummy regulator
> pps pps0: new PPS source ptp0
> libphy: fec_enet_mii_bus: probed
> fec 30be0000.ethernet eth0: registered PHC device 0
> 30bf0000.ethernet supply phy not found, using dummy regulator
> pps pps1: new PPS source ptp1
> fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Invalid
> MAC address: 00:00:00:00:00:00
> fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Using
> random MAC address: 46:cb:dc:d0:f3:e4
> fec 30bf0000.ethernet eth1: registered PHC device 1
> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> ehci-mxc: Freescale On-Chip EHCI Host driver
> usbcore: registered new interface driver usb-storage
> usbcore: registered new interface driver usb_ehset_test
> 30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
> 30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
> 30b30200.usbmisc supply vbus-wakeup not found, using dummy regulator
> ci_hdrc ci_hdrc.1: EHCI Host Controller
> ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
> ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
> hub 1-0:1.0: USB hub found
> hub 1-0:1.0: 1 port detected
> mousedev: PS/2 mouse device common for all mice
> input: 30370000.snvs:snvs-powerkey as
>
> /devices/platform/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input2
> spi2.0 supply vcc not found, using dummy regulator
> ads7846 spi2.0: touchscreen, irq 88
> input: ADS7846 Touchscreen as
>
> /devices/platform/soc/30800000.aips-bus/30800000.spba-bus/30840000.ecspi/spi_master/spi2/spi2.0/input/input3
> read mpl3115 chip id 0xc4
> input: mpl3115 as /devices/virtual/input/input4
> mpl3115 device driver probe successfully
> snvs_rtc 30370000.snvs:snvs-rtc-lp: rtc core: registered
> 30370000.snvs:snvs- as rtc0
> i2c /dev entries driver
> IR NEC protocol handler initialized
> IR RC5(x/sz) protocol handler initialized
> IR RC6 protocol handler initialized
> IR JVC protocol handler initialized
> IR Sony protocol handler initialized
> IR SANYO protocol handler initialized
> IR Sharp protocol handler initialized
> IR MCE Keyboard/mouse protocol handler initialized
> IR XMP protocol handler initialized
> pxp-v4l2 pxp_v4l2_out: initialized
> imx2-wdt 30280000.wdog: use WDOG_B to reboot.
> imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
> Bluetooth: HCI UART driver ver 2.3
> Bluetooth: HCI UART protocol H4 registered
> Bluetooth: HCI UART protocol BCSP registered
> Bluetooth: HCI UART protocol ATH3K registered
> usbcore: registered new interface driver bcm203x
> usbcore: registered new interface driver btusb
> usbcore: registered new interface driver ath3k
> sdhci: Secure Digital Host Controller Interface driver
> sdhci: Copyright(c) Pierre Ossman
> sdhci-pltfm: SDHCI platform and OF driver helper
> /soc/aips-bus at 30800000/usdhc at 30b40000: voltage-ranges unspecified
> sdhci-esdhc-imx 30b40000.usdhc: Got CD GPIO
> sdhci-esdhc-imx 30b40000.usdhc: Got WP GPIO
> sdhci-esdhc-imx 30b40000.usdhc: No vqmmc regulator found
> mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
> /soc/aips-bus at 30800000/usdhc at 30b50000: voltage-ranges unspecified
> sdhci-esdhc-imx 30b50000.usdhc: assigned as wifi host
> sdhci-esdhc-imx 30b50000.usdhc: No vmmc regulator found
> sdhci-esdhc-imx 30b50000.usdhc: No vqmmc regulator found
> mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using ADMA
> /soc/aips-bus at 30800000/usdhc at 30b60000: voltage-ranges unspecified
> sdhci-esdhc-imx 30b60000.usdhc: No vmmc regulator found
> sdhci-esdhc-imx 30b60000.usdhc: No vqmmc regulator found
> mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
> caam 30900000.caam: Entropy delay = 3200
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 3600
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 4000
> mmc0: Problem setting current limit!
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 4400
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 4800
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 5200
> mmc0: new ultra high speed DDR50 SDHC card at address e624
> mmcblk0: mmc0:e624 SU08G 7.40 GiB
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 5600
> mmcblk0: p1 p2
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 6000
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 6400
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 6800
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 7200
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 7600
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 8000
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 8400
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 8800
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 9200
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 9600
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 10000
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 10400
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 10800
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 11200
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 11600
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 12000
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: Entropy delay = 12400
> caam 30900000.caam: failed to acquire DECO 0
> caam 30900000.caam: failed to instantiate RNG
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 1 at
>
> /home/fsl/Data/fsl_yocto_community_krogoth/build_imx7sdb_qt_x11/tmp/work-shared/imx7dsabresd/kernel-source/mm/vmalloc.c:1465
> caam_remove+0x6c/0x408()
> Trying to vfree() nonexistent vm area (a8063000)
> Modules linked in:
> CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.15-1.1.0+ga4d2a08 #1
> Hardware name: Freescale i.MX7 Dual (Device Tree)
> [<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
> [<8001271c>] (show_stack) from [<80790280>] (dump_stack+0x84/0xc4)
> [<80790280>] (dump_stack) from [<80034750>]
> (warn_slowpath_common+0x80/0xb0)
> [<80034750>] (warn_slowpath_common) from [<800347b0>]
> (warn_slowpath_fmt+0x30/0x40)
> [<800347b0>] (warn_slowpath_fmt) from [<8056ed9c>] (caam_remove+0x6c/0x408)
> [<8056ed9c>] (caam_remove) from [<8056ff10>] (caam_probe+0xdd8/0xf10)
> [<8056ff10>] (caam_probe) from [<80381118>] (platform_drv_probe+0x44/0xac)
> [<80381118>] (platform_drv_probe) from [<8037f9b4>]
> (driver_probe_device+0x174/0x2b4)
> [<8037f9b4>] (driver_probe_device) from [<8037fbc4>]
> (__driver_attach+0x8c/0x90)
> [<8037fbc4>] (__driver_attach) from [<8037e040>]
> (bus_for_each_dev+0x68/0x9c)
> [<8037e040>] (bus_for_each_dev) from [<8037f144>]
> (bus_add_driver+0x148/0x1f0)
> [<8037f144>] (bus_add_driver) from [<803801c4>] (driver_register+0x78/0xf8)
> [<803801c4>] (driver_register) from [<80009718>]
> (do_one_initcall+0x8c/0x1d4)
> [<80009718>] (do_one_initcall) from [<80a8fdbc>]
> (kernel_init_freeable+0x144/0x1e4)
> [<80a8fdbc>] (kernel_init_freeable) from [<8078c4e4>]
> (kernel_init+0x8/0xe8)
> [<8078c4e4>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
> ---[ end trace 0315279c11aaddc3 ]---
> caam: probe of 30900000.caam failed with error -11
> Unable to handle kernel NULL pointer dereference at virtual address
> 00000004
> pgd = 80004000
> [00000004] *pgd=00000000
> Internal error: Oops: 805 [#1] PREEMPT SMP ARM
> Modules linked in:
> CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W
> 4.1.15-1.1.0+ga4d2a08 #1
> Hardware name: Freescale i.MX7 Dual (Device Tree)
> task: a807c000 ti: a8062000 task.ti: a8062000
> PC is at caam_sm_startup+0x8c/0x3cc
> LR is at device_add+0x154/0x56c
> pc : [<8057f910>] lr : [<8037d008>] psr: a0000113
> sp : a8063ed0 ip : 00000000 fp : 00000000
> r10: 80af358c r9 : 00000000 r8 : 00000000
> r7 : 80ad15d8 r6 : ab73bac4 r5 : a8150010 r4 : a8419840
> r3 : a8493210 r2 : a8493200 r1 : 00000000 r0 : a8493200
> Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
> Control: 10c53c7d Table: 8000406a DAC: 00000015
> Process swapper/0 (pid: 1, stack limit = 0xa8062210)
> Stack: (0xa8063ed0 to 0xa8064000)
> 3ec0: 00000000 80796214 a8063ee8
> a8493200
> 3ee0: a8150010 80aff720 80aff720 a847e1c0 80ad15d8 00000000 80ae6bcc
> 80af358c
> 3f00: 00000000 80ad1628 80aff720 80009718 80ae6ba8 8013f8ac 00000000
> a80ee380
> 3f20: 00000000 80b073e8 60000113 00000000 abfffb76 abfffb74 807c2a24
> 8004c4d4
> 3f40: 00000000 809d7a40 00000006 00000006 80b073d0 0000010d 00000006
> 80b66000
> 3f60: 0000010d 00000006 80b66000 80b66000 80ae6bc4 80a8fdbc 00000006
> 00000006
> 3f80: 80a8f594 80050b94 00000000 8078c4dc 00000000 00000000 00000000
> 00000000
> 3fa0: 00000000 8078c4e4 00000000 8000f528 00000000 00000000 00000000
> 00000000
> 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000
> 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 2fef7abf
> cbabedc9
> [<8057f910>] (caam_sm_startup) from [<80ad1628>] (caam_sm_init+0x50/0x58)
> [<80ad1628>] (caam_sm_init) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
> [<80009718>] (do_one_initcall) from [<80a8fdbc>]
> (kernel_init_freeable+0x144/0x1e4)
> [<80a8fdbc>] (kernel_init_freeable) from [<8078c4e4>]
> (kernel_init+0x8/0xe8)
> [<8078c4e4>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
> Code: e59d200c e2823010 e5842008 e5824068 (e5893004)
> ---[ end trace 0315279c11aaddc4 ]---
> Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
>
> ---[ end Kernel panic - not syncing: Attempted to kill init!
> exitcode=0x0000000b
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20160623/f58c144d/attachment.html>
More information about the meta-freescale
mailing list