Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xXTF83w1LzDrJp for ; Wed, 16 Aug 2017 22:29:48 +1000 (AEST) In-Reply-To: <16ab841927ec607e16c37cbeff0aede21a27b8c3.1501679953.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Scott Wood , Balbir Singh From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v3, 1/5] powerpc/mm: Ensure change_page_attr() doesn't invalidate pinned TLBs Message-Id: <3xXTF82Lcmz9t4Z@ozlabs.org> Date: Wed, 16 Aug 2017 22:29:48 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2017-08-02 at 13:51:01 UTC, Christophe Leroy wrote: > __change_page_attr() uses flush_tlb_page(). > flush_tlb_page() uses tlbie instruction, which also invalidates > pinned TLBs, which is not what we expect. > > This patch modifies the implementation to use flush_tlb_kernel_range() > instead. This will make use of tlbia which will preserve pinned TLBs. > > Signed-off-by: Christophe Leroy Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/e611939fc8ec13387018df88083de7 cheers