Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2927642ybi; Mon, 17 Jun 2019 12:55:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxp3p7LXI/NZxHMQoTHfkVAH2uboQ3Xw7cH0x1HZmeHQ7Lam+XQPbg2nTEAMgIbkJ7C5drB X-Received: by 2002:a17:90a:9b8a:: with SMTP id g10mr681940pjp.66.1560801315381; Mon, 17 Jun 2019 12:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560801315; cv=none; d=google.com; s=arc-20160816; b=fCLgDsB1dvBVi7wMLeuWNMA3hAkf97rf4i2HQ6ouF3I6gdK1DhGgqSmN67nPFoj3P6 8+JCmfgpHTZFRkbLmGZXt6eIsBl1wc7Q/jLsYYpVWlHLccm6S9iZ9XGKrof9eGeUmgLR hteV3A2kn58jzZiXciPNHZs6avac0rzuw4k2iqlHpXrbyBNF1kBqVWjxuBI9CgFMoJcM iNR+EuiMTeqb9aOk4r2KGniKQ+AVDfGNO9xEg6O63xd6+DBVyivIexT4hedGIxUKn5wB WRqI1W/IF9mPAht0xoX8PKBeag9E0qJeKsPSWAG7lIR/KeetbTYjfPujpVwY7buO5/HI skpw== 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=px+ksw4A6wBs2tGVjrtY4eXqwsbXisJ8RjKcbaVPOIU=; b=Hz+R3cj8cWkjD2ALqv+zvZL8ayDW4cGtEa9TtGm/GvlMjKmVV26iI8bkF43f5d1e04 /73rvPCsWceQ9qhmt5gVO+qoTGtup1dN+zjP2lkJ7aSZezS2bw3t3oy7Os+rvgWoXyD/ MU1jSbvk+0Zno7E+WMDTgrUrEH3bzfHF8VCZS2jyjuBt3R7lo13dCDAHRdRGzZVHMEwZ WSd/I9kC9kaM8ys8BIZ80kiX6kEO+cxBFC4xBXhDsWSUa47mjZjvXXWmO8hm2SQXLWz8 eUA9jYDO8Cd8BYpOK6XB4NrAuii+gWURkjl9Byy8XEMkwNOv4bFXWjEC1rAY66Mcsa4c 9zkg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si12161004pgj.504.2019.06.17.12.55.00; Mon, 17 Jun 2019 12:55:15 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729121AbfFQTyf (ORCPT + 99 others); Mon, 17 Jun 2019 15:54:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51380 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbfFQTye (ORCPT ); Mon, 17 Jun 2019 15:54:34 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76A8B30872E1; Mon, 17 Jun 2019 19:54:28 +0000 (UTC) Received: from redhat.com (ovpn-125-143.rdu2.redhat.com [10.10.125.143]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 522804146; Mon, 17 Jun 2019 19:54:27 +0000 (UTC) Date: Mon, 17 Jun 2019 15:54:25 -0400 From: Jerome Glisse To: Souptick Joarder Cc: bskeggs@redhat.com, airlied@linux.ie, Daniel Vetter , jasojgg@ziepe.ca, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/nouveau/svm: Convert to use hmm_range_fault() Message-ID: <20190617195425.GA4085@redhat.com> References: <1558378918-25279-1-git-send-email-jrdr.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 17 Jun 2019 19:54:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 08, 2019 at 12:14:50AM +0530, Souptick Joarder wrote: > Hi Jason, > > On Tue, May 21, 2019 at 12:27 AM Souptick Joarder wrote: > > > > Convert to use hmm_range_fault(). > > > > Signed-off-by: Souptick Joarder > > Would you like to take it through your new hmm tree or do I > need to resend it ? This patch is wrong as the API is different between the two see what is in hmm.h to see the differences between hmm_vma_fault() hmm_range_fault() a simple rename break things. > > > --- > > drivers/gpu/drm/nouveau/nouveau_svm.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c > > index 93ed43c..8d56bd6 100644 > > --- a/drivers/gpu/drm/nouveau/nouveau_svm.c > > +++ b/drivers/gpu/drm/nouveau/nouveau_svm.c > > @@ -649,7 +649,7 @@ struct nouveau_svmm { > > range.values = nouveau_svm_pfn_values; > > range.pfn_shift = NVIF_VMM_PFNMAP_V0_ADDR_SHIFT; > > again: > > - ret = hmm_vma_fault(&range, true); > > + ret = hmm_range_fault(&range, true); > > if (ret == 0) { > > mutex_lock(&svmm->mutex); > > if (!hmm_vma_range_done(&range)) { > > -- > > 1.9.1 > >