From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 ECEDD489866; Tue, 1 Sep 2026 17:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788282592; cv=none; b=X4OlM3fOCMU76IdCi0XNVeJ6Wuh5HuyBGEbCFl89RE3mqw6eOCexrU6vvHMiswqhfubuMMc1CPJ4G/pF4nMeMBXTtXW5BvN9vkVCraFWpnt7lSxuZBd6zpSta1THIg/NbfwGqWl5XL8IdgDp4YFBQcD5X22Oc+tN8s0h12DyTz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788282592; c=relaxed/simple; bh=yDqcvWjmApZFYi3sYMgKyJQuc1WrRv18LtEuTPnRUWI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CpOqV1ffsUwxYUhh3548MhBlGkU4bk6TZA1eIj/lRdQnQCMWsg/HwUIRei97UgY5dijJaN99tpK75wgtLN2ov8yMmrpJ+PSRmiDC7TZ5mvWKj4cMDz92S2HZvpI5CExZF9m5/3gtojfCE8rb/Muu+0hqMkuuXfzBrMZqGrCOFj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=abaNRV00; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="abaNRV00" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 692BE1F00A3A; Tue, 1 Sep 2026 17:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788282590; bh=IIoWTUlvXX13Appnh+taaKXv0sle6+B+jUGuGwjmcYU=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=abaNRV004TpvAQQP7LZEvPQGAs4yksHJQQ/KT6RR4k+deK/NPHpKXJwKmKwa+eURu XJsOh6v7k+ZETIqRlc2R6X2jN/YFQfjaqcMBz2R14sNyp7SLoki2K5tbhsQciVRw/c lFvtk7jV0xjGV56U8XgwZZWSovbPxtjdmMzwqgOCmHWCY+9Vdyw27BPXe4SshI1t1N rfIZom5sn6kNBcA8Na4+5mSiYX7KdOD/hVd6/Ciq1KkDQ1VOxZ+tqdv3nOTvKK4Wk6 LLC8Ah67V1PcSgKCeWIsiFIQ+44cGxVXrpbZZCJTgjH4tFmogxsSxEGVUSAiX0SYuK PbiQ973CQDj5g== From: Mark Brown Date: Tue, 01 Sep 2026 18:06:45 +0100 Subject: [PATCH 05/11] kselftest/arm64: Exit with an error code on data mismatches in fp-stress 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: 7bit Message-Id: <20260901-arm64-fp-stress-kvm-v1-5-31bce995b49b@kernel.org> References: <20260901-arm64-fp-stress-kvm-v1-0-31bce995b49b@kernel.org> In-Reply-To: <20260901-arm64-fp-stress-kvm-v1-0-31bce995b49b@kernel.org> To: Catalin Marinas , Will Deacon , Shuah Khan Cc: Marc Zyngier , Oliver Upton , Fuad Tabba , Mark Rutland , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2794; i=broonie@kernel.org; h=from:subject:message-id; bh=yDqcvWjmApZFYi3sYMgKyJQuc1WrRv18LtEuTPnRUWI=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBqlwbIHH7Ri4sFF3IW6/0tYNw/ZUaW+ah8bbzQL aN/igojoZyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCapcGyAAKCRAk1otyXVSH 0MXeB/sFbb8V+tj0pCZ5OSMtZxsUjQT6dJfd86NDA8ZTYwKfbO5pvXjEFM0kSO4x5TbJ3gdnxQN k5WPUq1WZMmJ8qYqw8XCgK/qju9o7V61Ewk8zzEylV7LFC7KTI+720fpe7spBtzTOENkOnqxLSi u1uUQ5SquRyQWdS6WgmuogF1iwLFiHjjC4Zefky+OD4bQtf1EYe+pVDbR8THTNv4h0+KGxHVFYj 98V988a4EJ273T9tKm+FTYgQJw9SKiILQ00/Jt9rj9mJyOnlwDxjYPVipf5RyWAcpkf9JgSGG/V SFC0XDJE90W0Mv7RElwZ2Si04UY8gpwQi1m+oVP9OGml8o1P X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Several of the fp-stress test loads have blocks at the end of their barf functions with a range of commented out options for how to exit the program after logging an error. Comments indicate that these were intended to interact with some long gone debugging code in the kernel. At the minute the option selected by all the programs is to delivera SIGABRT to themselves but there is no need to do this over a normal exit with a non zero status. In order to facilitate running as a KVM guest replace these repeated blocks with calls to exit_error(), this will integrate just as well with the fp-stress harness. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/sve-test.S | 14 +------------- tools/testing/selftests/arm64/fp/za-test.S | 14 +------------- tools/testing/selftests/arm64/fp/zt-test.S | 14 +------------- 3 files changed, 3 insertions(+), 39 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/sve-test.S b/tools/testing/selftests/arm64/fp/sve-test.S index 26efdbdd88f9..88c3220caf7c 100644 --- a/tools/testing/selftests/arm64/fp/sve-test.S +++ b/tools/testing/selftests/arm64/fp/sve-test.S @@ -515,19 +515,7 @@ function barf bl putdecn #endif - mov x8, #__NR_getpid - svc #0 -// fpsimd.c acitivty log dump hack -// ldr w0, =0xdeadc0de -// mov w8, #__NR_exit -// svc #0 -// ^ end of hack - mov x1, #SIGABRT - mov x8, #__NR_kill - svc #0 -// mov x8, #__NR_exit -// mov x1, #1 -// svc #0 + b exit_error endfunction function vl_barf diff --git a/tools/testing/selftests/arm64/fp/za-test.S b/tools/testing/selftests/arm64/fp/za-test.S index 7208bb2db9f1..4a5b4b37d475 100644 --- a/tools/testing/selftests/arm64/fp/za-test.S +++ b/tools/testing/selftests/arm64/fp/za-test.S @@ -326,19 +326,7 @@ function barf mov x0, x13 bl putdecn - mov x8, #__NR_getpid - svc #0 -// fpsimd.c acitivty log dump hack -// ldr w0, =0xdeadc0de -// mov w8, #__NR_exit -// svc #0 -// ^ end of hack - mov x1, #SIGABRT - mov x8, #__NR_kill - svc #0 -// mov x8, #__NR_exit -// mov x1, #1 -// svc #0 + b exit_error endfunction function vl_barf diff --git a/tools/testing/selftests/arm64/fp/zt-test.S b/tools/testing/selftests/arm64/fp/zt-test.S index c6cfbdeb2f0c..82a76bb2307a 100644 --- a/tools/testing/selftests/arm64/fp/zt-test.S +++ b/tools/testing/selftests/arm64/fp/zt-test.S @@ -256,19 +256,7 @@ function barf mov x0, x13 bl putdecn - mov x8, #__NR_getpid - svc #0 -// fpsimd.c acitivty log dump hack -// ldr w0, =0xdeadc0de -// mov w8, #__NR_exit -// svc #0 -// ^ end of hack - mov x1, #SIGABRT - mov x8, #__NR_kill - svc #0 -// mov x8, #__NR_exit -// mov x1, #1 -// svc #0 + b exit_error endfunction function svcr_barf -- 2.47.3