From nobody Fri Oct 2 07:46:14 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A8812DCC05; Tue, 4 Aug 2026 05:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821566; cv=none; b=UKfQu6zCz+cGCuxQCy011hzytcL+g2Vdp3tsMo+M0KfRQxyaGJ0o5Sre4YFLWV4PnPVGFBsqUPQ3BofznXOEx9hWAJRUVxmJjQTED/LK15x03oSUZ85ISpN7F2quQpRwR4LcAD1DtMZwWeQYT899LNwAGQRD0zNJHpgkaSDhXEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821566; c=relaxed/simple; bh=i7Blg6HS7FjCMvXc+I6pfZDVvxiekmlDjHKdB+lk7l8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FfBa/yNyTll5AfEKop/jKd7vgvFN9m3mFTtaeer1F/L4JtwfnOU3bk0oiIg3DVuIboYU4r5rVnALqmg6lJU4UoZYJ/+2Y3COpGuNaMxYjwhTUZRlkT0dFCUdrDjAR3Nso+W/1XVOZQJ3dNQjjvx2fjoq7ziue7WTm/4Gc5/Tths= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=UwaMfwWt; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="UwaMfwWt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1785821555; bh=i7Blg6HS7FjCMvXc+I6pfZDVvxiekmlDjHKdB+lk7l8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=UwaMfwWt/TrXemBHHokzGDrgi35+VENz71Wozd88y3hCNe5h7DCf/DOUVdUje4R7A XrhzNY9opr6KTaIGY16RiNjTmQtS6MAMYpGlQFkn4w6m81zq2nWywFfKaDEukDRwQL ISrjdHctkd9fmFGIKuz5mnFb5W+Z+73fclAfknwk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 04 Aug 2026 07:32:33 +0200 Subject: [PATCH 1/4] microblaze: uaccess: Zero out destination on failed get_user() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260804-kunit-microblaze-v1-1-6dcdfe12eb40@weissschuh.net> References: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> In-Reply-To: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> To: Michal Simek , Brendan Higgins , David Gow , Rae Moar Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785821555; l=1036; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=i7Blg6HS7FjCMvXc+I6pfZDVvxiekmlDjHKdB+lk7l8=; b=liGdz3+aLJ6SI6qQ8ylOeYSMqLoQEGA5APLNqqYIV+SV2lOn7JJal0+uJEZ3mqLQ+xARMYQfu lZI2iff/b3PAS09ATKLx3bQdHMDuGK8d6Tyw5gyFHw3QvxBpryc4cqO X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= On failure get_user() is supposed to zero out the destination variable. This is documented in the kdoc of the microblaze get_user() implementation and validated in lib/tests/usercopy_kunit.c. Currently that zeroing is missing. Add it. Fixes: 0d6de9532663 ("microblaze_mmu_v2: uaccess MMU update") Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: David Gow --- arch/microblaze/include/asm/uaccess.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/includ= e/asm/uaccess.h index afa0dd8d013f..77203af255e5 100644 --- a/arch/microblaze/include/asm/uaccess.h +++ b/arch/microblaze/include/asm/uaccess.h @@ -95,7 +95,8 @@ extern long __user_bad(void); #define get_user(x, ptr) ({ \ const typeof(*(ptr)) __user *__gu_ptr =3D (ptr); \ access_ok(__gu_ptr, sizeof(*__gu_ptr)) ? \ - __get_user(x, __gu_ptr) : -EFAULT; \ + __get_user(x, __gu_ptr) : \ + ((x) =3D 0, -EFAULT); \ }) =20 #define __get_user(x, ptr) \ --=20 2.55.0 From nobody Fri Oct 2 07:46:14 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A9142F549F; Tue, 4 Aug 2026 05:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821565; cv=none; b=fiPuSxzRRhW+B2migB/6d8obUxypDD6uMANLjR+r9t+WpZZn+9OHYpy3yM9CL32R3YCF/HuxSzHH7AXXX+B1l7Gyz5SbpwYoR4AuCwhoVHvMC1pickRDYMcxxoAN0qxPLuoUJrz15RPC9vmSy8UVqSoNODH32y1Ue5C750A2erY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821565; c=relaxed/simple; bh=qixbBq7k4YBaI4/OV+RQ152xtR4OYpge7ewoXR+VjIs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ci1VAreieK7fueXOAUEQ5JrmVCZ+nsqLvJi+qd7RT4/NXfGMo3/RKI8sDanQJ/SBF7dj1p7fpsk0rEgMisbN8dhW7i+ybaX+St+70AgA9L1IVi901L0S5pKxuSLQ2iSm00aMtp99y6TBHNzll51qNJnCMXoUTT2dNctwAJEOg9U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=h2HSEI1v; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="h2HSEI1v" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1785821555; bh=qixbBq7k4YBaI4/OV+RQ152xtR4OYpge7ewoXR+VjIs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=h2HSEI1vaeFg0fEBPHY7SpnXbfPg2Wg8vB9ONWGYTPmveq+M9oViBkIRDXA7B7M2A iMB7SGKgENS10uIxgJKwgIubtPfXJb/Zif1j1R3zKdWzvUkrX8o479wDQ5l3f2Mcln SoqAt0jWlu6wDilEOepfDY9hdVicmC0Fagf1XcLg= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 04 Aug 2026 07:32:34 +0200 Subject: [PATCH 2/4] microblaze: reset: Call POWER_OFF handlers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260804-kunit-microblaze-v1-2-6dcdfe12eb40@weissschuh.net> References: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> In-Reply-To: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> To: Michal Simek , Brendan Higgins , David Gow , Rae Moar Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785821555; l=733; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=qixbBq7k4YBaI4/OV+RQ152xtR4OYpge7ewoXR+VjIs=; b=tynOwURVoKpTj3HfBD2gMDRsT27IwbyIcrVdn0UhC/Eo2RoUFKNOpe6bC36hi93tfwGRZ9cKi Yg2O5tbT2FJDb66bx8GA0uh1cCFyLQ/sQa4bwt1i72/XNyZAtUMrbLI X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= System power off might be implemented through sys_off handlers. Currently these are not respected on microblaze. On power_off call into the generic power off function which will execute all regustered handlers. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: David Gow --- arch/microblaze/kernel/reset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/microblaze/kernel/reset.c b/arch/microblaze/kernel/reset.c index 2f66c7963084..3612a20ca16d 100644 --- a/arch/microblaze/kernel/reset.c +++ b/arch/microblaze/kernel/reset.c @@ -27,6 +27,7 @@ void machine_halt(void) =20 void machine_power_off(void) { + do_kernel_power_off(); pr_notice("Machine power off...\n"); while (1) ; --=20 2.55.0 From nobody Fri Oct 2 07:46:14 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 129F13264E9; Tue, 4 Aug 2026 05:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821565; cv=none; b=dh3QLAsl8qJCgrbqNCYsSl1T8+2P8QLg8nplaZTIqWll03GbNAgE5KRaNMH4ZDzo7W8ap6IiuaeLPaoXyTtFFwZ2nC+9v5VXHYbaUdZWWXLV6Sy1vktlDE5vz7csKFIB6HKx0ilmTu7sIGAZsiKdYAdhPbL/ANUKzbKD+zq1cjs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821565; c=relaxed/simple; bh=m1wAGTVAnMlw7a7kXInoWv0uxOFJUKsjvMWoHPv+kR8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sP+GWi02aBcZLSniLN/pjfCB95EX8C0/JrCH9+kGIdjiLbIbdwZLfRf6vqnQfh8gva92mv2XhesJUk1yrCUT3VwbFD0WwmcvdXryPkSc882/1kLUQcYEhkR6nOY5QaGyhhOyaVNs7b8E7iRIWe7/xbXwlvx6W/UZ7v2KIN7civg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=DYL8Zl8Y; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="DYL8Zl8Y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1785821555; bh=m1wAGTVAnMlw7a7kXInoWv0uxOFJUKsjvMWoHPv+kR8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=DYL8Zl8YxxOUEDJV3gzX1YeaQKsHb/quP7YFvBK46HZjXngoYW0jskCqVO+MF+/93 3CETfEafqruj+QBvSbkezz34c/4pVJLThKpDw6dagbTBViW0ldgUuz302Ty8LZgXeY VRbWxbHYZ1o/H1TxJd8dpuhg92hz6o4/rZmuLXvo= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 04 Aug 2026 07:32:35 +0200 Subject: [PATCH 3/4] microblaze: reset: Provide a power off handler through an unaligned PC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260804-kunit-microblaze-v1-3-6dcdfe12eb40@weissschuh.net> References: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> In-Reply-To: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> To: Michal Simek , Brendan Higgins , David Gow , Rae Moar Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785821555; l=2279; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=m1wAGTVAnMlw7a7kXInoWv0uxOFJUKsjvMWoHPv+kR8=; b=ejZgvbNlQtaGcgBHxZ+o2882hDVqXKn2gvYvJY7SiV2cwh+Aj/XZZBvQrkwJSTSkHiPK7gHeE n77jA/zD8cXA5zOouKX0BNu7ZXEeodBXxw58t5ZYgl3K3DSxSldC0Sp X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= microblaze is missing a generic architecture-wide power off mechanism. To enable KUnit for microblaze it is necessary for KUnit to shut down the machine in a way that QEMU will recognize. The machines emulated by QEMU do not provide machine-specific power off functionality which could be used. However at least the petalogix-s3adsp1800 machine will abort if an unaligned instruction is executed. An ugly message will be printed but that is not an issue for KUnit. Make use of this to provide a power off handler. Signed-off-by: Thomas Wei=C3=9Fschuh Tested-by: David Gow --- This is quite hacky. But I didn't find a better solution. --- arch/microblaze/Kconfig | 9 +++++++++ arch/microblaze/kernel/reset.c | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig index 484ebb3baedf..0ca8999dd770 100644 --- a/arch/microblaze/Kconfig +++ b/arch/microblaze/Kconfig @@ -216,3 +216,12 @@ config MB_MANAGER Say N here unless you know what you are doing. =20 endmenu + +config MB_POWER_OFF_THROUGH_UNALIGNED_PC + bool "Power off through unaligned PC" + help + This options adds a power off handler which executes an unaligned PC + so the machine resets in a generic way. This works for the + petalogix-s3adsp1800 QEMU machine. + + Say N here unless you know what you are doing. diff --git a/arch/microblaze/kernel/reset.c b/arch/microblaze/kernel/reset.c index 3612a20ca16d..4af660deed3b 100644 --- a/arch/microblaze/kernel/reset.c +++ b/arch/microblaze/kernel/reset.c @@ -41,3 +41,24 @@ void machine_restart(char *cmd) pr_emerg("Reboot failed -- System halted\n"); while (1); } + +#ifdef CONFIG_MB_POWER_OFF_THROUGH_UNALIGNED_PC +static int unaligned_pc_sys_off(struct sys_off_data *data) +{ + __asm__( + "bri 1\n" + ); + + return NOTIFY_DONE; +} + +static int __init register_unaligned_pc_sys_off(void) +{ + struct sys_off_handler *sys_off; + + sys_off =3D register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO= _LOW, + unaligned_pc_sys_off, NULL); + return PTR_ERR_OR_ZERO(sys_off); +} +device_initcall(register_unaligned_pc_sys_off); +#endif /* CONFIG_MB_POWER_OFF_THROUGH_UNALIGNED_PC */ --=20 2.55.0 From nobody Fri Oct 2 07:46:14 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FA3933F5A5; Tue, 4 Aug 2026 05:32:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821565; cv=none; b=k2hs0GQsNS3XbgSxloj6vNrVB5RDjeziN2mjbLPp9it+QIxQ2Vr/CHa8QLdZxW0ShLGedwiPZbA90U3gTX3o5G3vUd1MY58k/T7GWGxhFWfzKjl5zfu0/LChzWfti99THa2gY2zfiXyc4WDam/9l/CUyKwEJTHMvr9UTCIhal4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785821565; c=relaxed/simple; bh=NdFfg3SF/iaHfGjuGYNhsRQIGr8ZwCnOpggOOjBqlBc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UAMKD9rxIAuhfNKmEebPEIsz7/u3U3xpdH99fhV0agNVjCiv1H59qCHuochOqlfPdMjKqY372u4pAQoqRO57FcEK20T7KBMFDSUa9oVpcVbOvYceEVNyvqDVpcVCwauXwYFzmLLC8rwGn+xgp5JHvwPYouTfBimt9Z9Wn4+dsGk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=iSBj8uNg; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="iSBj8uNg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1785821555; bh=NdFfg3SF/iaHfGjuGYNhsRQIGr8ZwCnOpggOOjBqlBc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=iSBj8uNgCNa2Sj6NGynV5ijFO62T+LE2JLXEpswtiE+QYyVTbuvWihXZsGKbtaUmd udBRxRFkgPpX6qbgF67fs1rDdp0QLWFoBFRgzPU2SqLfjJaIZkLC9hvKygXqfr5AvM 9qN5jrW2u3VJPWhHnHPFtA792iPKI0pGzMu6Icrw= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 04 Aug 2026 07:32:36 +0200 Subject: [PATCH 4/4] kunit: qemu_configs: Add microblaze configuration Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260804-kunit-microblaze-v1-4-6dcdfe12eb40@weissschuh.net> References: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> In-Reply-To: <20260804-kunit-microblaze-v1-0-6dcdfe12eb40@weissschuh.net> To: Michal Simek , Brendan Higgins , David Gow , Rae Moar Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785821555; l=1045; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=NdFfg3SF/iaHfGjuGYNhsRQIGr8ZwCnOpggOOjBqlBc=; b=yVZZAlDFhXqE8bqSO5CLDtTUIeD+W3pIOhm9bCyhiKW6UIumgfjd6e6bc2fTby+M4LCeokESl I6ZSgtcKM9DCg4cHT6bjXIyz7g9lnuanKPHi2O/jD1JP5AdMi0+h4wH X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Add a basic configuration to run kunit tests on microblaze. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/microblaze.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tools/testing/kunit/qemu_configs/microblaze.py b/tools/testing= /kunit/qemu_configs/microblaze.py new file mode 100644 index 000000000000..ff012095e77d --- /dev/null +++ b/tools/testing/kunit/qemu_configs/microblaze.py @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0-only +from ..qemu_config import QemuArchParams + +QEMU_ARCH =3D QemuArchParams(linux_arch=3D'microblaze', + kconfig=3D''' +CONFIG_CPU_BIG_ENDIAN=3Dy +CONFIG_SERIAL_UARTLITE=3Dy +CONFIG_SERIAL_UARTLITE_CONSOLE=3Dy +CONFIG_MB_POWER_OFF_THROUGH_UNALIGNED_PC=3Dy +''', + qemu_arch=3D'microblaze', + kernel_path=3D'arch/microblaze/boot/linux.bin', + kernel_command_line=3D'kunit_shutdown=3Dpoweroff', + extra_qemu_params=3D[ + '-M', 'petalogix-s3adsp1800', + ], +) --=20 2.55.0