Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3065927pxb; Mon, 9 Nov 2020 01:18:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8SakCqfZzfCl7io8UcgJXfjFSAG5iKPg69pxlB8nWnT/C9IgjmREp7gEnJi9Jd7o1D7QI X-Received: by 2002:a17:906:a00c:: with SMTP id p12mr14556790ejy.249.1604913485451; Mon, 09 Nov 2020 01:18:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604913485; cv=none; d=google.com; s=arc-20160816; b=hsx52VPb6zZwEqMABTSdaal/OF2NpoeGN+rE0bCwoiMZhBKpYIjCZA+PkoTmjO/xXx k0Ap3y3exYIqKoHiEIo+aescnZSuUTbe0NKBDQWQXoZh/vqSQj2AtmdqJhHSoulmP1Fm +26KDAuhHPVx2Bi2teOoyRtqfUNvQcOn++pkQ5Vx3mkM00nlpkwN+t7eS1YGk36sLQqn HFoAuHA/HKvMf+ytoMKGptJJTq4BNV3TS1jjfLz3s/IyF45pJYHHg4S6fSNe1ZvTL7YM FCUyVBl7SXQ6IKxBvwV5HF2f6NYCvVDWX73FYpocQpaIPzAL3jpj7DcAaSImGLtELoM6 xPlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Rc5Nl7RDigPqHCejp+2BP+cr3AW7mawG4gaP+rX4MzA=; b=QzDsVQrG4XcG9fvIwa+jmu0R5IK0xHiq0h+sN1mWQ+rgkIZYq/Po+fAmzPttqTDZPa uTVvI4NxPaP3OYOPK6d3OStCRtlNspITg7uOZ5nRSK5nGtw35DbHkI8O6LVZKsuV2xU9 aDUcPRfUdQ7FnYYFolDqey5YAFVC/hKf9LTj0c9N2Z25E0SbjlwHuszqyKD837q2YwZZ RFkO9DjRPI1CDFvBJNpMandMQmlUf4uqMPAAFpdgJ+ycuXoNz8cCkeSJ+e/6spwgrRd0 yWkclfKTtKihuAw5Np2BkSWYg4GrUI5DzwqfbIoue91tVMDbU9uxydnzGJWaiMi0ZdEh 9lrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si6839179edq.590.2020.11.09.01.17.42; Mon, 09 Nov 2020 01:18:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729838AbgKIJOX (ORCPT + 99 others); Mon, 9 Nov 2020 04:14:23 -0500 Received: from verein.lst.de ([213.95.11.211]:57688 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727920AbgKIJOW (ORCPT ); Mon, 9 Nov 2020 04:14:22 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id BBE6E68B05; Mon, 9 Nov 2020 10:14:20 +0100 (CET) Date: Mon, 9 Nov 2020 10:14:15 +0100 From: Christoph Hellwig To: Ralph Campbell Cc: Christoph Hellwig , linux-mm@kvack.org, nouveau@lists.freedesktop.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Glisse , John Hubbard , Alistair Popple , Jason Gunthorpe , Bharata B Rao , Zi Yan , "Kirill A . Shutemov" , Yang Shi , Ben Skeggs , Shuah Khan , Andrew Morton Subject: Re: [PATCH v3 3/6] mm: support THP migration to device private memory Message-ID: <20201109091415.GC28918@lst.de> References: <20201106005147.20113-1-rcampbell@nvidia.com> <20201106005147.20113-4-rcampbell@nvidia.com> <20201106080322.GE31341@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 06, 2020 at 01:26:50PM -0800, Ralph Campbell wrote: > > On 11/6/20 12:03 AM, Christoph Hellwig wrote: >> I hate the extra pin count magic here. IMHO we really need to finish >> off the series to get rid of the extra references on the ZONE_DEVICE >> pages first. > > First, thanks for the review comments. > > I don't like the extra refcount either, that is why I tried to fix that up > before resending this series. However, you didn't like me just fixing the > refcount only for device private pages and I don't know the dax/pmem code > and peer-to-peer PCIe uses of ZONE_DEVICE pages well enough to say how > long it will take me to fix all the use cases. > So I wanted to make progress on the THP migration code in the mean time. I think P2P is pretty trivial, given that ZONE_DEVICE pages are used like a normal memory allocator. DAX is the interesting case, any specific help that you need with that?