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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 3C393C43331 for ; Wed, 13 Nov 2019 01:52:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0A52322459 for ; Wed, 13 Nov 2019 01:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573609956; bh=Ycvnrnc+r8e976pY0C2jgMR3cLTmLBzx60oilPkByKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BDvNyjAWCAurOm2hXUWbXn2K+9B6k3+RlYK+d6GuqQHHgUUn/1v9atXrAdbrV29Fw HCpLoWTpOYaKk6taHC/LeK8d3ME5KFzBTtH5T6T6WSmzMd6NqH/PrDfOuTIiKjnvyT rt5jPIYas2YYMpwsz7YoETPU7NfDH96YRnrMx4YI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728217AbfKMBwf (ORCPT ); Tue, 12 Nov 2019 20:52:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:41278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728290AbfKMBw2 (ORCPT ); Tue, 12 Nov 2019 20:52:28 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C916204EC; Wed, 13 Nov 2019 01:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573609948; bh=Ycvnrnc+r8e976pY0C2jgMR3cLTmLBzx60oilPkByKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z2YH+04GTqOAR+f4BxhDUkXGeQlLsC9mgbt+eOkYBlyeEPhNy+6ek8hA8LLDidzyh BvmWe7qEo6XQf5gBEkNuARqt7JfDpAWWzJ4IwIoKwaIBSNTEy/iiECoGIUl2AeRUJX 4cc9zO9Oh8N/DEEg5CK1g76KeMn5TdLfYGrgx53U= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nicholas Piggin , Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org Subject: [PATCH AUTOSEL 4.19 085/209] powerpc/64s/radix: Explicitly flush ERAT with local LPID invalidation Date: Tue, 12 Nov 2019 20:48:21 -0500 Message-Id: <20191113015025.9685-85-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191113015025.9685-1-sashal@kernel.org> References: <20191113015025.9685-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Piggin [ Upstream commit 053c5a753e951c5dd1729af2cf4d8107f2e6e09b ] Local radix TLB flush operations that operate on congruence classes have explicit ERAT flushes for POWER9. The process scoped LPID flush did not have a flush, so add it. Signed-off-by: Nicholas Piggin Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/mm/tlb-radix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/mm/tlb-radix.c b/arch/powerpc/mm/tlb-radix.c index 0cddae4263f96..21441ff17b92b 100644 --- a/arch/powerpc/mm/tlb-radix.c +++ b/arch/powerpc/mm/tlb-radix.c @@ -366,6 +366,7 @@ static inline void _tlbiel_lpid_guest(unsigned long lpid, unsigned long ric) __tlbiel_lpid_guest(lpid, set, RIC_FLUSH_TLB); asm volatile("ptesync": : :"memory"); + asm volatile(PPC_INVALIDATE_ERAT : : :"memory"); } -- 2.20.1