Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10644014ybi; Thu, 25 Jul 2019 02:59:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRwNkI4neFbesFJhs7Q3stiklyVDtNa694Hs8TgU2ONZJYgM3nHgDeKwoL0FKOGxgcXxTE X-Received: by 2002:aa7:818b:: with SMTP id g11mr15984968pfi.122.1564048754944; Thu, 25 Jul 2019 02:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564048754; cv=none; d=google.com; s=arc-20160816; b=rdz1A4sKUFNOY+OvCUEelH3fy96WosD4KkHcLfP4LqF12pTDP32M/n8ExliST3VZXw eFdSe1VQxoLxyOEhh7jcbH75W1ir5xk5iN4okFxf5eL2iLN6cYsR4QuCEY5sZMeFKJ4M NDJcA1iNwkOR8k2LK1DP1S5PrInRmmFxVtrENxmHtNHQPMENNrr6/mIAn8bAPxqv8nwU egVqiSHxXwP8nCUdIMGpHUJvtl2qtaRmUBvxbaAMkewmP+I94+Geo9zvlijTHTIXFHcb SluxgaO8ue364n9AllC+NBbczZYCP+9JOjyvG7lDumiUgC8AW/LUswunoQ2kUSVlO83O xmCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2QscBl/3tbBrXReK2tsv96us6PdZtQnqjBeeXbxeJtw=; b=aHlL8iRvPeFI387J9PzWDFzYpSv0hwD2rqBTHVJbG0OpbTOROYxaTeu0SQOIbd2WJ/ nqYx3dm8+94bx5RJETjsW8u2VdiAvB52tUImN2qWCjQxMmz/IU9LKWJqSNoRacC50qGb p4OHbWmClk9sTPoerPHL7tZIyansDMMn5grXFxJo5MVsitrpv6+JhdLiA0ltXxLzNmm6 OUORKULmmTFTfbrENB9OmZoYOfQy0et/Y817OoaWB7i/bqJngzPCHni8+NeF1lwdNSSw ML5Ca0eUo/fkYbY72GFvUaSB7tx7IMT6y+IwxbtT7tUwqsv3+YI+31at+Nzm33DGR+Zc mjpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=CLuwqZyx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si14506360plq.53.2019.07.25.02.58.56; Thu, 25 Jul 2019 02:59:14 -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=@ziepe.ca header.s=google header.b=CLuwqZyx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728898AbfGYBO1 (ORCPT + 99 others); Wed, 24 Jul 2019 21:14:27 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36670 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728317AbfGYBO1 (ORCPT ); Wed, 24 Jul 2019 21:14:27 -0400 Received: by mail-qk1-f195.google.com with SMTP id g18so35229754qkl.3 for ; Wed, 24 Jul 2019 18:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=2QscBl/3tbBrXReK2tsv96us6PdZtQnqjBeeXbxeJtw=; b=CLuwqZyxlnhSQLNy2YRvagdU0Et/zZ17Ms4ehbdSvHLmk/gxwl3Wy/TTFegvnq+Et5 4OpzVJv31gfdKu+/y13I9cSc1xlCIrpNLtabHb96qgORKl53PzbY30X66v61S563aYvw Z37UCLu003OZv8+NzTJzDSWyvzaPJpCNXSGq9hTC782PqR5qb6OfdY663YIxKKz6zIal IUoHez0chz3E2syIDBmGa7w0i9EJIB2xJ/Oxn1p3vnYmrNLjnuIVSG83ByHoyfGxuzLd v/OfQGlL/BCupE+LUBwfJE+qrXBuBE9jk/6+jF2E0ImNgnz9zBrdwCRnFkuXmowLxdCC tjIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=2QscBl/3tbBrXReK2tsv96us6PdZtQnqjBeeXbxeJtw=; b=rQMblhUpPE9YfCjPszKFwIZ+EYBFKVxOcoSPBrhJpYH912BUwojGuPYgTLGzmdVWK8 MXdmPQF+mlezegjACzasmlz51vg/ndOw51fNiGeGXW5p8fGby7q8bcjukhV0r2mflq0B 2aA6ZCjy9L75QX2nrguQ8OIgRRGNcLtrKHpbQEaTaoRo440c3mKCwXuTB9GhlAPvs7qh 1fs3QHpXqrMB5+DZEPFvuzdy5YSV2Pk+LFFVAV5YvZrZq1cOinhEIAn+huQpBwUHeE96 jySGU29VqckeDo8jLsrQpmNtfZ/2XpKRC6rBiaexmTMj940UjXW2Bx81wnIT5BbivcUC oFFw== X-Gm-Message-State: APjAAAVXNO2H8PJqfQ2ho2ZFu+5OfzeokM8tmEFNmjC/7chBvx+pxxdj /nbav4abjoO/zPITGKe9QjZjtw== X-Received: by 2002:a05:620a:1ea:: with SMTP id x10mr54556510qkn.484.1564017266127; Wed, 24 Jul 2019 18:14:26 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-55-100.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.55.100]) by smtp.gmail.com with ESMTPSA id k7sm20307997qth.88.2019.07.24.18.14.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jul 2019 18:14:25 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hqSKu-00006q-Vv; Wed, 24 Jul 2019 22:14:24 -0300 Date: Wed, 24 Jul 2019 22:14:24 -0300 From: Jason Gunthorpe To: Ralph Campbell Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, =?utf-8?B?SsOpcsO0bWU=?= Glisse , Christoph Hellwig , Ben Skeggs Subject: Re: [PATCH] mm/hmm: replace hmm_update with mmu_notifier_range Message-ID: <20190725011424.GA377@ziepe.ca> References: <20190723210506.25127-1-rcampbell@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190723210506.25127-1-rcampbell@nvidia.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 23, 2019 at 02:05:06PM -0700, Ralph Campbell wrote: > The hmm_mirror_ops callback function sync_cpu_device_pagetables() passes > a struct hmm_update which is a simplified version of struct > mmu_notifier_range. This is unnecessary so replace hmm_update with > mmu_notifier_range directly. > > Signed-off-by: Ralph Campbell > Cc: "Jérôme Glisse" > Cc: Jason Gunthorpe > Cc: Christoph Hellwig > Cc: Ben Skeggs > > This is based on 5.3.0-rc1 plus Christoph Hellwig's 6 patches > ("hmm_range_fault related fixes and legacy API removal v2"). > Jason, I believe this is the patch you were requesting. Doesn't this need revision to include amgpu? drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c: .sync_cpu_device_pagetables = amdgpu_mn_sync_pagetables_gfx, drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c: .sync_cpu_device_pagetables = amdgpu_mn_sync_pagetables_hsa, Thanks, Jason