From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49F19C79FA0 for ; Mon, 7 Sep 2026 16:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YqRz7kh9GA65pE9byU4+133n1tljEOvpx8kOxD8+E2s=; b=fal8iZH7fZnDCdLsgrakjKYcNm PRww7uy0Vvbje7lH+YUyyO+zQDeaQQaKhElQQLdFrkBQgiX7b5wULkpZQIAec05sp4OIzKLSgTmuS F2EeoPhHDVWuWqchQg/deV6yoxZZuP454rcMjv6RvCrm9HFeP3dLPw7tbtYo60YP7rW03ulbipAqf BW2/gr041xsTuwnE9EzAJFqLWMrApjJ9dBAb2HaKFKSXdajHcPhIQpkxbxmulUk5LPKsHWVQi/sdc 5UTzpCa1pkeMe/Lrq+0G0OoXNh1/zcYCR/L1swsSCXf7NXPrAUdAOLS6xJqaXVSqr8IBGp86Vzs0v 3qYYB3Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x3cLq-00000007JtG-0CmU; Mon, 07 Sep 2026 16:37:46 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x3cLo-00000007Jsc-1aPe for linux-arm-kernel@lists.infradead.org; Mon, 07 Sep 2026 16:37:44 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id D29A2601DE; Mon, 7 Sep 2026 16:37:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31BB61F00A3D; Mon, 7 Sep 2026 16:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788799063; bh=YqRz7kh9GA65pE9byU4+133n1tljEOvpx8kOxD8+E2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kj9ZlutWEW+hsUIPXmKg+enJK5UF3ivS1PX6eBAbwSJLQxjWFIrG6T+cZYCJdEipJ pApIwfPKHrWIXuVU4ioqDqg5BpZaeOpulEoiUwtw/wYHIyY5cYvzpWI8Y/JVNgNgYf c3Y2gI7w0QT/tUyiI0UcIBbOSR7zZvz8w4cFdTZLngGb3sqpZEJt4dl14DtrKTSJIX xNsejXmNUprfgbdQTUnNdyI9Wzg7wZ4T/b4R6EocHKmCiwbpMO9rnJ9kpi7hYonKm6 cme+a2sIz9PRgnNMVv3dv3a/3+9S2bJ15P3akcE61aILDqj+YCYgVNnLHyizFr/Ys7 PQiaKlG8AvYow== From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon , Arnd Bergmann , Ard Biesheuvel , Eric Biggers , Daniel Borkmann , Catalin Marinas , Alexei Starovoitov , Oliver Upton , Herbert Xu , Marc Zyngier Subject: [PATCH v2 01/14] selftests/arm64: Remove big-endian support Date: Mon, 7 Sep 2026 17:37:12 +0100 Message-ID: <20260907163726.17104-2-will@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260907163726.17104-1-will@kernel.org> References: <20260907163726.17104-1-will@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Big-endian support on arm64 depends on BROKEN, so the arm64 selftests do not need to worry about testing this configuration any more. Remove the 128-bit byte-swapping helper from the fp-ptrace test and the big-endian definition of RSEQ_SIG_DATA from the rseq test. Acked-by: Catalin Marinas Acked-by: Arnd Bergmann Acked-by: Marc Zyngier Acked-by: Eric Biggers Signed-off-by: Will Deacon --- tools/testing/selftests/arm64/fp/fp-ptrace.c | 19 +------------------ tools/testing/selftests/rseq/rseq-arm64.h | 5 ----- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/fp-ptrace.c b/tools/testing/selftests/arm64/fp/fp-ptrace.c index b435837c8c0e..9b184d78f4fd 100644 --- a/tools/testing/selftests/arm64/fp/fp-ptrace.c +++ b/tools/testing/selftests/arm64/fp/fp-ptrace.c @@ -115,23 +115,6 @@ static void handle_alarm(int sig, siginfo_t *info, void *context) got_alarm = true; } -#ifdef CONFIG_CPU_BIG_ENDIAN -static __uint128_t arm64_cpu_to_le128(__uint128_t x) -{ - u64 a = swab64(x); - u64 b = swab64(x >> 64); - - return ((__uint128_t)a << 64) | b; -} -#else -static __uint128_t arm64_cpu_to_le128(__uint128_t x) -{ - return x; -} -#endif - -#define arm64_le128_to_cpu(x) arm64_cpu_to_le128(x) - static bool sve_supported(void) { return getauxval(AT_HWCAP) & HWCAP_SVE; @@ -932,7 +915,7 @@ static void fpsimd_to_sve(__uint128_t *v, char *z, int vl) for (i = 0; i < __SVE_NUM_ZREGS; i++) { p = (__uint128_t *)&z[__SVE_ZREG_OFFSET(vq, i)]; - *p = arm64_cpu_to_le128(v[i]); + *p = v[i]; } } diff --git a/tools/testing/selftests/rseq/rseq-arm64.h b/tools/testing/selftests/rseq/rseq-arm64.h index 21e1626a7235..f9fecf941bf2 100644 --- a/tools/testing/selftests/rseq/rseq-arm64.h +++ b/tools/testing/selftests/rseq/rseq-arm64.h @@ -12,12 +12,7 @@ * matches code endianness. */ #define RSEQ_SIG_CODE 0xd428bc00 /* BRK #0x45E0. */ - -#ifdef __AARCH64EB__ -#define RSEQ_SIG_DATA 0x00bc28d4 /* BRK #0x45E0. */ -#else #define RSEQ_SIG_DATA RSEQ_SIG_CODE -#endif #define RSEQ_SIG RSEQ_SIG_DATA -- 2.55.0.979.g7e5102b832-goog