UBUNTU: SAUCE: ubuntu_kernel_selftests: disable CPU hotplug on Azure
Microsoft Hyper-V with Linux guests does not support CPU hotplug, even
if enabled in kernel configuration. Quoting Ubuntu bug report from
June 2018: "While Hyper-V may present all potential CPUs via ACPI MADT,
CPU add/remove is not supported.". [1]
Skip the CPU hotplug test on Azure instances because it fails on some of
configs, e.g. Bionic/azure:
pid 28041's current affinity mask: 3
pid 28041's new affinity mask: 1
CPU online/offline summary:
present_cpus = 0-1 present_max = 1
Cpus in online state: 0-1
Cpus in offline state: 0
Limited scope test: one hotplug cpu
(leaves cpu in the original state):
online to offline to online: cpu 1
not ok 1..1 selftests: cpu-on-off-test.sh [FAIL]
./cpu-on-off-test.sh: line 94: echo: write error: Device or resource busy
offline_cpu_expect_success 1: unexpected fail
UBUNTU: SAUCE: ubuntu_ltp_syscalls: import pending LTP patches for several failures
Few patches to upstream LTP project are pending for longer time (2-3
weeks). Either the discussion is on-going (and not necessarily going
anywhere like in case of controllers/memcg patches) or they are ignored.
These patches fix real test issues, so apply them here. The patchset
contains fixes for ubuntu_ltp and ubuntu_ltp_syscalls, because it is
easier to keep one set.
Move the existing syscalls "UBUNTU: SAUCE: skip fanotify09 test #2 for
older kernels" to same folder and share it with ubuntu_ltp to keep
out-of-tree patches consistent.
Signed-off-by: Krzysztof Kozlowski <email address hidden>
UBUNTU: SAUCE: ubuntu_ltp: import pending LTP patches for several failures
Few patches to upstream LTP project are pending for longer time (2-3
weeks). Either the discussion is on-going (and not necessarily going
anywhere like in case of controllers/memcg patches) or they are ignored.
These patches fix real test issues, so apply them here. The patchset
contains fixes for ubuntu_ltp and ubuntu_ltp_syscalls, because it is
easier to keep one set.
This imports Krzysztof Kozlowski's work in LTP:
- tpci: accept ENOMEM resource failure with virtio-pci
- controllers/memcg: increase memory limit in subgroup charge
- controllers/memcg: accept non-zero max_usage_in_bytes after reset
- controllers/memcg: accept range of usage_in_bytes
- controllers/memcg: accept range of max_usage_in_bytes
- lib: memutils: don't pollute entire system memory to avoid OoM
- device-drivers/cpufreq_boost: skip test on virtual machines
- syscalls/msgstress: tune limit of processes for small machines
- syscalls/msgstress03: fix fork failure on small memory systems
- syscalls/msgstress04: fix fork failure on small memory systems
- include/tst_pid.h: fix language typo (subtraction)
- controllers/cpuacct: skip cpuacct_100_100 on small memory systems
Signed-off-by: Krzysztof Kozlowski <email address hidden>
Acked-by: Po-Hsu Lin <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>