From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751590AbeA2EN7 (ORCPT ); Sun, 28 Jan 2018 23:13:59 -0500 Received: from ozlabs.org ([103.22.144.67]:51625 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbeA2ENw (ORCPT ); Sun, 28 Jan 2018 23:13:52 -0500 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 5c8136fa1af7c0e9b4aec89cf2832f6e5197ce32 In-Reply-To: <20180123132250.4A2BD6EF69@localhost.localdomain> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Scott Wood From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc/mm/nohash: do not flush the entire mm when range is a single page Message-Id: <3zVGNG3nlpz9sPk@ozlabs.org> Date: Mon, 29 Jan 2018 15:13:50 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-01-23 at 13:22:50 UTC, Christophe Leroy wrote: > Most of the time, flush_tlb_range() is called on single pages. > At the time being, flush_tlb_range() inconditionnaly calls > flush_tlb_mm() which flushes at least the entire PID pages and on > older CPUs like 4xx or 8xx it flushes the entire TLB table. > > This patch calls flush_tlb_page() instead of flush_tlb_mm() when > the range is a single page. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/5c8136fa1af7c0e9b4aec89cf2832f cheers