From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CB517B for ; Wed, 30 Mar 2022 16:20:24 +0000 (UTC) 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> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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) 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! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45772C433EF for ; Wed, 30 Mar 2022 16:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NZw/m59Aw4bajRLmzFWj5C1f0SCo0DwAB5BXiObYaRI=; b=Wo7wmiDw8MlNnY rBpYX8NJCTAyFDxKz6OcC3nDAuynVB6IGCw+LzGMIATFFyTk5cXZn0XVePCwpipqrVQtgg9dPFLPq f9S4Ke+pZ9ZGOCzrWEJ703MvJjo1kNX9y/LT+1tIU4aHnfb0LS4GxLRuoORAI+b7tfLfc1CZisdgy C5lt+OoKbEDhFLt97zB5DqYHyK1HTnD1uFjYe6rUYnp5WSyXdCOfWdfAE4IdoZ37cApONzsuiJ13U 4GkCol+/BzSV1aaFwSzVJrTlASisNFaZkIsvsVofA96+v/frUh7JEsGz5HQu6TAvYiXn70fv8pRw7 exLV9YnHUBH7tK1AJJ8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZaus-00GmsE-Bn; Wed, 30 Mar 2022 16:11:26 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZaun-00Gmqb-9A for linux-arm-kernel@lists.infradead.org; Wed, 30 Mar 2022 16:11:22 +0000 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-Disposition: inline In-Reply-To: <2109354.irdbgypaU6@localhost.localdomain> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220330_091121_346202_FC6D4CBD X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel