[PATCH] kunit: qemu_configs: Add riscv32 config

0 views
Skip to first unread message

Thomas Weißschuh

unread,
Apr 7, 2025, 4:17:20 AM4/7/25
to Brendan Higgins, David Gow, Rae Moar, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, linux-...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux...@lists.infradead.org, Thomas Weißschuh
Add a basic config to run kunit tests on riscv32.

Signed-off-by: Thomas Weißschuh <thomas.w...@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.w...@linutronix.de>

David Gow

unread,
Apr 12, 2025, 2:53:43 AM4/12/25
to Thomas Weißschuh, Brendan Higgins, Rae Moar, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, linux-...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux...@lists.infradead.org
On Mon, 7 Apr 2025 at 16:17, Thomas Weißschuh
<thomas.w...@linutronix.de> wrote:
>
> Add a basic config to run kunit tests on riscv32.
>
> Signed-off-by: Thomas Weißschuh <thomas.w...@linutronix.de>
> ---

Thanks very much: this is working well here (even if qemu for riscv32
is _slow_ on my machine)!

Reviewed-by: David Gow <davi...@google.com>

Cheers,
-- David

patchwork-bo...@kernel.org

unread,
Jun 10, 2025, 12:28:00 PM6/10/25
to "Thomas Weißschuh <thomas.weissschuh@linutronix.de>"@aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org, linux...@lists.infradead.org, brendan...@linux.dev, davi...@google.com, rm...@google.com, paul.w...@sifive.com, pal...@dabbelt.com, a...@eecs.berkeley.edu, al...@ghiti.fr, linux-...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com
Hello:

This patch was applied to riscv/linux.git (fixes)
by Shuah Khan <sk...@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.w...@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


Reply all
Reply to author
Forward
0 new messages