qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] hw/arm: add PCIe to Freescale i.MX6


From: Guenter Roeck
Subject: Re: [PATCH v2] hw/arm: add PCIe to Freescale i.MX6
Date: Sat, 27 Jan 2024 11:11:55 -0800

Hi,

On Mon, Jan 08, 2024 at 02:03:25PM +0000, Nikita Ostrenkov wrote:
> Signed-off-by: Nikita Ostrenkov <n.ostrenkov@gmail.com>
> ---

This patch, with the "sabrelite" emulation and the Linux upstream kernel
(v6.8-rc1, using imx_v6_v7_defconfig), results in:

qemu-system-arm: ../system/memory.c:2750: memory_region_set_alias_offset: 
Assertion `mr->alias' failed.

with the backtrace below. Any idea what might be wrong ?

Thanks,
Guenter

---
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737237087808) 
at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737237087808) at 
./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737237087808, signo=signo@entry=6) at 
./nptl/pthread_kill.c:89
#3  0x00007ffff6242476 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
#4  0x00007ffff62287f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007ffff622871b in __assert_fail_base
    (fmt=0x7ffff63dd130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
assertion=0x5555565712bd "mr->alias", file=0x555556570da4 "../system/memory.c", 
line=2750, function=<optimized out>)
    at ./assert/assert.c:92
#6  0x00007ffff6239e96 in __GI___assert_fail
    (assertion=0x5555565712bd "mr->alias", file=0x555556570da4 
"../system/memory.c", line=2750, function=0x555556571bf0 
<__PRETTY_FUNCTION__.8> "memory_region_set_alias_offset")
    at ./assert/assert.c:101
#7  0x00005555560192ce in memory_region_set_alias_offset (mr=0x555557a77ce0, 
offset=286326784) at ../system/memory.c:2750
#8  0x0000555555b8bc9f in designware_pcie_update_viewport (root=0x555557a74d50, 
viewport=0x555557a77bc0) at ../hw/pci-host/designware.c:280
#9  0x0000555555b8c06d in designware_pcie_root_config_write (d=0x555557a74d50, 
address=2312, val=0, len=4) at ../hw/pci-host/designware.c:375
#10 0x0000555555b78488 in pci_host_config_write_common (pci_dev=0x555557a74d50, 
addr=2312, limit=4096, val=0, len=4) at ../hw/pci/pci_host.c:96
#11 0x0000555555b8c7ee in designware_pcie_host_mmio_write 
(opaque=0x555557a746c0, addr=2312, val=0, size=4) at 
../hw/pci-host/designware.c:635
#12 0x0000555556012388 in memory_region_write_accessor (mr=0x555557a780a0, 
addr=2312, value=0x7ffff105a628, size=4, shift=0, mask=4294967295, attrs=...) 
at ../system/memory.c:497
#13 0x00005555560126c1 in access_with_adjusted_size
     (addr=2312, value=0x7ffff105a628, size=4, access_size_min=4, 
access_size_max=4, access_fn=0x55555601228e <memory_region_write_accessor>, 
mr=0x555557a780a0, attrs=...) at ../system/memory.c:573
#14 0x00005555560159cd in memory_region_dispatch_write (mr=0x555557a780a0, 
addr=2312, data=0, op=MO_32, attrs=...) at ../system/memory.c:1521
#15 0x000055555607351f in int_st_mmio_leN (cpu=0x555557a47150, 
full=0x7fffe841fe80, val_le=0, addr=3500312840, size=4, mmu_idx=7, 
ra=140734908258821, mr=0x555557a780a0, mr_offset=2312)
    at ../accel/tcg/cputlb.c:2545
#16 0x0000555556073697 in do_st_mmio_leN (cpu=0x555557a47150, 
full=0x7fffe841fe80, val_le=0, addr=3500312840, size=4, mmu_idx=7, 
ra=140734908258821) at ../accel/tcg/cputlb.c:2581
#17 0x0000555556073f14 in do_st_4 (cpu=0x555557a47150, p=0x7ffff105a7c0, val=0, 
mmu_idx=7, memop=1282, ra=140734908258821) at ../accel/tcg/cputlb.c:2758
#18 0x00005555560742d7 in do_st4_mmu (cpu=0x555557a47150, addr=3500312840, 
val=0, oi=20519, ra=140734908258821) at ../accel/tcg/cputlb.c:2834
#19 0x0000555556074df3 in helper_stl_mmu (env=0x555557a49910, addr=3500312840, 
val=0, oi=20519, retaddr=140734908258821) at ../accel/tcg/ldst_common.c.inc:100
#20 0x00007fff6636da46 in code_gen_buffer ()
#21 0x00005555560587e8 in cpu_tb_exec (cpu=0x555557a47150, itb=0x7fffa636d900, 
tb_exit=0x7ffff105adf0) at ../accel/tcg/cpu-exec.c:458
#22 0x0000555556059565 in cpu_loop_exec_tb (cpu=0x555557a47150, 
tb=0x7fffa636d900, pc=3230581304, last_tb=0x7ffff105ae00, 
tb_exit=0x7ffff105adf0) at ../accel/tcg/cpu-exec.c:920
#23 0x00005555560598da in cpu_exec_loop (cpu=0x555557a47150, sc=0x7ffff105ae80) 
at ../accel/tcg/cpu-exec.c:1041
#24 0x00005555560599ab in cpu_exec_setjmp (cpu=0x555557a47150, 
sc=0x7ffff105ae80) at ../accel/tcg/cpu-exec.c:1058
#25 0x0000555556059a47 in cpu_exec (cpu=0x555557a47150) at 
../accel/tcg/cpu-exec.c:1084
#26 0x00005555560838c2 in tcg_cpus_exec (cpu=0x555557a47150) at 
../accel/tcg/tcg-accel-ops.c:76
#27 0x000055555608403d in mttcg_cpu_thread_fn (arg=0x555557a47150) at 
../accel/tcg/tcg-accel-ops-mttcg.c:95
#28 0x00005555562b32d7 in qemu_thread_start (args=0x555557c06360) at 
../util/qemu-thread-posix.c:541
#29 0x00007ffff6294ac3 in start_thread (arg=<optimized out>) at 
./nptl/pthread_create.c:442
#30 0x00007ffff6326850 in clone3 () at 
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81



reply via email to

[Prev in Thread] Current Thread [Next in Thread]