Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp65230ybm; Mon, 20 May 2019 11:58:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb5S+q6BAKFfp/ZpB3JAIGI04rCt67txv51q/4MnkqaSOewyFJUE9nfTBOumfoFMMsHg+J X-Received: by 2002:a65:5304:: with SMTP id m4mr56771073pgq.126.1558378720267; Mon, 20 May 2019 11:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558378720; cv=none; d=google.com; s=arc-20160816; b=JmO4J7mMlR3Kbqyn8oZNs1Dm6+jaeB3mQSrjYWBNClMqrFpEZLT2fzR5LvJ3c/NkUt itiPip+5Cqicw3WE9jFKX/P4pQT91cSeTNRfc/0yiMPVvQnAya0IHT/ro6Z7e/+qbfFQ OnL3Q2wRJLcPO7G2rtGOjEZQU0MgkxoCj8aYKhan84wcQI4aIql7EMXnIR9hkOt8DZdX ut7mL15CWza9GVBD2McB+KLpNVXN5hCMM6O01kNlk7DcQTR11gRufF06cE+FFmK8nVia HSVXwnsGfLYQKR4Rz233qQDVFTltpvySGG7xOYNmyCMSevbo0kPMhTkAZmSir1RzlONT Rqgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=8Lt7rSnSkayzVvx67ZsDNX8yUH1XBDbeQw+L9abvZe8=; b=LcetYLfFVZ1i0oJAmDhtH6n7LWedqQVK/ufqqFSGhP/KVKrJ+ped4dCrQNfCBCh1F0 4ix9ppIRtVIdhIopAbNTFVTHZs9iaunwHdp4MobgFZtyuhyOYjFEbm0gQolOSOhm4YWS Is18VhzhKjX+SADJ6EYF3Ei+Vd2A/sL4qloJQWbg9wt+GVlTrjzl/WAfCtmIovcLe4Ni sH1JeDWeKykyPL+gu9bYNC6cbJaHOXDR4Ov6IIT0T5CSy3dzcvGLQchTnGFSfrMByKJd 059Z6KC1CxQpI9tzZQNJrSP5Yk2a/7I0IwO39tNpjnHPx/I+FZnt5UVWyWMQ33LTTRfF 4ttg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MmIoi8oq; 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 f15si19326050pgu.218.2019.05.20.11.58.24; Mon, 20 May 2019 11:58:40 -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=MmIoi8oq; 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 S1726019AbfETS5S (ORCPT + 99 others); Mon, 20 May 2019 14:57:18 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:40959 "EHLO mail-pl1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbfETS5R (ORCPT ); Mon, 20 May 2019 14:57:17 -0400 Received: by mail-pl1-f170.google.com with SMTP id g69so7127950plb.7 for ; Mon, 20 May 2019 11:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8Lt7rSnSkayzVvx67ZsDNX8yUH1XBDbeQw+L9abvZe8=; b=MmIoi8oqygXCLZy6E+9vNzH0H+XcQpdYN8P2HUH/MXWiF0urxOgo5E08QftQCPg6bx 1YJ4p50CDP1Nph8zBNIQc7mL2PqtMChBUcWCTbJHNH43+tC3C1Hcm/mFCySjP+ImYnbV qqKhTuMgWXz3s3Shx9KcZqWOf4mvchFNq3FD48g3ALRHMHPOOOnUM++tgvnQ62pEGzsm h3USo901W3k+/b5bFvdhmwdDI9eZ3nfLz9t+1+L9qbtHHC6PUXRSkdgEu7bEGDiDbHjt /BMp2HqmwC7azDnhJNtLO3dnHe9f4mzljiAuXqMIROzSpk+Td5PadV9Kb9DQSDTZzkeS 0msQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8Lt7rSnSkayzVvx67ZsDNX8yUH1XBDbeQw+L9abvZe8=; b=quLDpLC+Qu1xxwwDNb4wyufBklcYmmLa0y4fkBnwM3JnYU/w3k4M0WecCragNBm12C QL4GWV0vsWAaz/1/avKyCAy9F2XQ55xIWyvCm2IJVMVvmRVrBnYrQwtUkys/PNujp/f4 I9HWGQAMdOUwhGa4cqf4m8UAFnpTZLs279XkzfPVTHPK0t+GCK07kEFV7NEYiB8dQIsa SsSa1L8NvgXXk0AK9z+Ga/keCGOGUWWrZZwVVg1t11CMlj1L8dt6wM76usjZB5kJkAmH J1AIQGf35Z85tDyS79yLXbj7RJ1uiW3kgMTb4LU1gMeH8eP+Jh/2zG8QiFtckSwHjoP2 zyeg== X-Gm-Message-State: APjAAAWkLZ6xlIoqFY1FfW8DwxZ5WuAL3boEIyoi26dkPDNrVDLUIZYq owioU0+ETO+YQ+YHm3pFWGM= X-Received: by 2002:a17:902:d896:: with SMTP id b22mr64516718plz.40.1558378637077; Mon, 20 May 2019 11:57:17 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC.domain.name ([106.51.23.153]) by smtp.gmail.com with ESMTPSA id k30sm13607075pgl.89.2019.05.20.11.57.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 May 2019 11:57:15 -0700 (PDT) From: Souptick Joarder To: bskeggs@redhat.com, airlied@linux.ie, daniel@ffwll.ch, jglisse@redhat.com Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Souptick Joarder Subject: [PATCH] drm/nouveau/svm: Convert to use hmm_range_fault() Date: Tue, 21 May 2019 00:31:58 +0530 Message-Id: <1558378918-25279-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert to use hmm_range_fault(). 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