pmu in ubuntu_kvm_unit_tests failed on Oracle kernels (Intel processor)

Bug #1853797 reported by Po-Hsu Lin
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Triaged
Undecided
Unassigned
linux-oracle (Ubuntu)
Confirmed
Undecided
Unassigned
linux-oracle-5.0 (Ubuntu)
Confirmed
Undecided
Unassigned
linux-oracle-5.4 (Ubuntu)
New
Undecided
Unassigned

Bug Description

With test case updated, there are just 3 failures reported on 2023.02.09:
B-oracle-4.15, B-oralce-5.4, F-oracle:
  FAIL: Intel: all counters
  FAIL: Intel: running counter wrmsr: cntr
  FAIL: Intel: running counter wrmsr: status msr bit

F-oracle-5.15, J-oracle, K-oracle:
  FAIL: Intel: all counters

[Original Bug Report]
4 failures:
 FAIL: rdpmc: fixed cntr-0
 FAIL: rdpmc: fixed cntr-1
 FAIL: rdpmc: fixed cntr-2
 FAIL: all counters

Test log:
 Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/pmu'
 BUILD_HEAD=e2c275c4
 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.UfviUpwSjB -smp 1 -cpu host # -initrd /tmp/tmp.7jA5GK5kyl
 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)

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: linux-image-5.0.0-1005-oracle 5.0.0-1005.9
ProcVersionSignature: User Name 5.0.0-1005.9-oracle 5.0.21
Uname: Linux 5.0.0-1005-oracle x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
Date: Mon Nov 25 04:29:43 2019
SourcePackage: linux-signed-oracle
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
tags: added: 5.0 oracle sru-20191111
Revision history for this message
Sean Feole (sfeole) wrote :
Download full text (6.2 KiB)

Seen on Oracle, SRU 12.12.02 5.0.0-1009.14~18.04.1 linux-oracle-5.0

12/06 08:07:38 DEBUG| utils:0116| Running 'kvm-ok'
12/06 08:07:38 DEBUG| utils:0153| [stdout] INFO: /dev/kvm exists
12/06 08:07:38 DEBUG| utils:0153| [stdout] KVM acceleration can be used
12/06 08:07:38 DEBUG| utils:0116| Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/pmu'
12/06 08:07:38 DEBUG| utils:0153| [stdout] BUILD_HEAD=e2c275c4
12/06 08:07:39 DEBUG| utils:0153| [stdout] 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.F8JKNMI5XU -smp 1 -cpu host # -initrd /tmp/tmp.35bJmDIgMF
12/06 08:07:39 DEBUG| utils:0153| [stdout] enabling apic
12/06 08:07:39 DEBUG| utils:0153| [stdout] paging enabled
12/06 08:07:39 DEBUG| utils:0153| [stdout] cr0 = 80010011
12/06 08:07:39 DEBUG| utils:0153| [stdout] cr3 = 45a000
12/06 08:07:39 DEBUG| utils:0153| [stdout] cr4 = 20
12/06 08:07:39 DEBUG| utils:0153| [stdout] PMU version: 2
12/06 08:07:39 DEBUG| utils:0153| [stdout] GP counters: 4
12/06 08:07:39 DEBUG| utils:0153| [stdout] GP counter width: 48
12/06 08:07:39 DEBUG| utils:0153| [stdout] Mask length: 7
12/06 08:07:39 DEBUG| utils:0153| [stdout] Fixed counters: 3
12/06 08:07:39 DEBUG| utils:0153| [stdout] Fixed counter width: 48
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: core cycles-0
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: core cycles-1
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: core cycles-2
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: core cycles-3
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: instructions-0
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: instructions-1
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: instructions-2
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: instructions-3
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: ref cycles-0
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: ref cycles-1
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: ref cycles-2
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: ref cycles-3
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc refference-0
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc refference-1
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc refference-2
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc refference-3
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc misses-0
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc misses-1
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc misses-2
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: llc misses-3
12/06 08:07:39 DEBUG| utils:0153| [stdout] PASS: branches-0
12/06 08:07:40 DEBUG| utils:0153| [stdout] PASS: branches-1
12/06 08:07:40 DEBUG| utils:0153| [stdout] PASS: branches-2
12/06 08:07:40 DEBUG| utils:0153| [stdout] PASS: branches-3
12/06 08:07:40 DEBUG| utils:0153| [stdout] PASS: branch misses-0
12/06 08:07:4...

Read more...

tags: added: bionic linux-5.0
summary: - pmu in ubuntu_kvm_unit_tests failed with 4 unexpected failures on
- D-Oracle
+ pmu in ubuntu_kvm_unit_tests fails
no longer affects: linux-signed-oracle (Ubuntu)
Changed in ubuntu-kernel-tests:
status: New → Triaged
Sean Feole (sfeole)
Changed in linux-oracle-5.0 (Ubuntu):
status: New → Confirmed
tags: added: sr
tags: added: sru-20200217
removed: sr
Po-Hsu Lin (cypressyew)
tags: added: sru-20200831
Revision history for this message
Krzysztof Kozlowski (krzk) wrote : Re: pmu in ubuntu_kvm_unit_tests fails

Found on xenial/linux-oracle/4.15.0-1079.87~16.04.1 and xenial/linux-oracle/4.15.0-1077.85~16.04.1 (Oracle instances).

tags: added: 4.15 sru-20210719 xenial
tags: added: hinted
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-oracle (Ubuntu):
status: New → Confirmed
Revision history for this message
Luke Nowakowski-Krijger (lukenow) wrote :

Found new failures on bionic/linux-oracle/5.4.0-1054.58~18.04.1 on VM.DenseIO2.8 and VM.Standard2.1

2 newly added tests failed

18:12:43 DEBUG| [stdout] FAIL: all counters
18:12:43 DEBUG| [stdout] PASS: overflow: cntr-0
18:12:43 DEBUG| [stdout] PASS: overflow: status-0
18:12:43 DEBUG| [stdout] PASS: overflow: status clear-0
18:12:43 DEBUG| [stdout] PASS: overflow: irq-0
18:12:43 DEBUG| [stdout] PASS: overflow: cntr-1
18:12:43 DEBUG| [stdout] PASS: overflow: status-1
18:12:43 DEBUG| [stdout] PASS: overflow: status clear-1
18:12:43 DEBUG| [stdout] PASS: overflow: irq-1
18:12:43 DEBUG| [stdout] PASS: overflow: cntr-2
18:12:43 DEBUG| [stdout] PASS: overflow: status-2
18:12:43 DEBUG| [stdout] PASS: overflow: status clear-2
18:12:43 DEBUG| [stdout] PASS: overflow: irq-2
18:12:43 DEBUG| [stdout] PASS: overflow: cntr-3
18:12:43 DEBUG| [stdout] PASS: overflow: status-3
18:12:43 DEBUG| [stdout] PASS: overflow: status clear-3
18:12:43 DEBUG| [stdout] PASS: overflow: irq-3
18:12:43 DEBUG| [stdout] PASS: overflow: cntr-4
18:12:43 DEBUG| [stdout] PASS: overflow: status-4
18:12:43 DEBUG| [stdout] PASS: overflow: status clear-4
18:12:43 DEBUG| [stdout] PASS: overflow: irq-4
18:12:43 DEBUG| [stdout] PASS: cmask
18:12:43 DEBUG| [stdout] FAIL: running counter wrmsr: cntr
18:12:43 DEBUG| [stdout] FAIL: running counter wrmsr: status
18:12:43 DEBUG| [stdout] Unhandled exception 13 #GP at ip 000000000040127f
18:12:43 DEBUG| [stdout] error_code=0000 rflags=00010002 cs=00000008
18:12:44 DEBUG| [stdout] rax=0000000000619cf5 rcx=0000000000000345 rdx=0000000000000002 rbx=0000000000000000
18:12:44 DEBUG| [stdout] rbp=0000000000519f30 rsi=0000000000418117 rdi=0000000000619cf5
18:12:44 DEBUG| [stdout] r8=0000000000000000 r9=0000000000000020 r10=000000000000000d r11=2492492492492493
18:12:44 DEBUG| [stdout] r12=0000000007300402 r13=0000000000000603 r14=0000000000000000 r15=0000000000000000
18:12:44 DEBUG| [stdout] cr0=0000000080010011 cr2=0000000000000000 cr3=0000000001007000 cr4=0000000000000020
18:12:44 DEBUG| [stdout] cr8=0000000000000000
18:12:44 DEBUG| [stdout] STACK: @40127f 400338
18:12:44 DEBUG| [stdout] FAIL pmu

tags: added: 5.4 sru-20210816
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on impish/linux-oracle/5.13.0-1005.7 (instance: VM.Standard2.1) with only one FAIL:
FAIL: all counters

tags: added: 5.13 impish
Po-Hsu Lin (cypressyew)
tags: added: sru-20211108
Po-Hsu Lin (cypressyew)
summary: - pmu in ubuntu_kvm_unit_tests fails
+ pmu in ubuntu_kvm_unit_tests failed on Oracle kernels
Po-Hsu Lin (cypressyew)
description: updated
Cory Todd (corytodd)
tags: added: sru-20230227
Revision history for this message
Cory Todd (corytodd) wrote : Re: pmu in ubuntu_kvm_unit_tests failed on Oracle kernels

Spotted on both jammy:linux-oracle 1031 and focal:linux-oracle-5.15 1031 on

- VM.DenseIO2.8
- VM.Standard2.1

Po-Hsu Lin (cypressyew)
summary: - pmu in ubuntu_kvm_unit_tests failed on Oracle kernels
+ pmu in ubuntu_kvm_unit_tests failed on Oracle kernels (Intel processor)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.