Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9520968rwd; Wed, 21 Jun 2023 08:25:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wFxs5kheIKahRIRsk1P1neXoezjMdxHRde4M3X7WYNJ/BkaQb2E9p3OIhI0o/if/fjurE X-Received: by 2002:aca:654c:0:b0:39e:d344:b4ac with SMTP id j12-20020aca654c000000b0039ed344b4acmr8768212oiw.37.1687361137137; Wed, 21 Jun 2023 08:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687361137; cv=none; d=google.com; s=arc-20160816; b=ml40Mpzm4waa7eyWZy2QHiOpeQQ6Gdvc3b2SQqyuknywPRI4ysMzkCwvUk4nxXzCkU 4D1++bceUJXSkO0/vBRly3NovX7MJzLqx5pJh3R4ujV7Yt06m5MWAXsGiJxs5CjTk5cr Yw+R6m0NM/tOOR0HH5vrfGH69TzFLV7+y6Js2NnVpUkBnLb1rwQRSOSmew9efrmhUHwv yRt5vF9AUiU3EtJOgvKLmEmGxUYFqGUC4OEUkHaUQq5p+l9nxe0w4BZTSgYcioA8I44t yR3WtD3vOKTIISpbbL9E0KeW0ydaMZ3mRSBhhODfQa0D3EUg5p2vB5sHTNQC56U4KnhR UxRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:to:from:cc:in-reply-to:subject:date :dkim-signature; bh=NEunxZx+vC6MelzaldzUGnTGO3Vi7pASMkXGIahe5XA=; b=JFe1jG44OfJLDS0mZdkapBNCZ+942cahycsVbsXjjx+Q7OdN9WDCY7P66Y5UPogb3V VBFUIZYuEHo2m2f35138y9LSuMPCdZ5XYHgMuCjCEJWWwV7PfOphb/KlTfw8f1CFgLw7 cwZhfHxwq4beU4yjuHLUWpGcAus9L9a2l11ShyfItF5XBPOTJ9pjpmasmbhNVaBob4/r npRJwFOZYSNszueBdk+v29cujmmiApkD8LldcNm4V35JH8FIPfnj6cMfoWP5IMUQ/5R4 eOulaZjnDvYDC359HSuL6aHMsev4SelqPYs3kB6bJSToGI9zfHnvn5Vxx0zELf7JmWd0 dL2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=bYpuGrZT; 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 c5-20020a6566c5000000b0054fd35b2dbcsi4336981pgw.350.2023.06.21.08.25.24; Wed, 21 Jun 2023 08:25:37 -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=bYpuGrZT; 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 S232750AbjFUPBH (ORCPT + 99 others); Wed, 21 Jun 2023 11:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233227AbjFUPAJ (ORCPT ); Wed, 21 Jun 2023 11:00:09 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E056B213D for ; Wed, 21 Jun 2023 07:54:55 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-543c692db30so4756217a12.3 for ; Wed, 21 Jun 2023 07:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1687359240; x=1689951240; h=message-id:to:from:cc:in-reply-to:subject:date:from:to:cc:subject :date:message-id:reply-to; bh=NEunxZx+vC6MelzaldzUGnTGO3Vi7pASMkXGIahe5XA=; b=bYpuGrZTsbhuaTu8IIpHZWhFhEv6vXfMSbFP9R3YwjT2YT0YVh4zrGP/FgFxTDx6QH ziqZ4e3/ajwrUsCP0KW9VDN2Pi9GpID2OiiVwgjubXqVIafnefIQ7d+Uh96k6tFzTPt3 JXmja7m3Q6NZBW+yQ0VqQNzU3J7f6GGekk6QiHLjbYUzKQtO4APGTsyNdcSdtinDt76w D0aQ/YloI+GwzvH0mrYS/UQStiJIY6BClzjpWl77kRwZkC8C8Q06iYT11l8Hlr4J95uc 4wvLHMqSxBoTiuFF6HbDprsun8QMc7uK8aTg1oYzqwf4xvpdIyjyVLrSqsuKK4ptDBWj 9dLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687359241; x=1689951241; h=message-id:to:from:cc:in-reply-to:subject:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NEunxZx+vC6MelzaldzUGnTGO3Vi7pASMkXGIahe5XA=; b=b2QJ/G4/SoXoYUbt8bxFKx9plfxx4XPH2zisuN0JyFDlK2XQn1dJ0m22Vr1Ba4fp7P ObvTIMSxkOQ6ZZ6Lsk2ERJEQMkv5tPZT1I+IRa3W9zYzgTtDUnBPiS/mM5GHBfVRKExu 5lkPE/sVfAarlMKor3XDuyQftnLutJFi2W0lY3FmYqsLiYZbVD8C4cNfBPtaEKj5gI2i F9vlhFmvEHCNPMCrEb2mIO8q6DIQTzs/2KkHKU3aoTOZaoDuh1ll/DkDbIbhrzFp5j5v joIaZ7wD11SdUsVbezwchCjNXlgc+FoH/8tQSfyHn6H0kRbcdV/hb0DguLXUOKAmW0M/ i+5Q== X-Gm-Message-State: AC+VfDxjajjcedGf7FafIuW4wvzSyZjlPW7iExs4J01KLlgC4JRL2I9H ABkTTIJIO3C79xHYryD4tNd2sw== X-Received: by 2002:a17:903:1250:b0:1ac:aba5:7885 with SMTP id u16-20020a170903125000b001acaba57885mr18055679plh.47.1687359240597; Wed, 21 Jun 2023 07:54:00 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id d12-20020a170902cecc00b001b03a7a40e7sm3638417plg.19.2023.06.21.07.53.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 07:53:59 -0700 (PDT) Date: Wed, 21 Jun 2023 07:53:59 -0700 (PDT) X-Google-Original-Date: Wed, 21 Jun 2023 07:53:17 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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,PP_MIME_FAKE_ASCII_TEXT,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 17:13:17 PDT (-0700), Palmer Dabbelt wrote: > On Tue, 20 Jun 2023 14:08:33 PDT (-0700), Palmer Dabbelt wrote: >> 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. > > I'm on LLVM 16.0.2 > > $ git describe > llvmorg-16.0.2 > $ git log | head -n1 > commit 18ddebe1a1a9bde349441631365f0472e9693520 > > that seems to hang for me -- or at least run for an hour without > completing, so I assume it's hung. I'm not wed to 16.0.2, it just > happens to be the last time I bumped the toolchain. I'm moving to > 16.0.5 to see if that changes anything. That also takes at least an hour to link. I tried running on LLVM trunk from last night $ git log | head -n1 commit 5e9173c43a9b97c8614e36d6f754317f731e71e9 and that completed. Just as a curiosity I tried to re-spin it to see how long it takes, and it's been running for 23 minutes so far. So I'm no longer actually sure there's a hang, just something slow. That's even more of a grey area, but I think it's sane to call a 1-hour link time a regression -- unless it's expected that this is just very slow to link? > >> >> Thanks! >> >>> >>>> >>>> > >>>> >> >>>> >> Cheers, >>>> >> Conor. >>>> > >>>> > >>>> > >>>> > -- >>>> > Thanks, >>>> > ~Nick Desaulniers >>> >>> >>> >>> -- >>> Thanks, >>> ~Nick Desaulniers