Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7260259rwp; Tue, 18 Jul 2023 12:27:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtnjcKjPF+dCAo62T8Zi+MMbD0PuOw8wThc+/ho7yTUzMDL9r/gmisf/fr5WIcnqhraT6q X-Received: by 2002:a17:903:234c:b0:1b8:95fc:cfe with SMTP id c12-20020a170903234c00b001b895fc0cfemr762916plh.3.1689708455874; Tue, 18 Jul 2023 12:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689708455; cv=none; d=google.com; s=arc-20160816; b=If0d3WRVS0/PnHD43SAntJdBdLoPwyJQPHW+le+wSEPcbgSyG0QEOHxJlruIM8tWHL qtrjlRQPGna9JsyavNXqyMouaavuVlrmJ0FKEi6E7e7jnT8ByGPPqgCnzmK9CWP3D4RE imgn9Xf26y4sgUWDn4QvfdTmUC3/Iuw4doKf2PxOZMAy5Occ0lD/6GiotLB3bXWri4Sp eRMqc848sWEQTc2XYZemYZeRQ8YmKHGooimfqwxTT6soRYyyYlu1B+qmmPWCev8t2upx wvj2M/hHFqD/qj8kKmxF1dhtUsuFUH1dpwDktqS6TWCnEl1KuSZ12z1hbkgiW1bJR8pk fbCA== 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-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=dZrfiJRXRmLvhuJ4cJ1TRgIRYuGk7jhH/IYfHZEiE+8=; fh=PLiDGXtddcI6ighMTfOs2XwfoVJWNOwN4ryeXEWAHRQ=; b=AMfSRVo+Hw23apTOM2Rjwklh2y9UPpRauGVVVgJle19MoilRDjbrPYI96D0LSj2HiH YrEG//xd141J+klWPXnFt/c8z3fHivBVX8Z388kqXUDNyzb/jwzrWnPokUFnJCxItvmm Tte2LfGdj8Ge+OPd+82DNaCSAV/4c0e1GuL1IgL9cu1Tqt7nNThrA9+yuEiaDbJF27B0 EBsosrEuiQ7gH0b9am75VyHqs8GFj+jlrqhLzllDSzNYN9b/pqG5eddgsGYgWtuEcdiG z7dhRiLMg2iNZnX0RszXGUITehKb4PimBCFbpcenjJ91XoCCtM1bJObg+/Qe34MDUbB1 O0eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a75EYDWV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a1709027fc500b001b8b3f7300csi1954586plb.0.2023.07.18.12.27.22; Tue, 18 Jul 2023 12:27:35 -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=@kernel.org header.s=k20201202 header.b=a75EYDWV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjGRSly (ORCPT + 99 others); Tue, 18 Jul 2023 14:41:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGRSlx (ORCPT ); Tue, 18 Jul 2023 14:41:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45957E8; Tue, 18 Jul 2023 11:41:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CDBF3616A8; Tue, 18 Jul 2023 18:41:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C33BC433C8; Tue, 18 Jul 2023 18:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689705711; bh=a5euet8QU4I8gSkyqhMce+/xHpcOSEb0+0iBwAwp+Po=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=a75EYDWVHBTWwdDr/oRRYA49Z8F0oIYn+iEQIbUxOEHCBHR6VgVkPDcUxNUk6d7Nv mIBg9N2Q9X4n7YoQ8HDvKsgRWooB3vbX9dcKSL4NmujAwVTGHH5a3t9xiscnLEass3 bk/iyNQcGNzJdPyV+nBHd3GqXqFogb86cr5YCj3t0yXYSbJCl3opC4So3jly/d5gY/ 7lQ0mIF7JS7RSTMHmlzr+VhpbsS70U1Oh0FDx0J7bv3beQTaOY5ItjQ54/lIoQdynR cE0EOz1c165exTwIDOE43OzT7Y3wnsQyhSjFHBUQp4u0aw6a12VsndXU+afMt6kxHz Jd1hvz+0QFG2A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id AECA1CE04CD; Tue, 18 Jul 2023 11:41:50 -0700 (PDT) Date: Tue, 18 Jul 2023 11:41:50 -0700 From: "Paul E. McKenney" To: Feiyang Chen Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, Feiyang Chen , Huacai Chen , Willy Tarreau Subject: Re: [PATCH rcu 15/18] torture: Add init-program support for loongarch Message-ID: Reply-To: paulmck@kernel.org References: <20230717182337.1098991-15-paulmck@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, Jul 18, 2023 at 10:56:06AM +0800, Feiyang Chen wrote: > On Tue, Jul 18, 2023 at 2:23 AM Paul E. McKenney wrote: > > > > This commit adds the __loongarch__, __loongarch_lp64, and > > __loongarch_double_float targets to rcutorture's mkinitrd.sh > > script in order to allow nolibc init programs for loongarch. > > > > Cc: Feiyang Chen > > Cc: Huacai Chen > > Cc: Willy Tarreau > > Signed-off-by: Paul E. McKenney > > --- > > tools/testing/selftests/rcutorture/bin/mkinitrd.sh | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh > > index 3af3a86a0091..e7e23615dbe3 100755 > > --- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh > > +++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh > > @@ -63,7 +63,8 @@ ___EOF___ > > # build using nolibc on supported archs (smaller executable) and fall > > # back to regular glibc on other ones. > > if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \ > > - "||__ARM_EABI__||__aarch64__||__s390x__\nyes\n#endif" \ > > + "||__ARM_EABI__||__aarch64__||__s390x__"\ > > + "||__loongarch__||__loongarch_lp64||__loongarch_double_float\nyes\n#endif" \ > > Hi, Paul, > > Thank you for the patch, but I believe adding only the __loongarch__ > should be sufficient. Very well, I will remove the others on my next rebase with attribution. And thank you for looking this over! Especially as I have no way to test it. ;-) Thanx, Paul > Thanks, > Feiyang > > > | ${CROSS_COMPILE}gcc -E -nostdlib -xc - \ > > | grep -q '^yes'; then > > # architecture supported by nolibc > > -- > > 2.40.1