Received: by 2002:ac8:1418:0:b0:3ab:920c:4c8b with SMTP id k24csp434301qtj; Thu, 19 Jan 2023 08:05:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfoatsf8nFrkuu1ektpooy1aJRe65/fEO96anaGQ0RVF7IzbyhFJYFyxzALsMJeOHn0Zky X-Received: by 2002:a62:838d:0:b0:587:102b:edb6 with SMTP id h135-20020a62838d000000b00587102bedb6mr13293006pfe.17.1674144357256; Thu, 19 Jan 2023 08:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674144357; cv=none; d=google.com; s=arc-20160816; b=GFdymXfxrAy72Nd5ANau+xayFboWf8QcJvhITxhK0IuLOGmUqCLaRFWISJV08F5fyp 2sa70vBWaha/1Zi12G2+UbUqWlQet4iHoYyDU3htvI2TJygSunq5KkZcOuz8TSI6nqkb 8jBUFmUQ/jDmqUabhTKGU+yDsS+mcR4PtUXnLAKjbgDe7lhZbgFPClQzQ8TDpc04mMib blc2bvl/C9rAv/1WRS95lJdIFCoWL4TVP3x7VP6/j9FcMxd1pjBMYLzsxaxf4o9lkCuM 48nbi15XkDftbiqJJngV0APR8l5CyWp4meHdDMwYrfvQt7DY7y8LKa3LmnpcqzhKsx1d m1+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=26Vzdfk8IdehtEF8twTCYdwKeIkT3v/NB65Q8/opuvU=; b=FsZdi5/QgwDqMUTPJi25DaOdVYzPjg5oZPOxJdbuOVDDgCDrDn+pWDCcraLPJbcmRs eEfZqTTrKvCWqW2Y7mlzWtpObIH4SzH2zAik7ZLqbFd/boBy6pY1w3JtazpEf/uK6Ua7 wWt0tYYliudkmlUkH5RNgv55sT8I6eVh027yWuvmDQdafyuRPLuFxktoOsJhiIY5NNqV PYcAKi4XChN02CtN6RzQmJVtJS99wLsYmlCDulPhY9FCtJEYGbVvYSN+aTwRmrucPDUG alfCPaouEdTW9OhywCjV00vcVIACOTVpmGeUPvIwe3xRSeowRz/gXuKpEgq8TEz0psr7 1WVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=wKnaZKGv; 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 h2-20020a056a00170200b0056341219532si12697626pfc.89.2023.01.19.08.05.51; Thu, 19 Jan 2023 08:05:57 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=wKnaZKGv; 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 S229991AbjASPS5 (ORCPT + 45 others); Thu, 19 Jan 2023 10:18:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbjASPSq (ORCPT ); Thu, 19 Jan 2023 10:18:46 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1EF18298E for ; Thu, 19 Jan 2023 07:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=26Vzdfk8IdehtEF8twTCYdwKeIkT3v/NB65Q8/opuvU=; b=wKnaZKGv244sKaa5/MbOQalVW2 +GNCgmvInCTBakotr37QLjo2O17nERiNMWouC04X0XvwzhQeQ2HRBa7Ky/ZxAe113ULLv+Cv6837Z e1dBTnnlf1nFWPcD5lB2UBtS1LcRKFSukIJl470uUNgWbbFbx0aAxpzf5CsHykGzFNcM7Xl1aiqAM SxM3rRtS9MJ3w7eF8P0G2jPScLimVe6bLDg2N3s47NBDsuBkpqOH/2djIM61pojKRKLFCiAX+TSYP o4Eagk+2oqsLMmCznNVhTx53iOScKpvk4OvLG3eU6X2XSQziFg4gSg9NrbgPMnvnIkc4nALyjBn+s L1o/ho/Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIWgV-00158f-Pv; Thu, 19 Jan 2023 15:18:36 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 3F9AA30008D; Thu, 19 Jan 2023 16:18:34 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 243BF20DC30B7; Thu, 19 Jan 2023 16:18:34 +0100 (CET) Date: Thu, 19 Jan 2023 16:18:34 +0100 From: Peter Zijlstra To: "Erhard F." Cc: sandipan.das@amd.com, linux-kernel@vger.kernel.org Subject: Re: [bisected] clang 15 built kernel fails to boot, stuck at "Loading Linux 6.1.1 ...", gcc 12 built kernel with same config boots fine Message-ID: References: <20230119022303.177052e4@yea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Thu, Jan 19, 2023 at 02:56:08PM +0100, Peter Zijlstra wrote: > On Thu, Jan 19, 2023 at 02:23:03AM +0100, Erhard F. wrote: > > Hi! > > > > I did a kernel bisect for an issue I originally posted on https://github.com/ClangBuiltLinux/linux/issues/1774 > > > > It is about kernel 6.1.x not booting on my machines when built with clang. A gcc built kernel with the same config just works fine. Turns out kernel v6.2-rc4 and earlier v6.2-rc are still affected. > > > > I did a kernel bisect which revealed this commit: > > > > # git bisect bad > > 706460a96fc654e80b6bed1f562b00d2ce9f2f4d is the first bad commit > > commit 706460a96fc654e80b6bed1f562b00d2ce9f2f4d > > Author: Sandipan Das > > Date: Thu Aug 11 17:59:51 2022 +0530 > > > > perf/x86/amd/core: Add generic branch record interfaces > > > > AMD processors that are capable of recording branches support either Branch > > Sampling (BRS) or Last Branch Record (LBR). In preparation for adding Last > > Branch Record Extension Version 2 (LbrExtV2) support, introduce new static > > calls which act as gateways to call into the feature-dependent functions > > based on what is available on the processor. > > > > Signed-off-by: Sandipan Das > > Signed-off-by: Peter Zijlstra (Intel) > > Link: https://lore.kernel.org/r/b75dbc32663cb395f0d701167e952c6a6b0445a3.1660211399.git.sandipan.das@amd.com > > > > arch/x86/events/amd/core.c | 34 ++++++++++++++++++++++------------ > > 1 file changed, 22 insertions(+), 12 deletions(-) > > Using: v6.2-rc4-67-g7287904c8771 > > I have an AMD Interlagos and after bringing it back to live/up-to-date I > can't seem to even boot your .config in qemu/kvm irrespective of > GCC/Clang. > > When I build defconfig+kvm_guest.config both GCC-12 and clang-15 boot > just fine in qemu/kvm. Furthermore, testing localyesconfig based off Debian's config-6.1.0-1-amd64 boots fine using both GCC-12 and clang-15 as host kernels on that machine.