From: "Cédric Le Goater" <clegoate@redhat.com>
To: Nicholas Piggin <npiggin@gmail.com>, qemu-ppc@nongnu.org
Cc: "Cleber Rosa" <crosa@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Beraldo Leal" <bleal@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [RFC PATCH 02/11] tests/avocado: Add ppc pseries and powernv Hash MMU tests
Date: Mon, 16 Oct 2023 10:40:25 +0200 [thread overview]
Message-ID: <c60120e5-7d07-4249-8bb8-335fd649e988@redhat.com> (raw)
In-Reply-To: <20231010075238.95646-3-npiggin@gmail.com>
On 10/10/23 09:52, Nicholas Piggin wrote:
> The Hash MMU mode is supported along side Radix in POWER hardware, and
> Linux supports running in either mode. Radix is the default so to keep
> up testing of QEMU Hash MMU, add some explicit Hash MMU tests.
>
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Nice ! Could we do the same with XICS and XIVE (xive=off) ? since XIVE
is the default now.
May be we should add a boot test for all CPUs supported by pseries :
970, 970mp, POWER5+, P8, P9, P10.
Same for PowerNV.
Thanks,
C.
> ---
> tests/avocado/ppc_powernv.py | 21 ++++++++++++++++++---
> tests/avocado/ppc_pseries.py | 20 +++++++++++++++++---
> 2 files changed, 35 insertions(+), 6 deletions(-)
>
> diff --git a/tests/avocado/ppc_powernv.py b/tests/avocado/ppc_powernv.py
> index d0e5c07bde..2be322c47d 100644
> --- a/tests/avocado/ppc_powernv.py
> +++ b/tests/avocado/ppc_powernv.py
> @@ -12,11 +12,11 @@
> class powernvMachine(QemuSystemTest):
>
> timeout = 90
> - KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '
> + KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 console=hvc0 '
> panic_message = 'Kernel panic - not syncing'
> good_message = 'VFS: Cannot open root device'
>
> - def do_test_linux_boot(self):
> + def do_test_linux_boot(self, kernel_command_line = KERNEL_COMMON_COMMAND_LINE):
> self.require_accelerator("tcg")
> kernel_url = ('https://archives.fedoraproject.org/pub/archive'
> '/fedora-secondary/releases/29/Everything/ppc64le/os'
> @@ -25,7 +25,6 @@ def do_test_linux_boot(self):
> kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
>
> self.vm.set_console()
> - kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=hvc0'
> self.vm.add_args('-kernel', kernel_path,
> '-append', kernel_command_line)
> self.vm.launch()
> @@ -54,6 +53,22 @@ def test_linux_smp_boot(self):
> wait_for_console_pattern(self, console_pattern, self.panic_message)
> wait_for_console_pattern(self, self.good_message, self.panic_message)
>
> + def test_linux_smp_hpt_boot(self):
> + """
> + :avocado: tags=arch:ppc64
> + :avocado: tags=machine:powernv
> + :avocado: tags=accel:tcg
> + """
> +
> + self.vm.add_args('-smp', '4')
> + self.do_test_linux_boot(self.KERNEL_COMMON_COMMAND_LINE +
> + 'disable_radix')
> + console_pattern = 'smp: Brought up 1 node, 4 CPUs'
> + wait_for_console_pattern(self, 'hash-mmu: Initializing hash mmu',
> + self.panic_message)
> + wait_for_console_pattern(self, console_pattern, self.panic_message)
> + wait_for_console_pattern(self, self.good_message, self.panic_message)
> +
> def test_linux_smt_boot(self):
> """
> :avocado: tags=arch:ppc64
> diff --git a/tests/avocado/ppc_pseries.py b/tests/avocado/ppc_pseries.py
> index a8311e6555..74aaa4ac4a 100644
> --- a/tests/avocado/ppc_pseries.py
> +++ b/tests/avocado/ppc_pseries.py
> @@ -12,11 +12,11 @@
> class pseriesMachine(QemuSystemTest):
>
> timeout = 90
> - KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '
> + KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 console=hvc0 '
> panic_message = 'Kernel panic - not syncing'
> good_message = 'VFS: Cannot open root device'
>
> - def do_test_ppc64_linux_boot(self):
> + def do_test_ppc64_linux_boot(self, kernel_command_line = KERNEL_COMMON_COMMAND_LINE):
> kernel_url = ('https://archives.fedoraproject.org/pub/archive'
> '/fedora-secondary/releases/29/Everything/ppc64le/os'
> '/ppc/ppc64/vmlinuz')
> @@ -24,7 +24,6 @@ def do_test_ppc64_linux_boot(self):
> kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
>
> self.vm.set_console()
> - kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=hvc0'
> self.vm.add_args('-kernel', kernel_path,
> '-append', kernel_command_line)
> self.vm.launch()
> @@ -62,6 +61,21 @@ def test_ppc64_linux_smp_boot(self):
> wait_for_console_pattern(self, console_pattern, self.panic_message)
> wait_for_console_pattern(self, self.good_message, self.panic_message)
>
> + def test_ppc64_linux_hpt_smp_boot(self):
> + """
> + :avocado: tags=arch:ppc64
> + :avocado: tags=machine:pseries
> + """
> +
> + self.vm.add_args('-smp', '4')
> + self.do_test_ppc64_linux_boot(self.KERNEL_COMMON_COMMAND_LINE +
> + 'disable_radix')
> + console_pattern = 'smp: Brought up 1 node, 4 CPUs'
> + wait_for_console_pattern(self, 'hash-mmu: Initializing hash mmu',
> + self.panic_message)
> + wait_for_console_pattern(self, console_pattern, self.panic_message)
> + wait_for_console_pattern(self, self.good_message, self.panic_message)
> +
> def test_ppc64_linux_smt_boot(self):
> """
> :avocado: tags=arch:ppc64
next prev parent reply other threads:[~2023-10-16 8:41 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 7:52 [RFC PATCH 00/11] ppc: avocado test additions and new defaults Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 01/11] tests/avocado: ppc add powernv10 boot_linux_console test Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 02/11] tests/avocado: Add ppc pseries and powernv Hash MMU tests Nicholas Piggin
2023-10-16 8:40 ` Cédric Le Goater [this message]
2023-10-10 7:52 ` [RFC PATCH 03/11] tests/avocado: Add pseries KVM boot_linux test Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 04/11] tests/avocado: ppc add hypervisor tests Nicholas Piggin
2023-10-16 6:39 ` Harsh Prateek Bora
2023-10-10 7:52 ` [RFC PATCH 05/11] testing/avocado: ppc add new BookE boot_linux_console.py tests Nicholas Piggin
2023-10-10 8:02 ` Philippe Mathieu-Daudé
2023-10-10 12:03 ` Joel Stanley
2023-10-10 20:53 ` Nicholas Piggin
2023-10-16 8:07 ` Cédric Le Goater
2023-10-16 8:32 ` Cédric Le Goater
2023-10-10 7:52 ` [RFC PATCH 06/11] tests/avocado: Add FreeBSD distro boot tests for ppc Nicholas Piggin
2023-10-10 21:55 ` Warner Losh
2023-10-11 0:36 ` Nicholas Piggin
2023-10-11 4:24 ` Warner Losh
2023-10-11 2:23 ` Nicholas Piggin
2023-10-11 4:25 ` Warner Losh
2023-10-10 7:52 ` [RFC PATCH 07/11] tests/avocado: Add ppc boot tests for non-free AIX images Nicholas Piggin
2023-10-10 12:43 ` Alex Bennée
2023-10-10 12:49 ` Philippe Mathieu-Daudé
2023-10-10 21:21 ` Nicholas Piggin
2023-10-10 13:01 ` Daniel P. Berrangé
2023-10-10 21:14 ` Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 08/11] tests/avocado: Add ppc MacOS tests Nicholas Piggin
2023-10-10 7:58 ` Philippe Mathieu-Daudé
2023-10-11 0:25 ` Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 09/11] tests/avocado: Use default CPU for pseries machine Nicholas Piggin
2023-10-10 7:52 ` [RFC PATCH 10/11] ppc/spapr: change pseries machine default to POWER10 CPU Nicholas Piggin
2023-10-10 12:08 ` Joel Stanley
2023-10-16 8:16 ` Cédric Le Goater
2023-10-10 7:52 ` [RFC PATCH 11/11] ppc/pnv: Change powernv default to powernv10 Nicholas Piggin
2023-10-10 12:05 ` Joel Stanley
2023-10-10 20:57 ` Nicholas Piggin
2023-10-16 1:59 ` Joel Stanley
2023-10-16 8:15 ` Cédric Le Goater
2023-10-10 7:59 ` [RFC PATCH 00/11] ppc: avocado test additions and new defaults Philippe Mathieu-Daudé
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=c60120e5-7d07-4249-8bb8-335fd649e988@redhat.com \
--to=clegoate@redhat.com \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=npiggin@gmail.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=wainersm@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).