Sorry for the formatting mess in my previous email, my mail client
stripped the linebreaks. Here is the readable version:
On Sun, 19 Jul 2026, Chinmay Rath wrote:
> This series aims to add a couple of new powerpc tests and improve
> the powerpc build structure.
Tested on POWER10 (native KVM, ppc64le).
Tested-by: Aniket Sahu <[email protected]>
--- Environment ---
Host CPU : POWER10 (architected), altivec supported
Kernel : Linux 7.0.0-27-generic #27-Ubuntu SMP PREEMPT_DYNAMIC
Thu Jun 18 19:14:19 UTC 2026 ppc64le GNU/Linux
OS : Ubuntu 26.04 LTS (Resolute Raccoon)
QEMU : 10.2.1 (Debian 1:10.2.1+ds-1ubuntu3.1)
Accelerator: KVM (-accel kvm -machine pseries,cap-ccf-assist=off)
Branch : origin/ppc64 @ dde8f397
--- Test: pmu (Patch 1) ---
$ ./run_tests.sh -a powerpc pmu
PASS pmu (22 tests, 1 known failure)
Full log:
timeout -k 1s --foreground 90s \
/usr/bin/qemu-system-ppc64 -nodefaults -accel kvm \
-machine pseries,cap-ccf-assist=off -bios powerpc/boot_rom.bin \
-display none -serial stdio -kernel powerpc/pmu.elf -smp 1
PASS: pmu: pmc56: PMC5 zeroed
PASS: pmu: pmc56: PMC6 zeroed
PASS: pmu: pmc56: PMC5 frozen
PASS: pmu: pmc56: PMC6 frozen
PASS: pmu: pmc56: PMC5 counting
PASS: pmu: pmc56: PMC6 counting
PASS: pmu: pmc56: PMC6 ratio to reported clock frequency is 116%
PASS: pmu: pmc56: PMC5 counts instructions precisely 900
PASS: pmu: pmc56: PMC5 counts instructions exactly 21
PASS: pmu: pmc56: PMC5 counts instructions with branch 21
PASS: pmu: pmc56: PMC5 counts instructions wth conditional branch 24
PASS: pmu: pmc56: PMC5 counts instructions with illegal instruction
PASS: pmu: pmc56: PMC5 counts instructions with fault
PASS: pmu: pmc56: PMC5 counts instructions with syscall
PASS: pmu: pmc56: PMC5 counts instructions with rfid 2
PASS: pmu: pmc56: PMC5 counts instructions with ldat
PASS: pmu: pmi: PMAO caused interrupt
PASS: pmu: bhrb: BHRB is frozen
PASS: pmu: bhrb: BHRB has been written
KFAIL: pmu: bhrb: BHRB has written 8 entries
PASS: pmu: bhrb: BHRB has written 4 entries
PASS: pmu: bhrb: correct conditional branch address
SUMMARY: 22 tests, 1 known failure
EXIT: STATUS=1
Note: The KFAIL on "BHRB has written 8 entries" is expected. POWER10
records 4 BHRB entries when other threads are active on the core; the
test explicitly accounts for this with a fallback 4-entry check which
passes. STATUS=1 is the correct exit code when known failures exist.
--- Test: selftest-setup (Patch 3/build structure) ---
$ ./run_tests.sh -a powerpc selftest-setup
PASS selftest-setup (2 tests)
Full log:
timeout -k 1s --foreground 90s \
/usr/bin/qemu-system-ppc64 -nodefaults -accel kvm \
-machine pseries,cap-ccf-assist=off -bios powerpc/boot_rom.bin \
-display none -serial stdio -kernel powerpc/selftest.elf \
-smp 2 -append setup smp=2 mem=1024 -m 1g
PASS: selftest: setup: smp: nr_cpus_present = 2
PASS: selftest: setup: mem: size = 1024 MB
SUMMARY: 2 tests
EXIT: STATUS=1
--- Test: selftest-panic (Patches 5 & 6) ---
$ ./run_tests.sh -a powerpc selftest-panic
PASS selftest-panic
Full log:
run_panic timeout -k 1s --foreground 90s \
/usr/bin/qemu-system-ppc64 -nodefaults -accel kvm \
-machine pseries,cap-ccf-assist=off -bios powerpc/boot_rom.bin \
-display none -serial stdio -kernel powerpc/selftest.elf \
-smp 1 -append panic
qemu-system-ppc64: OS terminated: rtas_os_panic
PASS: guest panicked
EXIT: STATUS=1
Note: The panic test validates both the new rtas_os_panic() RTAS call
(Patch 6) and the run_panic() exit status fix (Patch 5). QEMU exits
with "OS terminated: rtas_os_panic" confirming the ibm,os-term RTAS
token is correctly invoked, and the test runner correctly identifies
this as a successful (expected) panic.
Aniket Sahu