Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3938094ybf; Tue, 3 Mar 2020 16:14:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vvIyB2R3AQJnN5DxU26dTHPAt3sTzgYUOpErPExPtPA7xpf45bgJJjQBOhtLnu0kz3LRIzs X-Received: by 2002:aca:d954:: with SMTP id q81mr31331oig.157.1583280865583; Tue, 03 Mar 2020 16:14:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583280865; cv=none; d=google.com; s=arc-20160816; b=BuUaPL4tY1SpgZAqqjJQDIQRgHtbeHm6um97MoA3dXZdZTrkzt8LlfXI8f7oIm7dEd 4fZ7l0q7qYzPK+hq6/1h3Lf4K047GhKBtJ+6/uvS5Zp199KjwHkA4A3XgoI9LKzGtLH6 1ScovSrV+pe3fYe/q7Yl7ufrJFuI+1TtkB2HMbxExVLt22Hs4EkkzQP/IsyYo4wxuVQ1 eGcneH2F27yyDBxtv7cspQKYqE/i4a162ZV3Mpme68N3BYA5y5eQZLjG+sfHQ7Irts8Y IrsmaWHSvg1wblNZTGjLn3c44L//mR5OY2ZuzbCVSWfUEYVYiUhU/qfgbjNVJ/ikK3ff gUdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=FYjVStRU/xeHMRnemWwkqp+dmhmJHLFn+/QJlHVfHu0=; b=wW/aRk+unJ8raevp1+5uA42p12ws7OLAgc7Pa1KPxRBVM14QQxNfXB6B3Y9qwvHcPZ ZL38vafawifZf3sXZTNlRC6d6UVnQ3L17UEIEZwxl21gYlUdH7L4SETPF9kWMtRsogv4 kvp7iTFpm0RsTtyC15dAFhmA+vtFFCvszUIN135v5EhaIRBkXc/RjFkH25d3PY1aorAr AEUVOKFNiYyvWqbGANs12/Ta7mmZ3cxcQKwzkCekfxWph3khImfBxS9+6I3y/+R7ZIjd jgPDV5w9/7JL1bUt8p6u6T13xTH7qZsKNNj6Pvm38Ekc00nAS0L21Ri0wMxHm8zCyove R2cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="UoN6Q/pl"; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 110si108117otj.303.2020.03.03.16.14.11; Tue, 03 Mar 2020 16:14:25 -0800 (PST) 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=@nvidia.com header.s=n1 header.b="UoN6Q/pl"; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbgCDAOD (ORCPT + 99 others); Tue, 3 Mar 2020 19:14:03 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:8626 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727274AbgCDAOC (ORCPT ); Tue, 3 Mar 2020 19:14:02 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 03 Mar 2020 16:12:37 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 03 Mar 2020 16:14:01 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 03 Mar 2020 16:14:01 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 4 Mar 2020 00:14:01 +0000 Received: from rnnvemgw01.nvidia.com (10.128.109.123) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 4 Mar 2020 00:14:00 +0000 Received: from rcampbell-dev.nvidia.com (Not Verified[10.110.48.66]) by rnnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 03 Mar 2020 16:14:00 -0800 From: Ralph Campbell To: , , , , CC: Jerome Glisse , John Hubbard , Christoph Hellwig , Jason Gunthorpe , "Andrew Morton" , Ben Skeggs , "Ralph Campbell" Subject: [PATCH v3 0/4] nouveau/hmm: map pages after migration Date: Tue, 3 Mar 2020 16:13:35 -0800 Message-ID: <20200304001339.8248-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1583280758; bh=FYjVStRU/xeHMRnemWwkqp+dmhmJHLFn+/QJlHVfHu0=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Type: Content-Transfer-Encoding; b=UoN6Q/pll7N39wIzylmMBPDOzUsiVhIyTARm901XnFSsX3g+aihahQmxhbe9v417S L90e7XozmIEhBgONWZ37q8OkpnYQz0sKQfIOxhM97hPgsedh/sxkxKbxyMBNkiqPUH Zft5jwOFOREbtW5xdsf9SgAtxV4D8Zv67OXAb+F7XSgf9z+NP1mvTGJQ2hHbuIP/iS HC+uhpaeeftSpa96YS34lZ4LVQtqWMlUAWxVZdnPtfmWcMYP8t1mMUskM4MXVO5Iji UMfGgTlBktcOZHLz9jKqaUwY019y6+bw81Tp+0faCMygVoF0h/lBMXRQsXhfGZNUQa NV4SCCTOs41Fw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Originally patch 4 was targeted for Jason's rdma tree since other HMM related changes were queued there. Now that those have been merged, these patches just contain changes to nouveau so they could go through any tree. I guess Ben Skeggs' tree would be appropriate. Changes since v2: Added patches 1-3 to fix some minor issues. Eliminated nouveau_find_svmm() since it is easily found. Applied Jason Gunthorpe's suggestions for nouveau_pfns_to_args(). Changes since v1: Rebase to linux-5.6.0-rc4 Address Christoph Hellwig's comments Ralph Campbell (4): nouveau/hmm: fix vma range check for migration nouveau/hmm: check for SVM initialized before migrating nouveau: remove useless SVM range check nouveau/hmm: map pages after migration drivers/gpu/drm/nouveau/nouveau_dmem.c | 46 +++++++++++------ drivers/gpu/drm/nouveau/nouveau_dmem.h | 2 + drivers/gpu/drm/nouveau/nouveau_svm.c | 69 ++++++++++++++++++++++++-- drivers/gpu/drm/nouveau/nouveau_svm.h | 5 ++ 4 files changed, 102 insertions(+), 20 deletions(-) --=20 2.20.1