From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7285FC32792 for ; Thu, 3 Oct 2019 20:50:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 317AA2086A for ; Thu, 3 Oct 2019 20:50:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="E7t56r4C" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 317AA2086A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BCF916B0007; Thu, 3 Oct 2019 16:50:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BA7AE8E0006; Thu, 3 Oct 2019 16:50:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A99A98E0005; Thu, 3 Oct 2019 16:50:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0135.hostedemail.com [216.40.44.135]) by kanga.kvack.org (Postfix) with ESMTP id 84F936B0007 for ; Thu, 3 Oct 2019 16:50:01 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 28988181AC9AE for ; Thu, 3 Oct 2019 20:50:01 +0000 (UTC) X-FDA: 76003665402.09.sky88_7477ef83cdc48 X-HE-Tag: sky88_7477ef83cdc48 X-Filterd-Recvd-Size: 5484 Received: from hqemgate16.nvidia.com (hqemgate16.nvidia.com [216.228.121.65]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Thu, 3 Oct 2019 20:50:00 +0000 (UTC) Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 03 Oct 2019 13:49:59 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 03 Oct 2019 13:49:59 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 03 Oct 2019 13:49:59 -0700 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 3 Oct 2019 20:49:58 +0000 Received: from [10.110.48.28] (10.124.1.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 3 Oct 2019 20:49:57 +0000 Subject: Re: [PATCH v5 00/11] Introduces new count-based method for tracking lockless pagetable walks To: Leonardo Bras , Peter Zijlstra CC: Song Liu , Michal Hocko , "Dmitry V. Levin" , Keith Busch , , Paul Mackerras , Christoph Lameter , Ira Weiny , Dan Williams , Elena Reshetova , , Santosh Sivaraj , "Davidlohr Bueso" , Aneesh Kumar K.V , Bartlomiej Zolnierkiewicz , Mike Rapoport , Jason Gunthorpe , Vlastimil Babka , Mahesh Salgaonkar , "Andrey Ryabinin" , Alexey Dobriyan , Ingo Molnar , Andrea Arcangeli , "Ralph Campbell" , Arnd Bergmann , Jann Horn , Jesper Dangaard Brouer , "Nicholas Piggin" , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Mathieu Desnoyers , , Thomas Gleixner , Reza Arbab , Allison Randal , "Christian Brauner" , Greg Kroah-Hartman , , Logan Gunthorpe , Souptick Joarder , Andrew Morton , , Roman Gushchin , "Kirill A. Shutemov" , "Al Viro" References: <20191003013325.2614-1-leonardo@linux.ibm.com> <20191003072952.GN4536@hirez.programming.kicks-ass.net> X-Nvconfidentiality: public From: John Hubbard Message-ID: <99754d82-33c5-a54f-8607-b6bf151069d4@nvidia.com> Date: Thu, 3 Oct 2019 13:49:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To DRHQMAIL107.nvidia.com (10.27.9.16) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1570135799; bh=8tX3/lygYnCsJanQP8X8WsxfvR7VJcUfXDFMU2I/nGk=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=E7t56r4CLhvhUPdEAoY67ZDe6oNO4KK3vWmxNrojsg4pYH3aDVGJaDvHpf43EargH 6VLoRvpcEGsHy2m7jPwe1MAdsVJNi17Iz+qSjXfvvIkyjACUbiQusaP1jknD8WLbIV l0ucIoMQynb/6d7D3LoH9D2LrX48WHelHpcmAtp/6Otdk/Jw1tC380ZU7IZ1oNS5M6 KspIyHKE8SsBbAwTdDqzzRES4O4MTX47Q3XHe2a17wWshTSg3w/LFAwUKVhNEdVhSz aDR4zE4TyLQiRd0IPEIj+tdpCYZzxgqc7okXUWc6YwhLmFMrPb1qR1mM2eEWq88TWN /BSPHMCl2A2Ug== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 10/3/19 1:36 PM, Leonardo Bras wrote: > On Thu, 2019-10-03 at 09:29 +0200, Peter Zijlstra wrote: >> On Wed, Oct 02, 2019 at 10:33:14PM -0300, Leonardo Bras wrote: ... >> This is something entirely specific to Power, you shouldn't be touching >> generic code at all. > > Up to v4, I was declaring dummy functions so it would not mess up with > other archs: http://patchwork.ozlabs.org/patch/1168779/ > > But I was recommended to create a generic function that could guide the > way to archs: http://patchwork.ozlabs.org/patch/1168775/ Yes. And to clarify, I was assuming that the changes to mm/gup.c were required in order to accomplish your goals. Given that assumption, I wanted the generic code to be "proper", and that's what that feedback is about. If you can somehow do it entirely as an arch-specific thing, then probably that's even better. Although the other questions about file-backed THP make it sound like some rethinking across the board is required now. thanks, -- John Hubbard NVIDIA