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=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 1C48EC433FF for ; Fri, 2 Aug 2019 12:52:32 +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 DF02E20657 for ; Fri, 2 Aug 2019 12:52:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="biwHCUKq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF02E20657 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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.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 1htX2s-0000d1-UV; Fri, 02 Aug 2019 12:52:30 +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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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(-) -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel