Bug 45062

Summary: qemu-system-aarch64 does not boot linux on armh (in tcg mode)
Product: Sisyphus Reporter: Vitaly Chikunov <vt>
Component: qemuAssignee: Alexey Shabalin <shaba>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: glebfm, iv, shaba, vt
Version: unstable   
Hardware: arm   
OS: Linux   

Description Vitaly Chikunov 2023-01-27 19:07:07 MSK
On armh arch qemu-system-aarch64 with -accel tcg does not boot linux kernel. (In compare, this works on all other arches).

https://git.altlinux.org/tasks/313357/build/100/armh/log

[00:01:35] + check qemu-system-aarch64 -accel tcg -serial mon:stdio -nodefaults -nographic -no-reboot -M virt -cpu max -kernel /usr/lib/qemu-vmlinuz/aarch64/vmlinuz-6.1.0-rpi-un-alt1 -append 'debug panic=-1 console=ttyAMA0'
[00:01:35] + timeout 300 qemu-system-aarch64 -accel tcg -serial mon:stdio -nodefaults -nographic -no-reboot -M virt -cpu max -kernel /usr/lib/qemu-vmlinuz/aarch64/vmlinuz-6.1.0-rpi-un-alt1 -append 'debug panic=-1 console=ttyAMA0'
[00:01:35] + sed 's/^/aarch64>/'
[00:01:35] + cat -v
[00:06:35] + cat boot.log
[00:06:35] aarch64>[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x000f0510]^M
[00:06:35] aarch64>[    0.000000] Linux version 6.1.0-rpi-un-alt1 (builder@localhost.localdomain) (aarch64-alt-linux-gcc (GCC) 12.1.1 20220518 (ALT Sisyphus 12.1.1-alt2), GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Sun Dec 18 16:53:57 UTC 2022^M
[00:06:35] aarch64>[    0.000000] random: crng init done^M
[00:06:35] aarch64>[    0.000000] Machine model: linux,dummy-virt^M
[00:06:35] aarch64>[    0.000000] efi: UEFI not found.^M
[00:06:35] aarch64>[    0.000000] NUMA: No NUMA configuration found^M
[00:06:35] aarch64>[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x0000000047ffffff]^M
[00:06:35] aarch64>[    0.000000] NUMA: NODE_DATA [mem 0x47faf040-0x47fb0fff]^M
[00:06:35] aarch64>[    0.000000] Zone ranges:^M
[00:06:35] aarch64>[    0.000000]   DMA      [mem 0x0000000040000000-0x0000000047ffffff]^M
[00:06:35] aarch64>[    0.000000]   DMA32    empty^M
[00:06:35] aarch64>[    0.000000]   Normal   empty^M
[00:06:35] aarch64>[    0.000000] Movable zone start for each node^M
[00:06:35] aarch64>[    0.000000] Early memory node ranges^M
[00:06:35] aarch64>[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000047ffffff]^M
[00:06:35] aarch64>[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]^M
[00:06:35] aarch64>[    0.000000] cma: Failed to reserve 256 MiB^M
[00:06:35] aarch64>[    0.000000] psci: probing for conduit method from DT.^M
[00:06:35] aarch64>[    0.000000] psci: PSCIv1.1 detected in firmware.^M
[00:06:35] aarch64>[    0.000000] psci: Using standard PSCI v0.2 function IDs^M
[00:06:35] aarch64>[    0.000000] psci: Trusted OS migration not required^M
[00:06:35] aarch64>[    0.000000] psci: SMC Calling Convention v1.0^M
[00:06:35] aarch64>[    0.000000] percpu: Embedded 30 pages/cpu s82472 r8192 d32216 u122880^M
[00:06:35] aarch64>[    0.000000] pcpu-alloc: s82472 r8192 d32216 u122880 alloc=30*4096^M
[00:06:35] aarch64>[    0.000000] pcpu-alloc: [0] 0 ^M
[00:06:35] aarch64>[    0.000000] Detected PIPT I-cache on CPU0^M
[00:06:35] aarch64>[    0.000000] CPU features: detected: Address authentication (architected QARMA5 algorithm)^M
[00:06:35] aarch64>[    0.000000] CPU features: detected: Hardware dirty bit management^M
[00:06:35] aarch64>[    0.000000] CPU features: detected: Spectre-v4^M
[00:06:35] aarch64>[    0.000000] alternatives: applying boot alternatives^M
[00:06:35] aarch64>[    0.000000] Fallback order for Node 0: 0 ^M
[00:06:35] aarch64>[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32256^M
[00:06:35] aarch64>[    0.000000] Policy zone: DMA^M
[00:06:35] aarch64>[    0.000000] Kernel command line: debug panic=-1 console=ttyAMA0^M
[00:06:35] aarch64>[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)^M
[00:06:35] aarch64>[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)^M
[00:06:35] aarch64>[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off^M
[00:06:35] aarch64>[    0.000000] Memory: 98688K/131072K available (13952K kernel code, 2604K rwdata, 5220K rodata, 5632K init, 1035K bss, 32384K reserved, 0K cma-reserved)^M
[00:06:35] aarch64>[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1^M
[00:06:35] aarch64>[    0.000000] ftrace: allocating 45991 entries in 180 pages^M
[00:06:35] aarch64>[    0.000000] ftrace: allocated 180 pages with 4 groups^M
[00:06:35] aarch64>[    0.000000] trace event string verifier disabled^M
[00:06:35] aarch64>[    0.000000] rcu: Preemptible hierarchical RCU implementation.^M
[00:06:35] aarch64>[    0.000000] rcu: 	RCU event tracing is enabled.^M
[00:06:35] aarch64>[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.^M
[00:06:35] aarch64>[    0.000000] 	Trampoline variant of Tasks RCU enabled.^M
[00:06:35] aarch64>[    0.000000] 	Rude variant of Tasks RCU enabled.^M
[00:06:35] aarch64>[    0.000000] 	Tracing variant of Tasks RCU enabled.^M
[00:06:35] aarch64>[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.^M
[00:06:35] aarch64>[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1^M
[00:06:35] aarch64>[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0^M
[00:06:35] aarch64>[    0.000000] Root IRQ handler: gic_handle_irq^M
[00:06:35] aarch64>[    0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]^M
[00:06:35] aarch64>[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.^M
[00:06:35] aarch64>[    0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).^M
[00:06:35] aarch64>[    0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns^M
[00:06:35] aarch64>[    0.000316] sched_clock: 57 bits at 63MHz, resolution 16ns, wraps every 4398046511096ns^M
[00:06:35] aarch64>[    0.305387] Console: colour dummy device 80x25^M
[00:06:35] aarch64>[    0.555600] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=62500)^M
[00:06:35] aarch64>[    0.582971] pid_max: default: 32768 minimum: 301^M
[00:06:35] aarch64>[    0.725796] LSM: Security Framework initializing^M
[00:06:35] aarch64>[    1.188162] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)^M
[00:06:35] aarch64>[    1.199828] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)^M
[00:06:35] aarch64>[    2.999195] cgroup: Disabling memory control group subsystem^M
[00:06:35] aarch64>[    3.348744] cacheinfo: Unable to detect cache hierarchy for CPU 0^M
[00:06:35] aarch64>[    3.652255] cblist_init_generic: Setting adjustable number of callback queues.^M
[00:06:35] aarch64>[    3.654205] cblist_init_generic: Setting shift to 0 and lim to 1.^M
[00:06:35] aarch64>[    3.689061] cblist_init_generic: Setting shift to 0 and lim to 1.^M
[00:06:35] aarch64>[    3.719540] cblist_init_generic: Setting shift to 0 and lim to 1.^M
[00:06:35] aarch64>[    3.815570] rcu: Hierarchical SRCU implementation.^M
[00:06:35] aarch64>[    3.817357] rcu: 	Max phase no-delay instances is 400.^M
[00:06:35] aarch64>[    4.060737] EFI services will not be available.^M
[00:06:35] aarch64>[    4.105897] smp: Bringing up secondary CPUs ...^M
[00:06:35] aarch64>[    4.107915] smp: Brought up 1 node, 1 CPU^M
[00:06:35] aarch64>[    4.109767] SMP: Total of 1 processors activated.^M
[00:06:35] aarch64>[    4.113156] CPU features: detected: Branch Target Identification^M
[00:06:35] aarch64>[    4.115054] CPU features: detected: 32-bit EL0 Support^M
[00:06:35] aarch64>[    4.116777] CPU features: detected: 32-bit EL1 Support^M
[00:06:35] aarch64>[    4.118472] CPU features: detected: ARMv8.4 Translation Table Level^M
[00:06:35] aarch64>[    4.120259] CPU features: detected: Data cache clean to the PoU not required for I/D coherence^M
[00:06:35] aarch64>[    4.122113] CPU features: detected: Common not Private translations^M
[00:06:35] aarch64>[    4.123831] CPU features: detected: CRC32 instructions^M
[00:06:35] aarch64>[    4.125541] CPU features: detected: E0PD^M
[00:06:35] aarch64>[    4.127656] CPU features: detected: Generic authentication (architected QARMA5 algorithm)^M
[00:06:35] aarch64>[    4.129415] CPU features: detected: RCpc load-acquire (LDAPR)^M
[00:06:35] aarch64>[    4.131131] CPU features: detected: LSE atomic instructions^M
[00:06:35] aarch64>[    4.132819] CPU features: detected: Privileged Access Never^M
[00:06:35] aarch64>[    4.134537] CPU features: detected: RAS Extension Support^M
[00:06:35] aarch64>[    4.136278] CPU features: detected: Random Number Generator^M
[00:06:35] aarch64>[    4.137992] CPU features: detected: Speculation barrier (SB)^M
[00:06:35] aarch64>[    4.139699] CPU features: detected: Stage-2 Force Write-Back^M
[00:06:35] aarch64>[    4.141478] CPU features: detected: TLB range maintenance instructions^M
[00:06:35] aarch64>[    4.143333] CPU features: detected: Scalable Matrix Extension^M
[00:06:35] aarch64>[    4.145056] CPU features: detected: FA64^M
[00:06:35] aarch64>[    4.146788] CPU features: detected: Speculative Store Bypassing Safe (SSBS)^M
[00:06:35] aarch64>[    4.148500] CPU features: detected: Scalable Vector Extension^M
[00:06:35] aarch64>[    4.221103] SVE: maximum available vector length 256 bytes per vector^M
[00:06:35] aarch64>[    4.232671] SVE: default vector length 64 bytes per vector^M
[00:06:35] aarch64>[    4.245476] SME: minimum available vector length 16 bytes per vector^M
[00:06:35] aarch64>[    4.247314] SME: maximum available vector length 256 bytes per vector^M
[00:06:35] aarch64>[    4.249102] SME: default vector length 32 bytes per vector^M
[00:06:35] aarch64>[    4.252949] CPU: All CPU(s) started at EL1^M
[00:06:35] aarch64>[    4.255204] alternatives: applying system-wide alternatives^M
[00:06:35] aarch64>[    5.168113] devtmpfs: initialized^M
[00:06:35] aarch64>[    6.011192] Enabled cp15_barrier support^M
[00:06:35] aarch64>[    6.015080] Enabled setend support^M
[00:06:35] aarch64>[    6.080873] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns^M
[00:06:35] aarch64>[    6.088466] futex hash table entries: 256 (order: 2, 16384 bytes, linear)^M
[00:06:35] aarch64>[    6.166292] pinctrl core: initialized pinctrl subsystem^M
[00:06:35] aarch64>[    6.375744] DMI not present or invalid.^M
[00:06:35] aarch64>[    6.523532] NET: Registered PF_NETLINK/PF_ROUTE protocol family^M
[00:06:35] aarch64>[    6.655797] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations^M
[00:06:35] aarch64>[    6.664485] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations^M
[00:06:35] aarch64>[    6.670067] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations^M
[00:06:35] aarch64>[    6.685740] audit: initializing netlink subsys (disabled)^M
[00:06:35] aarch64>[    6.754378] audit: type=2000 audit(3.279:1): state=initialized audit_enabled=0 res=1^M
[00:06:35] aarch64>[    6.931966] thermal_sys: Registered thermal governor 'step_wise'^M
[00:06:35] aarch64>[    6.965475] cpuidle: using governor menu^M
[00:06:35] aarch64>[    7.003353] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.^M
[00:06:35] aarch64>[    7.012097] ASID allocator initialised with 65536 entries^M
[00:06:35] aarch64>[    7.041037] Serial: AMBA PL011 UART driver^M
[00:06:35] aarch64>[   11.048878] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 13, base_baud = 0) is a PL011 rev1^M
[00:06:35] aarch64>[   11.422279] printk: console [ttyAMA0] enabled^M
[00:06:35] aarch64>[   24.719301] iommu: Default domain type: Translated ^M
[00:06:35] aarch64>[   24.730873] iommu: DMA domain TLB invalidation policy: strict mode ^M
[00:06:35] aarch64>[   25.005571] SCSI subsystem initialized^M
[00:06:35] aarch64>[   25.111733] libata version 3.00 loaded.^M
[00:06:35] aarch64>[   25.290433] usbcore: registered new interface driver usbfs^M
[00:06:35] aarch64>[   25.333792] usbcore: registered new interface driver hub^M
[00:06:35] aarch64>[   25.380648] usbcore: registered new device driver usb^M
[00:06:35] aarch64>[   25.850771] pps_core: LinuxPPS API ver. 1 registered^M
[00:06:35] aarch64>[   25.861919] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>^M
[00:06:35] aarch64>[   25.874210] PTP clock support registered^M
[00:06:35] aarch64>[   26.769243] vgaarb: loaded^M
[00:06:35] aarch64>qemu-system-aarch64: terminating on signal 15 from pid 665299 (timeout)
[00:06:35] + exit 1
[00:06:35] error: Bad exit status from /usr/src/tmp/rpm-tmp.38248 (%check)