cpu_hotplug test in ubuntu_kernel_selftest failed on Moonshot ARM64

Bug #1809701 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Triaged
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned
Xenial
New
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Disco
Won't Fix
Undecided
Unassigned

Bug Description

Test failed with "Operation not supported" when trying to offline a CPU:
    echo 0 > $SYSFS/devices/system/cpu/cpu$1/online

This issue cannot be reproduced on CaviumThunderX ARM64 server, just the moonshots.

$ sudo make -C linux/tools/testing/selftests TARGETS=cpu-hotplug run_tests
make: Entering directory '/home/ubuntu/linux/tools/testing/selftests'
make[1]: Entering directory '/home/ubuntu/linux/tools/testing/selftests/cpu-hotplug'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/linux/tools/testing/selftests/cpu-hotplug'
make[1]: Entering directory '/home/ubuntu/linux/tools/testing/selftests/cpu-hotplug'
TAP version 13
selftests: cpu-hotplug: cpu-on-off-test.sh
========================================
pid 8132's current affinity mask: ff
pid 8132's new affinity mask: 1
CPU online/offline summary:
  Cpus in online state: 0-7
  Cpus in offline state: 0
Limited scope test: one hotplug cpu
  (leaves cpu in the original state):
  online to offline to online: cpu 7
./cpu-on-off-test.sh: line 92: echo: write error: Operation not supported
offline_cpu_expect_success 7: unexpected fail
not ok 1..1 selftests: cpu-hotplug: cpu-on-off-test.sh [FAIL]
make[1]: Leaving directory '/home/ubuntu/linux/tools/testing/selftests/cpu-hotplug'
make: Leaving directory '/home/ubuntu/linux/tools/testing/selftests'

The CPU hotplug config was enabled on this SUT:
$ cat /boot/config-`uname -r` | grep HOTPLUG | grep CPU
CONFIG_HOTPLUG_CPU=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: linux-image-4.18.0-13-generic 4.18.0-13.14
ProcVersionSignature: User Name 4.18.0-13.14-generic 4.18.17
Uname: Linux 4.18.0-13-generic aarch64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Dec 25 04:01 seq
 crw-rw---- 1 root audio 116, 33 Dec 25 04:01 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu13.1
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:
Date: Tue Dec 25 04:54:54 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.18.0-13-generic N/A
 linux-backports-modules-4.18.0-13-generic N/A
 linux-firmware 1.175.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 :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Brad Figg (brad-figg)
tags: added: cscc
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-kernel-selftests
Sean Feole (sfeole)
tags: added: sru-20191202
Changed in ubuntu-kernel-tests:
status: New → Incomplete
status: Incomplete → Triaged
Steve Langasek (vorlon)
Changed in linux (Ubuntu Disco):
status: Confirmed → Won't Fix
Po-Hsu Lin (cypressyew)
summary: - cpu_hot_plug test in ubuntu_kernel_selftest failed on Moonshot ARM64
+ cpu_hotplug test in ubuntu_kernel_selftest failed on Moonshot ARM64
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.