Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1874406pxb; Wed, 30 Mar 2022 11:40:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZEdu5RGKBBpIp620Vc7YLNyMxXOvyss1fR/b5GzBpXQhntgffPpD/4pE7Ff8ADtp4eCw3 X-Received: by 2002:a63:5f4e:0:b0:382:3b02:a4a with SMTP id t75-20020a635f4e000000b003823b020a4amr7405469pgb.451.1648665655891; Wed, 30 Mar 2022 11:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648665655; cv=none; d=google.com; s=arc-20160816; b=JmaTkSQL4hSbB4j2hMGTK/Ot5wDRd71ko2UQbxtpnug1onSD04bPc71KfUxEenRLaT MsYhaUcs+nMXTWAeauHcmXzVbQxbdwACRYACT+RFolpzD052Wo4ASgyxUGGkfyUZjU57 leVrv9Ni7VaNJo8y7UAg9Dj52XAIPoENFOySumRUIZXF4rS2ZTsNF8T+ZrFJeC6WgAZB TXGK0FQQAaV0niDVVfQqpkUfrGwuhkLNzMJkC8p2Wp8SZE5mgBI76nIrcrMoGxeKOzHR 0EFPhv1ML+jHSTFhntUu4myZMUQns3joavaWhEdj+EoI9y6NZx5vwhM/KsXbTpoJpXTd /nzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Lloyabsf5bPgTFsSt6RFgPuhhL3h2AanphqpyZwaqmc=; b=kFfOwzIT0QExHjq2Pl2Fc+8y3+8SQ2Jn0223RetxtyJlcB7AygbZ6vaBNbMH2lFDXR u8E8rEENAf7m39UlXC8H/S+yTTfaBHDUM9IIzgFfaZSNCv5FTaZgZeamvnqjRAZPI0u5 iYplzh8XBxz14dTpJObKPec3BUhThJYPQoInCPLY73F9etqKcylCu6rFNpAlWwTDmz1h 9YsQXiim4WT7hAGuQ0eajzwjTiZetqQm/PzZp1wWoAl8cVAlF/Rg6szVYRe124ELn/A9 VRGgWxf2MwjIzrc4VHEJsnbuwSraXf0yeB2S+x8U/IKKe2yXpJEZw4hdTes7+w8BiTIz SMBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wAq7+QE3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v6-20020a63f846000000b003816043f003si22485714pgj.504.2022.03.30.11.40.41; Wed, 30 Mar 2022 11:40:55 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wAq7+QE3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348652AbiC3QNI (ORCPT + 99 others); Wed, 30 Mar 2022 12:13:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348649AbiC3QNG (ORCPT ); Wed, 30 Mar 2022 12:13:06 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7061B3981D for ; Wed, 30 Mar 2022 09:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Lloyabsf5bPgTFsSt6RFgPuhhL3h2AanphqpyZwaqmc=; b=wAq7+QE3mDGjxlvePXXO4dIUd1 nP6YjB3+Gv+1ByNsDwzLyblp80h/WtjiLp/BQl+SIpzjsxxy9BB5MjzMfytFGVieKPT/zDovDWQmD E4a3Oj9kZleEk2j18HO2lEvPnUrFjNtTb7GrAwra3fAEipxzpMP1W90QUtYY584XDyNm8eqsv/Nx4 nHjd+xJvF+SMrivvIm41s6UeTC/zBny4sZ6W1uDYLDO30ypePMDmwEfDHJc+lGv2bZSXsaHE3aZ+v zB49Cw8fZl/rSQQr/2B4DS0ySoPc/uY0qMATfugY2/JmQoe40gPlHjJzaO6p80zWzZuf4tXLPynxk 4cVjqpiQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58012) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nZauj-0003Qe-W5; Wed, 30 Mar 2022 17:11:17 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nZaui-0006kk-4R; Wed, 30 Mar 2022 17:11:16 +0100 Date: Wed, 30 Mar 2022 17:11:16 +0100 From: "Russell King (Oracle)" To: Christian Eggers Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor Subject: Re: CONFIG_THUMB2_KERNEL=y boot failure after Spectre BHB fixes Message-ID: References: <2109354.irdbgypaU6@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2109354.irdbgypaU6@localhost.localdomain> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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, Mar 22, 2022 at 06:49:17PM +0100, Christian Eggers wrote: > Hi Nathan, hi Russel, > > I stumbled today over the same problem (no output on serial console > with v5.15.28-rt36). During `git bisect`, I had also some commits > where a few lines of output were visible. > > At commit 8d9d651ff227 ("ARM: use LOADADDR() to get load address of > sections"), the system boots up to here: > > start_kernel() > +--setup_arch() > +--paging_init() > +--devicemaps_init() > +--eary_trap_init(vectors_base = 0xC7FFE000) > +--copy_from_lma(vectors_base = 0xC7FFE000, __vectors_start=0x0, __vectors_end=0x20) > +--__memcpy() > > copy_template.S:113 > ldr8w r1, r3, r4, r5, r6, r7, r8, ip, lr, abort=20f > r1 = 0 > > > With the final v5.15.28-rt36 I found out that the system boots fine > after disabling CONFIG_HARDEN_BRANCH_HISTORY. > > Is there anything else I could analyze? My SoC system is a NXP i.MX6LL > with a ARMv7 core. I have access to a JTAG debugger. I think this is already fixed in mainline. Commit: 6c7cb60bff7a ("ARM: fix Thumb2 regression") -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!