Message ID | 20240223-leverage-walmart-5424542cd8bd@spud (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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 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 96000C54798 for <linux-riscv@archiver.kernel.org>; Fri, 23 Feb 2024 13:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=aVV9WLKE08N1dmnjbBLOkNUL+tpFoeGzwbvrIsVKtlw=; b=KJR8n1R6S6XdbE O0CMO2kMCnINuaOiFwyJshA6HBYoX0CjGH0fwjXHR8tC38TdnYpd/Er6a+ZBnv9XTy35b+oO2lxSZ lVLZAAkr/m1lSmG5auvr257OrNHMWCq2m8qWdrTUpeSKDKdL3St2SIbK27/ehFTQJWbol9havBrbj gF7LrMxbGFE1TL+9WfuZWQ7i3/zmoL5735nVfcRDqaI3mZrXUsgpZPw6gv4QKGtX98e8Ho66jsJBI l3+LynUfG2ZHfcizmFG65bLpW7rR5pFtEzxZ1Upk9BKxKy6yMpBQ6O1YokTS9ABcbWjHcZTbvSqy0 O0QMazDnr9An5Fc33OpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdVlC-00000009b80-2vHR; Fri, 23 Feb 2024 13:38:42 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdVl9-00000009b5U-0PHl for linux-riscv@lists.infradead.org; Fri, 23 Feb 2024 13:38:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id AE9BACE2A9D; Fri, 23 Feb 2024 13:38:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B284C433C7; Fri, 23 Feb 2024 13:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708695513; bh=7Fsxt5dUnwFrhpCWGP+0Mujqc3o+HtSLor3KISLhljg=; h=From:To:Cc:Subject:Date:From; b=XoneYX3fUtHPv/QtDZAlU3gHMtogjPJMXJG0fKir4kkVyqoMQML0T7gyb5110b4YG KUCFwNlKqmsZfwbRrzD+8/a5t4Sa8LL+rwEElpO28omgZQxBqNIUxl/wsiDpL/xzx7 Ilrf3jD1w7e0snf14FHGxB9DyjgiYQTFh5ib2D2zquDh7vx84D/bCQn9SV+D7+8Zxj UZFUmE3hQjFv6Z45O9WScBCiiqz4Lwe3ukGIUCXfeWptMwU1lhroo4BEXI53pRWgr2 nS7b1DRD0guVYixLerEMCwstXo8isimJ2KLRjToXNVws/oXu95oIXDY63mgKD1Sx3A BPUJChTRrtryQ== From: Conor Dooley <conor@kernel.org> To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley <conor.dooley@microchip.com>, Miguel Ojeda <ojeda@kernel.org>, Alex Gaynor <alex.gaynor@gmail.com>, Wedson Almeida Filho <wedsonaf@gmail.com>, Boqun Feng <boqun.feng@gmail.com>, Gary Guo <gary@garyguo.net>, =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= <bjorn3_gh@protonmail.com>, Jonathan Corbet <corbet@lwn.net>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Tom Rix <trix@redhat.com>, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH v2 0/3] RISC-V: enable rust Date: Fri, 23 Feb 2024 13:38:02 +0000 Message-ID: <20240223-leverage-walmart-5424542cd8bd@spud> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2176; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=Q8gmemx8ug1xAd70cV163zIEsT6BGWLzhKHazmMK2rg=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk35u95x9GhKR107q3o3E9S/JuMvfbMDNu+5IpYxtQMh sazwsHsHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZjI0kRGhr+fNvi/eLe2Xc6q o/h1Wg/PNvEtmt4G9+2XSp20c7VI/c/wi1lP9lxgrcS6zU92qRf1vp5zZNu/oh16AUHhxyf8uh+ xmw0A X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_053839_535299_D5F72B89 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org |
Series | RISC-V: enable rust | expand |
From: Conor Dooley <conor.dooley@microchip.com> Now with a patch to disable RUST if CFI_CLANG is enabled. I've also intentionally not turned on the gcc support, as discussed on v1. As this was lifted from the state of the Rust-for-Linux tree, the commit messages from there cannot be preserved, so these patches have commit messages that I wrote. I've tested this on Icicle, and the modules seem to work as expected. Unfortunately there appear to be implicit 32-bit divisions (or similar) in core Rust code, so, as in the downstream Rust-for-Linux tree, Rust is only enabled for 64-bit. Thanks, Conor. Changes in v2: - Rebase, since a good bit of time has passed! - Add the extra patch, disabling when CFI_CLANG is enabled. Changes in v1: - rebase on v6.3-rc1 - resort the `um` entry in the arch-support table while adding RISC-V to it - drop 32-bit bits - have another crack at assigning authorship Changes in RFC-RESEND: - fix the asymmetrical additions in the Makefile bits - add cc-cover to my git send-email command... CC: Miguel Ojeda <ojeda@kernel.org> CC: Alex Gaynor <alex.gaynor@gmail.com> CC: Wedson Almeida Filho <wedsonaf@gmail.com> CC: Boqun Feng <boqun.feng@gmail.com> CC: Gary Guo <gary@garyguo.net> CC: Björn Roy Baron <bjorn3_gh@protonmail.com> CC: Jonathan Corbet <corbet@lwn.net> CC: Paul Walmsley <paul.walmsley@sifive.com> CC: Palmer Dabbelt <palmer@dabbelt.com> CC: Nathan Chancellor <nathan@kernel.org> CC: Nick Desaulniers <ndesaulniers@google.com> CC: Tom Rix <trix@redhat.com> CC: rust-for-linux@vger.kernel.org CC: linux-doc@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: linux-riscv@lists.infradead.org CC: llvm@lists.linux.dev Conor Dooley (1): rust: make mutually exclusive with CFI_CLANG Miguel Ojeda (2): scripts: generate_rust_target: enable building on RISC-V RISC-V: enable building 64-bit kernels with rust support Documentation/rust/arch-support.rst | 1 + arch/riscv/Kconfig | 1 + arch/riscv/Makefile | 2 ++ init/Kconfig | 1 + scripts/generate_rust_target.rs | 16 ++++++++++++++++ 5 files changed, 21 insertions(+)