Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1455722ybl; Wed, 14 Aug 2019 17:43:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/pX2BsJENewI3hT6XqOVXHNK1gs4UYhhwY3QDY+bjDWsDy2iXCITnYRLqJ3OxlEZLcVyr X-Received: by 2002:a63:6fcf:: with SMTP id k198mr1504742pgc.276.1565829789023; Wed, 14 Aug 2019 17:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565829789; cv=none; d=google.com; s=arc-20160816; b=t9ktoe9Upy7Vx7OWBpw82y8jJwz8kC75W8COtpYmkXTVQnKrrZ5hx568+vcFpZ6Jyw vubPFaTMwrzS20ncAVy2hSUsjGHIsZuT+ehZ4GH8h1fgK60qw/fNBIC7qA4Ww4sSR9vW u+04NZQwwEx1hBRVzDMXMv+YCHBbdHLkQX5C3/3EAUIrdUDhiCD9E4cHvbMdt6jV35hA NBni9g6ILE7kKjrdgyqA2X2/hUSfzpNOTMIYi44LJkPl9Ip591bM12jXofifT9dZrQYQ 5uzX3M1tTjdlLtyuUiDwjud3CKNIC9y9np8OxXTvvoBUo8TqTH1ln9g72N/VQqquXg26 N1tg== 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=UFE11LA+ZDd79e7Fh4F3PTQQo4YwL9Cl4D835Utwz2E=; b=QDAaT+FBDvbExx89B6qncEFF+7FJxs9tNt19BOyLKM6YpchojCUQZhf6tFacYrYLqS jmPELDEv50pMIPSYb4ceJ5/8y0t2AB5fWUKbtDOiR/P/BqfyHKgvt+Ymee7GounacJSW pZ9fWMb0zucWaFOwG2yhU8ZoGJRq805ApYpBUnCofFe4U9JlhAtA+nA8fYEsOi2JMw6Z LYEN78wt2jN3lIfZumtrmeuO1EmkdonUx/rdQH/ssELI9yMhDuTPA6LgxoQDxiY2fp2L OgvgZQ9Hyvi1fYeee31zNjDNGfEoN33Nr+pWA0uXRBRTRPt2JcP8BA2cWTH5+LAacF4F S+wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hTvydnEs; 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 m17si798678pgg.539.2019.08.14.17.42.15; Wed, 14 Aug 2019 17:43:09 -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=@nvidia.com header.s=n1 header.b=hTvydnEs; 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 S1728655AbfHOAKA (ORCPT + 99 others); Wed, 14 Aug 2019 20:10:00 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:17989 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727217AbfHOAJ7 (ORCPT ); Wed, 14 Aug 2019 20:09:59 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 14 Aug 2019 17:10:01 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 14 Aug 2019 17:09:59 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 14 Aug 2019 17:09:59 -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; Thu, 15 Aug 2019 00:09:55 +0000 Subject: Re: turn hmm migrate_vma upside down v3 To: Christoph Hellwig , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Jason Gunthorpe , Ben Skeggs CC: Bharata B Rao , Andrew Morton , , , , References: <20190814075928.23766-1-hch@lst.de> From: Ralph Campbell X-Nvconfidentiality: public Message-ID: <8e3b17ef-0b9e-6866-128f-403c8ba3a322@nvidia.com> Date: Wed, 14 Aug 2019 17:09:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190814075928.23766-1-hch@lst.de> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1565827801; bh=UFE11LA+ZDd79e7Fh4F3PTQQo4YwL9Cl4D835Utwz2E=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=hTvydnEs0xSSVJWPajFZPOOuonANGrVb61PcnHEcdZAa1Izsz9/gKb19ZA98X8SzE AvqduFk9EUWUOqgXmyGPSL5MQbVY4v/pzouHJDVQk9niKC3bZiG1TXDZv99HcXZFeO JNO6B/xaf/pGhk5df1D+EvN7msxDZUFjg01SoQ7+73tpn3RJ+XwxPfvKKCmivQeIsy dDWNjuOZOKhNMMMStclR1bhAFqwIy8eXpTgWYcWh6BlSWM44vpQgH/OgbRe24ZBOcA yfx9TUJlXzKMfQWSJDMBK+DLGwIcpX57KXDaDNMZN21bi3WpHUr2NJY0xjwWi+KLja gUC703gAIO5Ug== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/14/19 12:59 AM, Christoph Hellwig wrote: > Hi J=C3=A9r=C3=B4me, Ben and Jason, >=20 > below is a series against the hmm tree which starts revamping the > migrate_vma functionality. The prime idea is to export three slightly > lower level functions and thus avoid the need for migrate_vma_ops > callbacks. >=20 > Diffstat: >=20 > 7 files changed, 282 insertions(+), 614 deletions(-) >=20 > A git tree is also available at: >=20 > git://git.infradead.org/users/hch/misc.git migrate_vma-cleanup.3 >=20 > Gitweb: >=20 > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/migr= ate_vma-cleanup.3 >=20 >=20 > Changes since v2: > - don't unmap pages when returning 0 from nouveau_dmem_migrate_to_ram > - minor style fixes > - add a new patch to remove CONFIG_MIGRATE_VMA_HELPER >=20 > Changes since v1: > - fix a few whitespace issues > - drop the patch to remove MIGRATE_PFN_WRITE for now > - various spelling fixes > - clear cpages and npages in migrate_vma_setup > - fix the nouveau_dmem_fault_copy_one return value > - minor improvements to some nouveau internal calling conventions >=20 Some of the patches seem to have been mangled in the mail. I was able to edit them and apply to Jason's tree https://github.com/jgunthorpe/linux.git mmu_notifier branch. So for the series you can add: Tested-by: Ralph Campbell