Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4935890ybi; Tue, 30 Jul 2019 10:44:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6XwNMu8eTlKGL0nPUp7zl2fLDgO/tK8TbcC9gI+nfo5AMej82RQ1xkvnpdEUGfpOstSdF X-Received: by 2002:a17:902:20b:: with SMTP id 11mr117835333plc.78.1564508693725; Tue, 30 Jul 2019 10:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564508693; cv=none; d=google.com; s=arc-20160816; b=vagO2CFP43AogF6tyJxZHMkg2f7pVIq40E0Y+LEI9f9/gYoDMfiNWWsU7iLBKW6EBb TnIG0YbObfusGop8XW1bOb839THOP73TKkrtT1sIdtc/ZBoJkbc/drsFDLhSHz4AI3RS rRd1CznK7cpiBPDX/hap0jvDSosalW7PiGAV4Ltk6U28HhE4TTn98EiEpOd62KOxUVHe Ip1tPF8jotyTXaBTrGFkHqD1zhyZJ5n5LwVgJxWB1N0w4608dEOPnu6JusKtIoHwrObR +qZ9bO+Nx36CY9LOMny29gFXm+50sfvzu5JkU02p3ZRy6xX5ptPGxN10Lpfc8kYyvSOK A7UQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6clvNznROtvjhzOJWwCkko7QVSqipOkuyqK0JiGyYdw=; b=B0ihrpij2ueaVaiUKICHgYQwWo4gYvBmSLRmUZunvE20KidnVjJ7Myv2ATJfy+eve7 0e4CeMiI7HKGQpsCfnBznUEaehLfYHOEcG16h01PHaPqzfrNJryrKi3vR7+aihVj9uQx L3VyAsyS1sxgKh0HLpCUmSuSX6i8lJhW8XixZRT29Ow5dHmcr7H0fjltJrQwydhJeCgJ mi8DRjAW5hiePfkJpxZxsUj3hUm5SU2IQuJUaBn2HS27NixI/ytNc//ZBONYDZDiIQ2p vYydCq9EiVbn7Jog9Y4/GOTx0a7HxpFWF/79BdByVNXvbekjlV+sSRdqbzAvjfRPyMAC xuTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 b6si31239096pfa.76.2019.07.30.10.44.27; Tue, 30 Jul 2019 10:44:53 -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; 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 S1729613AbfG3NKm (ORCPT + 99 others); Tue, 30 Jul 2019 09:10:42 -0400 Received: from verein.lst.de ([213.95.11.211]:51176 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728761AbfG3NKl (ORCPT ); Tue, 30 Jul 2019 09:10:41 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 98FD768AFE; Tue, 30 Jul 2019 15:10:38 +0200 (CEST) Date: Tue, 30 Jul 2019 15:10:38 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , =?iso-8859-1?B?Suly9G1l?= Glisse , Ben Skeggs , Felix Kuehling , Ralph Campbell , "linux-mm@kvack.org" , "nouveau@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 03/13] nouveau: pass struct nouveau_svmm to nouveau_range_fault Message-ID: <20190730131038.GB4566@lst.de> References: <20190730055203.28467-1-hch@lst.de> <20190730055203.28467-4-hch@lst.de> <20190730123554.GD24038@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730123554.GD24038@mellanox.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 12:35:59PM +0000, Jason Gunthorpe wrote: > On Tue, Jul 30, 2019 at 08:51:53AM +0300, Christoph Hellwig wrote: > > This avoid having to abuse the vma field in struct hmm_range to unlock > > the mmap_sem. > > I think the change inside hmm_range_fault got lost on rebase, it is > now using: > > up_read(&range->hmm->mm->mmap_sem); > > But, yes, lets change it to use svmm->mm and try to keep struct hmm > opaque to drivers It got lost somewhat intentionally as I didn't want the churn, but I forgot to update the changelog. But if you are fine with changing it over I can bring it back.