kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pierre Morel <pmorel@linux.ibm.com>
To: linux-s390@vger.kernel.org
Cc: frankja@linux.ibm.com, thuth@redhat.com, kvm@vger.kernel.org,
	imbrenda@linux.ibm.com, david@redhat.com, nrb@linux.ibm.com,
	nsg@linux.ibm.com
Subject: [kvm-unit-tests PATCH v10 0/2] S390x: CPU Topology Information
Date: Tue, 27 Jun 2023 10:21:53 +0200	[thread overview]
Message-ID: <20230627082155.6375-1-pmorel@linux.ibm.com> (raw)

Hi,

new version of the kvm-unit-test s390x CPU topology series.

0. what is new in this new spin
-------------------------------

- the configuration tested in unittests.cfg is compatible with current
  QEMU. A later patch will be needed to use full topology when QEMU
  patches are mainline.
- one of the tested configuration using 248 processors will failed
  until SCLP bug is corrected
- use of -cpu max instead of z14

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
or newer.

Note that Fedora-35 already has the CPU Topology backport for Linux.

To start the test in KVM just do:

# ./run_tests.sh topology
for the topology ptf tests or for the topology stsi tests
# ./run_tests.sh topology-2

or something like:

# ./s390x-run s390x/topology.elf \
	-cpu max,ctop=on \
	-smp 5,sockets=4,cores=4,maxcpus=16 \
	-append '-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.

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    | 516 ++++++++++++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg |   7 +
 6 files changed, 569 insertions(+), 1 deletion(-)
 create mode 100644 s390x/topology.c

-- 
2.31.1

new in v10:

- unitests now compatible with current QEMU
  (Janosch)

- use of -cpu max instead of z14
  (Janosch, Thomas)

- colapse prefix_push and report_info
  (Nico)

new in v9:

- 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)


             reply	other threads:[~2023-06-27  8:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-27  8:21 Pierre Morel [this message]
2023-06-27  8:21 ` [kvm-unit-tests PATCH v10 1/2] s390x: topology: Check the Perform Topology Function Pierre Morel
2023-06-29  8:49   ` Nico Boehr
2023-06-29 12:53     ` Pierre Morel
2023-07-03  8:42     ` Thomas Huth
2023-07-12  9:09       ` Pierre Morel
2023-07-12  9:10       ` Pierre Morel
2023-06-27  8:21 ` [kvm-unit-tests PATCH v10 2/2] s390x: topology: Checking Configuration Topology Information Pierre Morel
2023-06-29  8:47   ` Nico Boehr
2023-07-06 10:48   ` Thomas Huth
2023-07-10  8:36     ` Nico Boehr
2023-07-10 14:38       ` Thomas Huth
2023-07-11  8:07         ` Nico Boehr
2023-07-11  8:43           ` Thomas Huth
2023-07-12  9:08             ` Pierre Morel
2023-06-30 12:29 ` [kvm-unit-tests PATCH v10 0/2] S390x: CPU " Nico Boehr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230627082155.6375-1-pmorel@linux.ibm.com \
    --to=pmorel@linux.ibm.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nrb@linux.ibm.com \
    --cc=nsg@linux.ibm.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).