Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp2027776ybj; Wed, 6 May 2020 09:20:55 -0700 (PDT) X-Google-Smtp-Source: APiQypJF7POV5RAeKih6MO8bS6cVG0I8UliAD5h0RT6rK1X/AKH5xE7MI6IwWXBb64OjbSO48it4 X-Received: by 2002:a50:b202:: with SMTP id o2mr7524078edd.251.1588782054891; Wed, 06 May 2020 09:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588782054; cv=none; d=google.com; s=arc-20160816; b=0M7pT47VvWzvmms1oa6YpVEnKYhUiBWWbXNUgeJ8LiLRG+9bHwS2FU5MuvUr0NOPnY s/DdoG+73ImB7AwD183ONYFvFI6RK2BvtPZ0IfTUmIlyA3oGNlx0fwkE2f+7g5uWAGqx TL0lEiKOyO/s70t4ChcQEA3cV1peBiAsidSjyyYK/FdbneMvxg6i3f8IOCXzCIMXO8JB 6dv5KRCBPeYA0ByG7n2mRyTI07H9BIrJTcdMAMRJlSLwOxKvC2Z71XiJEjN76bxdNZNU jYXVJho2ALXWT/TUBF7CSMJOPpHh1UwW5zOXP3/KapLnm7IwsOGDmLwo3bUtQes1MOhw HBog== 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:dkim-signature; bh=dI/8k01wqNtPsEMN3JryPuexKMUAM9GFAPsiKlMJOgs=; b=ZbK5h9dqFKqkET26RL13qM9JCig8t3+8FDQXmXECJU+e6HzaAItsQjBbJ4wp2VFopn D0zhfKDA0iPnICECNFMxAUK6I3O1jMzTG2FgdkVVAMut5AHuxqLGo4SxPeSoAPxzoqe1 +V/pVwtq/KNQqv5NhLYeleHulN6VVTSeJoJNtJDREzBNLMP/cSo5APnFCmHYrSaE8yeC TXT2w5j8bIMqzI06JKW0QQt8mH/s1d0yJbtiUtSQ+6vbR8eeJ/bvN3tPYfm00WD2DecT 1x5FECr5gUdgzw2+DhbiAckeatwUAtyshmI2YZnEIfhrKdxEl++o/NJs0ka8b7DlxScf kmGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=CDYYUXVy; 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 dm22si1825156ejc.357.2020.05.06.09.20.31; Wed, 06 May 2020 09:20:54 -0700 (PDT) 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; dkim=pass header.i=@ziepe.ca header.s=google header.b=CDYYUXVy; 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 S1730043AbgEFQS1 (ORCPT + 99 others); Wed, 6 May 2020 12:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729521AbgEFQS1 (ORCPT ); Wed, 6 May 2020 12:18:27 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C08D5C061A0F for ; Wed, 6 May 2020 09:18:26 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id q13so1849508qtp.7 for ; Wed, 06 May 2020 09:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dI/8k01wqNtPsEMN3JryPuexKMUAM9GFAPsiKlMJOgs=; b=CDYYUXVytFKURB46DxLbtSQhLKEUVHOamKg4N6ws/VeYuZqe48aW2fVU4DY/h9Bp0C oxPsar9OJVyyfKYewl2b61UAK/iYMJhUOEztf6FyAWUPWMHx6K52Ms3zjFawc0T82Nl1 7Xt+P1aPijxMvudfHiyJNFg5C9ZFGxb7Xq5W8dbwJ21FJwxC/q1Blc/Rw7qi4EBtZ7QU QsgB9ERVVjUURncAAw80TIEnHnDpJ9Brzd9+PloSZTbvOPoos60r/CIiiaGLTHr18jlp z1hKejvJ2XMgEhTqjmxxET3DODSbvUQWlTA4t/TK35N6seBmGymATrWanur938yEOAM8 A/+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dI/8k01wqNtPsEMN3JryPuexKMUAM9GFAPsiKlMJOgs=; b=DIRayEjvVcxXyOLbZixl7+FMNDesJqUGKGNZTcwzy3F9wkwz9Yo0CLw9aAIoKo311H ZDaMmaYWBN2+CGI9AxcTZ7dVvTjeq7isU72Mb3posRW9YGmKh610c4LBZw3QIOFM0qJY HHQnvVBBb9utTyfPjHBmepGErx9fA81MiAQ1V88ewkg9yDKXi5szvTUsDpWntAkHr6sj +c8X3rZpSbFTFE4rPvTZiXz7YFZQIqFvXcbDPEStceCB3unS0NBAMaNHOaym1SEpLyqn JZ9BNuJibyIOHIKOwkO0diMzxJI1fc1LCYQROBSfOYe9edd/SSbLSO4mChQkAEHaxE8a SdNQ== X-Gm-Message-State: AGi0PuaVXOVZaeFyIKGfRiNg4nref4gUerdkXPy3LfeWbf41Ti6XHpXC wC/Lcd0DPnxVgEaInv9NGCUfKA== X-Received: by 2002:aed:2e83:: with SMTP id k3mr9101168qtd.2.1588781906015; Wed, 06 May 2020 09:18:26 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id h13sm1895261qti.32.2020.05.06.09.18.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 May 2020 09:18:25 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1jWMka-0002ut-Lq; Wed, 06 May 2020 13:18:24 -0300 Date: Wed, 6 May 2020 13:18:24 -0300 From: Jason Gunthorpe To: Ralph Campbell Cc: linux-mm@kvack.org, Alex Deucher , amd-gfx@lists.freedesktop.org, Ben Skeggs , Christian =?utf-8?B?S8O2bmln?= , "David (ChunMing) Zhou" , dri-devel@lists.freedesktop.org, Felix Kuehling , Christoph Hellwig , intel-gfx@lists.freedesktop.org, =?utf-8?B?SsOpcsO0bWU=?= Glisse , John Hubbard , linux-kernel@vger.kernel.org, Niranjana Vishwanathapura , nouveau@lists.freedesktop.org, "Yang, Philip" Subject: Re: [PATCH hmm v2 5/5] mm/hmm: remove the customizable pfn format from hmm_range_fault Message-ID: <20200506161824.GG26002@ziepe.ca> References: <5-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com> <3c06a94c-c17f-dc31-537e-f3f6e1ace9a2@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c06a94c-c17f-dc31-537e-f3f6e1ace9a2@nvidia.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 01, 2020 at 05:53:26PM -0700, Ralph Campbell wrote: > > Acked-by: Felix Kuehling > > Tested-by: Ralph Campbell > > Signed-off-by: Jason Gunthorpe > > Signed-off-by: Christoph Hellwig > > Documentation/vm/hmm.rst | 26 ++-- > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 35 ++---- > > drivers/gpu/drm/nouveau/nouveau_dmem.c | 27 +--- > > drivers/gpu/drm/nouveau/nouveau_dmem.h | 3 +- > > drivers/gpu/drm/nouveau/nouveau_svm.c | 87 ++++++++----- > > include/linux/hmm.h | 99 ++++++--------- > > mm/hmm.c | 160 +++++++++++------------- > > 7 files changed, 192 insertions(+), 245 deletions(-) > > > > ...snip... > > > +static void nouveau_hmm_convert_pfn(struct nouveau_drm *drm, > > + struct hmm_range *range, u64 *ioctl_addr) > > +{ > > + unsigned long i, npages; > > + > > + /* > > + * The ioctl_addr prepared here is passed through nvif_object_ioctl() > > + * to an eventual DMA map in something like gp100_vmm_pgt_pfn() > > + * > > + * This is all just encoding the internal hmm reprensetation into a > > s/reprensetation/representation/ > > Looks good and still tests OK with nouveau. Got it, thanks Jason