arm64 kvm-unit-tests timer test failing on 18.04

Bug #1801052 reported by Andre Przywara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
Bionic
Fix Released
Medium
Unassigned

Bug Description

kvm-unit-tests performs 12 timer tests in the latest version, one of them failing with the latest Ubuntu LTS kernel. This issue has been fixed in mainline commits 7afc4ddbf299a13aaf28406783d141a34c6b4f5a and 245715cbe83ca934af5d20e078fd85175c62995e (part of 4.19.0 release), which are tagged with "Cc: Stable # 4.15+" and "Fixes: ...".
Could you please backport them to your tree? "patch" applies them with some fuzz only (no additional fixing needed).
Here is what I did:
- Boot 4.15.0-38-generic on an ARM Juno r1 board (but every arm64 h/w would do).
- Run kvm-unit-tests:
$ git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
$ cd kvm-unit-tests
$ ./configure && make
$ ./run_tests.sh
This will mark the timer test as failed:
FAIL timer (12 tests, 1 unexpected failures)
A more detailed log can be get by:
$ arm/run arm/timer.flat

I then fetched the official Ubuntu kernel (apt-get source), applied the two patches mentioned above and rebuilt the kernel (with the .config from /boot). This will report the timer as pass:
PASS timer (12 tests)

So could you please backport those two patches to make kvm-unit-tests (and its users) happy?

Btw: I was wondering whether you have some process to find those stable fixes, even with the 4.15 base kernel being EOL for quite a while now. Please bear with me if you do and I was just too impatient ;-)

Thanks!
Andre
---
ProblemType: Bug
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Jan 28 2018 seq
 crw-rw---- 1 root audio 116, 33 Jan 28 2018 timer
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.15.0-38-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: [Errno 2] No such file or directory: 'fuser': 'fuser'
DistroRelease: Ubuntu 18.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb:
 Bus 002 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 TERM=vt220
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: console=ttyAMA0,115200n8 root=/dev/sda3 rw rootwait earlycon=pl011,0x7ff80000 debug
ProcVersionSignature: Ubuntu 4.15.0-38.41-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-38-generic N/A
 linux-backports-modules-4.15.0-38-generic N/A
 linux-firmware 1.173.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
Tags: bionic
Uname: Linux 4.15.0-38-generic aarch64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True

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 1801052

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
tags: added: bionic
Revision history for this message
Alex Bennée (ajbennee) wrote :

I have also tested this on the ubuntu running on 96 core TX system. Fails with linux-image-4.15.0-20-generic but passes with an alllocalconfig build of 4.19.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Andre Przywara (apritzel) wrote : CRDA.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Andre Przywara (apritzel) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Andre Przywara (apritzel) wrote : Lspci.txt

apport information

Revision history for this message
Andre Przywara (apritzel) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Andre Przywara (apritzel) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Andre Przywara (apritzel) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Andre Przywara (apritzel) wrote : ProcModules.txt

apport information

Revision history for this message
Andre Przywara (apritzel) wrote : UdevDb.txt

apport information

Revision history for this message
Andre Przywara (apritzel) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in linux (Ubuntu Bionic):
status: New → Triaged
importance: Undecided → Medium
Brad Figg (brad-figg)
tags: added: cscc
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Andre,
Thanks for reporting this.

This patch has been applied to Bionic [1]. And our regression-testing shows positive test results.
Please feel free to re-open this if you think the status is incorrect.

[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1835972

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Changed in linux (Ubuntu Bionic):
status: Triaged → Fix Released
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.