Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v3] arm: Add PSCI CPU_OFF test
@ 2022-12-20 14:31 Nikita Venkatesh
  2022-12-20 14:31 ` [kvm-unit-tests PATCH v3 1/2] arm/psci: Test that CPU 1 has been successfully brought online Nikita Venkatesh
  2022-12-20 14:31 ` [kvm-unit-tests PATCH v3 2/2] arm/psci: Add PSCI_CPU_OFF testscase to arm/psci testsuite Nikita Venkatesh
  0 siblings, 2 replies; 4+ messages in thread
From: Nikita Venkatesh @ 2022-12-20 14:31 UTC (permalink / raw)
  To: pbonzini, thuth, andrew.jones
  Cc: kvm, suzuki.poulose, alexandru.elisei, nd, Nikita Venkatesh

The series adds a new test called CPU_OFF under the PSCI tests. The test
itself is a part of patch #2, "[PATCH 2/2] arm/psci: Add PSCI_CPU_OFF
testscase to arm/psci testsuite". Patch #1, "[PATCH 1/2] arm/psci: Test
that CPU 1 has been successfully brought online" is a preparatory patch
to make CPU_OFF test run after the CPU_ON test. Executing the CPU_OFF
test after the CPU_ON test makes the most sense, since CPU_OFF requires
all the CPUs to be brought online before the test can execute.

changelog
v1 -> v2:
- Modify PSCI CPU_ON test to ensure CPU 1 remains online after the execution of the test.
- Addition of PSCI CPU_OFF test and calling it after PSCI CPU_ON test has been executed.

v2 -> v3
- Add timeout so that test does not hang if CPU1 fails to come online
- Remove unnecessary call of on_cpus() in the condition where target CPU is not online.

Alexandru Elisei (1):
  arm/psci: Test that CPU 1 has been successfully brought online

Nikita Venkatesh (1):
  arm/psci: Add PSCI_CPU_OFF testscase to arm/psci testsuite

 arm/psci.c        | 120 ++++++++++++++++++++++++++++++++++++++++------
 lib/arm/asm/smp.h |   1 +
 lib/arm/smp.c     |  12 +++--
 3 files changed, 115 insertions(+), 18 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-22 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20 14:31 [kvm-unit-tests PATCH v3] arm: Add PSCI CPU_OFF test Nikita Venkatesh
2022-12-20 14:31 ` [kvm-unit-tests PATCH v3 1/2] arm/psci: Test that CPU 1 has been successfully brought online Nikita Venkatesh
2022-12-20 14:31 ` [kvm-unit-tests PATCH v3 2/2] arm/psci: Add PSCI_CPU_OFF testscase to arm/psci testsuite Nikita Venkatesh
2022-12-22 17:48   ` Alexandru Elisei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox