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 X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,TRACKER_ID,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1647EC433DB for ; Thu, 4 Feb 2021 21:51:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A541864E8C for ; Thu, 4 Feb 2021 21:51:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A541864E8C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject: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=AXHxtC2zjHYit/cG0a8gneowVrBdO3N+5ALymnBmvJk=; b=U8w8YOnjQgBS0SSd4ZEySelWs zntBg9v7aL1lPc+3JczoZgHqmVvsvWeG0x5ClRqhngBRMJzqTlJN5CjlZZl2/nOq1uToMFO+X3A6k NoODZDP1xADYTP6PURWz//P9vNDkpq9PRJfSBW5cc7SdhXLtgOft/A1nL8JdW0BHV3lmghFpkSYFT QdFf97hrK3i8dSpfkQ55RpirX60oEiEKHuxIGndQK3G+iAIOg7vHEF7+O14EmXONeL71iLxDmf+6o 8Xwwi1JLHwcH+2w/0PV8KMbH2S4oMkGjix/KRBNUlu6N2YgPHlFx2Gmt6NQkSbpAtkbgXntDvMg6E EmrvZboyQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7mWX-00077G-SA; Thu, 04 Feb 2021 21:50:50 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7mWV-00076Y-HB for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2021 21:50:48 +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=yPJqHn1HxKlAeb4Xz5DuRyDCntFfH5AIxoghocthOno=; b=zXDdgagBbnrUhvlW8IFuRdlVi XgmndcR3XYK33CiTRnN/pZ9niHaYTARNLGxXbrxUVSrUi1WnHUtc4JmFWU+MbbbjiZ9iZLzTdEFTE CU23mzkQtBnMsV9UoJ5sKbuYM2EcxfuOZU/RWt7UFB022umZrpcIVoFMCfDi8r92Uf1z/qwGzhQv2 Trr8s90WZrP0KPNxXzr1bDZ+vodXdlP6iH5x0MFNYaqR7hTyjWlEhxNhFSd8RDKxnfBw003503nFB J5MRfcS7PSlQyNgrKV1imDdpMbjWkSQ8WzRmlgNshZBi8UXpozZ3ahd9dUSnFMcBuewv7Z2903ize aqX8Girbw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:39256) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7mWK-00076a-3E; Thu, 04 Feb 2021 21:50:36 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1l7mWH-0005Xk-M5; Thu, 04 Feb 2021 21:50:33 +0000 Date: Thu, 4 Feb 2021 21:50:33 +0000 From: Russell King - ARM Linux admin To: Guillaume Tucker Subject: Re: next/master bisection: baseline.login on rk3288-rock2-square Message-ID: <20210204215033.GD1463@shell.armlinux.org.uk> References: <46373679-a149-8a3d-e914-780e4c6ff8be@collabora.com> <7c685184-8688-9319-075b-66133cb0b0c3@collabora.com> <20210204181216.GB2989696@localhost> <253b2987-c8e9-fcb6-c1b9-81e765c0cc2a@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <253b2987-c8e9-fcb6-c1b9-81e765c0cc2a@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210204_165047_609177_D4FDA75D X-CRM114-Status: GOOD ( 23.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "kernelci-results@groups.io" , Geert Uytterhoeven , Nicolas Pitre , Linus Walleij , Nick Desaulniers , Linux Kernel Mailing List , Nathan Chancellor , clang-built-linux , Ard Biesheuvel , Linux ARM 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 Thu, Feb 04, 2021 at 09:31:06PM +0000, Guillaume Tucker wrote: > On 04/02/2021 18:23, Nick Desaulniers wrote: > > You're right, I missed `LLVM=1`. Adding `LD=ld.bfd` I think should > > permit fallback to BFD. > > That was close, except we're cross-compiling with GCC for arm. > So I've now built a plain next-20210203 (without Ard's fix) using > this command line: > > make LD=arm-linux-gnueabihf-ld.bfd -j18 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LLVM=1 CC="ccache clang" zImage > > I'm using a modified Docker image gtucker/kernelci-build-clang-11 > with the very latest LLVM 11 and gcc-8-arm-linux-gnueabihf > packages added to be able to use the GNU linker. BTW I guess we > should enable this kind of hybrid build setup on kernelci.org as > well. ... > And this booted fine, which confirms it's really down to how > ld.lld puts together the kernel image. Does it actually solve > the debate whether this is an issue to fix in the assembly code > or at link time? Well... as I mentioned previously, we don't really understand what is going on between the decompressor running with the caches on, turning the caches off, jumping into the decompressed kernel, and then getting to the v7 setup code. The results from various attempts at solving the problem which lead to Ard's original patch that caused your breakage were not making a whole lot of sense (I think I wrote that all up in a previous email thread, so won't repeat it here.) So, I was slightly nervous about merging Ard's fix - and your report suggested that there is indeed more going on here that we don't understand. When I was tracking down what was going on, I had this patch applied (I've had to recreate it, so may not be exactly what I had), with the DEBUG_LL stuff appropriately enabled. It may be worth applying this patch, enabling the DEBUG_LL stuff appropriately for one of your failing boards, and try booting it. You should get two strings of identical hex numbers that look something like: ffffffff480000000900040140003000000000004820071d40008090 If they're looking like instructions, for example: ee060f37e3a00080ee020f10ee020f30ee030f10e3a00903ee050f30 Then it's likely that you are seeing a very similar problem as I was without Ard's patch. If you do get instruction-like content, then you will likely find the sequence of instructions in the decompressor code. diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index 28c9d32fa99a..19fa93ae282c 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S @@ -475,7 +475,39 @@ ENDPROC(cpu_pj4b_do_resume) ldr r12, [r0] add r12, r12, r0 @ the local stack stmia r12, {r1-r6, lr} @ v7_invalidate_l1 touches r0-r6 + ldr r0, [r12, #0] + bl printhex8 + ldr r0, [r12, #4] + bl printhex8 + ldr r0, [r12, #8] + bl printhex8 + ldr r0, [r12, #12] + bl printhex8 + ldr r0, [r12, #16] + bl printhex8 + ldr r0, [r12, #20] + bl printhex8 + ldr r0, [r12, #24] + bl printhex8 + mov r0, #'\n' + bl printch bl v7_invalidate_l1 + ldr r0, [r12, #0] + bl printhex8 + ldr r0, [r12, #4] + bl printhex8 + ldr r0, [r12, #8] + bl printhex8 + ldr r0, [r12, #12] + bl printhex8 + ldr r0, [r12, #16] + bl printhex8 + ldr r0, [r12, #20] + bl printhex8 + ldr r0, [r12, #24] + bl printhex8 + mov r0, #'\n' + bl printch ldmia r12, {r1-r6, lr} __v7_setup_cont: -- 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