Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp289905lqs; Tue, 5 Mar 2024 01:59:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVze/i794RdcuLiquFOrBoqUEVtnBxZK4soSvqArAF8+vfro7vcSOJo+Rw0aYpD6UaobQrG9zpdQZoiGXQzAXf2nTRc6etSj+e8smP0xA== X-Google-Smtp-Source: AGHT+IH3Ulgb5MCrKWSH1v0SfkmVQ05GsvnO/u1UFNwW64DVZbgD8YaiBMkgVEkmiJPxuq8NJ5pU X-Received: by 2002:a17:903:2348:b0:1d7:5d88:f993 with SMTP id c8-20020a170903234800b001d75d88f993mr1474480plh.41.1709632742181; Tue, 05 Mar 2024 01:59:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709632742; cv=pass; d=google.com; s=arc-20160816; b=oVdhOk+oYL2Zj8XOgoDoX+FnAi56jqTmxJ4Jq4xI3wIe9TFGik2GJDFYPiY6PNpupY pivIg87zropBnQ0jnw8j75S0RtUDArsMgwFv1GeOtaejdapNBgMtsSXpOW3/Gx+SaqAl y7FZvtv5Gp1defPEsKFf0scDcNJgckxLfK1i8sPAmrjPXRDlArd7wB4tLqOSmQ3IqX0I SGP9Qk1RxSnw+k2np860duRS5684PxTq+jciBV7+izYrWjDpxqV6G+PPwBz+zTT8fn00 DeL044pM28S18xF86eMhiMEn50WSQzUtofmjR11id2oSfm1vdxCzi7wA7VppGikxeLwl 5alQ== ARC-Message-Signature: i=2; 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:dkim-signature; bh=xQNCkif+cWsWirZCvZKKjYkiBuTmgq18brMqbbYj1mE=; fh=BgiJxE6/sJCqlvjaIvERFMcU4IWzE+VGib/Gc3D1AQ0=; b=yV0iJPYHo/pmHRKY54HQ1SthjckK5YtWlaeujyclEC3yfHD2ZGr5zAG26IE+V+k1gY x8A7HdrVw6Z4e8uZzjZooPYmz9X7+V7Lt73ccs+0VIiCfBy5lpsQ87FMu/3qUUTaimuO XYWznghWJW8Tiooz6LP475KeK4YcjJMdxn5vLSAHQlWEaUQ9007fwiBwHeUkGL9DwRYO Txzv6Mr2c435yDJ/LdbTMEKU+VSkqCQr8ZaeOWxUHa7KeCa+xGnAqodJSNAj5BoKaVvM EbWAwAfvntHqyMq1FSUYuc2TF7LkJ6gnoWSidBNUAtSOnPWyDnl2nDBweqYsEU1yTxOb jakA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hGMCiHho; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92039-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92039-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p13-20020a170902ebcd00b001dd07f49258si4102915plg.19.2024.03.05.01.59.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92039-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hGMCiHho; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-92039-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92039-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D75292826B6 for ; Tue, 5 Mar 2024 09:59:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9947354745; Tue, 5 Mar 2024 09:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hGMCiHho" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B460E548E7; Tue, 5 Mar 2024 09:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709632732; cv=none; b=T9GyEa3FPQuMs425F5la+rBr7Xiq1oiZh0KofBeJJC2+0DI7W6L4odrI7RYtRTK2JdK9YfIphMsuMCWxTP6owHBiTpZSKkHPZZ2wKJMhMzMpAyNyUEgi0IcSBTgVJybUTbW3t+dzPWKfdiSOTl0EHSy5sUHDFcPKFFuR73Arp60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709632732; c=relaxed/simple; bh=xQNCkif+cWsWirZCvZKKjYkiBuTmgq18brMqbbYj1mE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MUZxUom3VMo8r+k8Fuly/GxNvxQHk/mkCV9c4KKuoADT/bUNpRa2PxddV/49pVDjc9Wxqh4hMGZl82LYzVVo+YdgE/CFM387FABgKypwm9VuJEvbtd5D1G1xcpkfeQ8ZLkioJ2OrRQBdbhNb/ZaDB3kO2pM+lOWj1aqSKpbik9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hGMCiHho; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D484C433F1; Tue, 5 Mar 2024 09:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709632732; bh=xQNCkif+cWsWirZCvZKKjYkiBuTmgq18brMqbbYj1mE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hGMCiHhofokcRE5JfgFOBmTbR2XvK/+ESy9pkicvirbuwtTsk1FbvVUXIhiCnwF2f jieg7Kj4Bk+aps669t2TBWsrzfNvn38QLIIb0+PAkxhlRnEql5eqqJIlXQmvMwYkD/ q7cS6ET+3pUkCio0gPek9feIWB4Rvv++16nCaasTJmbE0WDuaFPRpP8l+wTr08ZEZv /mQCyNYuw70l97csKHeQ1aBmIHllTVcu0eUY02wcMjzg5C+aeE8uLKQt1DVVZmKWts YwOmqx3MPMfve5ys98I/9UKTXbeujBJ1VxkC3ujAE2//eBM4OXTntL7CsTVUljuhQe YYKAU4gazCqjg== Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a3566c0309fso55347366b.1; Tue, 05 Mar 2024 01:58:52 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWMsrR6pLKS8xqoaUrfFnIhE1VF2zy4083+XEKsi0doB6jBOBLBk+IDzp0Y1C0hAXWZOT/R1ipy+pNm+s5roUZGKE2lyhPly8JFkYmkfiYrQWdjqtn2CLp81XgsRozNjKTNXPhy/oI4PxrO1Ko= X-Gm-Message-State: AOJu0YwwWiA9rUvg1PtMDf4ykOys/UIwbNe4j4jCGrbXRcnOc9ZRuCSd kjcnP6Rof/HdNGwSdVtSwp697lH7ReEug1bj6THn9DBHpGdjMlky6XFT/Wad7cMJwgkjmaIQKJR vE5jpY5zD89+PE2XlBBUTS35SBXA= X-Received: by 2002:a17:906:aac5:b0:a45:3271:6c80 with SMTP id kt5-20020a170906aac500b00a4532716c80mr3542530ejb.25.1709632730800; Tue, 05 Mar 2024 01:58:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240304141426.163517-1-wangrui@loongson.cn> In-Reply-To: From: Huacai Chen Date: Tue, 5 Mar 2024 17:58:42 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] loongarch: rust: Switch to use built-in rustc target To: Miguel Ojeda Cc: WANG Rui , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Jamie Cunliffe , Catalin Marinas , WANG Xuerui , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Miguel, On Tue, Mar 5, 2024 at 12:07=E2=80=AFAM Miguel Ojeda wrote: > > On Mon, Mar 4, 2024 at 3:14=E2=80=AFPM WANG Rui wro= te: > > > > This commit switches to using the built-in rustc > > loongarch64-unknown-none-softfloat target for LoongArch. > > > > The Rust samples have been tested with this commit. > > > > Signed-off-by: WANG Rui > > --- > > base-commit: ("rust: Refactor the build target to allow the use of buil= tin targets") > > I couldn't apply it on top of commit f82811e22b48 in arm64's tree > (which is the base? -- the offset differs significantly in the arch > Makefile), but I nevertheless applied it manually on top of that one, > build-tested it for loongarch64 and boot-tested it for x86_64: > > Acked-by: Miguel Ojeda > Tested-by: Miguel Ojeda The base of the loongarch tree doesn't contain the arm64 modifications now, so this patch is better to be applied on the rust tree with my Acked-by. But if you have some trouble doing that, I can also manually merge the arm64 parts to the loongarch tree, and then apply this patch. Thanks. Huacai > > Thanks! > > Cheers, > Miguel