From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA65BEB64DC for ; Sun, 25 Jun 2023 12:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZtRs86vNigN1fNpwE72F9MDz+ai1NKQ+YL7cCxTEDSU=; b=CZ7ysqxxC+dpvY XS7/SFxMtW9eFjIpESL9C/EDlePdcWq04TDc9uAy8RKWLwGvODqGbKqmSABIOlqYJ2r+Am1njC37n meXkUNc+r2ISr00nihWf8XQKHCb3BMOFbVzscPtXNTSKHbMIfcONqYjClmTV/WWwx3xp5eQO1koC4 WsQVyQm7rjuWZVwr/8cy7/qcK1FOFRmXQuS7hB9bNO1Km3C0HU8b+9Wxg+jO4bcXO3R+SgejSB1pK QP2Msodr0RjwsCD2yFOH0mLXWKZsmVN1uBAb78wtr6YxMlz/iRARmxEd4jvhMKfB1z76AFIZ/PbxC 1EPv4N4N153bzd/jH9uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qDOyk-0081Bw-0z; Sun, 25 Jun 2023 12:36:30 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qDOyg-0081B7-2w for linux-riscv@lists.infradead.org; Sun, 25 Jun 2023 12:36:28 +0000 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 A147660BB5; Sun, 25 Jun 2023 12:36:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2920C433C8; Sun, 25 Jun 2023 12:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687696585; bh=u3i402/+JTuZyHnSMXBRgVRh6kqJvvV5masbo58+O08=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ka0ZF8isPRWjYVco5Sw5TNcvkSZTVTrEp8AETGNcpMawvMVSvoaNlUznpStREkG5R cjSybVyDKf7VWOvr/BvZyDXfFlNY18IcfQfbOmebwqguKQ7MJnqgBpXkcPCi6h41kG WhoPgDxdPW6AV5vcceiC3wEqFdnALkkt1ISx0MkW9Q8pQ7Tg5t9TI2Fg15fkEZnend rD4a5N6XFJwuAx/ALR4sZebkuOQMX1uzXEvOh/yOZ15S88vA1VvfgVMlocnrOabSTH z64jTsDxtz0/QAdfdHRHBgoC8Fqv4NRrGdbVed2iTwxlU4diY6O3TMrM+4KM8v7njl c5Jl0QGnpr44g== Date: Sun, 25 Jun 2023 20:24:56 +0800 From: Jisheng Zhang To: Nick Desaulniers Cc: Palmer Dabbelt , bjorn@kernel.org, Conor Dooley , llvm@lists.linux.dev, Paul Walmsley , aou@eecs.berkeley.edu, Arnd Bergmann , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v2 0/4] riscv: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION Message-ID: References: <20230622215327.GA1135447@dev-arch.thelio-3990X> <20230622231803.GA1790165@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230625_053627_052252_3D310013 X-CRM114-Status: GOOD ( 33.37 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Fri, Jun 23, 2023 at 10:17:54AM -0700, Nick Desaulniers wrote: > On Thu, Jun 22, 2023 at 11:18:03PM +0000, Nathan Chancellor wrote: > > If you wanted to restrict it to just LD_IS_BFD in arch/riscv/Kconfig, > > that would be fine with me too. > > > > select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if LD_IS_BFD > > Hi Jisheng, would you mind sending a v3 with the attached patch applied > on top / at the end of your series? Hi Nick, Nathan, Palmer, I saw the series has been applied to riscv-next, so I'm not sure which solution would it be, Palmer to apply Nick's patch to riscv-next or I to send out v3, any suggestion is appreciated. Thanks > > > > > Nick said he would work on a report for the LLVM side, so as long as > > this issue is handled in some way to avoid regressing LLD builds until > > it is resolved, I don't think there is anything else for the kernel to > > do. We like to have breadcrumbs via issue links, not sure if the report > > will be internal to Google or on LLVM's issue tracker though; > > regardless, we will have to touch this block to add a version check > > later, at which point we can add a link to the fix in LLD. > > https://github.com/ClangBuiltLinux/linux/issues/1881 > From 3e5e010958ee41b9fb408cfade8fb017c2fe7169 Mon Sep 17 00:00:00 2001 > From: Nick Desaulniers > Date: Fri, 23 Jun 2023 10:06:17 -0700 > Subject: [PATCH] riscv: disable HAVE_LD_DEAD_CODE_DATA_ELIMINATION for LLD > > Linking allyesconfig with ld.lld-17 with CONFIG_DEAD_CODE_ELIMINATION=y > takes hours. Assuming this is a performance regression that can be > fixed, tentatively disable this for now so that allyesconfig builds > don't start timing out. If and when there's a fix to ld.lld, this can > be converted to a version check instead so that users of older but still > supported versions of ld.lld don't hurt themselves by enabling > CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y. > > Link: https://github.com/ClangBuiltLinux/linux/issues/1881 > Reported-by: Palmer Dabbelt > Suggested-by: Nathan Chancellor > Signed-off-by: Nick Desaulniers > --- > Hi Jisheng, would you mind sending a v3 with this patch on top/at the > end of your patch series? > > arch/riscv/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 8effe5bb7788..0573991e9b78 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -116,7 +116,8 @@ config RISCV > select HAVE_KPROBES if !XIP_KERNEL > select HAVE_KPROBES_ON_FTRACE if !XIP_KERNEL > select HAVE_KRETPROBES if !XIP_KERNEL > - select HAVE_LD_DEAD_CODE_DATA_ELIMINATION > + # https://github.com/ClangBuiltLinux/linux/issues/1881 > + select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD > select HAVE_MOVE_PMD > select HAVE_MOVE_PUD > select HAVE_PCI > -- > 2.41.0.162.gfafddb0af9-goog > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv