Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp209480rwe; Wed, 31 Aug 2022 20:04:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7sCrZCmKC/h5TBbGnikaVUqmDXCy1OVBYK6HjI+DK4/XICuPIcUXM629F4tdy78qQK9c8i X-Received: by 2002:a50:9f4f:0:b0:447:8aff:d312 with SMTP id b73-20020a509f4f000000b004478affd312mr26649732edf.110.1662001466134; Wed, 31 Aug 2022 20:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662001466; cv=none; d=google.com; s=arc-20160816; b=qPln5sVpe0t8EtXnB/E45MmJQCgDuCip1nxgdlQcA0heDXHDEDo9wLQcCPoqZJdXTl yUqojarMcosqBXUx/R5rbbQ075kSOKUjf6eylAxkIKgrSBf6Jn2ASg2aPllbiaSW/Nqy NQDv1KxfjqHhIXUs+7NKBEIjXatm1+CJlLIRrV0vp/OEUYBHlhFNgl0xI/9Rako6iXOX kth1lbu8svs1TX7msXknZJ4+cDLL9gzn4MU6KR8dA4W4F4aYKogtvb8wZN4h3I/Kalp3 V5pHq6zn/gYiqvechZLkOhbM8VsSMD/77ovhCM6yO8KSf0SRdsfS4GYed+ai0jGF77S5 VGlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=4tHyvBECj9KBnHmTMw80sFhQIk4BzEPU0bsseW2OxL0=; b=fjZ6M8Iok+fc+td9iibKIn/tY6fZjh3QRaO4MrWHycqd4bzS0O4FHdmQrYJS7B1jM6 LvWBnv7mbnLjDX7a51IqGkSgugdV/j11cOWH+vYZCyxSHNyKs0r+0sE9a4ID8vkkngRn I9+u9WGLVIHt9wShwZoe+jLcDtVU+Pwfownp5hglruxuOvEOpFBb2etvzxLEZwG1EKWW wrnvCqhre5KBoDqkxyKB8mV8MPizH97uKhokalwzQ9YXUcWF/KW7TVx9w3pklulPjU5F DkKyXTeFG0A3Zf2AXHvdtm7ui+hTkvcBs56cA18QKnk4C5jNeVrIm5lnmf0zbDlHqDrg Domg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=Q+jYiCiZ; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm22-20020a170907949600b00734be0ce32esi10282373ejc.688.2022.08.31.20.04.00; Wed, 31 Aug 2022 20:04:26 -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=@xry111.site header.s=default header.b=Q+jYiCiZ; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232494AbiIAC0w (ORCPT + 99 others); Wed, 31 Aug 2022 22:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232290AbiIAC0u (ORCPT ); Wed, 31 Aug 2022 22:26:50 -0400 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E05CCE1147 for ; Wed, 31 Aug 2022 19:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1661999205; bh=4tHyvBECj9KBnHmTMw80sFhQIk4BzEPU0bsseW2OxL0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Q+jYiCiZzdqIQA19OYopCYX/sILRrghKyP8xbiqt0QET6D1c55byKRgJTKGu7D6yf 3LBWB2vFdhm4Al6Qg7t/r++66XjY+fH1qtFQ7H9ozTSeKj4vKI2AsFlFMz/JKLTeHs /YKsFZifOF0/ddzMqIbvuzM6FfrnagZdO90yL0Qo= Received: from [IPv6:240e:358:118a:f800:dc73:854d:832e:4] (unknown [IPv6:240e:358:118a:f800:dc73:854d:832e:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 33C3765DC8; Wed, 31 Aug 2022 22:26:41 -0400 (EDT) Message-ID: Subject: Re: [PATCH v7 0/5] LoongArch: Support toolchain with new relocation types From: Xi Ruoyao To: Huacai Chen Cc: Jinyang He , WANG Xuerui , loongarch@lists.linux.dev, LKML , Youling Tang Date: Thu, 01 Sep 2022 10:26:38 +0800 In-Reply-To: References: <20220830104806.128365-1-xry111@xry111.site> <5b87173faeef587a2ffaaa6f58d34e0940231067.camel@xry111.site> <97291c0fe5a660c844475ff019c8db6af77ecf86.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 2022-09-01 at 10:17 +0800, Huacai Chen wrote: > Now all global variable accesses are via got, I think the performance > may be much worse than before when we didn't use explicit-relocs. > I don't know whether "a new code model" or your "(1)(2)(3)" is easier > to implement, but I think it is better to solve the performance issue > before 6.1-rc1. Both won't be too difficult, but I need to debate with toolchain developers :(. If we are running out of time: cflags-y +=3D $(cc-option -mno-explicit-relocs) This will at least make the new toolchain work, though we cannot be benefited from the optimizations allowed by explicit relocations. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University