Message ID | cea04e5b971c959d823682e1e338c5c40d134f0c.1724309198.git.christophe.leroy@csgroup.eu (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91F20C5320E for <linux-mm@archiver.kernel.org>; Thu, 22 Aug 2024 07:14:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4B78A6B0123; Thu, 22 Aug 2024 03:14:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4131580009; Thu, 22 Aug 2024 03:14:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1EF086B0125; Thu, 22 Aug 2024 03:14:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id DFAA680009 for <linux-mm@kvack.org>; Thu, 22 Aug 2024 03:14:01 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A30B91A0513 for <linux-mm@kvack.org>; Thu, 22 Aug 2024 07:14:01 +0000 (UTC) X-FDA: 82479017082.15.541A88F Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by imf14.hostedemail.com (Postfix) with ESMTP id 8BB26100002 for <linux-mm@kvack.org>; Thu, 22 Aug 2024 07:13:59 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu; dmarc=pass (policy=quarantine) header.from=csgroup.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724310799; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+w5057F0bNv+xLFZqfMIzOONVXrbI7WDtq/qfAWpav4=; b=PhtyZlB3kh5OIp7GbTCEsa8GkecHBUvWrq+Br0Dn2/yUu3iOaqD2bwsg6BQ5CcQYkZmlJh 2eL8+BNkV1dZxYY1Uu7PMy7zGZrZ90BjvbIQHbptqqaHWD57MLHds27NtvffDPJcfngpnK OzosIJMlgukSVvwfGfXOYvkkkgGXjWo= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 93.17.235.10 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu; dmarc=pass (policy=quarantine) header.from=csgroup.eu ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724310799; a=rsa-sha256; cv=none; b=SFVladggb0px645yIxMyhYaSbEzBnx8bUs3jUD6Y89cqkdBOFOLmfbhFEcoOm5ChbAAyxQ 8oaBEEIBKDNGxnL+xuDri7/12Z0UEGubLX0K5bMGsYDpCGCHz025RVan2zJkz1EHvgoHzM H4ffdpjC0VGSnNp06PMbeYT6C8ej/SU= Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4WqDvH1Lg0z9sSY; Thu, 22 Aug 2024 09:13:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HrgTAL98uEO3; Thu, 22 Aug 2024 09:13:31 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4WqDvH0Z6sz9sSH; Thu, 22 Aug 2024 09:13:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 018F68B77D; Thu, 22 Aug 2024 09:13:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 4Xoul67SwRYa; Thu, 22 Aug 2024 09:13:30 +0200 (CEST) Received: from PO20335.idsi0.si.c-s.fr (PO16920.IDSI0.si.c-s.fr [192.168.232.181]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EC72A8B763; Thu, 22 Aug 2024 09:13:29 +0200 (CEST) From: Christophe Leroy <christophe.leroy@csgroup.eu> To: Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Naveen N Rao <naveen@kernel.org>, Andy Lutomirski <luto@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, "Theodore Ts'o" <tytso@mit.edu>, "Jason A. Donenfeld" <Jason@zx2c4.com>, Arnd Bergmann <arnd@arndb.de>, Andrew Morton <akpm@linux-foundation.org>, Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Shuah Khan <shuah@kernel.org> Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 08/17] powerpc: Add little endian variants of LWZX_BE and STWX_BE Date: Thu, 22 Aug 2024 09:13:16 +0200 Message-ID: <cea04e5b971c959d823682e1e338c5c40d134f0c.1724309198.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <cover.1724309198.git.christophe.leroy@csgroup.eu> References: <cover.1724309198.git.christophe.leroy@csgroup.eu> MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724310794; l=906; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=6H7T4OtghNGIKLYUW15IDF5ngiuRyCUv+bUYaWIueQo=; b=hNY+LGr2Rcm1FruX/Pi4TXpEpJ3NK0USBgOJB07umxT2MU3l11Qrgf0kRkvOEtaehX9BImGb3 aPlCV4CucUaA5+VROpxaJP9JVn4u1j8nncN+Akg3rm5xpKRsYhQxEMu X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 8BB26100002 X-Stat-Signature: urm5muz9uxx15nnru6m839f56spkera7 X-HE-Tag: 1724310839-152903 X-HE-Meta: U2FsdGVkX1/vGmUwEYXWD93doUS2wDxDqDLmdZzxqoI0LLtKGaCuMGLC/LhwJAn2Vg2A+o1WFz74acJbLdeGEQgf3icgRbCvJZPb+IDua7IECvLGGahkSU+KBIQJPE1m5ECN/qrA7uWCI/Bq1sJ2higK2V04ZkLAP8pJv0QUNsr1xwuYTOsHuoqThqGkzyBwN8qmoIALSmqWPL2bZZ6pSJZhJQNucDUfCUQO3sRomk823iRJptgYbIJR/R4FsJ3T68eK3bLSQC9R1rsW2T81AC5h97K471Nqoc1E7jFs+CKDBxbNGpo7lcJpiPmdDbvipqo7wBVeMGu+sL4VpninSGSrmgTlAxU0xbKT21Pr9KI6cg347o52CaGv9YilbilbCWLK6PcrkJ5M7mjlZXwGw/4Q+04ON+7MTe6+y1I24oHHkFaVH+j2PCJyVu2wKUIHeqPXt7sVsTtAHAZW9n1xdP2+OAeRFVdeeL7x9PcJi2FQhKAbOqOaLpRh1/li4uu9p1rSeP0N0dYkwpAqvkdUpqM4E9sI9TeqG/91Dbzp4ZqaSczIDD7Dt545sv6Jkzam+tjjeMZE2+GuAI61WkIbb4X9WUSyxNanauqwaO8ALvm39Qc2W4O3WLjJM344JOuJufn7ddVMCM83GZ4vW8he3fRHaBo/3ZXDE+BcNFz8IHLwojmNDBKMImcj12/IWnyQNpwF6p68FpnF0zDp3hgEiKGVfOYt7X114xydr2RQGLgYlBjiMWaEa+txn6ujL6rPR/6Gg0lNm22NzTfOJeVs+XUlXnPfOz4P9KfFOTrkCcZ4kZwhBtHcPkNUmMyzGbSfZkM5FQ4pwIYaTkErJj1UXQg3+FTG4mamyzDpzfbkLES0SmSw65hfLDdE4FweecFVHCtbpT+gvgJyk5KPxMG/H/cX5z5nZ+eMsCys+CINC+ykm6t6UlBu9F0FJfkmysKv1CbznDWvSBywM0nEgF8 Xq9kBF63 OIMhHvM3LhvYBEjNg43e8bTpoM5hgUlWagx56su06XjpyNr7sILaPiI4dALhPGNGVy2bINbAS5wTJkTIi3/EB9pn4KtgTXewyavv+1ifuICinmwce3Z2PysctkhEwGXAuTVsRq1NlgAkccF2DE2Hmaol338k3P9/PWZeguSgOUgCUams= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Wire up getrandom() vDSO implementation on powerpc
|
expand
|
diff --git a/arch/powerpc/include/asm/asm-compat.h b/arch/powerpc/include/asm/asm-compat.h index 2bc53c646ccd..6e53a80917ef 100644 --- a/arch/powerpc/include/asm/asm-compat.h +++ b/arch/powerpc/include/asm/asm-compat.h @@ -61,4 +61,12 @@ #endif +#ifdef __BIG_ENDIAN__ +#define LWZX_LE stringify_in_c(lwbrx) +#define STWX_LE stringify_in_c(stwbrx) +#else +#define LWZX_LE stringify_in_c(lwzx) +#define STWX_LE stringify_in_c(stwx) +#endif + #endif /* _ASM_POWERPC_ASM_COMPAT_H */
To support getrandom in VDSO which is based on little endian storage, add macros equivalent to LWZX_BE and STWX_BE for little endian accesses. Put them outside of __powerpc64__ #ifdef so that they can also be used for PPC32. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> --- arch/powerpc/include/asm/asm-compat.h | 8 ++++++++ 1 file changed, 8 insertions(+)