From patchwork Fri Aug 2 12:52:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 11073319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CF244746 for ; Fri, 2 Aug 2019 12:52:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC78C2882D for ; Fri, 2 Aug 2019 12:52:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B039828833; Fri, 2 Aug 2019 12:52:31 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 6E69A2882D for ; Fri, 2 Aug 2019 12:52:31 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=kRU8doXsYKN27eFAW/tgcCtZM1i+f9ih0vp+++WGw/8=; b=biwHCUKqQY/Vxd mAwgqFijol+8bM9dclW5hBCqlFFQ6QlEsybglVFqNbgbQxcVuqYrwamU3yKzyHmRHA9G5Un8o8kO4 uDAD3EDD79fv3zd3keNLtqBw9eWv9yOupr3x3xi3q7jMHT+brM00LxxIL+T0oBAtHj5jACcXOgMIZ SbLl2du1V/yPUKVd+6MlyVJH6t6gfqGu5kLRVrWEYA4cZ+Vts7qvTPLvO5G++wXqMzhVcHBi8Xhej hg34nt9v6jVsaZMkD7nAjqOts+rBzDmaHY7IiGuCUPT9RygNf/FfV8J3RMnGnm6kfF6DJYbLOvWQA CXm1+ilXxXStsWolCJHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1htX2t-0000d1-5R; Fri, 02 Aug 2019 12:52:31 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1htX2q-0000cB-0P for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2019 12:52:29 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C6A941570; Fri, 2 Aug 2019 05:52:26 -0700 (PDT) Received: from filthy-habits.cambridge.arm.com (filthy-habits.cambridge.arm.com [10.1.197.61]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 722703F71F; Fri, 2 Aug 2019 05:52:25 -0700 (PDT) From: Marc Zyngier To: Will Deacon , Catalin Marinas Subject: [PATCH v2 0/2] arm64: Relax ICC_PMR_EL1 synchronisation when possible Date: Fri, 2 Aug 2019 13:52:06 +0100 Message-Id: <20190802125208.73162-1-maz@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190802_055228_098699_DD6B0F92 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. 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: Suzuki K Poulose , maz@kernel.org, James Morse , linux-arm-kernel@lists.infradead.org, huawei.libin@huawei.com, guohanjun@huawei.com, liwei391@huawei.com, Julien Thierry 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 This is an update on [1] after Will's comments, turning the original kernel patching into a static key. An additional patch now documents the expectations of having ICC_CTLR_EL3.PMHE set to something consistent across CPUs and over time. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2019-July/669756.html Marc Zyngier (2): arm64: Relax ICC_PMR_EL1 accesses when ICC_CTLR_EL1.PMHE is clear arm64: Document ICC_CTLR_EL3.PMHE setting requirements Documentation/arm64/booting.rst | 3 +++ arch/arm64/include/asm/barrier.h | 12 ++++++++++++ arch/arm64/include/asm/daifflags.h | 3 ++- arch/arm64/include/asm/irqflags.h | 19 ++++++++++--------- arch/arm64/include/asm/kvm_host.h | 3 +-- arch/arm64/kernel/entry.S | 6 ++++-- arch/arm64/kvm/hyp/switch.c | 4 ++-- drivers/irqchip/irq-gic-v3.c | 17 +++++++++++++++++ include/linux/irqchip/arm-gic-v3.h | 2 ++ 9 files changed, 53 insertions(+), 16 deletions(-)