* [PATCH] kunit: qemu_configs: Add riscv32 config
@ 2025-04-07 8:17 Thomas Weißschuh
2025-04-12 6:53 ` David Gow
2025-06-10 16:28 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Weißschuh @ 2025-04-07 8:17 UTC (permalink / raw)
To: Brendan Higgins, David Gow, Rae Moar, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti
Cc: linux-kernel, linux-kselftest, kunit-dev, linux-riscv,
Thomas Weißschuh
Add a basic config to run kunit tests on riscv32.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
tools/testing/kunit/qemu_configs/riscv32.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/tools/testing/kunit/qemu_configs/riscv32.py b/tools/testing/kunit/qemu_configs/riscv32.py
new file mode 100644
index 0000000000000000000000000000000000000000..b79ba0ae30f8573035b3401be337b379eba97e26
--- /dev/null
+++ b/tools/testing/kunit/qemu_configs/riscv32.py
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0
+
+from ..qemu_config import QemuArchParams
+
+QEMU_ARCH = QemuArchParams(linux_arch='riscv',
+ kconfig='''
+CONFIG_NONPORTABLE=y
+CONFIG_ARCH_RV32I=y
+CONFIG_ARCH_VIRT=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+''',
+ qemu_arch='riscv32',
+ kernel_path='arch/riscv/boot/Image',
+ kernel_command_line='console=ttyS0',
+ extra_qemu_params=['-machine', 'virt'])
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250214-kunit-qemu-riscv32-fb38d659c373
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@linutronix.de>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kunit: qemu_configs: Add riscv32 config
2025-04-07 8:17 [PATCH] kunit: qemu_configs: Add riscv32 config Thomas Weißschuh
@ 2025-04-12 6:53 ` David Gow
2025-06-10 16:28 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: David Gow @ 2025-04-12 6:53 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Brendan Higgins, Rae Moar, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Alexandre Ghiti, linux-kernel, linux-kselftest,
kunit-dev, linux-riscv
[-- Attachment #1.1: Type: text/plain, Size: 1641 bytes --]
On Mon, 7 Apr 2025 at 16:17, Thomas Weißschuh
<thomas.weissschuh@linutronix.de> wrote:
>
> Add a basic config to run kunit tests on riscv32.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> ---
Thanks very much: this is working well here (even if qemu for riscv32
is _slow_ on my machine)!
Reviewed-by: David Gow <davidgow@google.com>
Cheers,
-- David
> tools/testing/kunit/qemu_configs/riscv32.py | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/tools/testing/kunit/qemu_configs/riscv32.py b/tools/testing/kunit/qemu_configs/riscv32.py
> new file mode 100644
> index 0000000000000000000000000000000000000000..b79ba0ae30f8573035b3401be337b379eba97e26
> --- /dev/null
> +++ b/tools/testing/kunit/qemu_configs/riscv32.py
> @@ -0,0 +1,17 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
> +from ..qemu_config import QemuArchParams
> +
> +QEMU_ARCH = QemuArchParams(linux_arch='riscv',
> + kconfig='''
> +CONFIG_NONPORTABLE=y
> +CONFIG_ARCH_RV32I=y
> +CONFIG_ARCH_VIRT=y
> +CONFIG_SERIAL_8250=y
> +CONFIG_SERIAL_8250_CONSOLE=y
> +CONFIG_SERIAL_OF_PLATFORM=y
> +''',
> + qemu_arch='riscv32',
> + kernel_path='arch/riscv/boot/Image',
> + kernel_command_line='console=ttyS0',
> + extra_qemu_params=['-machine', 'virt'])
>
> ---
> base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
> change-id: 20250214-kunit-qemu-riscv32-fb38d659c373
>
> Best regards,
> --
> Thomas Weißschuh <thomas.weissschuh@linutronix.de>
>
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5281 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kunit: qemu_configs: Add riscv32 config
2025-04-07 8:17 [PATCH] kunit: qemu_configs: Add riscv32 config Thomas Weißschuh
2025-04-12 6:53 ` David Gow
@ 2025-06-10 16:28 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-riscv @ 2025-06-10 16:28 UTC (permalink / raw)
To: =?utf-8?q?Thomas_Wei=C3=9Fschuh_=3Cthomas=2Eweissschuh=40linutronix=2Ede=3E?=
Cc: linux-riscv, brendan.higgins, davidgow, rmoar, paul.walmsley,
palmer, aou, alex, linux-kernel, linux-kselftest, kunit-dev
Hello:
This patch was applied to riscv/linux.git (fixes)
by Shuah Khan <skhan@linuxfoundation.org>:
On Mon, 07 Apr 2025 10:17:12 +0200 you wrote:
> Add a basic config to run kunit tests on riscv32.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> ---
> tools/testing/kunit/qemu_configs/riscv32.py | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> [...]
Here is the summary with links:
- kunit: qemu_configs: Add riscv32 config
https://git.kernel.org/riscv/c/9aa08e761b67
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-10 19:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07 8:17 [PATCH] kunit: qemu_configs: Add riscv32 config Thomas Weißschuh
2025-04-12 6:53 ` David Gow
2025-06-10 16:28 ` patchwork-bot+linux-riscv
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).