Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4100103ybi; Mon, 27 May 2019 11:07:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg59eO+qRhPUK/2rNZJRpW2SOMevvPsfsEldSc5uNxW391A6vZBykcithul1CWzPCu1WkL X-Received: by 2002:a17:90a:a790:: with SMTP id f16mr291458pjq.27.1558980426834; Mon, 27 May 2019 11:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558980426; cv=none; d=google.com; s=arc-20160816; b=cOtZK01XMsWvSQdYJeuSyXLYApAAIBIdYa/XFqKR3FiBwBkzaneFjHLRQVT+ERRdY6 8XzYAp3dDA8iYQX7GyGuVV6YABoGUQ1ZGGy07iMytXJJzWe+4VF9y1T+7O3HrY82W5OE /KS2iiKRg5IrxJsc0T7Ql5h4W95xxJABefkTkK4V/KAU6P6Or97wdKw7txOZBEEj5C9u JeVMs5rqeflAyd1PL+OVMt7f/tq4HjEQNSwRO2S+zZKB2q7YqqgOzcBNv+amYiBsC2rq 5TAnG7OR/Bz5NkvTFJDXYeZpu4ZNzRbjD8vHN9w8ZLiwo/ZLgcEeTQ0pr6IBUNFBfwVS kAFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+wNFuC91c5YlSB1hcwsQ9GxjfgiwOWc7KaX4c/hxk/s=; b=aJvxoT42/jEp5XXNM5p0vg43sHo7ClGdFx0LclhSM7crT0KOvSdN8wnQYM5J22oIXV zuAKXGh/U6di/FeqvOPuJWo3hCbwXcFTPlEG1pmb4XYcJVQ/LUjBI80bwnDKzkZ9hpUW c4fhH9UhL7H+qZoIy12G1P0rE7vAU8r/drGt8aR1Y7f5Hcwk6mj2EWrMyw00mKeeJupR tx7Jj4obFs379wfiBXiCBjv19OT0kEKwfQBEmzjp/5A7LzU78qfDkVB29Iw3RdjIBzMk 3ospgMKRBRLJufwKhQ6JYLhmfPJUpxjXa8qwye7X/k/fW9B335TJBYRqFqJsTWZxCNYd T/AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qGzb3KcS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si17569040pgj.356.2019.05.27.11.06.50; Mon, 27 May 2019 11:07:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qGzb3KcS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbfE0SDm (ORCPT + 99 others); Mon, 27 May 2019 14:03:42 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46500 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbfE0SDm (ORCPT ); Mon, 27 May 2019 14:03:42 -0400 Received: by mail-lj1-f194.google.com with SMTP id m15so535241ljg.13 for ; Mon, 27 May 2019 11:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+wNFuC91c5YlSB1hcwsQ9GxjfgiwOWc7KaX4c/hxk/s=; b=qGzb3KcShEQWnth+drQ8SaRGF84WheM6+KcQcL4T/eN0NPIBQ5Nn1KYiKRwJu3N7MH tB0FwugQd2qWrAYcHB/m6NkJEvaj0e0OvgtZ0sj+ZE2+LuDgC73e7+g/7FeCC0FQkwXT cVeSracUaAWpII6gQdqJ9LHRSi5t7ME94XduStkE/Y1w+/w6T0z6tkE1nrWAwVeXWVq3 Gh3cNn2KxW8CPhs/A5OmaRU8Ve2ES3EUgOaOoBmGgFnFrdVBmDkTx48NTbAmPBRiSYlw jwudjg6LGBc5aZlKuamkJqqqsxfbb2Lu3M+SazM6xU4tTHJy+esfiLhQuf+ymtgiYssb LiWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+wNFuC91c5YlSB1hcwsQ9GxjfgiwOWc7KaX4c/hxk/s=; b=lD4S6CD2vNPs+h/bTmVvrGpbcxltncUrkQZ03Do0FbEYFIGqK+1QO4y8Z5wJk3I8cK 8eI6UckQzlfEXLshjsD8BRB6V0X66tpfm4NsSQhRAhZlqny922unvYjxJN2cf85+GWBC Dn+7K7umsM5w3VfbQSeD61+4qSgD2ynpq2lczloesqo0z/qYQH7SQJ+Aafd9+j/1rVrw 1L7adZTdroHmiDg2zBCzJ0RHXWLKh1qCGju9CI7IH8fpvAJjq5FF3a+0Gvtp+myVsLZU egZ07r2+oSL99dFlCMbTtP2Mz3bYqrlliyjnJGK7XjLyvkKNlvi4pdZLAdOauZUX1s3F EXxQ== X-Gm-Message-State: APjAAAVEwfIEQgYvgOg/EHoYw65q4JbG8llyC738UGKtM9ApjGRX5YuY cWXKSSj25kt4hiFbmqJtsDy9osdNdlGN/21+HtA= X-Received: by 2002:a2e:3818:: with SMTP id f24mr35962218lja.13.1558980220290; Mon, 27 May 2019 11:03:40 -0700 (PDT) MIME-Version: 1.0 References: <1558378918-25279-1-git-send-email-jrdr.linux@gmail.com> In-Reply-To: <1558378918-25279-1-git-send-email-jrdr.linux@gmail.com> From: Souptick Joarder Date: Mon, 27 May 2019 23:33:28 +0530 Message-ID: Subject: Re: [PATCH] drm/nouveau/svm: Convert to use hmm_range_fault() To: bskeggs@redhat.com, airlied@linux.ie, Daniel Vetter , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 21, 2019 at 12:27 AM Souptick Joarder wrote: > > Convert to use hmm_range_fault(). Any comment on this patch ? > > Signed-off-by: Souptick Joarder > --- > 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 >