gicv3-ipi and gicv3-active failed on Bionic Moonshot ARM64 server

Bug #1790825 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Invalid
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned
Bionic
Invalid
Undecided
Unassigned

Bug Description

These two test will fail on a Moonshot node, with Bionic installed.

$ sudo ./run_tests.sh -v
SKIP selftest-setup (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP selftest-vectors-kernel (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP selftest-vectors-user (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP selftest-smp (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP pci-test (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP pmu (qemu-system-aarch64: Unable to determine GIC version supported by host)
TESTNAME=gicv2-ipi TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $((($MAX_SMP < 8)?$MAX_SMP:8)) -machine gic-version=2 -append 'ipi'
PASS gicv2-ipi (3 tests)
TESTNAME=gicv3-ipi TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $MAX_SMP -machine gic-version=3 -append 'ipi'
FAIL gicv3-ipi
TESTNAME=gicv2-active TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $((($MAX_SMP < 8)?$MAX_SMP:8)) -machine gic-version=2 -append 'active'
PASS gicv2-active (1 tests)
TESTNAME=gicv3-active TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $MAX_SMP -machine gic-version=3 -append 'active'
FAIL gicv3-active
SKIP psci (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP timer (qemu-system-aarch64: Unable to determine GIC version supported by host)

Further check with these two failed test case, they are complaining the same issue:

root@ms10-35-mcdivittB0-kernel:/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests# TESTNAME=gicv3-ipi TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $MAX_SMP -machine gic-version=3 -append 'ipi'
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/gic.flat -smp -machine gic-version=3 -append ipi # -initrd /tmp/tmp.oWkFeTiIeQ
qemu-system-aarch64: -smp -machine: Parameter 'cpus' expects a number

root@ms10-35-mcdivittB0-kernel:/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests# TESTNAME=gicv3-active TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $MAX_SMP -machine gic-version=3 -append 'active'
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/gic.flat -smp -machine gic-version=3 -append active # -initrd /tmp/tmp.1X2ud5gyAh
qemu-system-aarch64: -smp -machine: Parameter 'cpus' expects a number

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-33-generic 4.15.0-33.36
ProcVersionSignature: User Name 4.15.0-33.36-generic 4.15.18
Uname: Linux 4.15.0-33-generic aarch64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Sep 5 08:09 seq
 crw-rw---- 1 root audio 116, 33 Sep 5 08:09 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CurrentDmesg:

Date: Wed Sep 5 08:56:52 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:

ProcFB:

ProcKernelCmdLine: console=ttyS0,9600n8r ro
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-33-generic N/A
 linux-backports-modules-4.15.0-33-generic N/A
 linux-firmware 1.173.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

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 1790825

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
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

These two tests will be skipped with QEMU 3.0.0 built from source.

# QEMU=/home/ubuntu/qemu-3.0.0/aarch64-softmmu/qemu-system-aarch64 ./run_tests.sh -v
SKIP selftest-setup (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP selftest-vectors-kernel (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP selftest-vectors-user (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP selftest-smp (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP pci-test (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP pmu (qemu-system-aarch64: Unable to determine GIC version supported by host)
TESTNAME=gicv2-ipi TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $((($MAX_SMP < 8)?$MAX_SMP:8)) -machine gic-version=2 -append 'ipi'
PASS gicv2-ipi (3 tests)
SKIP gicv3-ipi (qemu-system-aarch64: Userspace GICv3 is not supported with KVM)
TESTNAME=gicv2-active TIMEOUT=90s ACCEL= ./arm/run arm/gic.flat -smp $((($MAX_SMP < 8)?$MAX_SMP:8)) -machine gic-version=2 -append 'active'
PASS gicv2-active (1 tests)
SKIP gicv3-active (qemu-system-aarch64: Userspace GICv3 is not supported with KVM)
SKIP psci (qemu-system-aarch64: Unable to determine GIC version supported by host)
SKIP timer (qemu-system-aarch64: Unable to determine GIC version supported by host)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

On Cosmic, these test cases will be skipped:
    qemu-system-aarch64: Userspace GICv3 is not supported with KVM

So it looks like this is a qemu related issue.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For X-hwe, this gicv3-ipi is still failing but gicv3-active will pass on Moonshots node (skipped on ThunderX)

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-kvm-unit-tests
Revision history for this message
Sean Feole (sfeole) wrote :

So after running into bug# 1828165 I now stumbled across this one, This test is invalid, as gicv3 is only supported on arm64 hardware Thunderx and newer. the HP Moonshot cartridges are NOT to be used for this test. This needs to be blacklisted somehow, will touch base with SAM on doing so.

Changed in ubuntu-kernel-tests:
status: New → Triaged
assignee: nobody → Sean Feole (sfeole)
Changed in linux (Ubuntu):
status: Confirmed → Invalid
Changed in linux (Ubuntu Bionic):
status: New → Invalid
Revision history for this message
Sean Feole (sfeole) wrote :

Marking the linux bug invalid as this test is not properly targeted to run on the correct hardware

Changed in ubuntu-kernel-tests:
status: Triaged → In Progress
Sean Feole (sfeole)
Changed in ubuntu-kernel-tests:
status: In Progress → Invalid
assignee: Sean Feole (sfeole) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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