From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f70.google.com (mail-pl0-f70.google.com [209.85.160.70]) by kanga.kvack.org (Postfix) with ESMTP id DFB236B0005 for ; Tue, 12 Jun 2018 19:10:00 -0400 (EDT) Received: by mail-pl0-f70.google.com with SMTP id t17-v6so345468ply.13 for ; Tue, 12 Jun 2018 16:10:00 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 37-v6sor251340plv.44.2018.06.12.16.09.58 for (Google Transport Security); Tue, 12 Jun 2018 16:09:58 -0700 (PDT) Date: Wed, 13 Jun 2018 09:09:50 +1000 From: Nicholas Piggin Subject: Re: [RFC PATCH 3/3] powerpc/64s/radix: optimise TLB flush with precise TLB ranges in mmu_gather Message-ID: <20180613090950.50566245@roar.ozlabs.ibm.com> In-Reply-To: References: <20180612071621.26775-1-npiggin@gmail.com> <20180612071621.26775-4-npiggin@gmail.com> <20180613083131.139a3c34@roar.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: linux-mm , ppc-dev , linux-arch , "Aneesh Kumar K. V" , Minchan Kim , Mel Gorman , Nadav Amit , Andrew Morton On Tue, 12 Jun 2018 15:42:34 -0700 Linus Torvalds wrote: > On Tue, Jun 12, 2018 at 3:31 PM Nicholas Piggin wrote: > > > > Okay sure, and this is the reason for the wide cc list. Intel does > > need it of course, from 4.10.3.1 of the dev manual: > > > > =E2=80=94 The processor may create a PML4-cache entry even if there a= re no > > translations for any linear address that might use that entry > > (e.g., because the P flags are 0 in all entries in the referenced > > page-directory-pointer table). =20 >=20 > But does intel need it? >=20 > Because I don't see it. We already do the __tlb_adjust_range(), and we > never tear down the highest-level page tables afaik. >=20 > Am I missing something? Sorry I mean Intel needs the existing behaviour of range flush expanded to cover page table pages.... right? The manual has similar wording for lower levels of page tables too. So it does need to send an invalidate *somewhere* that a freed page table page covers, even if no valid pte was torn down. Thanks, Nick