Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH 0/4] kunit: Add support for LoongArch
@ 2024-10-14 11:36 Thomas Weißschuh
  2024-10-14 11:36 ` [PATCH 1/4] LoongArch: Don't crash in stack_top() for tasks without vDSO Thomas Weißschuh
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Thomas Weißschuh @ 2024-10-14 11:36 UTC (permalink / raw)
  To: Huacai Chen, WANG Xuerui, Jiaxun Yang, Brendan Higgins, David Gow,
	Rae Moar
  Cc: loongarch, linux-kernel, linux-kselftest, kunit-dev,
	Thomas Weißschuh

Enable LoongArch support in kunit.

Example:

	$ ./tools/testing/kunit/kunit.py run --arch=loongarch --cross_compile=$CROSS_COMPILE
	[13:32:45] Configuring KUnit Kernel ...
	[13:32:45] Building KUnit Kernel ...
	Populating config with:
	$ make ARCH=loongarch olddefconfig CROSS_COMPILE=$CROSS_COMPILE
	Building with:
	$ make all compile_commands.json ARCH=loongarch --jobs=8 CROSS_COMPILE=$CROSS_COMPILE
	[13:32:48] Starting KUnit Kernel (1/1)...
	[13:32:48] ============================================================
	Running tests with:
	$ qemu-system-loongarch64 -nodefaults -m 1024 -kernel .kunit/arch/loongarch/boot/vmlinux.elf -append 'kunit.enable=1 console=ttyS0 kunit_shutdown=poweroff' -no-reboot -nographic -serial stdio -machine virt -device pvpanic-pci -cpu max

	...

	[13:33:14] ============================================================
	[13:33:14] Testing complete. Ran 493 tests: passed: 453, skipped: 40
	[13:33:14] Elapsed time: 28.862s total, 0.002s configuring, 2.526s building, 26.302s running
	

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (4):
      LoongArch: Don't crash in stack_top() for tasks without vDSO
      kunit: qemu_configs: add LoongArch config
      kunit: tool: Allow overriding the shutdown mode from qemu config
      kunit: qemu_configs: loongarch: Enable shutdown

 arch/loongarch/kernel/process.c               | 16 +++++++++-------
 tools/testing/kunit/kunit_kernel.py           |  4 +++-
 tools/testing/kunit/qemu_configs/loongarch.py | 19 +++++++++++++++++++
 3 files changed, 31 insertions(+), 8 deletions(-)
---
base-commit: 6485cf5ea253d40d507cd71253c9568c5470cd27
change-id: 20241014-kunit-loongarch-98a5b756e818

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-10-17 20:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14 11:36 [PATCH 0/4] kunit: Add support for LoongArch Thomas Weißschuh
2024-10-14 11:36 ` [PATCH 1/4] LoongArch: Don't crash in stack_top() for tasks without vDSO Thomas Weißschuh
2024-10-15  2:15   ` Huacai Chen
2024-10-15  6:14     ` Thomas Weißschuh
2024-10-15  6:21       ` Huacai Chen
2024-10-17  7:28   ` David Gow
2024-10-14 11:36 ` [PATCH 2/4] kunit: qemu_configs: add LoongArch config Thomas Weißschuh
2024-10-15  7:31   ` maobibo
2024-10-17  7:24   ` David Gow
2024-10-17 20:27   ` Shuah Khan
2024-10-17 20:31     ` Thomas Weißschuh
2024-10-17 20:36       ` Shuah Khan
2024-10-14 11:36 ` [PATCH 3/4] kunit: tool: Allow overriding the shutdown mode from qemu config Thomas Weißschuh
2024-10-17  7:24   ` David Gow
2024-10-14 11:36 ` [PATCH 4/4] kunit: qemu_configs: loongarch: Enable shutdown Thomas Weißschuh
2024-10-15  7:31   ` maobibo
2024-10-17  7:25   ` David Gow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox