Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3153185ybt; Mon, 22 Jun 2020 16:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAdJ+LgAgO0+abb2tHmJz829KhdRg+7d8qPwr75zrmbUfSyr0u9YYSHNantbVuuJ6wdqme X-Received: by 2002:a17:906:c10f:: with SMTP id do15mr18717689ejc.249.1592869536844; Mon, 22 Jun 2020 16:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592869536; cv=none; d=google.com; s=arc-20160816; b=Vs5rbz0iloIWauYm0bM1wxgvfvU4j83CBcHizZAn2801AKr/tt/4EPBV60Sxvxb5v3 gDNp/rWr2CE1fv0tG9lKam/b8/eFxQPUwJMCkZMT/K1KzLGuatAdRVTju6EJw0H+g34N 6WEtAu2Tcjq4U4mxk2otWaXu8TweUNT3GrU4QVpbhndN3U00lqewFiYjlukLy5nOUPF+ 2KU1oRQEthQMF77ZkSNKSAsOxaZNbm062gbW6oAkYOhDFJSRNw5ZoCevHCO+Yp2YCyux 0hEI4EHJ49Dx7nes7XpcDaFQN1kCcmadiIKbeB1mUru/zOFc/pCVrV5RTtAHZlBGsi2p G4Ww== 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=3+JCLyZE1OpqsNZIQQX5Dapnb/sVr1kQHRfm+bmM/qI=; b=hx6su76CVVBh1DyvqrBkYNOA2xCjljYoO40VvZvRj9/6IVE1v/HqRYKrmZysHHgcHK WdFnVTyl/nzX5qMgcf7LSszJZoiqTjF7ZZ4bxCvXbusp74RtnhAH9FfK6L6E0hs9kg9g /emAyIUS8z7+Zp2Cr9KjwQxgCffZs+SSJC2nlHCYLiHwo31/6K799rDLOY6zSepVDzsk 8NBAmCO/24/3Q1PAtB1WmnautFOMuh9eR1usH7rTZrBiVKa8w7b/7jlIWYUZJB2Bt7UH ap3E06GqIELJgbrTd/PRX43J7ZZLeCKOlnDpnuumkUhwpwv8ARMn3pQW1IYY0ybXO0bF /CUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=kzixr8lq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si10334960ejq.198.2020.06.22.16.45.14; Mon, 22 Jun 2020 16:45:36 -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=@nvidia.com header.s=n1 header.b=kzixr8lq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731071AbgFVXjZ (ORCPT + 99 others); Mon, 22 Jun 2020 19:39:25 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:18846 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730846AbgFVXjU (ORCPT ); Mon, 22 Jun 2020 19:39:20 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 22 Jun 2020 16:37:48 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 22 Jun 2020 16:39:19 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 22 Jun 2020 16:39:19 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 22 Jun 2020 23:39:09 +0000 Received: from rnnvemgw01.nvidia.com (10.128.109.123) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 22 Jun 2020 23:39:09 +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 ; Mon, 22 Jun 2020 16:39:09 -0700 From: Ralph Campbell To: , CC: Jerome Glisse , John Hubbard , Christoph Hellwig , Jason Gunthorpe , "Ben Skeggs" , Ralph Campbell Subject: [RESEND PATCH 0/3] nouveau: fixes for SVM Date: Mon, 22 Jun 2020 16:38:51 -0700 Message-ID: <20200622233854.10889-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1592869068; bh=3+JCLyZE1OpqsNZIQQX5Dapnb/sVr1kQHRfm+bmM/qI=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=kzixr8lqLvDysmZK4S9/RHRATrbqfgRx6qAibDxoItencKNjTAmEXdsCeayZR6ObG t8VRXYsVePr8FSTSMa0Laea5FC4I4XxAqHK6BunPMmQi/gNOH1unRiwEUx/RBAdyCr N4+kqMK0UZH5orr84HaIpPMg7ZiSdWu6fzj3ByiHYy60AspCo3w9YvJlky/lrqfvHT CHnWXuHAVP2zc4eSRy9QQFALB9yqi1o0sivI3EGgeoBvHLDih9qVv/0YkbgprVAeGL Ziq5M2GaXzW/shX8M1O+6gfaVxiMtIYP4Ev8OiOQ8OPbYv5bglzEFCmQ4L4ELgctqi 9WDc3eAYVorDg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These are based on 5.8.0-rc2 and intended for Ben Skeggs' nouveau tree. I believe the changes can be queued for 5.8-rcX after being reviewed. These were part of a larger series but I'm resending them separately as suggested by Jason Gunthorpe. https://lore.kernel.org/linux-mm/20200619215649.32297-1-rcampbell@nvidia.co= m/ Note that in order to exercise/test patch 2 here, you will need a kernel with patch 1 from the original series (the fix to mm/migrate.c). It is safe to apply these changes before the fix to mm/migrate.c though. Ralph Campbell (3): nouveau: fix migrate page regression nouveau: fix mixed normal and device private page migration nouveau: make nvkm_vmm_ctor() and nvkm_mmu_ptp_get() static drivers/gpu/drm/nouveau/nouveau_dmem.c | 10 +++++++++- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c | 2 +- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c | 2 +- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h | 3 --- 4 files changed, 11 insertions(+), 6 deletions(-) --=20 2.20.1