Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8391410rwd; Tue, 20 Jun 2023 14:40:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XDkVu2yFn4BHuwBrGqFYoMOnLV4XKZCqxNhrYE0eVGQxUPYDMOZO2rap7cikwUJ2B+JwS X-Received: by 2002:a05:6a00:18a1:b0:668:7260:bbc0 with SMTP id x33-20020a056a0018a100b006687260bbc0mr10074628pfh.32.1687297229868; Tue, 20 Jun 2023 14:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687297229; cv=none; d=google.com; s=arc-20160816; b=sf/UdWxMOKnIj+gzoUJOVbVloa8FdJWTZxn1pBjfTZMnyAFfpf8yq6UjzIQ8BpYrdo JWa1oPTIb2Q+LkrOly3rlFWnKy94cYu/Lg45Cl49G7FxsUAnRTf9neM9UjDuge4Vfn6v fiOLRqpT2phY8DiBuaXSNDijd3jq4+BrINQdz6rlCnFA/Lgp8IMg6c0efr7HTslclo+I 0KIfmiA8fPE3m4jz90baedLv9lgYTMNG+KxmBna7UzP3TMXMBfA+yVSVuO3aCKY9Kuc0 nKWi5wKE3wv9TDHxGOlloGboPlMmvQnydqoQIQ/frb+kvpkON4R4J6Fa3TJrMHYhzgai uxkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rA3i2opblg9AHF1F2rlGv1v4lotXDt+23xIwyDkolDY=; b=cvYzt8uBu9I6tFNdlW8WFP4ctWX7INf3awo4wZ+jrF0Fsey3na2LkkJsTdAy3SYtRs LmQYxMvR8fWttB87fwqBppmwd8c+UmUU9c4l8x0g4TA3pMmdcYDDL8dsvE9C9zgjC3ZH hpdfrVsohzc4fq8y/NZAciGaCinxz7OI5/C+BjmLNYiNkOr8fq3ShpPYJMC7twkm4Sen 4e+okeYUKCYnAx0RzVp994PxmsWSFKRd0tYjSdD1soPDYDHuRA8X8DxlcqpE8HBwm5Bd YI5gpxR+MDJwmqcVOVLy5+6YapNLaAioj4eKEXEUhJJBpk2+8mMcy/GZNdC+iH8sWQ+O VPuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=mo8QWb4c; 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=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b00543cc3151f9si2266481pgq.461.2023.06.20.14.40.16; Tue, 20 Jun 2023 14:40:29 -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=@google.com header.s=20221208 header.b=mo8QWb4c; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjFTUrW (ORCPT + 99 others); Tue, 20 Jun 2023 16:47:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjFTUrV (ORCPT ); Tue, 20 Jun 2023 16:47:21 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A131E7E for ; Tue, 20 Jun 2023 13:47:20 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-76245581814so289106585a.1 for ; Tue, 20 Jun 2023 13:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687294039; x=1689886039; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rA3i2opblg9AHF1F2rlGv1v4lotXDt+23xIwyDkolDY=; b=mo8QWb4ccpQbDOhOajnjX4GpXsPkN6vj8KMB45EVj+cKZ9yB/OmK8Q8efQ55ZiK52z kAUSB2YNV6eb6Ss6jDDLA6a/3qyELGXwYF+eb2Q7i1KCtaxQTJ3dj1B3NWIoF7Squ0Ke CSHYdQQbTT4oFSDOJAgGkzIY1H8H1YVeiEbxrPo5ye9BlG8awpkWXWhd0JC7gpQxVac9 9NmEVDglP1v7F+PRA8cx6t8vAVZqHzWIXw1H6bnk9CHvm7EGWjS/V9TEs/eYjXcw3+AL QOTiuwMTQZFk2pvbVkwihO44E6CKg1mmFu+0U0yRqsMjeAunPeYLBUXN0mNyY1x3sbX1 YDVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687294039; x=1689886039; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rA3i2opblg9AHF1F2rlGv1v4lotXDt+23xIwyDkolDY=; b=Px1xAoTng4pO6lTHhLbXwXLFrI5d9l4789OLylqvjbUUTRmksWe+jbtWKnOf/9v+sd 2dWOzz1Vvz4DISgZdN+BPDETd/u72OPiuJTXrCBy+toOyJ/CmBfVycnUZggFGAL+6F7Y QNymOoOLOpRimtbeK8k7lFI72FIM8YckZWk8FncToP/mJhD0bLpCakug8CLeGele1ut8 OkCpIu2ZaLvHPBSe8zHvGjzu6SNEvgZtypHErSRgEYKjAXwuDLjtWRYQCllCgPVwwUb3 PniYBXndknCd7UNAd3Q6YEA0DMu9jJJvF4N9nHIycsRl7xIYiHxcHrverW/7E2UI0CPi Rt9Q== X-Gm-Message-State: AC+VfDzTLAstYoQ53keHwKuxYojvoyo8OE8R1QDOOaItxW8qX98y7FhK mzMeDQovXZXgUgHpEbZEpavpshsrDDY53BGY56qG5A== X-Received: by 2002:a05:6214:27cb:b0:626:e55:dfb2 with SMTP id ge11-20020a05621427cb00b006260e55dfb2mr15688866qvb.39.1687294039262; Tue, 20 Jun 2023 13:47:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nick Desaulniers Date: Tue, 20 Jun 2023 16:47:07 -0400 Message-ID: Subject: Re: [PATCH v2 0/4] riscv: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION To: Palmer Dabbelt Cc: Conor Dooley , jszhang@kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Jun 20, 2023 at 4:41=E2=80=AFPM Palmer Dabbelt = wrote: > > On Tue, 20 Jun 2023 13:32:32 PDT (-0700), ndesaulniers@google.com wrote: > > On Tue, Jun 20, 2023 at 4:13=E2=80=AFPM Conor Dooley = wrote: > >> > >> On Tue, Jun 20, 2023 at 04:05:55PM -0400, Nick Desaulniers wrote: > >> > On Mon, Jun 19, 2023 at 6:06=E2=80=AFPM Palmer Dabbelt wrote: > >> > > On Thu, 15 Jun 2023 06:54:33 PDT (-0700), Palmer Dabbelt wrote: > >> > > > On Wed, 14 Jun 2023 09:25:49 PDT (-0700), jszhang@kernel.org wro= te: > >> > > >> On Wed, Jun 14, 2023 at 07:49:17AM -0700, Palmer Dabbelt wrote: > >> > > >>> On Tue, 23 May 2023 09:54:58 PDT (-0700), jszhang@kernel.org w= rote: > >> > >> > > >> Commit 3b90b09af5be ("riscv: Fix orphan section warnings caused= by > >> > > >> kernel/pi") touches vmlinux.lds.S, so to make the merge easy, t= his > >> > > >> series is based on 6.4-rc2. > >> > > > > >> > > > Thanks. > >> > > > >> > > Sorry to be so slow here, but I think this is causing LLD to hang = on > >> > > allmodconfig. I'm still getting to the bottom of it, there's a fe= w > >> > > other things I have in flight still. > >> > > >> > Confirmed with v3 on mainline (linux-next is pretty red at the momen= t). > >> > https://lore.kernel.org/linux-riscv/20230517082936.37563-1-falcon@ti= nylab.org/ > >> > >> Just FYI Nick, there's been some concurrent work here from different > >> people working on the same thing & the v3 you linked (from Zhangjin) w= as > >> superseded by this v2 (from Jisheng). > > > > Ah! I've been testing the deprecated patch set, sorry I just looked on > > lore for "dead code" on riscv-linux and grabbed the first thread, > > without noticing the difference in authors or new version numbers for > > distinct series. ok, nevermind my noise. I'll follow up with the > > correct patch set, sorry! > > Ya, I hadn't even noticed the v3 because I pretty much only look at > patchwork these days. Like we talked about in IRC, I'm going to go test > the merge of this one and see what's up -- I've got it staged at > , > though that won't be a stable hash if it's actually broken... Ok, https://lore.kernel.org/linux-riscv/20230523165502.2592-1-jszhang@kerne= l.org/ built for me. If you're seeing a hang, please let me know what version of LLD you're using and I'll build that tag from source to see if I can reproduce, then bisect if so. $ ARCH=3Driscv LLVM=3D1 /usr/bin/time -v make -j128 allmodconfig vmlinux ... Elapsed (wall clock) time (h:mm:ss or m:ss): 2:35.68 ... Tested-by: Nick Desaulniers # build > > > > >> > >> Cheers, > >> Conor. > > > > > > > > -- > > Thanks, > > ~Nick Desaulniers --=20 Thanks, ~Nick Desaulniers