Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp290992rwd; Thu, 8 Jun 2023 00:13:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fwa77nuV9upfLZwobZQayKtZjUAp15Gb0rBWk4LkCV+AqW6juPjGsYQrjLHD5AElIrB63 X-Received: by 2002:a05:6358:ba85:b0:127:f5d3:b6f9 with SMTP id dg5-20020a056358ba8500b00127f5d3b6f9mr5632924rwb.18.1686208404759; Thu, 08 Jun 2023 00:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686208404; cv=none; d=google.com; s=arc-20160816; b=aoW6hnx1D3xOOmzOZOqIGzcABvTrdxPjx368dAora7RimpH3dylCfs8Ijd25iHU2qx JQNWS6IxFd+g1ZEc+YSovimGaK8i/zbm9pSizwNTDDe/zec84UR/xB+IfC6QLrzMJXtr QZ3lSteGNAfyKodlhK34b1TLVHTWlMEfX9buEgsF7pN2i8kPEYoY/tBjJI94byjldKxs quy4wks4guvbBmUGed6Q1fNwixiD2oSEOr+CLMFIKmVswJ4Y5by+qLT1budkY7Qd0sZE OD1mn20fwr3uhD5MXGMUP9tKjpwuiU91aIKpmSsoj7BpBc3feLbih+LNOHmKvT8cBEJT 4ktQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZZLdqZM7DUuJb+zfCqM9sRlIRP3z6YOCxQmfCfYvk1o=; b=e81a6iE7oxJl4rFwg+JJlCc/h70FkL46nCVZDmIznX5vMJGlA4bqk8HZTObUF/rUpL Vo8yYN2zWdx0kK+jT7reaeg7nlfwokRGBtmfzerytCV7uQfkR9qh0q4YaHcusw6mgWyB S9rkhYKfsUAeMUIp9t3IPs6sEfYarLKEXSC/IyqttaHnRARQIyN2lJxZLUFD2+sLlADo MdGLhQkRNS4jWF35z97DyiGsU/2Qk7yLY2KJSEbOx8wpGtoHFXpA1sk5Za8Sl38hYiXt bQOX5eqXAiorQL338hiwFO9oIW3IAXjA+7zkKUZN+VVfoDMOXgHJMtJYQCFVhaa+T70O TnEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Fh61kMzQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b24-20020a637158000000b005440549b770si561768pgn.443.2023.06.08.00.13.11; Thu, 08 Jun 2023 00:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=Fh61kMzQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234493AbjFHHC2 (ORCPT + 99 others); Thu, 8 Jun 2023 03:02:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235200AbjFHHCC (ORCPT ); Thu, 8 Jun 2023 03:02:02 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D724A271F; Thu, 8 Jun 2023 00:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1686207704; x=1717743704; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZZLdqZM7DUuJb+zfCqM9sRlIRP3z6YOCxQmfCfYvk1o=; b=Fh61kMzQq+qveqK3FyI+9sBQF1VpCPcmARFSp/tpJdiZb8wwj9thmg0c Qnc68/Br3Jfa+sydFnTXi+RyasXBpFxD0cYQ4OyByOg5kanHQzEgYhO7O 7DukZ8fjOyX1N2sMFFbWpLjk2TMJNoQXp9ltNOH5ruJtczzDMKKe1Kcj8 0KZ5/MReCEbFHSfE8FE003bWEW2ip3QXYLxxo9Ikpngjmo12cCIJzrvDM VxPd83m1km0MlJuBSerX3AjJuywb7BKpddIBgt4lhSAKSxyJ7iXW1XJFJ LjqjT5jQGAlLctWqVDqPxmiE5G+F344knkll7mGeXHdPEFBi9fH5OnA4q Q==; X-IronPort-AV: E=Sophos;i="6.00,226,1681196400"; d="asc'?scan'208";a="219382726" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Jun 2023 00:01:43 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 8 Jun 2023 00:01:43 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 8 Jun 2023 00:01:40 -0700 Date: Thu, 8 Jun 2023 08:01:16 +0100 From: Conor Dooley To: CC: , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Nathan Chancellor , Nick Desaulniers , Tom Rix , , , , Subject: Re: [PATCH v1 0/2] RISC-V: enable rust Message-ID: <20230608-dispatch-sneer-aa09bd7b2eb8@wendy> References: <20230307102441.94417-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Ka1WzDdcwslcLLPy" Content-Disposition: inline In-Reply-To: <20230307102441.94417-1-conor.dooley@microchip.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Ka1WzDdcwslcLLPy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Kwang, On 08/06/2023 05:46, =EC=86=90=EA=B4=91=ED=9B=88/Tizen Platform Lab(SR)/=EC= =82=BC=EC=84=B1=EC=A0=84=EC=9E=90 wrote: > Hi, > Recently I'm trying to put a rust patch on the risc-v board. > I saw a patch [1] and looked through it roughly. > Only if llvm(not gcc) is allowed, it looks good with no major problems. >=20 > > I'll revisit this when my thoughts have settled down. >=20 > If you let me know the problematic part, may I try the patch? >=20 > [1] https://lore.kernel.org/linux-riscv/20230405-itinerary-handgrip- > a5ffba368148@spud/ Yeah, you can definitely try this or the downstream rust-for-linux project - both should work well on RISC-V. The problematic part is figuring out what ISA extensions are supported by the rust compiler being used (and by bindgen), and deciding what to put in -march as a result. I think it is unlikely to matter for you, unless you're aggressively mixing versions for different parts of your toolchain. I do intend revisting this, probably after the min. version for rust gets bumped, I've just been really busy with other work the last weeks. Cheers, Conor. --Ka1WzDdcwslcLLPy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZIF8rgAKCRB4tDGHoIJi 0k0tAP9oSP5G1PJWtLGyf1+R6tsih6t/Fcf8f5aQBdxxrsXn/gD/UYOgt9r9Nkht w/d+pWUDXdDuNyfeTgh/x6BfVqn+TAo= =QM1l -----END PGP SIGNATURE----- --Ka1WzDdcwslcLLPy--