pmu test in kvm-unit-test failed on X-hwe ARM64 system

Bug #1751000 reported by Po-Hsu Lin on 2018-02-22
This bug report is a duplicate of:  Bug #1853797: pmu in ubuntu_kvm_unit_tests fails. Edit Remove
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)

Bug Description

This failure could be found on both Moonshot and Cavium ThunderX ARM64 systems.

 1. Install necessary packages
 2. git clone --depth=1
 3. cd kvm-unit-tests; ./configure; make
 4. TESTNAME=pmu TIMEOUT=90s ACCEL= ./arm/run arm/pmu.flat -smp 1

timeout -k 1s --foreground 90s /usr/bin/qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel arm/pmu.flat -smp 1 # -initrd /tmp/tmp.H8ucGrg46U

INFO: PMU version: 3
INFO: pmu: PMU implementer/ID code/counters: 0(" ")/0/0
FAIL: pmu: Control register
Read 0 then 0.
FAIL: pmu: Monotonically increasing cycle count
instrs : cycles0 cycles1 ...
   4: 0
cycles not incrementing!
FAIL: pmu: Cycle/instruction ratio
SUMMARY: 3 tests, 3 unexpected failures

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.13.0-36-generic 4.13.0-36.40~16.04.1
ProcVersionSignature: Ubuntu 4.13.0-36.40~16.04.1-generic 4.13.13
Uname: Linux 4.13.0-36-generic aarch64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: arm64
Date: Thu Feb 22 08:29:15 2018
 PATH=(custom, no user)
SourcePackage: linux-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
 total 0
 crw-rw---- 1 root audio 116, 1 Feb 22 08:24 seq
 crw-rw---- 1 root audio 116, 33 Feb 22 08:24 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:

DistroRelease: Ubuntu 16.04
IwConfig: Error: [Errno 2] No such file or directory
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Package: linux (not installed)

 PATH=(custom, no user)

ProcKernelCmdLine: console=ttyS0,9600n8r ro
ProcVersionSignature: Ubuntu 4.13.0-36.40~16.04.1-generic 4.13.13
 linux-restricted-modules-4.13.0-36-generic N/A
 linux-backports-modules-4.13.0-36-generic N/A
 linux-firmware 1.157.16
RfKill: Error: [Errno 2] No such file or directory
Tags: xenial uec-images
Uname: Linux 4.13.0-36-generic aarch64
UpgradeStatus: No upgrade log present (probably fresh install)

_MarkForUpload: True

Po-Hsu Lin (cypressyew) wrote :
affects: linux-hwe (Ubuntu) → linux (Ubuntu)

apport information

tags: added: apport-collected
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1751000

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Triaged
tags: added: kernel-da-key
Po-Hsu Lin (cypressyew) wrote :

The pmu failure could be found on Oracle B-4.15 as well:

 Running 'kvm-ok'
 INFO: /dev/kvm exists
 KVM acceleration can be used
 timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.p5vxZITKIQ -smp 1 -cpu host # -initrd /tmp/tmp.ndP8Idxxbw
 enabling apic
 paging enabled
 cr0 = 80010011
 cr3 = 45a000
 cr4 = 20
 PMU version: 2
 GP counters: 4
 GP counter width: 48
 Mask length: 7
 Fixed counters: 3
 Fixed counter width: 48
 PASS: core cycles-0
 PASS: core cycles-1
 PASS: core cycles-2
 PASS: core cycles-3
 PASS: instructions-0
 PASS: instructions-1
 PASS: instructions-2
 PASS: instructions-3
 PASS: ref cycles-0
 PASS: ref cycles-1
 PASS: ref cycles-2
 PASS: ref cycles-3
 PASS: llc refference-0
 PASS: llc refference-1
 PASS: llc refference-2
 PASS: llc refference-3
 PASS: llc misses-0
 PASS: llc misses-1
 PASS: llc misses-2
 PASS: llc misses-3
 PASS: branches-0
 PASS: branches-1
 PASS: branches-2
 PASS: branches-3
 PASS: branch misses-0
 PASS: branch misses-1
 PASS: branch misses-2
 PASS: branch misses-3
 PASS: fixed-0
 PASS: fixed-1
 PASS: fixed-2
 PASS: rdpmc: cntr-0
 PASS: rdpmc: fast-0
 PASS: rdpmc: cntr-1
 PASS: rdpmc: fast-1
 PASS: rdpmc: cntr-2
 PASS: rdpmc: fast-2
 PASS: rdpmc: cntr-3
 PASS: rdpmc: fast-3
 FAIL: rdpmc: fixed cntr-0
 PASS: rdpmc: fixed fast-0
 FAIL: rdpmc: fixed cntr-1
 PASS: rdpmc: fixed fast-1
 FAIL: rdpmc: fixed cntr-2
 PASS: rdpmc: fixed fast-2
 FAIL: all counters
 PASS: overflow: cntr-0
 PASS: overflow: status-0
 PASS: overflow: status clear-0
 PASS: overflow: irq-0
 PASS: overflow: cntr-1
 PASS: overflow: status-1
 PASS: overflow: status clear-1
 PASS: overflow: irq-1
 PASS: overflow: cntr-2
 PASS: overflow: status-2
 PASS: overflow: status clear-2
 PASS: overflow: irq-2
 PASS: overflow: cntr-3
 PASS: overflow: status-3
 PASS: overflow: status clear-3
 PASS: overflow: irq-3
 PASS: overflow: cntr-4
 PASS: overflow: status-4
 PASS: overflow: status clear-4
 PASS: overflow: irq-4
 PASS: cmask
 SUMMARY: 67 tests, 4 unexpected failures
 FAIL pmu (67 tests, 4 unexpected failures)

tags: added: bionic linux-oracle
tags: added: sru-20191021 ubuntu-kvm-unit-tests
tags: added: 4.15
Po-Hsu Lin (cypressyew) wrote :

In this cycle with B-4.15 Oracle (4.15.0-1030.33) test skipped with instances DenseIO1.8 and failed on VM.Standard1.4

tags: added: sru-20191111
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers