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=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 A1E35C11F68 for ; Fri, 2 Jul 2021 14:50:40 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6A5DF6140C for ; Fri, 2 Jul 2021 14:50:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6A5DF6140C 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=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=2mLmKioj7wRVMjZ+BmtHjJ8MvA39FIsizBSVPryIWA8=; b=SxgAp3bzToPjuK JVtoEL28wXBcIHIhck7+A1m9K5HFJoLKsezfnTRzYXOiaDeGfJJV/ONg0E0B4FU75Fg/f1DtxWHKS RxEeh0S55A4ObkMoOZBdK3UOBtHbEtUcquiCEkq/ZqGL/gFGzJu9Jdo2CcqKFnsCDUcIWu3JO2JDk UK+4eAmIqj39YifJbmh6G/DgIhYnm6QQHjv+NI6DiGPmcihVPlD8vbDQvDBN4z1hDPMvG87lofYu/ j/FIJqjmzZZss4cfqNji+O7HLJMbHY1h9ZtAYnD4tM09Ul2U2D0EdNa3Dz0aGmVVVgd+2c9+ruavx ZRvDqTZsEQH9FpOMZMrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lzKTL-003JZd-FS; Fri, 02 Jul 2021 14:48:52 +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 1lzKTG-003JXe-C6 for linux-arm-kernel@lists.infradead.org; Fri, 02 Jul 2021 14:48: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=Qvysr3c6BdfGUsYLdpAa/hCxKsMCLZU9Q7/INGVDZzU=; b=I7TeENhC+S2KRe9bO/v6Y+EFY MZXYlWtQhUI6ZCoLPMOVwDv63GXNf8gGZtSvBitjlCcWnlhYsaSo0OTD7HdPEXMyJNjQYv7z9RrCa z9WaXtGBfTxnqj7utRjwETBk5d7GLbQdnfXLW5sKluX7bN+w0YMn2dG5z5+T/2uKphLAKskkC02tL 1fCmsHL3ytToCLUGXGGnMqaB4EdRZGJ/p8jKWllClIAAh0wNU8WlWl++OQLUloiScf/yF8d03/+WW xM6MDABmeFXQZJGjSTmTLJl8d4A3fkT85brun5zLC6i6A23r2BEdXCUQVQ83uMmwzQfoiOK/FEND6 pAhNl7u8A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45632) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lzKT4-0002od-F3; Fri, 02 Jul 2021 15:48:34 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lzKT3-00057l-J2; Fri, 02 Jul 2021 15:48:33 +0100 Date: Fri, 2 Jul 2021 15:48:33 +0100 From: "Russell King (Oracle)" To: Catalin Marinas , Will Deacon Cc: Nathan Chancellor , Masahiro Yamada , linux-arm-kernel@lists.infradead.org Subject: Re: Regression: commit 987fdfec2410 causes build to incorrectly issue warning Message-ID: <20210702144833.GO22278@shell.armlinux.org.uk> References: <20210702131301.GD1350@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210702131301.GD1350@shell.armlinux.org.uk> 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-20210702_074846_488334_94AD33E6 X-CRM114-Status: GOOD ( 21.00 ) 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 Fri, Jul 02, 2021 at 02:13:01PM +0100, Russell King - ARM Linux admin wrote: > Hi, > > Commit 987fdfec2410 ("arm64: move --fix-cortex-a53-843419 linker test to > Kconfig") breaks the ability to detect linker support for this option. > Building 5.13 for aarch64 with Debian binutils 2.31.1 results in: > > .../arch/arm64/Makefile:25: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum > > This is because ARM64_LD_HAS_FIX_ERRATUM_843419 is not set in the > Kconfig, indicating that the Kconfig test for linker support for > --fix-cortex-a53-843419 has failed, yet this version of binutils does > support this option: > > $ aarch64-linux-gnu-ld --help | grep -e --fix-cortex-a53-843419 | wc -l > 8 > > Reverting this commit fixes the problem for me. Sadly, while reverting the commit fixes it during the initial build run, the warning pops up when doing the installation step. I'm not entirely sure what's going on here. Having put the commit back, and re-run strace (and waited ages) it appears that the ld-option command does succeed, and I eventually end up with the option present in .config. However, it seems that if we have a .config that has the errata enabled, but doesn't contain the _LD_ option, then we end up issuing the warning before we re-run the Kconfig step. Eventually, I seem to have ended up with the _LD_ option set. Quite how, I don't know. When I originally noticed the problem, I had done a full rebuild. I then re-ran the build several times, and the warning popped up every time. Now that I've touched arch/arm64/Kconfig and re-run the build, it doesn't warn anymore - in fact, while investigating this and stracing, the option magically set itself and the problem has vanished. There is definitely weirdness and unpredictability going on with Kbuild - I can't explain it. Maybe its just become way to complex... -- 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