From patchwork Fri Nov 3 17:11:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 10040833 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 526E360594 for ; Fri, 3 Nov 2017 17:14:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A2ED296EF for ; Fri, 3 Nov 2017 17:14:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F45D296F6; Fri, 3 Nov 2017 17:14:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E67F0296EF for ; Fri, 3 Nov 2017 17:14:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lE92LGuGsDtTPVqfdh7iftv3nSFTjnIYNh7UMY0fd0Y=; b=AjGQ5+/3j+OfYXtJrN5oSEiT5r FCeNUcyRhhcb99ugDKufPySiLXeGE+aYKSRw3LPG1qVqhFVg7ckmfHKNYMJhoyAJMF+mG0LheyPcG ZmNiJTR8ATVUdJH6uXWm3mRZMxn0UuEnzQZ6iKKOZpfZSTDLGbHfTOGqo3wsPYRYo1PZ2fKfSZKk+ rNs94lEobma5IeRt9MyDKQweBLiTrBrawT+7STcNkGaTbBkaSv5bcQpdS6Oeo5K1+7issDhLxT3cz CGYdwOCqaqnF58pgmv+lnfexOm+VBx4Lj8pX8wY/b51pngoEfDWvv0FUYzFYzA4OS3Un7kzIkA2al JYYlLmNQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eAfXd-0000zF-UA; Fri, 03 Nov 2017 17:14:01 +0000 Received: from mail-io0-x244.google.com ([2607:f8b0:4001:c06::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfWp-0008V3-J3 for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 17:13:36 +0000 Received: by mail-io0-x244.google.com with SMTP id 101so7763758ioj.3 for ; Fri, 03 Nov 2017 10:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=do93aTIEcJn4C0UILQx7RECF7lw0ODtit5Rs30NPFDo=; b=MetHbiSskFW5lZ53ITDl2Ot1T/BCL8JRK79DR+pk0oaPjEN0STQHRjEdeLVB3UyUj0 Q6eoEgipY13G0GAdp4mg8oQdvhST5/O6D4Af5O1+vjNkwOYcWchfKPrS7fSD2qcE1Xcc wuALBJqc7RYkqgaOKIp5Q2ShjZ8ks7wihoi6BoAUPi4Zp0U3HGsSQQvew+O4uzBi11qh mE6zY+Aj2KxNmwd0tWWyfJR8wp57K9KnU6A2/QNdTZFsWw5pCzml1zJcj6VJJdD+QZ6n ZPny/nFZUV9ULmgw6GS23IdQjeW7FGEUBNHS9vO6Hf5YK+MfeQx2p3p9XaZro/XA8mCR IBpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=do93aTIEcJn4C0UILQx7RECF7lw0ODtit5Rs30NPFDo=; b=Ubhqw5ZAumutFFL+6ovmIR/ySYPFLkAH4wqnVzsiwelQjSNqZuC1wqiYLnSjvIvBJD xBZ3yYTrF75anIlfLrVWvIeML14adt56q/bfl5rUroV/p3+ePXWhgnxLH8Id6yF8ftBD RODQk21WQWmUVB3n1cmHF++D3d+7j9x2yXiWQNLvzWGUT0jruycHgKLVKMObSX42BvWO dk46Km67+5UCTx/ZiQ6XeSiJBl98M0lgEwrw4P6nO1twMLIFSL/BRTJyf6Ug+udlbAY7 7WA+MZTprFSLgvatOQ74A7lqLTeHdxoMwDWCIrlxjVWUwAo0K66LxVPXU0H2VFnZCZb0 WZ2w== X-Gm-Message-State: AJaThX7sl74pKrMGHl0K/q+iU2+ARsbcwxxK36b2Kz1ILFHHyKX2ctdJ RtAKhfO2w4YzFwB3wZ7eNl2Llg== X-Google-Smtp-Source: ABhQp+Qnjz1cqHQsB7GrI1cc+pGvz99Zv6jcZTZXQ5JeDoMPiK0Z0kpsszfan9oQelJxQ5Yqj50+PQ== X-Received: by 10.36.101.68 with SMTP id u65mr698110itb.4.1509729174500; Fri, 03 Nov 2017 10:12:54 -0700 (PDT) Received: from samitolvanen.mtv.corp.google.com ([100.98.112.14]) by smtp.gmail.com with ESMTPSA id d186sm1370787itd.38.2017.11.03.10.12.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 10:12:53 -0700 (PDT) From: Sami Tolvanen To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 10/15] arm64: disable ARM64_ERRATUM_843419 for clang LTO Date: Fri, 3 Nov 2017 10:11:55 -0700 Message-Id: <20171103171203.107569-12-samitolvanen@google.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog In-Reply-To: <20171103171203.107569-1-samitolvanen@google.com> References: <20171103171203.107569-1-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_101312_308202_40E4C649 X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sami Tolvanen , Matthias Kaehlcke , Nick Desaulniers , Kees Cook , Greg Hackmann MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP CONFIG_CLANG_LTO depends on GNU gold, which can generate ADR_PREL_PG_HI21 relocations even with --fix-cortex-a53-843419. Since ARM64_ERRATUM_843419 disables kernel support for these relocations, disable the erratum when LTO is used. Signed-off-by: Sami Tolvanen --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0df64a6a56d4..43ccddb7c8ec 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -433,6 +433,7 @@ config ARM64_ERRATUM_845719 config ARM64_ERRATUM_843419 bool "Cortex-A53: 843419: A load or store might access an incorrect address" + depends on !CLANG_LTO default y select ARM64_MODULE_CMODEL_LARGE if MODULES help