compulab-yokneam / meta-bsp-imx8mm

16 stars 21 forks source link

Kernel hangs after sdma firmware load #5

Closed Stimfarmer closed 3 years ago

Stimfarmer commented 3 years ago

Hi,

Im noticing this behaviour while trying your BSP

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.24-iot-gate-imx8-2.2+gbabac008e5cf (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Thu Oct 1 17:15:08 UTC 2020
[    0.000000] Machine model: CompuLab SB-IOTGIMX8 board + CAN bus extension
[    0.000000] earlycon: ec_imx6q0 at MMIO 0x0000000030880000 (options '115200')
[    0.000000] printk: bootconsole [ec_imx6q0] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] OF: reserved mem: node linux,cma compatible matching fail
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xbfbcfa40-0xbfbd0fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 24 pages/cpu s58840 r8192 d31272 u98304
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Speculative Store Bypass Disable mitigation not required
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=ttymxc2,115200 earlycon=ec_imx6q,0x30880000,115200 root=/dev/sda2 rw
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2032760K/2097152K available (14524K kernel code, 1180K rwdata, 4488K rodata, 2560K init, 999K bss, 64392K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 128 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x44c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000003] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.008416] Console: colour dummy device 80x25
[    0.012569] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[    0.022845] pid_max: default: 32768 minimum: 301
[    0.027541] LSM: Security Framework initializing
[    0.032164] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.039562] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.071500] ASID allocator initialised with 32768 entries
[    0.079493] rcu: Hierarchical SRCU implementation.
[    0.088170] EFI services will not be available.
[    0.095518] smp: Bringing up secondary CPUs ...
[    0.127647] Detected VIPT I-cache on CPU1
[    0.127671] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[    0.127703] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.159674] Detected VIPT I-cache on CPU2
[    0.159691] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[    0.159710] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.191720] Detected VIPT I-cache on CPU3
[    0.191735] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[    0.191752] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.191803] smp: Brought up 1 node, 4 CPUs
[    0.245555] SMP: Total of 4 processors activated.
[    0.250277] CPU features: detected: 32-bit EL0 Support
[    0.255448] CPU features: detected: CRC32 instructions
[    0.266876] CPU: All CPU(s) started at EL2
[    0.268129] alternatives: patching kernel code
[    0.273950] devtmpfs: initialized
[    0.281276] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.288216] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.295404] pinctrl core: initialized pinctrl subsystem
[    0.300947] DMI not present or invalid.
[    0.304430] NET: Registered protocol family 16
[    0.309026] DMA: preallocated 256 KiB pool for atomic allocations
[    0.314821] audit: initializing netlink subsys (disabled)
[    0.320360] audit: type=2000 audit(0.272:1): state=initialized audit_enabled=0 res=1
[    0.328045] cpuidle: using governor menu
[    0.332372] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.339450] Serial: AMBA PL011 UART driver
[    0.342955] imx mu driver is registered.
[    0.346845] imx rpmsg driver is registered.
[    0.354960] imx8mm-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[    0.377823] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.381707] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.388437] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.395173] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.403417] cryptd: max_cpu_qlen set to 1000
[    0.411202] ACPI: Interpreter disabled.
[    0.413487] iommu: Default domain type: Translated 
[    0.417208] vgaarb: loaded
[    0.420054] SCSI subsystem initialized
[    0.423842] usbcore: registered new interface driver usbfs
[    0.429353] usbcore: registered new interface driver hub
[    0.434486] usbcore: registered new device driver usb
[    0.440579] mc: Linux media interface: v0.10
[    0.443808] videodev: Linux video capture interface: v2.00
[    0.449314] pps_core: LinuxPPS API ver. 1 registered
[    0.454274] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.463469] PTP clock support registered
[    0.467530] EDAC MC: Ver: 3.0.0
[    0.471244] No BMan portals available!
[    0.474510] QMan: Allocated lookup table at (____ptrval____), entry count 65537
[    0.481893] No QMan portals available!
[    0.485755] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[    0.491744] FPGA manager framework
[    0.495235] Bluetooth: Core ver 2.22
[    0.498485] NET: Registered protocol family 31
[    0.502924] Bluetooth: HCI device and connection manager initialized
[    0.509316] Bluetooth: HCI socket layer initialized
[    0.514213] Bluetooth: L2CAP socket layer initialized
[    0.519295] Bluetooth: SCO socket layer initialized
[    0.524795] clocksource: Switched to clocksource arch_sys_counter
[    0.530479] VFS: Disk quotas dquot_6.6.0
[    0.534298] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.541316] pnp: PnP ACPI: disabled
[    0.549707] thermal_sys: Registered thermal governor 'step_wise'
[    0.549986] NET: Registered protocol family 2
[    0.557828] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.566150] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.574179] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.581646] TCP: Hash tables configured (established 16384 bind 16384)
[    0.588058] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.594763] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.602035] NET: Registered protocol family 1
[    0.606630] RPC: Registered named UNIX socket transport module.
[    0.612230] RPC: Registered udp transport module.
[    0.616947] RPC: Registered tcp transport module.
[    0.621672] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.628152] PCI: CLS 0 bytes, default 64
[    0.632715] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.640198] kvm [1]: IPA Size Limit: 40bits
[    0.644516] kvm [1]: GICv3: no GICV resource entry
[    0.648891] kvm [1]: disabling GICv2 emulation
[    0.653359] kvm [1]: GIC system register CPU interface enabled
[    0.659265] kvm [1]: vgic interrupt IRQ1
[    0.663240] kvm [1]: Hyp mode initialized successfully
[    0.673534] Initialise system trusted keyrings
[    0.675245] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.686725] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.690281] NFS: Registering the id_resolver key type
[    0.694825] Key type id_resolver registered
[    0.698999] Key type id_legacy registered
[    0.703029] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.709775] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.716234] 9p: Installing v9fs 9p2000 file system support
[    0.734780] Key type asymmetric registered
[    0.736022] Asymmetric key parser 'x509' registered
[    0.740956] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.748367] io scheduler mq-deadline registered
[    0.752914] io scheduler kyber registered
[    0.760241] EINJ: ACPI disabled.
[    0.766928] imx-sdma 302c0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[    0.773196] mxs-dma 33000000.dma-controller: initialized
[    0.774586] imx-sdma 302c0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin

I tried to apply custom patches. It did not work.

Regards, Etienne

vraevsky commented 3 years ago

Please add 'debug initcall_debug' to the kernel bootargs. Post the boot log.

vraevsky commented 3 years ago

sd-cad boot) Issue the AltBoot from a bootable Yocto sd-card. In order to update the board bootloader issue cl-uboot and deploy the u-boot to a mmcblk1boot0.

vraevsky commented 3 years ago

Answered