Hi, new version of the kvm-unit-test s390x CPU topology series. 0. what is new in this new spin ------------------------------- - more configuration tested in unittests.cfg - one of the tested configuration using 248 processors will failed until SCLP bug is corrected - several cleanup 1. what is done --------------- - First part is checking PTF errors, for KVM and LPAR - Second part is checking PTF polarization change and STSI with the cpu topology including drawers and books. This tests are run for KVM only. To run these tests under KVM successfully you need Linux 6.0 and the latest QEMU patches you find at: https://lists.gnu.org/archive/html/qemu-devel/2023-04/msg04568.html Note that Fedora-35 already has the CPU Topology backport for Linux. To start the test in KVM just do: # ./run_tests.sh topology or something like: # ./s390x-run s390x/topology.elf \ -smp 5,drawers=3,books=3,sockets=4,cores=4,maxcpus=144 \ -append '-drawers 3 -books 3 -sockets 4 -cores 4' Of course the declaration of the number of drawers, books, socket and core must be coherent between -smp and -append arguments. - Running the test on LPAR has been getestet on a46lp21 Regards, Pierre Pierre Morel (2): s390x: topology: Check the Perform Topology Function s390x: topology: Checking Configuration Topology Information lib/s390x/sclp.c | 6 + lib/s390x/sclp.h | 4 +- lib/s390x/stsi.h | 36 ++++ s390x/Makefile | 1 + s390x/topology.c | 515 ++++++++++++++++++++++++++++++++++++++++++++ s390x/unittests.cfg | 14 ++ 6 files changed, 575 insertions(+), 1 deletion(-) create mode 100644 s390x/topology.c -- 2.31.1 new in v8: - use report_fail instead of report(0,... (Nico) - add 2 more configurations in unittests.cfg (Nico) new in v8: - define PTF_INVALID_FUNCTION (Claudio) - test every single bits for specification in the ptf instruction (Claudio) - test vertical polarization twice (Claudio) - add an assert(read_info) (Nico) - changed skips (Nico) new in v7: - better checks using device attributes on commandline (Pierre) - use builtin to get the number of CPU in the TLE mask (Thomas) - use Elvis (not dead) (Thomas) - reset before tests (Nina) - splitting test_ptf in small functions (Thomas) - check every ptf function code for program check (Nina) - Test made on LPAR (Janosch) - use a single page for SYSIB (Thomas) - abort on wrong parameter (Thomas) - implement SYSIB check with a recursive funtion (Nina) - diverse little changes (naming, clearer checks (Nina, Thomas)