Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp695215rdd; Tue, 9 Jan 2024 17:42:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBGVKZialLFT8DYykk/qj90WX+Uh/zB4LO6OzU535SypEOBd99TZ+trL9wJJHiOJwTm/5E X-Received: by 2002:a17:907:9492:b0:a23:6c9c:d4ce with SMTP id dm18-20020a170907949200b00a236c9cd4cemr199138ejc.116.1704850934658; Tue, 09 Jan 2024 17:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704850934; cv=none; d=google.com; s=arc-20160816; b=QSVMieh4pDa+vsgN3X5DqfIxPqluNAnLhdfg1AUBI0jqaeeRA1nr1W9FC2VnbLkLXg lO4N22dY8mfgk6m5aIwazaLUbbOXK2X17j5fI6p++rF6myC9v8G55vuoVNj1WrnLhp/a GyI5yUZKmAyvmvuIbcgOt763MpGJUDbPpQ2s7CeOfQNyj0iNU4cZXXvFQWhJsmkh6gN4 lXWMlzWKfHkbXblKuTc2T+HEx6dBDFoh0HhOxfXh+ljNa+uXJGlnFtCW8B+/uIHFqzpj kxejxyyYR2tdvx/Ip1n5HMjsi98RI8XG1SHybkiHannDxaBU4xs46DVPh0fny1VmcAry 1EGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=HE7hkENTIw+07cpHcyd/++DdDlr+34h7Crokg/9V41E=; fh=JaWx/zJlunLD1yrCLwXA9BRHnms1sunLtL0WjgNx+W4=; b=cbVcsvcaZxbrkb8o1LfzY33yoU5E9vPQRJoLSlm7i+4ZkUPjCRuiU0pfco22TA5SDt WuRF1jiTYjGaJ+6ADrohuY8uRzVN4SQi0o0hgMFAjhJEpfDotyGmYLqLlC64wJHNzFW6 GbzaaUz1KmqdGU3r+NGylzMQvA8Fo76Ssh9U1gx1JPhbtnlEE/3AzEDUXHcTwPlvV8Zu 5tU2kUsk582rcHpdnEbx73eU/1vYk7q/vimOk965Www6HFt99RjTWIhvmNWA7rPOLua3 tSS83gOBym7cOneGNTy63zBMo4tCC/j0+dgyYqqFcSwqQ07Y4wJXYrmn62StOUdG92Is WEYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21643-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f19-20020a170906049300b00a28c9e36b45si1353978eja.571.2024.01.09.17.42.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 17:42:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21643-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 641EF1F26A9A for ; Wed, 10 Jan 2024 01:42:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 225761871; Wed, 10 Jan 2024 01:42:01 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6BC01375 for ; Wed, 10 Jan 2024 01:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [209.85.219.181]) by gateway (Coremail) with SMTP id _____8AxCurj9Z1lgLEDAA--.7442S3; Wed, 10 Jan 2024 09:41:56 +0800 (CST) Received: from mail-yb1-f181.google.com (unknown [209.85.219.181]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxS9ze9Z1lmvYJAA--.26306S3; Wed, 10 Jan 2024 09:41:51 +0800 (CST) Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dbd715ed145so2656931276.1 for ; Tue, 09 Jan 2024 17:41:51 -0800 (PST) X-Gm-Message-State: AOJu0Yzg108VXAqfoZwiOleMYrnPqRgtMXnWmfuF3jeVx0r5vCZC562T HGa8CB9WFIfGzYicCfQDt4sDQ/Edhenr+4fUN6GEnRXuxnEVmQ== X-Received: by 2002:a25:730e:0:b0:dbe:5353:3174 with SMTP id o14-20020a25730e000000b00dbe53533174mr204149ybc.57.1704850909353; Tue, 09 Jan 2024 17:41:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240108032117.215171-1-wangrui@loongson.cn> In-Reply-To: From: WANG Rui Date: Wed, 10 Jan 2024 09:41:38 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 0/2] Rust enablement for LoongArch To: Boqun Feng Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Huacai Chen , Jonathan Corbet , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , WANG Xuerui , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-doc@vger.kernel.org, loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-CM-TRANSID:AQAAf8DxS9ze9Z1lmvYJAA--.26306S3 X-CM-SenderInfo: pzdqw2txl6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj93XoW7KF1fCrW8CFWUGw45WFy5Jrc_yoW8Gw1Dpa y29F1Ykr4kGr1xGrsavw1UWFn8Aw1fKrWxXw1rt34xKr4rArn7ZrW7KrWfWFyDZrW8AFWj vF4F9w13tF4UAwbCm3ZEXasCq-sJn29KB7ZKAUJUUUUP529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAF wI0_Gr1j6F4UJwAaw2AFwI0_Jw0_GFyle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2 xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwI xGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUtVW8ZwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jwtxhUUUUU= Hi Boqun, On Wed, Jan 10, 2024 at 3:35=E2=80=AFAM Boqun Feng w= rote: > > Hi, > > Thanks for the patch. > > On Mon, Jan 08, 2024 at 11:21:15AM +0800, WANG Rui wrote: > > Enable Rust support for the LoongArch architecture. > > > > Could you share how you build and test? For example, I wonder the clang > or gcc version you used and bindgen version you used. Thanks. You are welcome! The versions I'm using are listed in scripts/min-tool-version.sh, and I have tested Rust samples and the rnull block driver. llvm: main branch (ea3c7b3397f8de8e885ea7cd1ed5138ec4a72d50) rustc: 1.74.1 bindgen: 0.65.1 Here are the build steps: 1. Build llvm 2. Install rust, rust-src (using rustup) and bindgen 3. Build kernel For more details, refer to Documentation/rust/quick-start.rst; there is nothing special about it. Regards, Rui > > Regards, > Boqun > > > Previous versions: > > v0: https://lore.kernel.org/loongarch/20240106065941.180796-1-wangrui@l= oongson.cn/ > > > > Changes in v1: > > - Address htmldocs warning. > > > > WANG Rui (2): > > Documentation: rust: Add a character to the first column > > LoongArch: Enable initial Rust support > > > > Documentation/rust/arch-support.rst | 13 +++++++------ > > arch/loongarch/Kconfig | 1 + > > arch/loongarch/Makefile | 3 +++ > > scripts/generate_rust_target.rs | 10 ++++++++++ > > 4 files changed, 21 insertions(+), 6 deletions(-) > > > > -- > > 2.43.0 > > >