From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f200.google.com (mail-io0-f200.google.com [209.85.223.200]) by kanga.kvack.org (Postfix) with ESMTP id AE8A96B000A for ; Tue, 12 Jun 2018 14:18:39 -0400 (EDT) Received: by mail-io0-f200.google.com with SMTP id r10-v6so274278ioh.7 for ; Tue, 12 Jun 2018 11:18:39 -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 a21-v6sor493747itd.75.2018.06.12.11.18.38 for (Google Transport Security); Tue, 12 Jun 2018 11:18:38 -0700 (PDT) MIME-Version: 1.0 References: <20180612071621.26775-1-npiggin@gmail.com> <20180612071621.26775-4-npiggin@gmail.com> In-Reply-To: <20180612071621.26775-4-npiggin@gmail.com> From: Linus Torvalds Date: Tue, 12 Jun 2018 11:18:27 -0700 Message-ID: Subject: Re: [RFC PATCH 3/3] powerpc/64s/radix: optimise TLB flush with precise TLB ranges in mmu_gather Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Nick Piggin Cc: linux-mm , ppc-dev , linux-arch , "Aneesh Kumar K. V" , Minchan Kim , Mel Gorman , Nadav Amit , Andrew Morton On Tue, Jun 12, 2018 at 12:16 AM Nicholas Piggin wrote: > > This brings the number of tlbiel instructions required by a kernel > compile from 33M to 25M, most avoided from exec->shift_arg_pages. And this shows that "page_start/end" is purely for powerpc and used nowhere else. The previous patch should have been to purely powerpc page table walking and not touch asm-generic/tlb.h I think you should make those changes to arch/powerpc/include/asm/tlb.h. If that means you can't use the generic header, then so be it. Or maybe you can embed the generic case in some ppc-specific structures, and use 90% of the generic code just with your added wrappers for that radix invalidation on top. But don't make other architectures do pointless work that doesn't matter - or make sense - for them. Linus