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

[Xen-devel] ARM64 HiKey 960 Xen BUG at page_alloc.c:738



Xen Developers,

Trying to run Xen ARM64 on HiKey 960. Following the guidance on the wiki, 
building on Ubuntu 17, everything works as expected until Xen boots. The 
interesting tail of the serial console output is

...
Xen 4.10-unstable (c/s Tue Sep 12 14:45:13 2017 +0200 git:16b1414de9) EFI loader

 Xen 4.10-unstable
(XEN) Xen version 4.10-unstable (mc@xxxxxxxxxx) (aarch64-linux-gnu-gcc (Linaro 
GCC 7.1-2017.05) 7.1.1 20170510) debug=y  Thu Sep 28 09:54:21 EDT 2017
(XEN) Latest ChangeSet: Tue Sep 12 14:45:13 2017 +0200 git:16b1414de9
(XEN) Processor: 410fd034: "ARM Limited", variant: 0x0, part 0xd03, rev 0x4
(XEN) 64-bit Execution:
(XEN)   Processor Features: 0000000000002222 0000000000000000
(XEN)     Exception Levels: EL3:64+32 EL2:64+32 EL1:64+32 EL0:64+32
(XEN)     Extensions: FloatingPoint AdvancedSIMD
(XEN)   Debug Features: 0000000010305106 0000000000000000
(XEN)   Auxiliary Features: 0000000000000000 0000000000000000
(XEN)   Memory Model Features: 0000000000001122 0000000000000000
(XEN)   ISA Features:  0000000000011120 0000000000000000
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00000131:00011011
(XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 03010066
(XEN)   Auxiliary Features: 00000000
(XEN)   Memory Model Features: 10201105 40000000 01260000 02102211
(XEN)  ISA Features: 02101110 13112111 21232042 01112131 00011142 00011121
(XEN) Using PSCI-1.0 for SMP bringup
(XEN) SMP: Allowing 8 CPUs
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 1920 KHz
(XEN) GICv2 initialization:
(XEN)         gic_dist_addr=00000000e82b1000
(XEN)         gic_cpu_addr=00000000e82b2000
(XEN)         gic_hyp_addr=00000000e82b4000
(XEN)         gic_vcpu_addr=00000000e82b6000
(XEN)         gic_maintenance_irq=25
(XEN) GICv2: 384 lines, 8 cpus, secure (IID 0200143b).
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Allocated console ring of 64 KiB.
(XEN) Bringing up CPU1
(XEN) CPU 1 booted.
(XEN) Bringing up CPU2
(XEN) CPU 2 booted.
(XEN) Bringing up CPU3
(XEN) CPU 3 booted.
(XEN) Bringing up CPU4
(XEN) CPU 4 booted.
(XEN) Bringing up CPU5
(XEN) CPU 5 booted.
(XEN) Bringing up CPU6
(XEN) CPU 6 booted.
(XEN) Bringing up CPU7
(XEN) CPU 7 booted.
(XEN) Brought up 8 CPUs
(XEN) P2M: 40-bit IPA with 40-bit PA and 8-bit VMID
(XEN) P2M: 3 levels with order-1 root, VTCR 0x80023558
(XEN) I/O virtualisation disabled
(XEN) build-id: ea83b3324336ef86d90b09cfaf1b2568194662e0
(XEN) alternatives: Patching with alt table 00000000400bcdc0 -> 00000000400bd294
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading kernel from boot module @ 00000000b8917000
(XEN) Allocating 1:1 mappings totalling 512MB for dom0:
(XEN) BANK[0] 0x00000020000000-0x00000030000000 (256MB)
(XEN) BANK[1] 0x000000a0000000-0x000000b0000000 (256MB)
(XEN) Grant table range: 0x000000bfe00000-0x000000bfe6b000
(XEN) Loading zImage from 00000000b8917000 to 0000000020080000-0000000021133a00
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading dom0 DTB to 0x0000000028000000-0x0000000028008f9d
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Scrubbing Free RAM on 1 nodes using 8 CPUs
(XEN) ...done.
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) ***************************************************
(XEN) PLEASE SPECIFY dom0_mem PARAMETER - USING 512M FOR NOW
(XEN) ***************************************************
(XEN) 3... 2... 1... 
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to 
Xen)
(XEN) Freed 280kB init memory.
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER4
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER8
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER12
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER16
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER20
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER24
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER28
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER32
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER36
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER40
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER44
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER0
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-linaro-hikey960+ (mc@xenpro3) (gcc version 
7.1.1 20170510 (Linaro GCC 7.1-2017.05)) #1 SMP PREEMPT Wed Sep 13 10:16:12 EDT 
2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: HiKey960
[    0.000000] Xen 4.10 support found
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x00000000af000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 
0x0000000000000000-0x00000000afffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xaefc0980-0xaefc247f]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000020000000-0x00000000afffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000020000000-0x000000002fffffff]
[    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000afffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000020000000-0x00000000afffffff]
[    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 26 pages/cpu @ffff8000aeeed000 s67352 r8192 
d30952 u106496
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total 
pages: 129024
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: console=tty0 console=hvc0 root=/dev/sdd10 
rw efi=noruntime
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Memory: 456460K/524288K available (10236K kernel code, 1166K 
rwdata, 4532K rodata, 1152K init, 402K bss, 51444K reserved, 16384K 
cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 
MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 
GB)
[    0.000000]       .text : 0xffff000008080000 - 0xffff000008a80000   ( 10240 
KB)
[    0.000000]     .rodata : 0xffff000008a80000 - 0xffff000008ef0000   (  4544 
KB)
[    0.000000]       .init : 0xffff000008ef0000 - 0xffff000009010000   (  1152 
KB)
[    0.000000]       .data : 0xffff000009010000 - 0xffff000009133a00   (  1167 
KB)
[    0.000000]        .bss : 0xffff000009133a00 - 0xffff0000091982e0   (   403 
KB)
[    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000   (  4108 
KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 
MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 
GB maximum)
[    0.000000]               0xffff7e0000800000 - 0xffff7e0002c00000   (    36 
MB actual)
[    0.000000]     memory  : 0xffff800020000000 - 0xffff8000b0000000   (  2304 
MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=8
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] arch_timer: cp15 timer(s) running at 1.92MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff 
max_cycles: 0x1c570327e, max_idle_ns: 1763180809505 ns
[    0.000004] sched_clock: 56 bits at 1920kHz, resolution 520ns, wraps every 
4398046510977ns
[    0.000084] clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, 
max_idle_ns: 58334160866034 ns
[    0.000446] Console: colour dummy device 80x25
[    0.000869] console [tty0] enabled
[    0.346638] console [hvc0] enabled
[    0.350168] Calibrating delay loop (skipped), value calculated using timer 
frequency.. 3.84 BogoMIPS (lpj=7680)
[    0.360274] pid_max: default: 32768 minimum: 301
[    0.364999] Security Framework initialized
[    0.369252] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.376201] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.383079] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    0.389751] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    0.412960] ASID allocator initialised with 65536 entries
(XEN) Xen BUG at page_alloc.c:738
(XEN) ----[ Xen-4.10-unstable  arm64  debug=y   Not tainted ]----
(XEN) CPU:    0
(XEN) PC:     000000000021e210 page_alloc.c#alloc_heap_pages+0x610/0x75c
(XEN) LR:     000000000021e06c
(XEN) SP:     00008000b9d9f990
(XEN) CPSR:   90000249 MODE:64-bit EL2h (Hypervisor, handler)
(XEN)      X0: 6f6874656d2d7972  X1: 0000800000000000  X2: 00008000b87f0000
(XEN)      X3: ffffffffffffffff  X4: 00000000b87f0000  X5: 0000000000000000
(XEN)      X6: 0000000000000014  X7: 00000000002d9238  X8: 00000000000017c0
(XEN)      X9: 00000000002d9198 X10: 0000000000000000 X11: 000000000007ffff
(XEN)     X12: 0000000000000000 X13: ffff00000914138d X14: 000000080285bc80
(XEN)     X15: ffffffffffffffff X16: 000000000000000c X17: 000000000000000c
(XEN)     X18: 0000000000000010 X19: 000000080285bc80 X20: 000000080285bcb8
(XEN)     X21: 000000080285bc80 X22: 000000080285bc80 X23: 000000000028f130
(XEN)     X24: 0000000000000000 X25: 0000000000000000 X26: c2c2c2c2c2c2c2c2
(XEN)     X27: 6db6db6db6db6db7 X28: 0000000000000000  FP: 00008000b9d9f990
(XEN) 
(XEN)   VTCR_EL2: 80023558
(XEN)  VTTBR_EL2: 00010000b9b6c000
(XEN) 
(XEN)  SCTLR_EL2: 30cd183d
(XEN)    HCR_EL2: 000000008038663f
(XEN)  TTBR0_EL2: 00000000bff0c000
(XEN) 
(XEN)    ESR_EL2: f2000001
(XEN)  HPFAR_EL2: 0000000000e82b10
(XEN)    FAR_EL2: ffff000008000850
(XEN) 
(XEN) Xen stack trace from sp=00008000b9d9f990:
(XEN)    00008000b9d9fa10 000000000021e420 0000000000000024 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000002 00008000bffef208
(XEN)    0000000000000007 0000000000000003 00008000b9d9fb38 0000000000000000
(XEN)    00008000b9d9fa10 000000140025197c 0000000000317c08 0000000000256dd8
(XEN)    00008000b9d9fa50 000000000025acc0 00008000b9d9fb28 00000000000ac800
(XEN)    0000000000000003 00000000000ac8f3 0000000000000002 0000000000000000
(XEN)    00008000b9d9fab0 000000000025b410 0000000000000002 00008000bffef208
(XEN)    00000000000b9b6b 00000000000ac8f3 0000000000000000 00008000b9b67b20
(XEN)    0000000000000007 0000000000000001 0000000000000003 0000000000000009
(XEN)    00008000b9d9fb50 000000000025bd34 0000000000000000 00000000000b9b6b
(XEN)    0000000000000001 00000000000ac8f3 00008000bffef208 0000000000000000
(XEN)    0000000000000012 0000000000000007 0000000000000001 0000000000000009
(XEN)    00008000b9d9fb60 0000000000252ce4 000000000000001a 00800000ac8007fd
(XEN)    00008000b9d9fbc0 0000000200000000 000000f300000164 00008000b9b67000
(XEN)    00008000b9d9fbc0 000000000025c19c 00008000bffef000 0000000000000001
(XEN)    00008000bffef208 00000000000ac8f3 00000000000b9b6b 0000000000000001
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000018 0000000100000018 00008000b9d9fc00 0000000000259e5c
(XEN)    00008000bffef000 ff000000b9b6bb80 00008000bffef000 00000000000ac8f3
(XEN)    0000000000000000 00008000bffef000 00008000b9d9fc60 0000000000219d9c
(XEN)    0000000000000000 ffff8000ac907db8 0000000000000000 00000000a0000045
(XEN)    0000000000000000 0000000000000000 0000000000000012 ffff8000ac907db8
(XEN)    0000000000000010 00008000b9d9feb0 00008000b9d9fdd0 000000000025e994
(XEN)    00008000b9d9feb0 00008000b9d9ff30 0000000000000ea1 0000000000225684
(XEN)    000000005a000ea1 0000000000000000 00008000b9d9fd60 0000000000000000
(XEN)    0000000000000000 0000000000000000 00008000bff19560 00008000bff19350
(XEN)    0000000000317c00 0000000000317a08 00008000b9d9fd00 0000000000237924
(XEN)    00008000bff19580 0000000000317b00 00008000b9d9fd60 0000000000225e14
(XEN)    0000000000000000 0000000000000000 00008000bff19560 00008000bff19350
(XEN)    00008000b9d9fd50 0000000008097ff0 0000000000000000 00000000000ac8f3
(XEN)    00008000b9d9fd90 00000000002529f4 0000000000000000 0000000000317c08
(XEN)    00008000b9d9fd90 0000000000252a24 0000000000000004 0000000000000014
(XEN)    00008000b9d9fde0 000000000025e61c 00008000b9d9feb0 000000005a000ea1
(XEN)    000000005a000ea1 00000000a0000045 000000005a000ea1 0000000000000000
(XEN)    00008000b9d9fe20 0000000000261450 00008000b9d9feb0 000000005a000ea1
(XEN)    00008000b9d9fe70 0000000000252c00 00008000b9d9fe40 00000000002339dc
(XEN)    0000000000000000 00000000002dbf80 ffff8000ac907d70 0000000000268b9c
(XEN)    ffff00000913a000 ffff000009019000 00008000b9d9ffb8 0000000000233a70
(XEN)    00000000000002c0 00008000b9b69e70 00008000b9d9ffb8 00000000200000c5
(XEN)    00008000b9d9fe90 00000000002625b0 000000000000000e 0000000000262590
(XEN) Xen call trace:
(XEN)    [<000000000021e210>] page_alloc.c#alloc_heap_pages+0x610/0x75c (PC)
(XEN)    [<000000000021e06c>] page_alloc.c#alloc_heap_pages+0x46c/0x75c (LR)
(XEN)    [<000000000021e420>] alloc_domheap_pages+0xc4/0x158
(XEN)    [<000000000025acc0>] p2m.c#p2m_split_superpage+0x7c/0x300
(XEN)    [<000000000025b410>] p2m.c#__p2m_set_entry+0x220/0x524
(XEN)    [<000000000025bd34>] p2m_set_entry+0x6c/0x100
(XEN)    [<000000000025c19c>] guest_physmap_add_entry+0x74/0xa4
(XEN)    [<0000000000259e5c>] xenmem_add_to_physmap_one+0x1f4/0x57c
(XEN)    [<0000000000219d9c>] do_memory_op+0x17b4/0x25ec
(XEN)    [<000000000025e994>] traps.c#do_trap_hypercall+0x6c/0x16c
(XEN)    [<0000000000261450>] do_trap_guest_sync+0x114c/0x20b8
(XEN)    [<0000000000268b9c>] entry.o#guest_sync+0x9c/0xcc
(XEN) 
(XEN) 
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at page_alloc.c:738
(XEN) ****************************************
(XEN) 
(XEN) Reboot in five seconds...


I would be pleased to supply any further information that might help.

Sincerely,

John





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.