|
From: | ratna manoj |
Subject: | [Qemu-arm] Panic when PCI trying to read secure mem area. |
Date: | Sat, 30 Mar 2019 22:20:28 +0000 |
Hi, I am getting a kernel panic when PCI is trying to read at
0xe0880000 in VIRT_SECURE_MEM area. ([VIRT_SECURE_MEM] = {
0x0e000000,
0x01000000 }) It happens on 3.1.0 as well. I tried with secure=on/off. Same command works on qemu-2.5.0. Linux kernel is configured with “make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- multi_v7_defconfig” Please help. $> qemu-3.0.0/build/arm-softmmu/qemu-system-arm -m 512 -M virt,secure=on -kernel ~/linux-4.4.15/arch/arm/boot/zImage
-append "rdinit=/sbin/init"
-initrd ~/initrd.img.gz -nographic [
0.000000] Booting Linux on physical CPU 0x0 [
0.000000] Linux version 4.4.15 (address@hidden) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02) ) #1 SMP Sat Mar 30 15:36:29 EDT 2019 [
0.000000] CPU: ARMv7 Processor [412fc0f1] revision 1 (ARMv7), cr=10c5387d [
0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [
0.000000] Machine model: linux,dummy-virt [
0.000000] Ignoring memory block 0xe000000 - 0xf000000 [
0.000000] cma: Reserved 64 MiB at 0x5c000000 [
0.000000] Memory policy: Data cache writealloc [
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 12 pages/cpu @dbbc4000 s19084 r8192 d21876 u49152 [
0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048 [
0.000000] Kernel command line: rdinit=/sbin/init [
0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [
0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [
0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [
0.000000] Memory: 394164K/524288K available (8334K kernel code, 981K rwdata, 3824K rodata, 1052K init, 338K bss, 64588K reserved, 65536K cma-reserved, 0K highmem) [
0.000000] Virtual kernel memory layout: [
0.000000]
vector : 0xffff0000 - 0xffff1000
(
4 kB) [
0.000000]
fixmap : 0xffc00000 - 0xfff00000
(3072 kB) [
0.000000]
vmalloc : 0xe0800000 - 0xff800000
( 496 MB) [
0.000000]
lowmem : 0xc0000000 - 0xe0000000
( 512 MB) [
0.000000]
pkmap : 0xbfe00000 - 0xc0000000
(
2 MB) [
0.000000]
modules : 0xbf000000 - 0xbfe00000
( 14 MB) [
0.000000]
.text : 0xc0208000 - 0xc0de89bc
(12163 kB) [
0.000000]
.init : 0xc0de9000 - 0xc0ef0000
(1052 kB) [
0.000000]
.data : 0xc0ef0000 - 0xc0fe5600
( 982 kB) [
0.000000]
.bss : 0xc0fe8000 - 0xc103c8d0
( 339 kB) [
0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [
0.000000] Hierarchical RCU implementation. [
0.000000] Build-time adjustment of leaf fanout to 32. [
0.000000] RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=1. [
0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1 [
0.000000] NR_IRQS:16 nr_irqs:16 16 [
0.000000] Architected 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.000399] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 4398046511096ns [
0.000682] Switching to timer-based delay loop, resolution 16ns [
0.009832] Console: colour dummy device 80x30 [
0.013752] console [tty0] enabled [
0.014731] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=312500) [
0.015199] pid_max: default: 32768 minimum: 301
[69/3170] [
0.018016] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [
0.018162] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [
0.040868] CPU: Testing write buffer coherency: ok [
0.063290] /cpus/address@hidden missing clock-frequency property [
0.063510] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [
0.064322] Setting up static identity map for 0x40209000 - 0x40209098 [
0.087961] Brought up 1 CPUs [
0.088215] SMP: Total of 1 processors activated (125.00 BogoMIPS). [
0.088408] CPU: All CPU(s) started in SVC mode. [
0.188108] devtmpfs: initialized [
0.209462] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0 [
0.244718] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns [
0.276869] pinctrl core: initialized pinctrl subsystem [
0.314599] NET: Registered protocol family 16 [
0.332849] DMA: preallocated 256 KiB pool for atomic coherent allocations [
0.345354] cpuidle: using governor ladder [
0.345835] cpuidle: using governor menu [
0.412728] No ATAGs? [
0.414219] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [
0.414536] hw-breakpoint: maximum watchpoint size is 8 bytes. [
0.432661] Serial: AMBA PL011 UART driver [
0.438305] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 54, base_baud = 0) is a PL011 rev1 [
0.484781] console [ttyAMA0] enabled [
0.526413] vgaarb: loaded [
0.528934] SCSI subsystem initialized [
0.531059] usbcore: registered new interface driver usbfs [
0.531471] usbcore: registered new interface driver hub [
0.531755] usbcore: registered new device driver usb [
0.534787] pps_core: LinuxPPS API ver. 1 registered [
0.535082] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <address@hidden> [
0.535616] PTP clock support registered [
0.536106] EDAC MC: Ver: 3.0.0 [
0.546186] clocksource: Switched to clocksource arch_sys_counter [
0.567645] NET: Registered protocol family 2 [
0.572390] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [
0.572767] TCP bind hash table entries: 4096 (order: 3, 32768 bytes) [
0.572988] TCP: Hash tables configured (established 4096 bind 4096) [
0.573779] UDP hash table entries: 256 (order: 1, 8192 bytes) [
0.574263] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [
0.575492] NET: Registered protocol family 1 [
0.581891] RPC: Registered named UNIX socket transport module. [
0.582461] RPC: Registered udp transport module. [
0.582586] RPC: Registered tcp transport module. [
0.582739] RPC: Registered tcp NFSv4.1 backchannel transport module. [
0.589025] Unpacking initramfs... [
8.998204] Freeing initrd memory: 44284K (c8000000 - cab3f000) [
9.009291] futex hash table entries: 256 (order: 2, 16384 bytes) [
9.054177] squashfs: version 4.0 (2009/01/31) Phillip Lougher [
9.057830] NFS: Registering the id_resolver key type [
9.058720] Key type id_resolver registered [
9.058852] Key type id_legacy registered [
9.059273] ntfs: driver 2.1.32 [Flags: R/O]. [
9.066473] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [
9.066767] io scheduler noop registered [
9.066914] io scheduler deadline registered [
9.067094] io scheduler cfq registered (default) [
9.080529] pl061_gpio 9030000.pl061: PL061 GPIO chip @0x09030000 registered [
9.084662] PCI host bridge /address@hidden ranges: [
9.085116] IO 0x3eff0000..0x3effffff -> 0x00000000 [
9.085441] MEM 0x10000000..0x3efeffff -> 0x10000000 [
9.085602] MEM 0x8000000000..0xffffffffff -> 0x8000000000 [
9.094224] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00
[6/3169] [
9.094703] pci_bus 0000:00: root bus resource [bus 00-ff] [
9.095142] pci_bus 0000:00: root bus resource [io
0x0000-0xffff] [
9.095360] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff] [
9.095682] Unhandled fault: external abort on non-linefetch (0x008) at 0xe0880000 [
9.095890] pgd = c0204000 [
9.095962] [e0880000] *pgd=5b005811, *pte=10000653, *ppte=10000453 [
9.096594] Internal error: : 8 [#1] SMP ARM [
9.096839] Modules linked in: [
9.097424] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.15 #1 [
9.098049] Hardware name: Generic DT based system [
9.098359] task: db050000 ti: db054000 task.ti: db054000 [
9.098642] PC is at pci_generic_config_read+0x2c/0x90 [
9.099066] LR is at pci_generic_config_read+0x14/0x90 [
9.099184] pc : [<c04fd790>]
lr : [<c04fd778>]
psr: 200001d3 [
9.099184] sp : db055d70
ip : db157010
fp : db12b8c0 [
9.099457] r10: db244010
r9 : db157400
r8 : 60000153 [
9.099566] r7 : db055dcc
r6 : 00000000
r5 : db157400
r4 : 00000004 [
9.099690] r3 : 00000000
r2 : 00000000
r1 : db244010
r0 : e0880000 [
9.099849] Flags: nzCv
IRQs off
FIQs off Mode SVC_32
ISA ARM
Segment none [
9.100030] Control: 10c5387d
Table: 4020406a
DAC: 00000051 [
9.100156] Process swapper/0 (pid: 1, stack limit = 0xdb054220) [
9.100289] Stack: (0xdb055d70 to 0xdb056000) [
9.100809] 5d60:
c04fd764 c04fd6d4 db055d84 c0ccee94 [
9.101603] 5d80: db157400 00000000 00000000 db055dcc 0000ea60 00000000 00000000 c04ff29c [
9.101929] 5da0: c0ccee94 c0ccee24 c0ccee00 00000000 db157400 db157400 00000000 db094c10 [
9.102193] 5dc0: 00000000 c0500a60 c0207e18 1ff00000 0001ff00 db157400 db157400 c101f0b0 [
9.102451] 5de0: 00000000 c0500b28 00000008 db157400 c101f0b0 00000000 db094c10 c0501a10 [
9.102732] 5e00: db157400 00000000 c101f0b0 00000100 db094c10 c0501c34 db157240 db2f07d0 [
9.102994] 5e20: 00100000 db157010 db157240 c0501cb8 db157240 00000000 db094c10 c051ef60 [
9.103270] 5e40: db157240 c0cdf068 00000001 00000000 db157240 db094c10 db22a140 3eff0000 [
9.103532] 5e60: c0cdf068 db094c10 fffffffe c0f67a3c fffffdfb 00000000 c0e8483c c0ee92b4 [
9.104260] 5e80: 00000000 c064b018 c1027c38 db094c10 c0f67a3c 00000000 00000000 c06498cc [
9.104715] 5ea0: db094c10 c0f67a3c db094c44 00000000 00000000 c0649a44 00000000 c0f67a3c [
9.105126] 5ec0: c06499c0 c0647d6c db02385c db095334 c0f67a3c db228a80 c0f82748 c0648eac [
9.105460] 5ee0: c0cd2a54 c0fe8000 c0f67a3c c0f67a3c c0ef6320 db12b780 c0e1a434 c064a134 [
9.105705] 5f00: c0ef6320 c0ef6320 db12b780 c020ad3c c026382c c026383c 20000153 ffffffff [
9.106037] 5f20: 00000000 c0f252c4 c0a0e4c4 dbfffed1 00000108 c0263a6c c0dab1a4 c0d21eb4 [
9.106299] 5f40: c0c7ee74 00000006 00000006 00000000 c0f252ac 00000007 c0fe8000 c0e84830 [
9.106577] 5f60: 00000007 c0fe8000 c0e84834 c0fe8000 00000108 c0de9dc8 00000006 00000006 [
9.106840] 5f80: 00000000 c0de959c 00008000 c09eb3b0 00000000 00000000 00000000 00000000 [
9.107169] 5fa0: 00000000 c09eb3bc 00000000 c0210bb8 00000000 00000000 00000000 00000000 [
9.107458] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [
9.108093] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000 [
9.109160] [<c04fd790>] (pci_generic_config_read) from [<c04fd6d4>] (pci_bus_read_config_dword+0x60/0x88) [
9.109420] [<c04fd6d4>] (pci_bus_read_config_dword) from [<c04ff29c>] (pci_bus_read_dev_vendor_id+0x24/0xe4) [
9.109667] [<c04ff29c>] (pci_bus_read_dev_vendor_id) from [<c0500a60>] (pci_scan_single_device+0x40/0xb0) [
9.109878] [<c0500a60>] (pci_scan_single_device) from [<c0500b28>] (pci_scan_slot+0x58/0x100) [
9.110061] [<c0500b28>] (pci_scan_slot) from [<c0501a10>] (pci_scan_child_bus+0x20/0xbc) [
9.110296] [<c0501a10>] (pci_scan_child_bus) from [<c0501c34>] (pci_scan_root_bus_msi+0x5c/0xc8) [
9.110483] [<c0501c34>] (pci_scan_root_bus_msi) from [<c0501cb8>] (pci_scan_root_bus+0x18/0x20) [
9.110760] [<c0501cb8>] (pci_scan_root_bus) from [<c051ef60>] (gen_pci_probe+0x360/0x458) [
9.110945] [<c051ef60>] (gen_pci_probe) from [<c064b018>] (platform_drv_probe+0x50/0xac) [
9.111142] [<c064b018>] (platform_drv_probe) from [<c06498cc>] (driver_probe_device+0x1ec/0x2e0) [
9.111460] [<c06498cc>] (driver_probe_device) from [<c0649a44>] (__driver_attach+0x84/0x88) [
9.111751] [<c0649a44>] (__driver_attach) from [<c0647d6c>] (bus_for_each_dev+0x4c/0x9c) [
9.112148] [<c0647d6c>] (bus_for_each_dev) from [<c0648eac>] (bus_add_driver+0x190/0x214) [
9.112449] [<c0648eac>] (bus_add_driver) from [<c064a134>] (driver_register+0x78/0xf4) [
9.112703] [<c064a134>] (driver_register) from [<c020ad3c>] (do_one_initcall+0x90/0x1e0) [
9.112904] [<c020ad3c>] (do_one_initcall) from [<c0de9dc8>] (kernel_init_freeable+0x15c/0x1ec) [
9.113154] [<c0de9dc8>] (kernel_init_freeable) from [<c09eb3bc>] (kernel_init+0xc/0xe0) [
9.113307] [<c09eb3bc>] (kernel_init) from [<c0210bb8>] (ret_from_fork+0x14/0x3c) [ 9.113643] Code: e3540001 0a000007 e3540002 0a00000c (e5903000) [ 9.114052] ---[ end trace 1767fd4d04d6683a ]--- [ 9.115172] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 9.115172] [ 9.115561] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 9.115561] |
[Prev in Thread] | Current Thread | [Next in Thread] |