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

Bug #1790825 reported by Po-Hsu Lin on 2018-09-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
Bionic
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)

Po-Hsu Lin (cypressyew) wrote :
description: updated

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
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)

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.

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers