Closed altostratous closed 4 years ago
When I add these lines to mrun configuration file:
mrun
<parameter> <enabled>on</enabled> <option>-icount</option> <arg>shift=2,sleep=off</arg> </parameter>
I it fails to boot our Docker Installed image. The Qemu output from machine serial is like this:
Trying ::1... Connected to localhost. Escape character is '^]'. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 4.4.0-83-generic (buildd@bos01-arm64-003) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #106-Ubuntu SMP Mon Jun 26 17:58:57 UTC 2017 (Ubuntu 4.4.0-83.106-generic 4.4.70) [ 0.000000] Boot CPU: AArch64 Processor [411fd070] [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x0000000233ffffff] [ 0.000000] NUMA: Adding memblock [0x40000000 - 0x233ffffff] on node 0 [ 0.000000] NUMA: Initmem setup node 0 [mem 0x40000000-0x233ffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x233ff0280-0x233ff1fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x0000000233ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000040000000-0x0000000233ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000233ffffff] [ 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 17 pages/cpu @ffff8001f3f35000 s31256 r8192 d30184 u69632 [ 0.000000] Detected PIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for ARM erratum 832075 [ 0.000000] CPU features: enabling workaround for ARM erratum 834220 [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 2016000 [ 0.000000] Policy zone: Normal [ 0.000000] Kernel command line: 'root=/dev/sda2' [ 0.000000] log_buf_len individual max cpu contribution: 4096 bytes [ 0.000000] log_buf_len total cpu_extra contributions: 28672 bytes [ 0.000000] log_buf_len min size: 16384 bytes [ 0.000000] log_buf_len: 65536 bytes [ 0.000000] early log buf free: 13696(83%) [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] software IO TLB [mem 0xfbfff000-0xfffff000] (64MB) mapped at [ffff8000bbfff000-ffff8000bfffefff] [ 0.000000] Memory: 7943672K/8192000K available (8804K kernel code, 1014K rwdata, 3816K rodata, 760K init, 787K bss, 248328K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vmalloc : 0xffff000000000000 - 0xffff7bffbfff0000 (126974 GB) [ 0.000000] vmemmap : 0xffff7bffc0000000 - 0xffff7fffc0000000 ( 4096 GB maximum) [ 0.000000] 0xffff7bffc0000000 - 0xffff7bffc7d00000 ( 125 MB actual) [ 0.000000] fixed : 0xffff7ffffa7fd000 - 0xffff7ffffac00000 ( 4108 KB) [ 0.000000] PCI I/O : 0xffff7ffffae00000 - 0xffff7ffffbe00000 ( 16 MB) [ 0.000000] modules : 0xffff7ffffc000000 - 0xffff800000000000 ( 64 MB) [ 0.000000] memory : 0xffff800000000000 - 0xffff8001f4000000 ( 8000 MB) [ 0.000000] .init : 0xffff800000cd5000 - 0xffff800000d93000 ( 760 KB) [ 0.000000] .text : 0xffff800000080000 - 0xffff800000cd5000 ( 12628 KB) [ 0.000000] .data : 0xffff800000da4000 - 0xffff800000ea1800 ( 1014 KB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 64. [ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=8. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=8 [ 0.000000] NR_IRQS:64 nr_irqs:64 0 [ 0.000000] GICv2m: range[0x8020000:0x8020fff], SPI[80:144] [ 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.000010] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 4398046511096ns [ 0.000302] Console: colour dummy device 80x25 [ 0.004583] console [tty0] enabled [ 0.004736] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=250000) [ 0.004880] pid_max: default: 32768 minimum: 301 [ 0.005144] Security Framework initialized [ 0.005213] Yama: becoming mindful. [ 0.005357] AppArmor: AppArmor initialized [ 0.013755] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes) [ 0.047257] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.062177] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.062391] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes) [ 0.064456] Initializing cgroup subsys io [ 0.064534] Initializing cgroup subsys memory [ 0.064633] Initializing cgroup subsys devices [ 0.064712] Initializing cgroup subsys freezer [ 0.064790] Initializing cgroup subsys net_cls [ 0.064876] Initializing cgroup subsys perf_event [ 0.064958] Initializing cgroup subsys net_prio [ 0.065037] Initializing cgroup subsys hugetlb [ 0.065112] Initializing cgroup subsys pids [ 0.065239] ftrace: allocating 30472 entries in 120 pages [ 0.206138] EFI services will not be available. [ 0.206225] ASID allocator initialised with 65536 entries [ 0.211383] Detected PIPT I-cache on CPU1 [ 0.211434] CPU1: Booted secondary processor [411fd070] [ 0.212066] Detected PIPT I-cache on CPU2 [ 0.212117] CPU2: Booted secondary processor [411fd070] [ 0.212787] Detected PIPT I-cache on CPU3 [ 0.212838] CPU3: Booted secondary processor [411fd070] [ 0.213473] Detected PIPT I-cache on CPU4 [ 0.213524] CPU4: Booted secondary processor [411fd070] [ 0.214194] Detected PIPT I-cache on CPU5 [ 0.214246] CPU5: Booted secondary processor [411fd070] [ 0.214922] Detected PIPT I-cache on CPU6 [ 0.214974] CPU6: Booted secondary processor [411fd070] [ 0.215621] Detected PIPT I-cache on CPU7 [ 0.215673] CPU7: Booted secondary processor [411fd070] [ 0.215771] Brought up 8 CPUs [ 0.216758] SMP: Total of 8 processors activated. [ 0.216839] CPU: All CPU(s) started at EL1 [ 0.216988] alternatives: patching kernel code [ 0.219113] devtmpfs: initialized [ 0.223965] evm: security.selinux [ 0.224031] evm: security.SMACK64 [ 0.224097] evm: security.SMACK64EXEC [ 0.224165] evm: security.SMACK64TRANSMUTE [ 0.224234] evm: security.SMACK64MMAP [ 0.224301] evm: security.ima [ 0.224366] evm: security.capability [ 0.224729] DMI not present or invalid. [ 0.225268] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.225666] futex hash table entries: 2048 (order: 6, 262144 bytes) [ 0.226664] pinctrl core: initialized pinctrl subsystem [ 0.228849] NET: Registered protocol family 16 [ 0.242059] cpuidle: using governor ladder [ 0.254085] cpuidle: using governor menu [ 0.254274] vdso: 2 pages (1 code @ ffff800000da9000, 1 data @ ffff800000da8000) [ 0.254440] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.254766] DMA: preallocated 256 KiB pool for atomic allocations [ 0.255270] Serial: AMBA PL011 UART driver [ 0.268462] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39, base_baud = 0) is a PL011 rev1 [ 0.270638] console [ttyAMA0] enabled [ 0.304970] ACPI: Interpreter disabled. [ 0.306504] vgaarb: loaded [ 0.309616] SCSI subsystem initialized [ 0.310508] usbcore: registered new interface driver usbfs [ 0.310685] usbcore: registered new interface driver hub [ 0.310898] usbcore: registered new device driver usb [ 0.312490] dmi: Firmware registration failed. [ 0.314441] NetLabel: Initializing [ 0.314514] NetLabel: domain hash size = 128 [ 0.314591] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.314752] NetLabel: unlabeled traffic allowed by default [ 0.315348] clocksource: Switched to clocksource arch_sys_counter [ 0.385283] AppArmor: AppArmor Filesystem Enabled [ 0.385855] pnp: PnP ACPI: disabled [ 0.404356] NET: Registered protocol family 2 [ 0.406148] TCP established hash table entries: 65536 (order: 7, 524288 bytes) [ 0.409853] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) [ 0.413355] TCP: Hash tables configured (established 65536 bind 65536) [ 0.413646] UDP hash table entries: 4096 (order: 5, 131072 bytes) [ 0.414442] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes) [ 0.415434] NET: Registered protocol family 1 [ 0.415875] Unpacking initramfs... [ 6.084029] Freeing initrd memory: 35024K (ffff800008000000 - ffff80000a234000) [ 6.084913] hw perfevents: enabled with armv8_pmuv3 PMU driver, 1 counters available [ 6.085141] kvm [1]: HYP mode not available [ 6.092685] audit: initializing netlink subsys (disabled) [ 6.092811] audit: type=2000 audit(5.888:1): initialized [ 6.093762] Initialise system trusted keyring [ 6.094924] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 6.114564] zbud: loaded [ 6.118713] VFS: Disk quotas dquot_6.6.0 [ 6.119179] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 6.122633] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 6.125489] fuse init (API version 7.23) [ 6.126978] Key type big_key registered [ 6.127256] Allocating IMA MOK and blacklist keyrings. [ 6.130477] Key type asymmetric registered [ 6.130574] Asymmetric key parser 'x509' registered [ 6.131069] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 6.131801] io scheduler noop registered [ 6.131888] io scheduler deadline registered (default) [ 6.132309] io scheduler cfq registered [ 6.135107] pl061_gpio 9030000.pl061: PL061 GPIO chip @0x0000000009030000 registered [ 6.136142] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 6.136287] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [ 6.136606] PCI host bridge /pcie@10000000 ranges: [ 6.136706] IO 0x3eff0000..0x3effffff -> 0x00000000 [ 6.136805] MEM 0x10000000..0x3efeffff -> 0x10000000 [ 6.136898] MEM 0x8000000000..0xffffffffff -> 0x8000000000 [ 6.137832] pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00 [ 6.137936] pci_bus 0000:00: root bus resource [bus 00-0f] [ 6.138032] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 6.138133] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff] [ 6.138238] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff] [ 6.144548] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 6.159659] msm_serial: driver initialized [ 6.162023] Unable to detect cache hierarchy from DT for CPU 0 [ 6.176870] loop: module loaded [ 6.179137] libphy: Fixed MDIO Bus: probed [ 6.179233] tun: Universal TUN/TAP device driver, 1.6 [ 6.179326] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 6.185382] PPP generic driver version 2.4.2 [ 6.186263] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.186379] ehci-pci: EHCI PCI platform driver [ 6.186551] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 6.186665] ohci-pci: OHCI PCI platform driver [ 6.186846] uhci_hcd: USB Universal Host Controller Interface driver [ 6.187784] mousedev: PS/2 mouse device common for all mice [ 6.188686] i2c /dev entries driver [ 6.190972] device-mapper: uevent: version 1.0.3 [ 6.191760] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com [ 6.192460] ledtrig-cpu: registered to indicate activity on CPUs [ 6.195192] NET: Registered protocol family 10 [ 6.197142] NET: Registered protocol family 17 [ 6.197305] Key type dns_resolver registered [ 6.197514] Registered cp15_barrier emulation handler [ 6.197641] Registered setend emulation handler [ 6.198839] registered taskstats version 1 [ 6.199072] Loading compiled-in X.509 certificates [ 6.211572] Loaded X.509 cert 'Build time autogenerated kernel key: d8e6d449238b491ad070787e9897e07b6d2d20ab' [ 6.211878] zswap: loaded using pool lzo/zbud [ 6.225885] Key type trusted registered [ 6.304021] Key type encrypted registered [ 6.304121] AppArmor: AppArmor sha1 policy hashing enabled [ 6.304223] ima: No TPM chip found, activating TPM-bypass! [ 6.304471] evm: HMAC attrs: 0x1 [ 6.305132] hctosys: unable to open rtc device (rtc0) [ 6.307051] uart-pl011 9000000.pl011: no DMA platform data [ 6.307651] Freeing unused kernel memory: 760K (ffff800000cd5000 - ffff800000d93000) [ 6.307842] Freeing alternatives memory: 48K (ffff800000d93000 - ffff800000d9f000) Loading, please wait... starting version 229 [ 6.398805] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.399726] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.400011] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.400363] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.416388] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.416797] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.417032] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.417778] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.418513] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.419247] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available) [ 6.962682] scsi host0: Virtio SCSI HBA [ 6.998043] scsi 0:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 7.908130] sd 0:0:0:0: [sda] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB) [ 7.908341] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 7.909909] sd 0:0:0:0: [sda] Write Protect is off [ 7.910101] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 7.913710] sda: sda1 sda2 sda3 [ 7.918517] sd 0:0:0:0: [sda] Attached SCSI disk Begin: Loading essential drivers ... [ 9.775985] md: linear personality registered for level -1 [ 9.806905] md: multipath personality registered for level -4 [ 9.838331] md: raid0 personality registered for level 0 [ 9.875705] md: raid1 personality registered for level 1 [ 9.999802] raid6: int64x1 gen() 131 MB/s [ 10.067517] raid6: int64x1 xor() 74 MB/s [ 36.227436] NMI watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [modprobe:515] [ 36.227569] Modules linked in: raid6_pq(+) libcrc32c raid1 raid0 multipath linear crc32_arm64 aes_ce_blk aes_ce_cipher ghash_ce sha2_ce sha1_ce virtio_scsi aes_neon_blk ablk_helper cryptd [ 36.227913] [ 36.227985] CPU: 4 PID: 515 Comm: modprobe Not tainted 4.4.0-83-generic #106-Ubuntu [ 36.228121] Hardware name: linux,dummy-virt (DT) [ 36.228207] task: ffff8001e8e83400 ti: ffff8000ba2d8000 task.ti: ffff8000ba2d8000 [ 36.228406] PC is at raid6_int2_gen_syndrome+0x78/0xf8 [raid6_pq] [ 36.228496] LR is at 0x100010100010000 [ 36.228576] pc : [<ffff7ffffc159460>] lr : [<0100010100010000>] pstate: 00000145 [ 36.228711] sp : ffff8000ba2dbac0 [ 36.228785] x29: ffff8000ba2dbac0 x28: ffff7ffffc16e6f0 [ 36.228881] x27: 00000000000000fa x26: ffff800000daab10 [ 36.228978] x25: ffff8000ba2dbb48 x24: ffff8000ba636000 [ 36.229075] x23: 0000000000000087 x22: 0000000000000098 [ 36.229171] x21: ffff800000daa300 x20: ffff7ffffc15c108 [ 36.229268] x19: ffff7ffffc16e500 x18: ffff8000ba2dbbc0 [ 36.229365] x17: ffff8000ba637000 x16: ffff8000ba636000 [ 36.229461] x15: 000000000000000e x14: 0000000000000e70 [ 36.229557] x13: 0000000000000e78 x12: 0000000000000e70 [ 36.229653] x11: 1d1d1d1d1d1d1d1d x10: b0beaca28886949a [ 36.229750] x9 : c0cedcd2f8f6e4ea x8 : 938dafb1ebf5d7c9 [ 36.229847] x7 : ffff7ffffc15e500 x6 : 0000000000000000 [ 36.229943] x5 : 0000808000008080 x4 : 8080000080800000 [ 36.230040] x3 : 471ef5ac3e678cd5 x2 : ffff8000ba2dbb48 [ 36.230136] x1 : 0000000000001000 x0 : b5ec075ecc957e27 [ 36.230229]
When I add these lines to
mrun
configuration file:I it fails to boot our Docker Installed image. The Qemu output from machine serial is like this: