Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp472093ybl; Wed, 14 Aug 2019 00:40:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyveMcQR3eQtzDH6vzNKEZ9gAq0Ec+A8PlhhmYrKvrtXnTRx7aSNcwj8Xm6CIV90HLcTAoI X-Received: by 2002:a17:902:e689:: with SMTP id cn9mr33527270plb.138.1565768416231; Wed, 14 Aug 2019 00:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565768416; cv=none; d=google.com; s=arc-20160816; b=W7zUNwku4FT3e7KOuB5VpPuAVqVgcC2Kr2h5MswOjsM7oIh18kjV9bJxDcdL02GEFH fctuaHLF49hXPYcjFaYSiNODl9/lkra5BP9CeOsIHzWNQVY1y6+CriuQosiO4or2Fr59 9jVL7FEM1Vvks3P+r/GXV39JDMc3pGwx5Lj7Et8Rh2dMNrcVysRgJ2Ij+9yfXZFHCfKO 15lHx2+cgxjtzneACeg07A4jEnKEeMmMHpYQzm8mvbrpOAVeY1ngJVKZ8kce4GrS6oai 0t9wbTPwGfjXOktkdPcHsStyKcu7D/1fgWXrGhyFknA+P9J+bZ2ztWRqCpzgQcfTUUIq fpOA== 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=vs48otHzYlhPN29ylUviaSm2l233hh/9j3Bsq9u+xP0=; b=cvkOFAEATuT7OtyYNTJ5wP6oYI+1Txsrcix7ptRjdzp/zlkmL6wwjZ4WJNazJ+3NaM GhGpClzzQoqhEs1hBsIYIJksLQqfoq6wmfrH5NQhXr7Gfnk8tqjUgM0tmx9h5nhkzCNI m9TCqzlvIWfyxwK0YJiJ0cB6g5+YX14gjqJlQwjSnbxj0q3+OyzoiemFauwRbm7tKr/Y kalz1NBnf1b52xNopOH1ZxRNiXdQyv8AjOAOiHt9BzGY5+fhLBkd3wdFzRXRBqvmonE1 MGm/M5w1r1lVM/78OD7loz8tjxDVeoOSVTyOZ34txfbRBFdBaIVAFTyL8CemlXmq+ZK8 9sLA== 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 31si62628402plk.342.2019.08.14.00.39.57; Wed, 14 Aug 2019 00:40:16 -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 S1727568AbfHNHi7 (ORCPT + 99 others); Wed, 14 Aug 2019 03:38:59 -0400 Received: from verein.lst.de ([213.95.11.211]:35522 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725265AbfHNHi7 (ORCPT ); Wed, 14 Aug 2019 03:38:59 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 17B9F68B20; Wed, 14 Aug 2019 09:38:55 +0200 (CEST) Date: Wed, 14 Aug 2019 09:38:54 +0200 From: Christoph Hellwig To: Dan Williams Cc: Christoph Hellwig , Jason Gunthorpe , =?iso-8859-1?B?Suly9G1l?= Glisse , Ben Skeggs , Felix Kuehling , Ralph Campbell , "linux-mm@kvack.org" , "nouveau@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 04/15] mm: remove the pgmap field from struct hmm_vma_walk Message-ID: <20190814073854.GA27249@lst.de> References: <20190806160554.14046-1-hch@lst.de> <20190806160554.14046-5-hch@lst.de> <20190807174548.GJ1571@mellanox.com> <20190808065933.GA29382@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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 06:36:33PM -0700, Dan Williams wrote: > Section alignment constraints somewhat save us here. The only example > I can think of a PMD not containing a uniform pgmap association for > each pte is the case when the pgmap overlaps normal dram, i.e. shares > the same 'struct memory_section' for a given span. Otherwise, distinct > pgmaps arrange to manage their own exclusive sections (and now > subsections as of v5.3). Otherwise the implementation could not > guarantee different mapping lifetimes. > > That said, this seems to want a better mechanism to determine "pfn is > ZONE_DEVICE". So I guess this patch is fine for now, and once you provide a better mechanism we can switch over to it?