Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp47995img; Tue, 19 Mar 2019 15:20:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdckN94v5rXNfebXcjsMvKZ4142616kk8RnUYnp4UWDLKZuFyuiYjlHYwtdu4IXD5S4sXq X-Received: by 2002:aa7:8c97:: with SMTP id p23mr4305193pfd.229.1553034046614; Tue, 19 Mar 2019 15:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553034046; cv=none; d=google.com; s=arc-20160816; b=DW6fF8uR+ysPMqPEJ5BjqsGPczh1NlIlicJnWYlLcbvihukKOFehJ6stUBoo1IR9Z9 z8M7S7uilFwjiHPCxf5iJqHlHyUNA7l/72rf2O8iPCLWQJXl1eAm8uPopHnkYWzJU77k 94jIqGDeVOzfkDBbHiorTDUijL4IpcZqHQcDQzOcOT6L6C26laH/BoxLelqNO3DVoSev TmrefkQS1Y5MkfybpJjcThD/FdMoc+2Oy+xRJUVzTQeO3STQzlSk2+Id3OREpYo16vWp 3FPHbH0RYZ1bLMx9KFhNm1K8hk2xgZ2Cd+JpTY4CR1d+aV5mupd4ax6ABRv7/6jct+kY vnIg== 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=fJ0pU0f9AVQ0H8sNaBZAp743fXL+ORLTK1qP0uA9ue0=; b=EzGwCnmeUZWHiVOIEXTdtoXlH/bpog8de0mgp7wc/KUGfcCmdnpwkOdML/qjLbA+Xr A+fcugXGt4lSr3aqiNgU2kJ+RKUGq23QxfScagJNncK/0+53azd1ST5XVKc9VhsVv4kz ZQpLIAsqU4Ub+QoHjDc1g+e7AFGOU2EEcHZIi48HDfrnIm4+Rc7aMMFxFqmNjyxRvv7p 2I2yMCIRPYfGG5ajzl1LPDCCnTiuHUnIDHBCyFvPrDG+EMPMRjNxJn1ac+YRDPX0jvpv soT5xrR8MRrhmaM9CFilpZffQCe/0KV9qk3KEehpS/fnNHOZ0wRzcIEbYIGLINhqeaCr OOkQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si33842pgr.356.2019.03.19.15.20.31; Tue, 19 Mar 2019 15:20:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727270AbfCSWTr (ORCPT + 99 others); Tue, 19 Mar 2019 18:19:47 -0400 Received: from mga11.intel.com ([192.55.52.93]:58372 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbfCSWTr (ORCPT ); Tue, 19 Mar 2019 18:19:47 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 15:19:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,246,1549958400"; d="scan'208";a="308616822" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by orsmga005.jf.intel.com with ESMTP; 19 Mar 2019 15:19:46 -0700 Date: Tue, 19 Mar 2019 07:18:26 -0700 From: Ira Weiny To: Dan Williams Cc: Jerome Glisse , Andrew Morton , Linux MM , Linux Kernel Mailing List , Felix Kuehling , Christian =?iso-8859-1?Q?K=F6nig?= , Ralph Campbell , John Hubbard , Jason Gunthorpe , Alex Deucher Subject: Re: [PATCH 00/10] HMM updates for 5.1 Message-ID: <20190319141826.GJ7485@iweiny-DESK2.sc.intel.com> References: <20190318170404.GA6786@redhat.com> <20190319094007.a47ce9222b5faacec3e96da4@linux-foundation.org> <20190319165802.GA3656@redhat.com> <20190319101249.d2076f4bacbef948055ae758@linux-foundation.org> <20190319171847.GC3656@redhat.com> <20190319174552.GA3769@redhat.com> <20190319190528.GA4012@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 19, 2019 at 12:13:40PM -0700, Dan Williams wrote: > On Tue, Mar 19, 2019 at 12:05 PM Jerome Glisse wrote: > > > > On Tue, Mar 19, 2019 at 11:42:00AM -0700, Dan Williams wrote: > > > On Tue, Mar 19, 2019 at 10:45 AM Jerome Glisse wrote: > > > > > > > > On Tue, Mar 19, 2019 at 10:33:57AM -0700, Dan Williams wrote: > > > > > On Tue, Mar 19, 2019 at 10:19 AM Jerome Glisse wrote: > > > > > > > > > > > > On Tue, Mar 19, 2019 at 10:12:49AM -0700, Andrew Morton wrote: > > > > > > > On Tue, 19 Mar 2019 12:58:02 -0400 Jerome Glisse wrote: [snip] > > > > Right now i am trying to unify driver for device that have can support > > the mmu notifier approach through HMM. Unify to a superset of driver > > that can not abide by mmu notifier is on my todo list like i said but > > it comes after. I do not want to make the big jump in just one go. So > > i doing thing under HMM and thus in HMM namespace, but once i tackle > > the larger set i will move to generic namespace what make sense. > > > > This exact approach did happen several time already in the kernel. In > > the GPU sub-system we did it several time. First do something for couple > > devices that are very similar then grow to a bigger set of devices and > > generalise along the way. > > > > So i do not see what is the problem of me repeating that same pattern > > here again. Do something for a smaller set before tackling it on for > > a bigger set. > > All of that is fine, but when I asked about the ultimate trajectory > that replaces hmm_range_dma_map() with an updated / HMM-aware GUP > implementation, the response was that hmm_range_dma_map() is here to > stay. The issue is not with forking off a small side effort, it's the > plan to absorb that capability into a common implementation across > non-HMM drivers where possible. Just to get on the record in this thread. +1 I think having an interface which handles the MMU notifier stuff for drivers is awesome but we need to agree that the trajectory is to help more drivers if possible. Ira