All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
@ 2020-03-23  8:15 yoma sophian
  2020-03-23 13:37 ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: yoma sophian @ 2020-03-23  8:15 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2434 bytes --]

hi all:
I try to use qemu-system-aarch64 windows binary for running arm64
defconfig kernel image but get Synchronous External Abort while
booting PCI devices.
The same Image that run on qemu-system-aarch64 linux binary is fine.
Is there any pci related kernel config need to be removed while using
qemu windows binary?

Appreciate ur help in advance.
=============================
My environment are:
1. the versionof qemu-system-aarch64 windows binary is 4.0.92
2.  kernel image:
     a. check out latest kernel from
         git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
     b. make ARCH=arm64 defconfig
     c. make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j32
3. run qemu with attach "qemu_run.sh"

Boot up fail log is attached
"qemu_win10_binary_bootup_aarch64_defconfig_fail.log.tar.bz2"
============================
below is excerpt from log, where Synchronous External Abort happens.
============================
[    2.453924] pci-host-generic 3f000000.pcie: ECAM at [mem
0x3f000000-0x3fffffff] for [bus 00-0f]
[    2.461280] pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00
[    2.461855] pci_bus 0000:00: root bus resource [bus 00-0f]
[    2.462188] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    2.462423] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[    2.462677] pci_bus 0000:00: root bus resource [mem
0x8000000000-0xffffffffff]
[    2.463565] Synchronous External Abort: synchronous external abort
(0x96000010) at 0xffff00000c000000
[    2.464656] Internal error: : 96000010 [#1] PREEMPT SMP
[    2.465093] Modules linked in:
[    2.465411] Process swapper/0 (pid: 1, stack limit = 0x        (ptrval))
[    2.465810] CPU: 1 PID: 1 Comm: swapper/0 Not tainted
4.14.128-00888-g15ac2b5e934a-dirty #8
[    2.466077] Hardware name: linux,dummy-virt (DT)
[    2.466315] task:         (ptrval) task.stack:         (ptrval)
[    2.466556] PC is at pci_generic_config_read+0xa8/0xd8
[    2.466748] LR is at pci_generic_config_read+0x44/0xd8
[    2.466925] pc : [<ffff0000085960a4>] lr : [<ffff000008596040>]
pstate: 200001c5
[    2.467169] sp : ffff00000804b8c0
[    2.467304] x29: ffff00000804b8f0 x28: ffff00000804bac0
[    2.467565] x27: 0000000000000001 x26: ffff80003d354e80
[    2.467892] x25: ffff00000804bac0 x24: 0000000000000140
[    2.468110] x23: ffff80003c5a0000 x22: 0000000000000000
[    2.468347] x21: 0000000000000000 x20: 0000000000000004

[-- Attachment #2: qemu_win10_binary_bootup_aarch64_defconfig_fail.log.tar.bz2 --]
[-- Type: application/x-bzip, Size: 5692 bytes --]

[-- Attachment #3: qemu_run.sh.tar.bz2 --]
[-- Type: application/x-bzip, Size: 324 bytes --]

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

* Re: qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
  2020-03-23  8:15 qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working yoma sophian
@ 2020-03-23 13:37 ` Peter Maydell
  2020-03-23 16:16   ` yoma sophian
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2020-03-23 13:37 UTC (permalink / raw)
  To: yoma sophian; +Cc: QEMU Developers

On Mon, 23 Mar 2020 at 13:34, yoma sophian <sophian.yoma@gmail.com> wrote:
> My environment are:
> 1. the versionof qemu-system-aarch64 windows binary is 4.0.92

Is it possible for you to try with a newer version of QEMU? That one
is a release candidate snapshot from before a release that we made
a year ago.

thanks
-- PMM


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

* Re: qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
  2020-03-23 13:37 ` Peter Maydell
@ 2020-03-23 16:16   ` yoma sophian
  2020-03-23 17:05     ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: yoma sophian @ 2020-03-23 16:16 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers

hi Peter:
> Is it possible for you to try with a newer version of QEMU? That one
> is a release candidate snapshot from before a release that we made
> a year ago.
With below qemu version, 4.2.0, the latest on the qemu windows download page,
Synchronous External Abort still happen with the problem still hape

Below is download page I tried and version number.
thanks for ur kind suggestion.

https://qemu.weilnetz.de/w64/2020/qemu-w64-setup-20200201.exe
$ qemu-system-aarch64 --version
QEMU emulator version 4.2.0 (v4.2.0-11797-g2890edc853-dirty)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers


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

* Re: qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
  2020-03-23 16:16   ` yoma sophian
@ 2020-03-23 17:05     ` Peter Maydell
  2020-03-24 16:28       ` yoma sophian
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2020-03-23 17:05 UTC (permalink / raw)
  To: yoma sophian; +Cc: QEMU Developers

On Mon, 23 Mar 2020 at 16:16, yoma sophian <sophian.yoma@gmail.com> wrote:
>
> hi Peter:
> > Is it possible for you to try with a newer version of QEMU? That one
> > is a release candidate snapshot from before a release that we made
> > a year ago.
> With below qemu version, 4.2.0, the latest on the qemu windows download page,
> Synchronous External Abort still happen with the problem still hape

Hi; I can't reproduce this (Linux host) either with QEMU
head-of-git (commit 29e0855c5af62bbb0b) or with QEMU 4.2.0.
I used kernel commit 16fbf79b0f83bc7 (which is 5.6-rc7).

[...]
[    1.875186] io scheduler kyber registered
[    1.980486] pl061_gpio 9030000.pl061: PL061 GPIO chip registered
[    2.004922] pci-host-generic 4010000000.pcie: host bridge
/pcie@10000000 ranges:
[    2.007411] pci-host-generic 4010000000.pcie:       IO
0x003eff0000..0x003effffff -> 0x0000000000
[    2.009533] pci-host-generic 4010000000.pcie:      MEM
0x0010000000..0x003efeffff -> 0x0010000000
[    2.010493] pci-host-generic 4010000000.pcie:      MEM
0x8000000000..0xffffffffff -> 0x8000000000
[    2.013505] pci-host-generic 4010000000.pcie: ECAM at [mem
0x4010000000-0x401fffffff] for [bus 00-ff]
[    2.017734] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00
[    2.018963] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.019655] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    2.020104] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[    2.020578] pci_bus 0000:00: root bus resource [mem
0x8000000000-0xffffffffff]
[    2.024698] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000
[    2.038319] pci 0000:00:01.0: [1af4:1000] type 00 class 0x020000
[    2.039848] pci 0000:00:01.0: reg 0x10: [io  0x0000-0x001f]
[    2.040365] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x00000fff]
[    2.041106] pci 0000:00:01.0: reg 0x20: [mem 0x00000000-0x00003fff
64bit pref]
[    2.041631] pci 0000:00:01.0: reg 0x30: [mem 0x00000000-0x0003ffff pref]
[    2.056259] pci 0000:00:01.0: BAR 6: assigned [mem
0x10000000-0x1003ffff pref]
[    2.057782] pci 0000:00:01.0: BAR 4: assigned [mem
0x8000000000-0x8000003fff 64bit pref]
[    2.058828] pci 0000:00:01.0: BAR 1: assigned [mem 0x10040000-0x10040fff]
[    2.059381] pci 0000:00:01.0: BAR 0: assigned [io  0x1000-0x101f]
[    2.096264] EINJ: ACPI disabled.
[    2.217421] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
[    2.307843] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.338768] SuperH (H)SCI(F) driver initialized
[    2.346260] msm_serial: driver initialized
[...]

Your repro instructions said to use the upstream (torvalds)
kernel, but your log file says you were running:

[    0.000000] Linux version 4.14.128-00888-g15ac2b5e934a-dirty
(mtk20533@mtkslt1006) (Android (5220042 based on r346389c) clang
version 8.0.7 (https://android.googlesource.com/toolchain/clang
b55f2d4ebfd35bf643d27dbca1bb228957008617)
(https://android.googlesource.com/toolchain/llvm
3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)) #8
SMP PREEMPT Thu Feb 20 17:45:16 CST 2020

which definitely isn't a recent upstream kernel.
Can you reproduce with an upstream kernel?

thanks
-- PMM


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

* Re: qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
  2020-03-23 17:05     ` Peter Maydell
@ 2020-03-24 16:28       ` yoma sophian
  2020-03-24 16:30         ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: yoma sophian @ 2020-03-24 16:28 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers

hi Peter:

> Hi; I can't reproduce this (Linux host) either with QEMU
> head-of-git (commit 29e0855c5af62bbb0b) or with QEMU 4.2.0.
> I used kernel commit 16fbf79b0f83bc7 (which is 5.6-rc7).

In my experiments, the booting fail ONLY happens on Windows qemu binary.

>
> Your repro instructions said to use the upstream (torvalds)
> kernel, but your log file says you were running:
>
> [    0.000000] Linux version 4.14.128-00888-g15ac2b5e934a-dirty
> (mtk20533@mtkslt1006) (Android (5220042 based on r346389c) clang
> version 8.0.7 (https://android.googlesource.com/toolchain/clang
> b55f2d4ebfd35bf643d27dbca1bb228957008617)
> (https://android.googlesource.com/toolchain/llvm
> 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)) #8
> SMP PREEMPT Thu Feb 20 17:45:16 CST 2020
>

That is my bad.
I originally use kernel 4.4 then tried on kernel 5.5, but both of them
are all booting fail
with windows qemu binary.

Below is upstream kernel 5.5 booting fail log.
BTW, is there any QEMU debug info I can deliver when running its windows binary?
thanks for ur kind help,

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd070]
[ 0.000000] Linux version 5.5.0-rc7-00017-gb87a2ead99b2
(guest@ubuntu14_04) (gcc version 6.1.1 20160711 (Linaro GCC
6.1-2016.08)) #1 SMP PREEMPT Mon Mar 23 15:05:29 CST 2020
[ 0.000000] Machine model: linux,dummy-virt
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x7ddf3100-0x7ddf4fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] percpu: Embedded 22 pages/cpu s53016 r8192 d28904 u90112
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 832075
[ 0.000000] CPU features: detected: ARM erratum 834220
[ 0.000000] CPU features: detected: EL2 vector hardening
[ 0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[ 0.000000] CPU features: detected: ARM erratum 1319367
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: console=ttyAMA0 root=/dev/vda
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576
bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288
bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 968848K/1048576K available (12284K kernel code,
1922K rwdata, 6776K rodata, 5184K init, 458K bss, 46960K reserved,
32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 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=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[ 0.000000] random: get_random_bytes called from
start_kernel+0x2b8/0x454 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[ 0.000231] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps
every 4398046511096ns
[ 0.009220] Console: colour dummy device 80x25
[ 0.011796] Calibrating delay loop (skipped), value calculated using
timer frequency.. 125.00 BogoMIPS (lpj=250000)
[ 0.011986] pid_max: default: 32768 minimum: 301
[ 0.013212] LSM: Security Framework initializing
[ 0.014729] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.014779] Mountpoint-cache hash table entries: 2048 (order: 2, 16384
bytes, linear)
[ 0.085147] ASID allocator initialised with 32768 entries
[ 0.094222] rcu: Hierarchical SRCU implementation.
[ 0.107838] EFI services will not be available.
[ 0.109558] smp: Bringing up secondary CPUs ...
[ 0.136498] Detected PIPT I-cache on CPU1
[ 0.137332] CPU1: Booted secondary processor 0x0000000001 [0x411fd070]
[ 0.140722] smp: Brought up 1 node, 2 CPUs
[ 0.140771] SMP: Total of 2 processors activated.
[ 0.140829] CPU features: detected: 32-bit EL0 Support
[ 0.140921] CPU features: detected: CRC32 instructions
[ 0.205018] CPU: All CPU(s) started at EL1
[ 0.205399] alternatives: patching kernel code
[ 0.227472] devtmpfs: initialized
[ 0.238957] KASLR disabled due to lack of seed
[ 0.244182] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.244358] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.249066] pinctrl core: initialized pinctrl subsystem
[ 0.262448] thermal_sys: Registered thermal governor 'step_wise'
[ 0.262545] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.263436] DMI not present or invalid.
[ 0.269833] NET: Registered protocol family 16
[ 0.282386] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.282569] audit: initializing netlink subsys (disabled)
[ 0.285159] audit: type=2000 audit(0.236:1): state=initialized
audit_enabled=0 res=1
[ 0.291762] cpuidle: using governor menu
[ 0.293291] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.300776] Serial: AMBA PL011 UART driver
[ 0.333078] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39,
base_baud = 0) is a PL011 rev1
[ 0.351253] printk: console [ttyAMA0] enabled
[ 0.388955] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.389332] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.389638] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.389938] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.425032] cryptd: max_cpu_qlen set to 1000
[ 0.450001] ACPI: Interpreter disabled.
[ 0.454581] iommu: Default domain type: Translated
[ 0.456965] vgaarb: loaded
[ 0.460952] SCSI subsystem initialized
[ 0.466230] usbcore: registered new interface driver usbfs
[ 0.466835] usbcore: registered new interface driver hub
[ 0.467468] usbcore: registered new device driver usb
[ 0.469247] pps_core: LinuxPPS API ver. 1 registered
[ 0.469443] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@linux.it>
[ 0.469834] PTP clock support registered
[ 0.470386] EDAC MC: Ver: 3.0.0
[ 0.474573] FPGA manager framework
[ 0.475525] Advanced Linux Sound Architecture Driver Initialized.
[ 0.487929] clocksource: Switched to clocksource arch_sys_counter
[ 0.489422] VFS: Disk quotas dquot_6.6.0
[ 0.489839] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.494808] pnp: PnP ACPI: disabled
[ 0.521542] NET: Registered protocol family 2
[ 0.529604] tcp_listen_portaddr_hash hash table entries: 512 (order:
1, 8192 bytes, linear)
[ 0.530031] TCP established hash table entries: 8192 (order: 4, 65536
bytes, linear)
[ 0.530505] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.531009] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.533297] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.533820] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.535875] NET: Registered protocol family 1
[ 0.540835] RPC: Registered named UNIX socket transport module.
[ 0.541123] RPC: Registered udp transport module.
[ 0.541295] RPC: Registered tcp transport module.
[ 0.541448] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.541796] PCI: CLS 0 bytes, default 64
[ 0.550705] hw perfevents: enabled with armv8_pmuv3 PMU driver, 5
counters available
[ 0.551392] kvm [1]: HYP mode not available
[ 0.583448] Initialise system trusted keyrings
[ 0.586039] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[ 0.602088] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.606029] NFS: Registering the id_resolver key type
[ 0.606739] Key type id_resolver registered
[ 0.607043] Key type id_legacy registered
[ 0.607417] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.608898] 9p: Installing v9fs 9p2000 file system support
[ 0.625536] Key type asymmetric registered
[ 0.625768] Asymmetric key parser 'x509' registered
[ 0.626292] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.626704] io scheduler mq-deadline registered
[ 0.626951] io scheduler kyber registered
[ 0.646051] pl061_gpio 9030000.pl061: PL061 GPIO chip registered
[ 0.650026] pci-host-generic 3f000000.pcie: host bridge /pcie@10000000 ranges:
[ 0.650899] pci-host-generic 3f000000.pcie: IO
0x003eff0000..0x003effffff -> 0x0000000000
[ 0.651736] pci-host-generic 3f000000.pcie: MEM
0x0010000000..0x003efeffff -> 0x0010000000
[ 0.652058] pci-host-generic 3f000000.pcie: MEM
0x8000000000..0xffffffffff -> 0x8000000000
[ 0.653399] pci-host-generic 3f000000.pcie: ECAM at [mem
0x3f000000-0x3fffffff] for [bus 00-0f]
[ 0.655059] pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00
[ 0.655522] pci_bus 0000:00: root bus resource [bus 00-0f]
[ 0.655854] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.656746] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[ 0.657397] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff]
[ 0.659018] Internal error: synchronous external abort: 96000010 [#1]
PREEMPT SMP
[ 0.659642] Modules linked in:
[ 0.660350] CPU: 0 PID: 1 Comm: swapper/0 Not tainted
5.5.0-rc7-00017-gb87a2ead99b2 #1
[ 0.660839] Hardware name: linux,dummy-virt (DT)
[ 0.661247] pstate: 20000085 (nzCv daIf -PAN -UAO)
[ 0.661456] pc : pci_generic_config_read+0x34/0xd0
[ 0.661648] lr : pci_generic_config_read+0x20/0xd0
[ 0.661837] sp : ffff80001002b8f0
[ 0.661966] x29: ffff80001002b8f0 x28: 0000000000000000
[ 0.662229] x27: ffff8000113e8068 x26: 0000000000000000
[ 0.662434] x25: ffff00003d9fb400 x24: 0000000000000000
[ 0.662651] x23: ffff800011a6d2e8 x22: ffff80001002ba14
[ 0.662788] x21: ffff00003db7b800 x20: ffff80001002b964
[ 0.662951] x19: 0000000000000004 x18: ffffffffffffffff
[ 0.663148] x17: 0000000000000007 x16: 0000000000000001
[ 0.663296] x15: ffff8000118498c8 x14: ffff80009002b657
[ 0.663455] x13: ffff80001002b665 x12: ffff800011861a38
[ 0.663610] x11: 0000000000000000 x10: 0000000005f5e0ff
[ 0.663808] x9 : ffff80001002b5f0 x8 : 000000000000000f
[ 0.663973] x7 : 000000000000000c x6 : 0000000000000000
[ 0.664133] x5 : 0000000000000014 x4 : ffff00003d0a4f00
[ 0.664315] x3 : 0000000000000000 x2 : 0000000000000000
[ 0.664469] x1 : 0000000000000000 x0 : ffff800012000000
[ 0.664836] Call trace:
[ 0.665070] pci_generic_config_read+0x34/0xd0
[ 0.665234] pci_bus_read_config_dword+0xa4/0xc8
[ 0.665422] pci_bus_generic_read_dev_vendor_id+0x34/0x168
[ 0.665619] pci_bus_read_dev_vendor_id+0x48/0x68
[ 0.665795] pci_scan_single_device+0x84/0xf0
[ 0.665981] pci_scan_slot+0x6c/0x120
[ 0.666113] pci_scan_child_bus_extend+0x50/0x298
[ 0.666261] pci_scan_root_bus_bridge+0xd0/0xe8
[ 0.666409] pci_host_probe+0x18/0xc0
[ 0.666549] pci_host_common_probe+0xf0/0x1e8
[ 0.666683] gen_pci_probe+0x2c/0x38
[ 0.666794] platform_drv_probe+0x50/0xb0
[ 0.666916] really_probe+0x108/0x360
[ 0.667050] driver_probe_device+0x58/0x100
[ 0.667204] device_driver_attach+0x6c/0x78
[ 0.667359] __driver_attach+0xb0/0xf0
[ 0.667485] bus_for_each_dev+0x68/0xc8
[ 0.667606] driver_attach+0x20/0x28
[ 0.667754] bus_add_driver+0x160/0x1f0
[ 0.667882] driver_register+0x60/0x110
[ 0.668005] __platform_driver_register+0x44/0x50
[ 0.668158] gen_pci_driver_init+0x18/0x20
[ 0.668292] do_one_initcall+0x58/0x1a0
[ 0.668408] kernel_init_freeable+0x19c/0x20c
[ 0.668542] kernel_init+0x10/0x108
[ 0.668726] ret_from_fork+0x10/0x1c
[ 0.669383] Code: 7100067f 54000400 71000a7f 54000240 (88dffc01)
[ 0.670178] ---[ end trace 828481ecefd863c8 ]---
[ 0.670478] note: swapper/0[1] exited with preempt_count 1
[ 0.670849] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[ 0.671268] SMP: stopping secondary CPUs
[ 0.671669] Kernel Offset: disabled
[ 0.672004] CPU features: 0x10002,20006082
[ 0.672256] Memory Limit: none
[ 0.672801] ---[ end Kernel panic - not syncing: Attempted to kill
init! exitcode=0x0000000b ]---


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

* Re: qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
  2020-03-24 16:28       ` yoma sophian
@ 2020-03-24 16:30         ` Peter Maydell
  2020-03-26 17:17           ` yoma sophian
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2020-03-24 16:30 UTC (permalink / raw)
  To: yoma sophian; +Cc: QEMU Developers

On Tue, 24 Mar 2020 at 16:29, yoma sophian <sophian.yoma@gmail.com> wrote:
>
> hi Peter:
>
> > Hi; I can't reproduce this (Linux host) either with QEMU
> > head-of-git (commit 29e0855c5af62bbb0b) or with QEMU 4.2.0.
> > I used kernel commit 16fbf79b0f83bc7 (which is 5.6-rc7).
>
> In my experiments, the booting fail ONLY happens on Windows qemu binary.

Thanks for checking that.

Are you using a 32-bit Windows qemu binary or a 64-bit one?
(I'm wondering if this is a 32-bit vs 64-bit bug.)

thanks
-- PMM


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

* Re: qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
  2020-03-24 16:30         ` Peter Maydell
@ 2020-03-26 17:17           ` yoma sophian
  2020-04-03 16:05             ` yoma sophian
  0 siblings, 1 reply; 8+ messages in thread
From: yoma sophian @ 2020-03-26 17:17 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers

hi Peter:
> Are you using a 32-bit Windows qemu binary or a 64-bit one?
> (I'm wondering if this is a 32-bit vs 64-bit bug.)

unfortunately, 32-bit Windows qemu binary still fail on booting
upstream arm64 defconfig kernel.
in below log, I 1st purposely type wrong option, such that you can
tell where the binary located.
Then as you can see "synchronous external abort" still happens.

thanks for ur kind help,

$ qemu-system-aarch64 -v
C:\Program Files (x86)\qemu\qemu-system-aarch64.exe: -v: invalid option

$ qemu-system-aarch64 --version
QEMU emulator version 4.2.0 (v4.2.0-11797-g2890edc853-dirty)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

$ ./run_script/run.sh
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd070]
[ 0.000000] Linux version 5.5.0-rc7-00017-gb87a2ead99b2
(guest@ubuntu14_04) (gcc version 6.1.1 20160711 (Linaro GCC
6.1-2016.08)) #1 SMP PREEMPT Mon Mar 23 15:05:29 CST 2020
[ 0.000000] Machine model: linux,dummy-virt
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x7ddf3100-0x7ddf4fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] percpu: Embedded 22 pages/cpu s53016 r8192 d28904 u90112
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 832075
[ 0.000000] CPU features: detected: ARM erratum 834220
[ 0.000000] CPU features: detected: EL2 vector hardening
[ 0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[ 0.000000] CPU features: detected: ARM erratum 1319367
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: console=ttyAMA0 root=/dev/vda
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576
bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288
bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 968848K/1048576K available (12284K kernel code,
1922K rwdata, 6776K rodata, 5184K init, 458K bss, 46960K reserved,
32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 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=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[ 0.000000] random: get_random_bytes called from
start_kernel+0x2b8/0x454 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[ 0.000313] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps
every 4398046511096ns
[ 0.012734] Console: colour dummy device 80x25
[ 0.016333] Calibrating delay loop (skipped), value calculated using
timer frequency.. 125.00 BogoMIPS (lpj=250000)
[ 0.016608] pid_max: default: 32768 minimum: 301
[ 0.018603] LSM: Security Framework initializing
[ 0.020522] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.020596] Mountpoint-cache hash table entries: 2048 (order: 2, 16384
bytes, linear)
[ 0.109764] ASID allocator initialised with 32768 entries
[ 0.118473] rcu: Hierarchical SRCU implementation.
[ 0.132871] EFI services will not be available.
[ 0.134747] smp: Bringing up secondary CPUs ...
[ 0.178926] Detected PIPT I-cache on CPU1
[ 0.180097] CPU1: Booted secondary processor 0x0000000001 [0x411fd070]
[ 0.185193] smp: Brought up 1 node, 2 CPUs
[ 0.185252] SMP: Total of 2 processors activated.
[ 0.185318] CPU features: detected: 32-bit EL0 Support
[ 0.185433] CPU features: detected: CRC32 instructions
[ 0.215643] CPU: All CPU(s) started at EL1
[ 0.216146] alternatives: patching kernel code
[ 0.248177] devtmpfs: initialized
[ 0.268462] KASLR disabled due to lack of seed
[ 0.274809] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.275044] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.282272] pinctrl core: initialized pinctrl subsystem
[ 0.300201] thermal_sys: Registered thermal governor 'step_wise'
[ 0.300320] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.301456] DMI not present or invalid.
[ 0.310602] NET: Registered protocol family 16
[ 0.332898] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.333150] audit: initializing netlink subsys (disabled)
[ 0.336925] audit: type=2000 audit(0.248:1): state=initialized
audit_enabled=0 res=1
[ 0.343107] cpuidle: using governor menu
[ 0.345335] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.352482] Serial: AMBA PL011 UART driver
[ 0.394376] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39,
base_baud = 0) is a PL011 rev1
[ 0.412735] printk: console [ttyAMA0] enabled
[ 0.467001] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.467266] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.467440] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.467622] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.507384] cryptd: max_cpu_qlen set to 1000
[ 0.537532] ACPI: Interpreter disabled.
[ 0.543439] iommu: Default domain type: Translated
[ 0.545728] vgaarb: loaded
[ 0.548771] SCSI subsystem initialized
[ 0.553790] usbcore: registered new interface driver usbfs
[ 0.554385] usbcore: registered new interface driver hub
[ 0.554991] usbcore: registered new device driver usb
[ 0.557793] pps_core: LinuxPPS API ver. 1 registered
[ 0.557960] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@linux.it>
[ 0.558365] PTP clock support registered
[ 0.559200] EDAC MC: Ver: 3.0.0
[ 0.575205] FPGA manager framework
[ 0.576756] Advanced Linux Sound Architecture Driver Initialized.
[ 0.597299] clocksource: Switched to clocksource arch_sys_counter
[ 0.599284] VFS: Disk quotas dquot_6.6.0
[ 0.599669] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.602371] pnp: PnP ACPI: disabled
[ 0.630821] NET: Registered protocol family 2
[ 0.643916] tcp_listen_portaddr_hash hash table entries: 512 (order:
1, 8192 bytes, linear)
[ 0.644357] TCP established hash table entries: 8192 (order: 4, 65536
bytes, linear)
[ 0.645308] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.646197] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.650350] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.651015] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.653868] NET: Registered protocol family 1
[ 0.666347] RPC: Registered named UNIX socket transport module.
[ 0.666645] RPC: Registered udp transport module.
[ 0.666779] RPC: Registered tcp transport module.
[ 0.666912] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.667290] PCI: CLS 0 bytes, default 64
[ 0.679016] hw perfevents: enabled with armv8_pmuv3 PMU driver, 5
counters available
[ 0.680728] kvm [1]: HYP mode not available
[ 0.722870] Initialise system trusted keyrings
[ 0.726140] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[ 0.756716] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.763460] NFS: Registering the id_resolver key type
[ 0.764417] Key type id_resolver registered
[ 0.764740] Key type id_legacy registered
[ 0.765560] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.767085] 9p: Installing v9fs 9p2000 file system support
[ 0.797365] Key type asymmetric registered
[ 0.797624] Asymmetric key parser 'x509' registered
[ 0.798510] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.799155] io scheduler mq-deadline registered
[ 0.799438] io scheduler kyber registered
[ 0.830765] pl061_gpio 9030000.pl061: PL061 GPIO chip registered
[ 0.838016] pci-host-generic 3f000000.pcie: host bridge /pcie@10000000 ranges:
[ 0.839143] pci-host-generic 3f000000.pcie: IO
0x003eff0000..0x003effffff -> 0x0000000000
[ 0.840424] pci-host-generic 3f000000.pcie: MEM
0x0010000000..0x003efeffff -> 0x0010000000
[ 0.840864] pci-host-generic 3f000000.pcie: MEM
0x8000000000..0xffffffffff -> 0x8000000000
[ 0.842407] pci-host-generic 3f000000.pcie: ECAM at [mem
0x3f000000-0x3fffffff] for [bus 00-0f]
[ 0.845097] pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00
[ 0.845705] pci_bus 0000:00: root bus resource [bus 00-0f]
[ 0.846074] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.846263] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[ 0.846544] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff]
[ 0.848766] Internal error: synchronous external abort: 96000010 [#1]
PREEMPT SMP
[ 0.849165] Modules linked in:
[ 0.849774] CPU: 1 PID: 1 Comm: swapper/0 Not tainted
5.5.0-rc7-00017-gb87a2ead99b2 #1
[ 0.850021] Hardware name: linux,dummy-virt (DT)
[ 0.850410] pstate: 20000085 (nzCv daIf -PAN -UAO)
[ 0.850596] pc : pci_generic_config_read+0x34/0xd0
[ 0.850751] lr : pci_generic_config_read+0x20/0xd0
[ 0.850892] sp : ffff80001002b8f0
[ 0.851008] x29: ffff80001002b8f0 x28: 0000000000000000
[ 0.851208] x27: ffff8000113e8068 x26: 0000000000000000
[ 0.851338] x25: ffff00003d9ff400 x24: 0000000000000000
[ 0.851502] x23: ffff800011a6d2e8 x22: ffff80001002ba14
[ 0.851656] x21: ffff00003db06000 x20: ffff80001002b964
[ 0.851818] x19: 0000000000000004 x18: ffffffffffffffff
[ 0.851970] x17: 0000000000000007 x16: 0000000000000001
[ 0.852122] x15: ffff8000118498c8 x14: ffff80009002b657
[ 0.852289] x13: ffff80001002b665 x12: ffff800011861a38
[ 0.852433] x11: 0000000000000000 x10: 0000000005f5e0ff
[ 0.852620] x9 : ffff80001002b5f0 x8 : 000000000000000f
[ 0.852810] x7 : 000000000000000c x6 : 0000000000000000
[ 0.853247] x5 : 0000000000000014 x4 : ffff00003db4f900
[ 0.853415] x3 : 0000000000000000 x2 : 0000000000000000
[ 0.853589] x1 : 0000000000000000 x0 : ffff800012000000
[ 0.854020] Call trace:
[ 0.854307] pci_generic_config_read+0x34/0xd0
[ 0.854481] pci_bus_read_config_dword+0xa4/0xc8
[ 0.854646] pci_bus_generic_read_dev_vendor_id+0x34/0x168
[ 0.854827] pci_bus_read_dev_vendor_id+0x48/0x68
[ 0.854968] pci_scan_single_device+0x84/0xf0
[ 0.855130] pci_scan_slot+0x6c/0x120
[ 0.855241] pci_scan_child_bus_extend+0x50/0x298
[ 0.855395] pci_scan_root_bus_bridge+0xd0/0xe8
[ 0.855550] pci_host_probe+0x18/0xc0
[ 0.855690] pci_host_common_probe+0xf0/0x1e8
[ 0.855819] gen_pci_probe+0x2c/0x38
[ 0.855952] platform_drv_probe+0x50/0xb0
[ 0.856077] really_probe+0x108/0x360
[ 0.856199] driver_probe_device+0x58/0x100
[ 0.856329] device_driver_attach+0x6c/0x78
[ 0.856467] __driver_attach+0xb0/0xf0
[ 0.856599] bus_for_each_dev+0x68/0xc8
[ 0.856714] driver_attach+0x20/0x28
[ 0.856831] bus_add_driver+0x160/0x1f0
[ 0.856964] driver_register+0x60/0x110
[ 0.857087] __platform_driver_register+0x44/0x50
[ 0.857230] gen_pci_driver_init+0x18/0x20
[ 0.857346] do_one_initcall+0x58/0x1a0
[ 0.857465] kernel_init_freeable+0x19c/0x20c
[ 0.857610] kernel_init+0x10/0x108
[ 0.857705] ret_from_fork+0x10/0x1c
[ 0.858448] Code: 7100067f 54000400 71000a7f 54000240 (88dffc01)
[ 0.859497] ---[ end trace 251a70cc566bf644 ]---
[ 0.860322] note: swapper/0[1] exited with preempt_count 1
[ 0.860760] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[ 0.861148] SMP: stopping secondary CPUs
[ 0.861807] Kernel Offset: disabled
[ 0.862230] CPU features: 0x10002,20006082
[ 0.862395] Memory Limit: none
[ 0.862751] ---[ end Kernel panic - not syncing: Attempted to kill
init! exitcode=0x0000000b ]---


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

* Re: qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working
  2020-03-26 17:17           ` yoma sophian
@ 2020-04-03 16:05             ` yoma sophian
  0 siblings, 0 replies; 8+ messages in thread
From: yoma sophian @ 2020-04-03 16:05 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers

hi Peter:
> unfortunately, 32-bit Windows qemu binary still fail on booting
> upstream arm64 defconfig kernel.

Is there any debug info of qemu could I provide?

Appreciate ur kind help,


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

end of thread, other threads:[~2020-04-03 16:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23  8:15 qemu-system-aarch64 windows binary run Arm64 defconfig kernel not working yoma sophian
2020-03-23 13:37 ` Peter Maydell
2020-03-23 16:16   ` yoma sophian
2020-03-23 17:05     ` Peter Maydell
2020-03-24 16:28       ` yoma sophian
2020-03-24 16:30         ` Peter Maydell
2020-03-26 17:17           ` yoma sophian
2020-04-03 16:05             ` yoma sophian

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.