Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4403674ybh; Tue, 6 Aug 2019 11:04:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyx9V7LaBri5Q+6Xhj/3289pEaTD99/wEjSLoFfxcIY82iY1ucV/pcTpN/rVj2YyWdBgRsA X-Received: by 2002:a17:902:8ec7:: with SMTP id x7mr4330323plo.224.1565114649371; Tue, 06 Aug 2019 11:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565114649; cv=none; d=google.com; s=arc-20160816; b=jxPagyTmKDAPoXboVYpslcbOQAI29ZZxo94UeUhbYa6R28ZDmkQkqg60+UmXmb1pvy 7bKNOoa8r4rT/ncIN+wMoZubfyW4JJiVE65uYnM/DKr+T4Ds1NeHZOp14XtcEZI+koiJ IBgQD66E5lfciZo4ykysyNQCViOU83DmkXbwLfCdPAWdIJtif/MkHTuTM0KoyD0e+Blf r4CIw3fahEaezVkJgvH0MzFEmdWzUM7ZV9gIcdQiEiZR38Cpc9IhXtVfMjHARbsLx9L6 hrK04RNca9OnSIMAP7jNf1c0l2nFsaCNgKqMqvUmZk6vNCSC1F6oZTUkkAwQGjPLJfqp QP6w== 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:dkim-signature; bh=J340zbxKrZwPhKQPn9TeC4csGhsk958SAmRA1+an/JE=; b=Dt3yVXBEeLofumuOxYyUSZKQ52FZmHZG197NRbfy71HrlO4p7kjJOtCX7Uhl7gPwxh 9RKZWgDGQd/MLnIrDZ6kqqu/6OvZtrjTpX/9XEn2ncIaG3FyuPYuzRTTSEdp7/vQvm0h cWKvSxjyW03Fk/O/0TlVIee2o1IKXSeUhDIx3DEM/rlBIUpXYxE8PG91t69kqHUpdBWT 1zPzwRkifkTa4pTuNyEdG1uowRX7CSbwluJX7xGLB0iZQFy3aARaCZQVO5uaBIwgBAvo AZPCERn2dQkmt0h0XPe9iTRBLMMkt/lZsgSGB4sOTTxph1ZP5QZvhBDFuM/3Rn+F7HVQ Y7xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=dmyRhMBZ; 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 n9si47786984pgj.171.2019.08.06.11.03.53; Tue, 06 Aug 2019 11:04: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=@ziepe.ca header.s=google header.b=dmyRhMBZ; 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 S1731696AbfHFSCu (ORCPT + 99 others); Tue, 6 Aug 2019 14:02:50 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:39426 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfHFSCu (ORCPT ); Tue, 6 Aug 2019 14:02:50 -0400 Received: by mail-qk1-f193.google.com with SMTP id w190so63604319qkc.6 for ; Tue, 06 Aug 2019 11:02:49 -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:in-reply-to:user-agent; bh=J340zbxKrZwPhKQPn9TeC4csGhsk958SAmRA1+an/JE=; b=dmyRhMBZI6zY0I2u7wdyHQjMKNx7X6q/44JyGKfb/VDswyFMmZFRkfFHuwa6xb9W77 /60SemHut0sNFpXi8VWhLEujUvdmhIPrdRNkn3/J8WP+d2+9yM+59k7uYRD0oXqoGmkv AdAgySgMZPnuRZQMrufc/1lAUL2PUjg7rsZvJGuL8Mj2mTI3z0O2wFRQECzd2fD6TiTN BOs8Eu8913OI8Gc+ity2XD16jj+X32RK4PRj79qKdpLBOcODvMrV18XBvn3mOzh3Diqj awOnPn2b4LSHKJWlA/RvcCNCNU2eXDwXISITGSPgHG1GksuEOvVSXUJKrqxO2IQiTL/B Xh+g== 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:in-reply-to:user-agent; bh=J340zbxKrZwPhKQPn9TeC4csGhsk958SAmRA1+an/JE=; b=plHZ6/88ESEkGkP9lzp+04SJMtgP4k6atljd3GuvfYCnEgJwS0K17Pt58tuaQ3jenq /SsCOM4yZ47X0FZXdtR/Cmxdiceip0Oa2ZDV4yEC3L6oakGdtM/YBMbqmKoaasISk8gS 3FyYr9n6RuuSu1GLV9OAk+NzqLmq7CG/5k5vAZuwWHbzZFCz64FyV7y6bBHPFllaAlX+ 5EmRQDknjLOCxsDZOxKLC5gCGR6dm1XFjA77LmS8vvxkSRzIeB5Phx+5hPV17RLqz1sw mccZbbqz/ZJ/lG0esPEETpJyJShhGNrq73x5EWgYLNxY4YcRUqEYLlL0+tJXTZOc7eJi zsxA== X-Gm-Message-State: APjAAAWrpGo5kj0jEytum4e+OBIKfiaJxW/Ez+XDAqk5NKfnNL2n6VqY VPS56vDORNJWFHRdubhdCFpxgnFUB4w= X-Received: by 2002:a37:7704:: with SMTP id s4mr4481690qkc.310.1565114569197; Tue, 06 Aug 2019 11:02:49 -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 c18sm6024222qtj.25.2019.08.06.11.02.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Aug 2019 11:02:48 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hv3nM-0000IY-6M; Tue, 06 Aug 2019 15:02:48 -0300 Date: Tue, 6 Aug 2019 15:02:48 -0300 From: Jason Gunthorpe To: Christoph Hellwig Cc: =?utf-8?B?SsOpcsO0bWU=?= 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/15] nouveau: pass struct nouveau_svmm to nouveau_range_fault Message-ID: <20190806180248.GO11627@ziepe.ca> References: <20190806160554.14046-1-hch@lst.de> <20190806160554.14046-4-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190806160554.14046-4-hch@lst.de> 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, Aug 06, 2019 at 07:05:41PM +0300, Christoph Hellwig wrote: > We'll need the nouveau_svmm structure to improve the function soon. > For now this allows using the svmm->mm reference to unlock the > mmap_sem, and thus the same dereference chain that the caller uses > to lock and unlock it. > > Signed-off-by: Christoph Hellwig > --- > drivers/gpu/drm/nouveau/nouveau_svm.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Jason Gunthorpe Jason