From patchwork Tue Apr 15 13:38:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 14052253 X-Patchwork-Delegate: brendanhiggins@google.com Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 DD57B17A2E6; Tue, 15 Apr 2025 13:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744724297; cv=none; b=d8+TVAkTn69m/D5z0WinQeUf1uSPFLBkn7vnm7dto66Pzl+T1MhOe9j/jiS8VKNI9HacZupikz/MsEi4mFvERdVSDqdifd5zWKEyfMqL8DrwV5X0/S+GNy2LCDYyUtBfW38DhaXI0mvnXRAKJAF93Ozzrx7zlMxl81O/arNuFTo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744724297; c=relaxed/simple; bh=CRmSE44PtL62RA/OUQ0Ro36Qg+FCiIzngXc88ZUyEas=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MqCGfdEeR4tlGihkq0/yy6FzZ6vEpcmacmoZq1JhH0D4O5gfpz5m3RZ/WVJc2KXFfKlAS+yfa50OqLNvfnNz4tmeRMZQUR+W34RL/dq12rhv7vbb0UFqZg7/IcxIWeLzZHUV5eMaUuwKH8potxaU+nMgcg1AemuX5cjNSGT1LcE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2BCyJHjT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LV5MtKPI; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2BCyJHjT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LV5MtKPI" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1744724293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=awzhLtQe988u1/wspRET6fjeWqJnT8OCJfAgCbHL5VM=; b=2BCyJHjTBJs73rpG2yJ/7oKrIin+CshUIaRRDnGrxD23La/Ib5ma/SjuUOrQHSiBuySGrq 6im4DAJa3IcP7ZuG+6yAaPtlvfIPRAYMrFmQ2j8st3Td/hajNym8q8gW6OIks0EFBfxUHI rXBJnid5GW54IPdUO/MOkVAFJsfS0nSRsSN6QH1LniBCMYCqPzcHzGhoRXtMeULKHPWrRW WtCbEH38rH4QhsVtdAfBuSYoVQDSAKbC5HKd6L9fsZKTQmyuJiFOImur9GjJVnLQ5+U1Jz aKpq9FGdeWzWf6PUybzOF9XXgiV0zQdKLseqylBxEUpwx80zYzTGrKZf9W35bg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1744724293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=awzhLtQe988u1/wspRET6fjeWqJnT8OCJfAgCbHL5VM=; b=LV5MtKPI6wVvNANjBeX7iXVldy+4rZ4x1cz61FsDJ1XEun8OonICJOwnam4ucuXB70yk9O bqarrkXWaece0bAQ== Date: Tue, 15 Apr 2025 15:38:05 +0200 Subject: [PATCH 1/2] kunit: qemu_configs: sparc: Explicitly enable CONFIG_SPARC32=y Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250415-kunit-qemu-sparc64-v1-1-253906f61102@linutronix.de> References: <20250415-kunit-qemu-sparc64-v1-0-253906f61102@linutronix.de> In-Reply-To: <20250415-kunit-qemu-sparc64-v1-0-253906f61102@linutronix.de> To: Brendan Higgins , David Gow , Rae Moar Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1744724292; l=901; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=CRmSE44PtL62RA/OUQ0Ro36Qg+FCiIzngXc88ZUyEas=; b=mgeQJxMT7Xfp8DxzglQ5dgPJ+IOJh+BzAAggwhmhfG5QBp3n0612aHK5psrXmX14P+64rxkzg nAEbLPxzSYUAbAKuSJVTX51GM4ww8Jtw6x/fGRmjBALcvgEjLdCitBq X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The configuration generated by kunit ends up with a 32bit configuration. A new kunit configuration for 64bit is to be added. To make the difference clearer spell out the variant in the kunit reference config. Signed-off-by: Thomas Weißschuh Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/sparc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/kunit/qemu_configs/sparc.py b/tools/testing/kunit/qemu_configs/sparc.py index 256d9573b44646533d1a6f768976628adc87921e..3131dd299a6e34f027402e99e34d85ddcaa359b7 100644 --- a/tools/testing/kunit/qemu_configs/sparc.py +++ b/tools/testing/kunit/qemu_configs/sparc.py @@ -2,6 +2,7 @@ from ..qemu_config import QemuArchParams QEMU_ARCH = QemuArchParams(linux_arch='sparc', kconfig=''' +CONFIG_SPARC32=y CONFIG_SERIAL_SUNZILOG=y CONFIG_SERIAL_SUNZILOG_CONSOLE=y ''', From patchwork Tue Apr 15 13:38:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 14052254 X-Patchwork-Delegate: brendanhiggins@google.com Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 AB115183CA6; Tue, 15 Apr 2025 13:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744724297; cv=none; b=qYJBFv0mhxDC5PpgcJ6xUEIjdRPUtOJ5NuLObANzL8Fg7Veo4opQwGHRYIKIViHn0/pjea5rLqI8742IotLXuy9E7a07ioUyEIfAufD/iEVdeiCZ+6Ssy4arLPkolSzLth1fndv3SN+H1OqgudwCMIGVIam8PU4PyEPwiWEL9e0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744724297; c=relaxed/simple; bh=8Nw99pvz6dERF5uadTuhGHfV7Lz+32HtJ8fnKFGggWg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u8FHjc/dug2DD23KwxPcXILamgGdlD4VSOpjypJe8IZyhofDlDa1yU+leZTQ5XRqkpllbUVykIAGgUnaLk/2hpLGcAM1xls5N0gpGed9wRm41W3iYFcfapKYMIeZxEsmcZMTYC9Tj/uwfyVpo/Hsn5RqcLSN871RxrHklGzp+kg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=W3Bkeu7C; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ydmg8Rwh; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="W3Bkeu7C"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ydmg8Rwh" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1744724293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4hRFvNpWqj6nUWyPtn59a6PmgMLEAD4yPt5akiJAYv4=; b=W3Bkeu7C8jnqYzH5wztyfFHaxHYzsvzSg1rXASH2O/HST1FfG4R9IsjmAr4LdHvt6aHxDJ U5H7CymmktdA8nF5CmqZ/LQ6ya6jStpyejQinZW8SEXpWOHWnmmBxx8XBIEJ/mI6LD+5Fj ANtK0EqXgsOltY+g7+lJIgqpoiHy7xMuHTmaYT027T05slABLeaGRojB+oWm1cXsxUcddj DW5qBtnRxD1hj0rMB4ACU+u3vMX9BOVD1/2KPsipw+iSipHjKgRApsFF/qd3FFGMWu7ynf mPNUalyY3LQELiR5Kxz0VwsT0ZQyY2K9u3pNpivQQKcmO2BDMvxpfJYlItt4RQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1744724293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4hRFvNpWqj6nUWyPtn59a6PmgMLEAD4yPt5akiJAYv4=; b=ydmg8RwhjpVq2QumLUSU74RYASJBEaDAvDv2b4lhRV28Ipn00FFKg0DCDANwiLI7EOHMYG 76dH2KYQj0eYuBBQ== Date: Tue, 15 Apr 2025 15:38:06 +0200 Subject: [PATCH 2/2] kunit: qemu_configs: Add 64-bit SPARC configuration Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250415-kunit-qemu-sparc64-v1-2-253906f61102@linutronix.de> References: <20250415-kunit-qemu-sparc64-v1-0-253906f61102@linutronix.de> In-Reply-To: <20250415-kunit-qemu-sparc64-v1-0-253906f61102@linutronix.de> To: Brendan Higgins , David Gow , Rae Moar Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1744724292; l=993; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=8Nw99pvz6dERF5uadTuhGHfV7Lz+32HtJ8fnKFGggWg=; b=ngS5iuZKYGbLgqNtluVDdtx3AmNvrU1EG1qP/kp1BcI+UtybHHGHsysDVPaKyn59BiCrIiXZa Doi6Mf7FHeIDAvKWmiTbt0z120P1qzbnsF7e6x2U8GfLudCT1ecK7WS X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Add a basic config to run kunit tests on 64-bit SPARC. Signed-off-by: Thomas Weißschuh Reviewed-by: David Gow --- tools/testing/kunit/qemu_configs/sparc64.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/testing/kunit/qemu_configs/sparc64.py b/tools/testing/kunit/qemu_configs/sparc64.py new file mode 100644 index 0000000000000000000000000000000000000000..53d4e5a8c972b96efc72f6b69fe83463499ef847 --- /dev/null +++ b/tools/testing/kunit/qemu_configs/sparc64.py @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0 + +from ..qemu_config import QemuArchParams + +QEMU_ARCH = QemuArchParams(linux_arch='sparc', + kconfig=''' +CONFIG_64BIT=y +CONFIG_SPARC64=y +CONFIG_PCI=y +CONFIG_SERIAL_SUNSU=y +CONFIG_SERIAL_SUNSU_CONSOLE=y +''', + qemu_arch='sparc64', + kernel_path='arch/sparc/boot/image', + kernel_command_line='console=ttyS0 kunit_shutdown=poweroff', + extra_qemu_params=[])