Received: by 10.223.176.5 with SMTP id f5csp2413376wra; Sun, 28 Jan 2018 20:15:08 -0800 (PST) X-Google-Smtp-Source: AH8x227dg8OZn0Z+osMOdgvvadtB/xTIXbHvqF9yByTMBHeuvaSHb3VMx8+rnq5vlg6CPYgFlsB8 X-Received: by 10.99.138.75 with SMTP id y72mr20314844pgd.90.1517199308598; Sun, 28 Jan 2018 20:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517199308; cv=none; d=google.com; s=arc-20160816; b=kX4n246/5jodTrzWbNQIRmpNJegVN82Zwdq/jwh2Bp4oLNGi3CEG14C4KBg9Q9/gvR Dkb6I0yrAPJZ31U+YgX4rYUpR0Cs6VkViIBYBB+ZAwW4G8QpuqWLn6NBXy/zmKmmMJrk UsFcDTbuwBFUzR2w8+99rzkV9WXeXmADGx6Vntc2Sd5LPu/h/gIJL+m+z7q6ytg0cOrJ 3YfF6AVy2HyS2cvmnpasw3TV2A6M+n4ZCJkeYZgtbImmRobT2BT7kfz/BSu143WOmFRJ h+dMA1Xh+MDVzZs4BNIp7f/SeXVXiILPzzhz9zMsB7oaTZ52SqcDGH5OEzJvYRjt9id0 LhLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=ah1cQ0T5jkl2YT1PwcRvTTDo2s9cynfzLAqLCFDUXso=; b=hLL5xjSB8jt2uKA4z1i5EMH74c498OhcSOXL/RgnRyTht/9/HMPAUqFsn9PqLm9qyg 5izbCp2O46evfM7+fd8qBlhT6cKF3z0SnH64+BgiM2t3SFvo++euAf1ykhMJdSUW1mgs 0fauXxRTk6cFSrop3BmfnNjVdL7Lh6Cy0a5GYjJe4OyW7lqkDemzREcpUbzuqYWJXIcg h6X6rG3Mx3zm4s5szELL+dM+cch49pttHdBCcq7dYkBqgXTMPQXMIDjkSkqgmCHX5UkJ DWunL48SOpDn5Z/UtOnNedA5UEGZxHtwdR34we2bb2JQ6jhrlfshdeUCA4J1uAm4j2pD 71Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si10832949pfh.319.2018.01.28.20.14.54; Sun, 28 Jan 2018 20:15:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751584AbeA2EN6 (ORCPT + 99 others); Sun, 28 Jan 2018 23:13:58 -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 Received: by ozlabs.org (Postfix, from userid 1034) id 3zVGNG3nlpz9sPk; Mon, 29 Jan 2018 15:13:50 +1100 (AEDT) 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 Precedence: bulk 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