Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp864886ybk; Wed, 20 May 2020 14:07:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQBK60KslqqEyDwbP+WxyM50OiZc60eSgRHcWyJGT2F/ofB2jtqA4YekRfl8R74eqsMNld X-Received: by 2002:a05:6402:14d7:: with SMTP id f23mr5326025edx.187.1590008827832; Wed, 20 May 2020 14:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590008827; cv=none; d=google.com; s=arc-20160816; b=x6dPO6UDcOJUJnRMRsEPrNm/fQy1B2ziW3yzwaIGVtn+5GeGZN0DeJUW9RRvicSRDa 7DBXhWfX/3rhuPmo3ft7saDtcnim3667uUwvy5ywty1MCGMOzlQj3FYAuNkb/kCbPelT HQJMokJRtDUBRGJumAzDJdN6ZwxiqKeWjIqEmf1foe48gAobT2UwsnZfHh2rE6lIBSj6 aAO0m9P3tWeF8R60ElwG96R9NJW+tNR6SVW+b5+e/MJ6k+RyVSuf+Tjex3lSIrtcodBU WHEsB8XpUOaSXYCYIYk4Jtv7mmSGXAT+slPlF+DwRXzI1NAJ8tUzBnwM0UtfoTkibPUZ KgQw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=oNYfOayL5+NnABbnpFvMSS5jJdalJIc06Ghq09EUD4E=; b=RHWmkjY9dnSFaA23AAxVTaktz2l77eyksrNYkMz/uQrYZFpNPcVH1a/+IzN3pJLnQA DxrO2uXy2js76yzscj1RjBCKjD8W7bm4bdA7OjSBYxWlOjMYuoZPtSjFvxHwmK2YNHW/ sFV06NIyQh/csqzGLdJiDRmAfFYEQvIyjRwrrY8JKmtywwZf2iYH1v/kCA5gxP/LvyU/ usAtQ6FPbnn4Bqm/IjHx4ubgVa6UfZ8VTwML92TGkTO5OM5yjF62o8nfEwauFL55KZSC YYjNCsKGNmV6JxaeHfWLxRuUW28CcJ8c3Ctk71LbtBcL8zV/utOE5BcBVL/eUbYmBVtJ 1agA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=OXSTJKDH; 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 p30si2067223edd.583.2020.05.20.14.06.44; Wed, 20 May 2020 14:07:07 -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=OXSTJKDH; 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 S1728056AbgETVFL (ORCPT + 99 others); Wed, 20 May 2020 17:05:11 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:17456 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbgETVFK (ORCPT ); Wed, 20 May 2020 17:05:10 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 20 May 2020 14:02:46 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 20 May 2020 14:05:10 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 20 May 2020 14:05:10 -0700 Received: from rcampbell-dev.nvidia.com (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 20 May 2020 21:05:09 +0000 Subject: Re: [PATCH] nouveau/hmm: fix migrate zero page to GPU To: Jason Gunthorpe CC: , , , Jerome Glisse , "John Hubbard" , Christoph Hellwig , Ben Skeggs References: <20200520183652.21633-1-rcampbell@nvidia.com> <20200520192045.GH24561@mellanox.com> X-Nvconfidentiality: public From: Ralph Campbell Message-ID: <0ef69e08-7f5d-7a3d-c657-55b3a8df1dfe@nvidia.com> Date: Wed, 20 May 2020 14:05:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200520192045.GH24561@mellanox.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1590008566; bh=oNYfOayL5+NnABbnpFvMSS5jJdalJIc06Ghq09EUD4E=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=OXSTJKDHNXgUvcTtaCjRAbYfLocszE4i6M3tulp2GOmCgY+AtUmJn09EYEPdwMXak qBNS1ru1cIpS5X+kjTGjaFfdmoHvtoZY5l3arAAiNRNiJI6/9fIRgnXyzXFfRNunfy e7fys5XkFfg76pjban7f52m7QSu5jIJjzW6DyHYa19Z8otwsm6BAKxOEv4s6XnhwkR sEElneYYy7Vr5vGMG9inFQ7oP1gdk7FgIeuEDL5HTIfhCmOQMRuqgDTQUQO22+9ASL t2yLvPza0CZuQ4UjzRUItjyydP5yPzO8cb9kKfk3uINysnpUQ0GMWaSRYNUYgfph5z qlsDmF8dXLmBA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/20 12:20 PM, Jason Gunthorpe wrote: > On Wed, May 20, 2020 at 11:36:52AM -0700, Ralph Campbell wrote: >> When calling OpenCL clEnqueueSVMMigrateMem() on a region of memory that >> is backed by pte_none() or zero pages, migrate_vma_setup() will fill the >> source PFN array with an entry indicating the source page is zero. >> Use this to optimize migration to device private memory by allocating >> GPU memory and zero filling it instead of failing to migrate the page. >> >> Signed-off-by: Ralph Campbell >> >> This patch applies cleanly to Jason's Gunthorpe's hmm tree plus two >> patches I posted earlier. The first is queued in Ben Skegg's nouveau >> tree and the second is still pending review/not queued. >> [1] ("nouveau/hmm: map pages after migration") >> https://lore.kernel.org/linux-mm/20200304001339.8248-5-rcampbell@nvidia.com/ >> [2] ("nouveau/hmm: fix nouveau_dmem_chunk allocations") >> https://lore.kernel.org/lkml/20200421231107.30958-1-rcampbell@nvidia.com/ > > It would be best if it goes through Ben's tree if it doesn't have > conflicts with the hunks I have in the hmm tree.. Is it the case? > > Jason I think there might be some merge conflicts even though it is semantically independent of the other changes. I guess since we are at 5.7-rc6 and not far from the merge window, I can rebase after 5.8-rc1 and resend. I posted this mostly to get some review and as a "heads up" of the issue.