Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp584328ybi; Thu, 13 Jun 2019 23:20:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWWM9TrJ5cPV0MAWrkWO4r3vb/DHed7VvjqmEvJNjf0y1Ua0uqZEGYebqUvPjcTk58dkmu X-Received: by 2002:a17:90a:2e87:: with SMTP id r7mr9312874pjd.121.1560493244220; Thu, 13 Jun 2019 23:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560493244; cv=none; d=google.com; s=arc-20160816; b=al4t5WzxmSdIMGvwV2TzAKMfvMZJ+jRktbuBEs69j9MC1TSm8cfNXndOn4p7xi1JR5 i0YYSInGklS524qO6hWR5g5tY6EEe2IdNEex8q22eqBgIqA/WfbMyaMN/bQzpamIAiqq Sa913I/2wV8Z0oNC2/FtET8rvpgvC9MZkoTSdpBmGbx9crWeHo7pmSmjsMaP0oZS9Uho Aq/deF1R+jjy8D+WfF+aLRtq7xG+CZ8WNJxOVVYaka1Hox2rAMOldepoNETGPoeS/f/G okMmTV7msFD6NHv1E/VNFSC4M2Dl0eAgQVAym0iHtH9P8J0U+/9EBZ+6aCRlVTFHj94c KwhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lCYmOEmKlO5ZrrPVD1pAoZebQosiMr6++uU8wuwXUQw=; b=Qpy2boqkuj3qzxRkhunfSQ/D5QweJsGDbjwpw4wZFQNoEmKlriM2C3SFbwTx+B4te4 xzd1W8JElnb17R45nelspXEHdegK+ED32ivsn2AlGMk6U1+BkGC0/CKrIOhbH1wAH1IW BvlP0ufFngJe3IID+lneVx8J1HGxqOqMwjZ1QfmvIjx/1adqsFbQb7GAVOAOVFb7jlEa 8km7qRMvv/r/aJAteA0Azh4nlgDvkBH2rcEUPNR7hMl5jzojEIJ65nyhsIN1dvwBVYFj BBXnuXQi6gzoT91MYIRBq7CtRSf1J718MHVCxoM/rLDRvvu/LzwApjO29VQYBhgR1Vsn ItQQ== 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 j185si1481986pfb.107.2019.06.13.23.20.27; Thu, 13 Jun 2019 23:20:44 -0700 (PDT) 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 S1725825AbfFNGUP (ORCPT + 99 others); Fri, 14 Jun 2019 02:20:15 -0400 Received: from verein.lst.de ([213.95.11.211]:44309 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfFNGUP (ORCPT ); Fri, 14 Jun 2019 02:20:15 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 4C76A68B02; Fri, 14 Jun 2019 08:19:46 +0200 (CEST) Date: Fri, 14 Jun 2019 08:19:46 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Ben Skeggs , "linux-mm@kvack.org" , "nouveau@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-nvdimm@lists.01.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 03/22] mm: remove hmm_devmem_add_resource Message-ID: <20190614061946.GE7246@lst.de> References: <20190613094326.24093-1-hch@lst.de> <20190613094326.24093-4-hch@lst.de> <20190613185239.GP22062@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190613185239.GP22062@mellanox.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 13, 2019 at 06:52:44PM +0000, Jason Gunthorpe wrote: > On Thu, Jun 13, 2019 at 11:43:06AM +0200, Christoph Hellwig wrote: > > This function has never been used since it was first added to the kernel > > more than a year and a half ago, and if we ever grow a consumer of the > > MEMORY_DEVICE_PUBLIC infrastructure it can easily use devm_memremap_pages > > directly now that we've simplified the API for it. > > nit: Have we simplified the interface for devm_memremap_pages() at > this point, or are you talking about later patches in this series. After this series. I've just droped that part of the sentence to avoid confusion. > I checked this and all the called functions are exported symbols, so > there is no blocker for a future driver to call devm_memremap_pages(), > maybe even with all this boiler plate, in future. > > If we eventually get many users that need some simplified registration > then we should add a devm_memremap_pages_simplified() interface and > factor out that code when we can see the pattern. After this series devm_memremap_pages already is simpler to use than hmm_device_add_resource was before, so I'm not worried at all. The series actually net removes lines from noveau (if only a few).