From patchwork Sat Feb 17 09:04:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Catalin Marinas X-Patchwork-Id: 874734 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PXMq+po9"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zk3wt2Q5Zz9s0x for ; Sat, 17 Feb 2018 20:04:30 +1100 (AEDT) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=K0NAqrLVEmuC2qz2EWBY/62Go6hkZ0KMggg0koY80Eo=; b=PXMq+po9DuiUtV 69GY1JnhrFXFiiwQkzeU0By1F9nxv3p2kLsATViYdLWovhHvVsH5HLhJid/iJdSjEhZnigTmpqTLc IBRSelSL2uQbN69lfaFsB0vflNY91a3+mrq2eVSOSlmWywNLxGwRmczXWqgkDjgczgKqvuJbwS4hI qI7Y29Hbx7wvqyGHPYjn4nHHgd7ELo1W3UsTwdaloWDvZFmAMURbtep1jonpB18gNtrTXnLxDo35q 7Bo4+rQZ/KQIArjf1GUCeYa7nfyMwCT258VCy8L6aSm2NcU6HdcxLrBfHZIWDZEJ7y+3tBczqT1ie bHH+RnpDLKiVydHfseHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emyPu-00030j-Jn; Sat, 17 Feb 2018 09:04:22 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emyPr-0002zT-Vf for linux-arm-kernel@lists.infradead.org; Sat, 17 Feb 2018 09:04:21 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7E38D80D; Sat, 17 Feb 2018 01:04:09 -0800 (PST) Received: from armageddon.cambridge.arm.com (armageddon.cambridge.arm.com [10.1.206.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6B9493F24D; Sat, 17 Feb 2018 01:04:08 -0800 (PST) Date: Sat, 17 Feb 2018 09:04:05 +0000 From: Catalin Marinas To: Linus Torvalds Subject: [GIT PULL] arm64 fixes for 4.16-rc2 Message-ID: <20180217090404.guyuppnw4fnxyr3z@armageddon.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180217_010420_052777_793E88A3 X-CRM114-Status: GOOD ( 11.81 ) X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.101.70 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi Linus, Please pull the arm64 fixes below. The bulk of this pull request is the pte accessors annotation to READ/WRITE_ONCE (we tried to avoid pushing this during the merging window to avoid conflicts). Thanks. The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes for you to fetch changes up to e1a50de37860b3a93a9d643b09638db5aff47650: arm64: cputype: Silence Sparse warnings (2018-02-17 08:37:05 +0000) ---------------------------------------------------------------- arm64 fixes: - Updated the page table accessors to use READ/WRITE_ONCE and prevent compiler transformation that could lead to an apparent loss of coherency - Enabled branch predictor hardening for the Falkor CPU - Fix interaction between kpti enabling and KASan causing the recursive page table walking to take a significant time - Fix some sparse warnings ---------------------------------------------------------------- Robin Murphy (1): arm64: cputype: Silence Sparse warnings Shanker Donthineni (1): arm64: Add missing Falkor part number for branch predictor hardening Will Deacon (2): arm64: proc: Set PTE_NG for table entries to avoid traversing them twice arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables arch/arm64/include/asm/cputype.h | 2 +- arch/arm64/include/asm/hugetlb.h | 2 +- arch/arm64/include/asm/kvm_mmu.h | 26 ++-- arch/arm64/include/asm/mmu_context.h | 4 +- arch/arm64/include/asm/pgalloc.h | 44 +++--- arch/arm64/include/asm/pgtable.h | 23 +-- arch/arm64/kernel/cpu_errata.c | 9 ++ arch/arm64/kernel/efi.c | 2 +- arch/arm64/kernel/hibernate.c | 148 +++++++++--------- arch/arm64/kvm/hyp/switch.c | 4 +- arch/arm64/mm/dump.c | 54 ++++--- arch/arm64/mm/fault.c | 44 +++--- arch/arm64/mm/hugetlbpage.c | 94 ++++++------ arch/arm64/mm/kasan_init.c | 70 ++++----- arch/arm64/mm/mmu.c | 282 ++++++++++++++++++----------------- arch/arm64/mm/pageattr.c | 32 ++-- arch/arm64/mm/proc.S | 14 +- 17 files changed, 448 insertions(+), 406 deletions(-)