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 A5588C678D5 for ; Tue, 7 Mar 2023 09:33:45 +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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2S+K4l6lGGUEd5r2kLtr2nilkFQApvBaQxtT57qLZ8w=; b=srNY2j5APz06Q1 Zz/yrGanF1qrNEKgria5HP7JXxDYviTFHY/WajaTLsWmKjtWTwyw7hYIQTB4h/ktvLcp0xrp6RNmM CQT3x4rCGdZBbTjRIsHhBoAMslUhCDER2P7L2I3Z+CI9IB29T9o9hFvOcpi9cTWM8E77dA8EtiY8h FENqg4MCADps3MK4la21KTDr8sRPSLtuNr/r+xvKb2Rl9fEEcJWlWQYpw095/xg+cE3CQXW9gOOPS 3teQc22pMn4/QlXr4qFuTzhJ+VpPGv90etdG93YRIwYe1mpuAKlujbeTZyHND7e2gN3tCjn/kNhFR Qq0yUvlNBg4/Yj9Q+Kgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZTgU-00Gvjc-5c; Tue, 07 Mar 2023 09:32:38 +0000 Received: from marcansoft.com ([212.63.210.85] helo=mail.marcansoft.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZTgN-00Gvev-Ei for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 09:32:33 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: lina@asahilina.net) by mail.marcansoft.com (Postfix) with ESMTPSA id 6C5D8419B4; Tue, 7 Mar 2023 09:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=asahilina.net; s=default; t=1678181544; bh=E+JBWGs90CdsgRhJ7Zj1p+d0LYrXwYt0/AWj3SgArpw=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=s4P4pvjfv5JEOIgSvJj5mE8Xe3JVdCY0Artpw2XU+79GEnyk18IZfL53ZY68K0Z61 Zx4I2KDkH35kQCKvhzj7eVyFlc/lFgWUH/R3rGgSIuED59J8/tTd8mvXAHM7rg4WTa dV+QU49mNizRUm88fMmWiShSR+Dml7fyx95Cf6lmzVVu5O5Ihvzt+bZ7dNIkw0L7x/ rZDFO9tzNVvFxWzwOzQ7K01qHiu87OT9D45rj6gXgSR9w7DWL+yNZr3c2Ew82suH09 O5X6Mk2epO867E+Cj5qBsV6EyYlzcoOS2UPvoJubV2HPtQQ3ADcjHO30aVPIyZjKHS 4wBWOID8uCisA== Message-ID: Date: Tue, 7 Mar 2023 18:32:20 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 0/3] Rust enablement for AArch64 Content-Language: en-US To: Jamie Cunliffe , linux-arm-kernel@lists.infradead.org, rust-for-linux@vger.kernel.org Cc: Miguel Ojeda , Catalin Marinas , Will Deacon , steve.capper@arm.com References: <20230125163739.3798252-1-Jamie.Cunliffe@arm.com> From: Asahi Lina In-Reply-To: <20230125163739.3798252-1-Jamie.Cunliffe@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_013232_141861_A1F9D24F X-CRM114-Status: GOOD ( 18.71 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 26/01/2023 01.37, Jamie Cunliffe wrote: > The first patch is from Miguel's tree to enable Rust support for > AArch64. This has been tested with the Rust samples, and the generated > code has also been manually inspected. > > The second patch enables the PAC ret and BTI options in the Rust build > flags to match the options that are used when building C. > > The third patch disables the neon and fp target features to avoid fp & > simd registers. The use of fp-armv8 will cause a warning from rustc > about an unknown feature that is specified. The target feature is > still passed through to LLVM, this behaviour is documented as part of > the warning. This will be fixed in a future version of the rustc > toolchain. This pull request should address it, > https://github.com/rust-lang/rust/pull/107294 > > > Jamie Cunliffe (2): > arm64: rust: Enable PAC support for Rust. > arm64: rust: Disable neon and fp target features. > > Miguel Ojeda (1): > arm64: rust: Enable Rust support for AArch64 > > Documentation/rust/arch-support.rst | 1 + > arch/arm64/Kconfig | 1 + > arch/arm64/Makefile | 4 ++++ > scripts/generate_rust_target.rs | 13 ++++++++++++- > 4 files changed, 18 insertions(+), 1 deletion(-) > Just as a note, we ran into an issue with this patchset. There is a missing `BINDGEN_TARGET_arm64` in rust/Makefile (around line 255). Without that, bindgen fails. # Derived from `scripts/Makefile.clang`. BINDGEN_TARGET_x86 := x86_64-linux-gnu +BINDGEN_TARGET_arm64 := aarch64-linux-gnu BINDGEN_TARGET := $(BINDGEN_TARGET_$(SRCARCH)) (No need to credit us for that ^^) Thanks! ~~ Lina _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel