Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8415613rwd; Tue, 20 Jun 2023 15:05:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58pwNe74pPlV77JekvS1QKrZEkdEbY/jxeIyKpTormiIe1p7qjgCs9mOj1iks5r2jpy7s6 X-Received: by 2002:a17:903:32c8:b0:1b3:d8ac:8db5 with SMTP id i8-20020a17090332c800b001b3d8ac8db5mr12970729plr.40.1687298728759; Tue, 20 Jun 2023 15:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687298728; cv=none; d=google.com; s=arc-20160816; b=ZxXgg6o+InZq7HLOR4KWjVAuTGpZ41J7/1cqK3y4qaMA12+Qv8VgLIzJMMHphkEiBY cvsnZTN4vqRkkspdQChICCyvwYbJTU49mq8jMd8kjeb1cTI03emAw5yvpb23Fjey0SR8 1ZpYT5U2IpwNNyn76CrFdSFaoTiZM2+Ra8XyiZkMITFspBANpIRsuLPTGb2MzFy1KNL3 lmeeOotvv5qbpNjZDeDTqsIs8RxgMSwgedAudJ2eFsoNF0G2QjCtyn9k9wxTFAo3FMkD iut24TPspOJXYbfAkHw8lW25mQRYT0RAuqkTycWp42cuHXNo5GTHl0pwYzNakpy8KkuO AeRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=WmQQrNKBdrthlpawxC6xSdaVyb+Lurpl8t3TyJczrHw=; b=HKCG2YKWaMkjCslOqIwY29p4ZJ+d6AZih1nC2lSQGb5vVISBT7KMFUU47b/++Ayz9T RY+eGYF2FY/RoDRofsSE9Mvd8PIegAuolOiTzr7IhqVK5TqbLtCrJ1mi7xM8/2q5C967 xW8vfWTctUaefdrQrPTLDyXSV5CR7H2ma1406yTx2zCQlXEpilOzMTf4X0d1hcCGfWK4 JJN1AhZteEm9FxZbqbwHy1CDKSxwFIZ+E9vAWV6hGnYuDM5WZgKyubEBRp7j17VOJMQ/ qj85ckKcTtTTavy0JvmxLYdiTWnHyeXildNF9DiXNwvm/AWw7gbdQnvkcM5F940taMVJ IQtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=eu8qAVzc; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170902f68c00b001b3be6856dasi2926202plg.628.2023.06.20.15.05.16; Tue, 20 Jun 2023 15:05:28 -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=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=eu8qAVzc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjFTVIh (ORCPT + 99 others); Tue, 20 Jun 2023 17:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjFTVIg (ORCPT ); Tue, 20 Jun 2023 17:08:36 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FC9B1727 for ; Tue, 20 Jun 2023 14:08:35 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1aa291b3fc7so2368553fac.1 for ; Tue, 20 Jun 2023 14:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1687295314; x=1689887314; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=WmQQrNKBdrthlpawxC6xSdaVyb+Lurpl8t3TyJczrHw=; b=eu8qAVzcVZ8viHWEn7DJKQysOyHmyN3H358TpGlWOUq5rxusTRo5WvKJvwfkIAiC7e y8+IjksmtlSZE+llEeSTVW1JGeFoshOOW2tRaT17CmyyZw/HhqK5fvMGi2zQYoGhxnBz 8qr/i9D+fjBbGnjTbB/WayODTELNKjEtRust9SgKeAryQdSeLh+RqIMFBZyeUgQmi28E P4Gf7tpI/jEUkm8uH4sGRiTycLmKS5QTRkMBK7NCFmvnRYkK/41BvGkKyv/CBAFAc7dY VU7klFXImiTY9qwJChlkdax0uD5zErezTXP3Ub7lCADlqhIDW3DVw8PFtZi3igb4B3sH kXRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687295314; x=1689887314; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WmQQrNKBdrthlpawxC6xSdaVyb+Lurpl8t3TyJczrHw=; b=cvRqk623eeUv6HvKRAIbug+syENMxiDkC4qB75hcvq41rjxrJWycXSFlPTzRlZYwfn 0pdI6dAl73Sku3Gj/u+WHW+WWiLsYToQd7a6aRK44+2u1snjvEPwmG4HCj4Ty3r+A5ft 5OMJyaEvOYHqHOx+46Oy/9YBiPeVZ9OYqTPuE3v6wwR1LNTEdmEtSX6aywJVRmMR+9OX VYtoqbAUi5yFTsm6htwv+zw3InHJxA1Ucs/duRvmT61fRIHUAhgx8kLqhJwqnnBNi0CT eIRNbmVi+IL7vZaDfMbiHpAv/4QDr1hAmLo7266Aea2ENdkuNek/C0P1oUmxXoI5pDQ7 FMgQ== X-Gm-Message-State: AC+VfDzGJzRIpha/Kocj+n9tRtqiVGfpYdTAfA/E9IjLAjg1JX1k0M/I OOsZ4FTrmdQOLnMufoBtP4A9nA== X-Received: by 2002:a05:6870:2206:b0:1ad:f52:81c7 with SMTP id i6-20020a056870220600b001ad0f5281c7mr109198oaf.17.1687295314287; Tue, 20 Jun 2023 14:08:34 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id t12-20020a17090ad50c00b0025e2b703adesm1863846pju.41.2023.06.20.14.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 14:08:33 -0700 (PDT) Date: Tue, 20 Jun 2023 14:08:33 -0700 (PDT) X-Google-Original-Date: Tue, 20 Jun 2023 14:07:54 PDT (-0700) Subject: Re: [PATCH v2 0/4] riscv: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION In-Reply-To: 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 From: Palmer Dabbelt To: ndesaulniers@google.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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, 20 Jun 2023 13:47:07 PDT (-0700), ndesaulniers@google.com wrote: > On Tue, Jun 20, 2023 at 4:41 PM 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 PM Conor Dooley wrote: >> >> >> >> On Tue, Jun 20, 2023 at 04:05:55PM -0400, Nick Desaulniers wrote: >> >> > On Mon, Jun 19, 2023 at 6:06 PM 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 wrote: >> >> > > >> 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 wrote: >> >> >> >> > > >> Commit 3b90b09af5be ("riscv: Fix orphan section warnings caused by >> >> > > >> kernel/pi") touches vmlinux.lds.S, so to make the merge easy, this >> >> > > >> 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 few >> >> > > other things I have in flight still. >> >> > >> >> > Confirmed with v3 on mainline (linux-next is pretty red at the moment). >> >> > https://lore.kernel.org/linux-riscv/20230517082936.37563-1-falcon@tinylab.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) was >> >> 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@kernel.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=riscv LLVM=1 /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 OK, it triggered enough of a rebuild that it might take a bit for anything to filter out. Thanks! > >> >> > >> >> >> >> Cheers, >> >> Conor. >> > >> > >> > >> > -- >> > Thanks, >> > ~Nick Desaulniers > > > > -- > Thanks, > ~Nick Desaulniers