apic-split will fail in kvm_units_tests

Bug #1821390 reported by Sean Feole on 2019-03-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned
linux-aws (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned
linux-azure (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
Cosmic
Undecided
Unassigned

Bug Description

Reproducible: Yes, every time.
Series: cosmic
Kernel: "linux-aws 4.18.0-1012.14"
Steps:

1.) apt-get install --yes --allow build-essential cpu-checker qemu-kvm git gcc-multilib
2.) git clone --depth=1 https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
3.) cd kvm-unit-tests; ./configure; make

4.) TESTNAME=apic-split TIMEOUT=90s ACCEL= ./x86/run x86/apic.flat -smp 2 -cpu qemu64,+x2apic,+tsc-deadline -machine kernel_irqchip=split

root@ip-172-31-5-254:/home/ubuntu/kvm-unit-tests# TESTNAME=apic-split TIMEOUT=90s ACCEL= ./x86/run x86/apic.flat -smp 2 -cpu qemu64,+x2apic,+tsc-deadline -machine kernel_irqchip=split
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 x86/apic.flat -smp 2 -cpu qemu64,+x2apic,+tsc-deadline -machine kernel_irqchip=split # -initrd /tmp/tmp.ZHQwPUOuLD
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
enabling apic
enabling apic
paging enabled
cr0 = 80010011
cr3 = 459000
cr4 = 20
apic version: 1050014
PASS: apic existence
PASS: xapic id matches cpuid
PASS: writeable xapic id
PASS: non-writeable x2apic id
PASS: sane x2apic id
PASS: x2apic id matches cpuid
PASS: correct xapic id after reset
PASS: apic_disable: Local apic disabled
PASS: apic_disable: CPUID.1H:EDX.APIC[bit 9] is clear
PASS: apic_disable: *0xfee00030: ffffffff
PASS: apic_disable: CR8: 0
PASS: apic_disable: CR8: f
PASS: apic_disable: *0xfee00080: ffffffff
PASS: apic_disable: Local apic enabled in xAPIC mode
PASS: apic_disable: CPUID.1H:EDX.APIC[bit 9] is set
PASS: apic_disable: *0xfee00030: 1050014
PASS: apic_disable: *0xfee00080: 0
PASS: apic_disable: *0xfee00080: f0
PASS: apic_disable: Local apic enabled in x2APIC mode
PASS: apic_disable: CPUID.1H:EDX.APIC[bit 9] is set
PASS: apic_disable: *0xfee00030: ffffffff
PASS: apic_disable: CR8: 0
PASS: apic_disable: CR8: f
PASS: apic_disable: *0xfee00080: ffffffff
x2apic enabled
PASS: x2apic enabled to invalid state
PASS: x2apic enabled to apic enabled
PASS: x2apic enabled to disabled state
PASS: disabled to invalid state
PASS: disabled to x2apic enabled
PASS: apic enabled to invalid state
PASS: apicbase: relocate apic
PASS: apicbase: reserved physaddr bits
PASS: apicbase: reserved low bits
PASS: self ipi
starting broadcast (x2apic)
PASS: APIC physical broadcast address
PASS: APIC physical broadcast shorthand
FAIL: PV IPIs testing
PASS: nmi-after-sti
PASS: multiple nmi
PASS: APIC LVT timer one shot
starting apic change mode
PASS: TMICT value reset
PASS: TMCCT should have a non-zero value
PASS: TMCCT should have reached 0
PASS: TMCCT should have a non-zero value
PASS: TMCCT should not be reset to TMICT value
PASS: TMCCT should be reset to the initial-count
PASS: TMCCT should not be reset to init
PASS: TMCCT should have reach zero
PASS: TMCCT should stay at zero
PASS: tsc deadline timer
PASS: tsc deadline timer clearing
SUMMARY: 51 tests, 1 unexpected failures

Sean Feole (sfeole) on 2019-03-22
tags: added: aws i3.metal
description: updated
Sean Feole (sfeole) wrote :

Also affects Bionic linux-aws 4.15.1035.37

tags: added: 4.15 4.18 bionic cosmic
Sean Feole (sfeole) wrote :

Also affects Xenial linux-aws 4.4.0-1078.88

tags: added: 4.4 xenial

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 1821390

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 Bionic):
status: New → Incomplete
Changed in linux (Ubuntu Cosmic):
status: New → Incomplete

We see a similar failure in some Azure Cloud instances, it appears to be somewhat of the same.

5. 03/27 23:15:29 DEBUG| utils:0153| [stdout] TESTNAME=apic-split TIMEOUT=90s ACCEL= ./x86/run x86/apic.flat -smp 2 -cpu qemu64,+x2apic,+tsc-deadline -machine kernel_irqchip=split
6. 03/27 23:16:20 DEBUG| utils:0153| [stdout] FAIL apic-split (51 tests, 1 unexpected failures)

tags: added: azure
Sean Feole (sfeole) wrote :

affects, 4.18.0-1013.15 linux-aws

summary: - apic-split will fail in kvm_units_tests on aws i3.metal
+ apic-split will fail in kvm_units_tests
Sean Feole (sfeole) wrote :

also affects aws i3.metal disco , cosmic 4.18.0-1015.17

Po-Hsu Lin (cypressyew) on 2019-06-24
tags: added: linux-kvm sru-20190603 ubuntu-kvm-unit-tests
Sean Feole (sfeole) on 2019-09-27
tags: added: sru-20190902
Sean Feole (sfeole) on 2019-11-05
tags: added: sru-20191021
tags: removed: cosmic
tags: added: oracle
Sean Feole (sfeole) on 2019-12-16
tags: added: sru-20191202
tags: added: 5.0 5.3
tags: added: disco eoan
Sean Feole (sfeole) wrote :

SRU 2019.12.02 Bionic linux-oracle, Kernel:5.0.0-1009.14~18.04.1

Failure seen in apic-split..

12/06 08:07:06 DEBUG| utils:0153| [stdout] FAIL: TMCCT should not be reset to TMICT value

Changed in ubuntu-kernel-tests:
status: New → Triaged
Sean Feole (sfeole) on 2020-03-03
tags: added: sru-20200217
Po-Hsu Lin (cypressyew) wrote :

Failed on T-4.4 / X-4.4 AMD64
Passed on X-4.15 / B-4.15 AMD64

tags: added: sr
tags: added: sru-20200316
removed: sr
Po-Hsu Lin (cypressyew) wrote :

Passed on E 5.3 AMD64

Po-Hsu Lin (cypressyew) wrote :

For the timeout issue on Oracle B-5.0, VM.Standard2.16
this test will take about 2 minutes to run:

SUMMARY: 51 tests, 1 unexpected failures
FAIL apic-split (51 tests, 1 unexpected failures)

real 1m53.292s
user 1m22.798s
sys 2m22.239s

SUMMARY: 51 tests, 1 unexpected failures
FAIL apic-split (51 tests, 1 unexpected failures)

real 1m47.981s
user 1m15.764s
sys 2m18.655s

SUMMARY: 51 tests, 1 unexpected failures, 1 skipped
FAIL apic-split (51 tests, 1 unexpected failures, 1 skipped)

real 1m52.938s
user 1m12.339s
sys 2m32.482s

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

Other bug subscribers