Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1512115pxb; Wed, 10 Feb 2021 09:59:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiMaiPhFbD2nCAYPlPFrs0CdyVERxptyQTh3aNH5FFn792bqxwzX9CEvuIf/1C1YPikYrR X-Received: by 2002:aa7:d3d9:: with SMTP id o25mr4426844edr.356.1612979967311; Wed, 10 Feb 2021 09:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612979967; cv=none; d=google.com; s=arc-20160816; b=oqLgSaa0LbSqnLanaZsym5p+owYhYfMxwmGGunMNH3sRVgnU0jbXqeQYdbylQ8PgNf 3w4XsNQi+i/fsm3MYzMti2VnkDZFM/P04qpI8DQZWWlJUUv7iCe05J89Z3PQkIT1JfzQ G4PZbGwWnaw9MCCAv5FBA0UtARX0hq7ogoiYq4AwDxOoT578BYfFw9DqOERiljDvdY61 XuoRIKyUGUOE2Qpzqg4z0q91i19UtvCQBPPn1E4Nw4PMWnP/hO6VPVVv4Eq4yfavSvHT N2HpqVF9UAStT9Roa0jpFxZBmUhQHnhTR8eaLqw+uXOkggADukGY9qy3Wrxxwp3KO3lz 8hiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RUQ3IiEy3EeRQSWZTl5rkIVfBMl0Yr+7rUwczbTqPUI=; b=BdlViONHNUptYes6K49WHeSiGV7cO63/rk5Q06Ccvx2aBXTQ+/RmZtu+X5ZvFtne1w KwHZdzEG19f784dmZv6str/UxrRx95oZ8DkkvbOyMZuX2qXNTVBSsNSZuUMqCOtpPa/Q ujvTpCl2QW5sSuP2sDuV8Y/nUIzfZDCGdLgLXwKZo9SOznko52i38ssBPyROnYanK8QJ vQdcQ6n3QEQMADg9gNlvneLwMcAXg6LtXbgyAGCTkl/MMhDrIsFoyMlIkumYd91Xp35S nD8ure0oQH/1T6Tr9PyQUgAm1w42YtUi6OD9iPhYpLCqekPVdvrDb0dXMn+rVBwvnb5J 4BKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=a+PshXZQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si1890827edg.104.2021.02.10.09.59.03; Wed, 10 Feb 2021 09:59:27 -0800 (PST) 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=@ziepe.ca header.s=google header.b=a+PshXZQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232635AbhBJR5Y (ORCPT + 99 others); Wed, 10 Feb 2021 12:57:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbhBJR5J (ORCPT ); Wed, 10 Feb 2021 12:57:09 -0500 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 593C0C06174A for ; Wed, 10 Feb 2021 09:56:29 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id d3so2140097qtr.10 for ; Wed, 10 Feb 2021 09:56:29 -0800 (PST) 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; bh=RUQ3IiEy3EeRQSWZTl5rkIVfBMl0Yr+7rUwczbTqPUI=; b=a+PshXZQLSQ7/K/9jegFaNYC0vZtmSYFRP1bDA8dbf8/musoPpHsw5fl3p1ROGJKfd BIwN8dEMPEjoYVb1yDkSYhphTXpCL9gSnrGEzHWvQCXWv29Ejjq92mz5G3Dg0KmE0XCX FeeRFLPtrUqSk8F0amJkbyHTGLQm8PvYyk+6v0OxaHba2MdI5fI0N/d0XsEh6GVU5emG /0vg6Fo5+WSy7jh21z0QKnlqdDB/yryAPmpCWW8UUSaCKsVbVpQw7LWKFor1C0y7OngB hQc5Rc67W3FeJVpxVwzluKmOqtnpGTOUR0RUS2WW2uLURW1Ug+7jhSO51GMEDjEjkQEH Fj+Q== 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; bh=RUQ3IiEy3EeRQSWZTl5rkIVfBMl0Yr+7rUwczbTqPUI=; b=tvaLOjB4z0879RUYTYnXjKDcfrwcVmDSwXlLGgeoMtthoDd314mLhB0UxTnr0cKzyR N73aPn9zHV+gQMcjk0bm7clt1gXbATX6kt5qBiuhFF0G/r9KDGG44QjFeza+07lNh7o0 gvN1Pz+dUiyw75rvDo2yyBSEeDwZFbg1O+/l00g/Ep2k32h2lNUAHz8O+GEKHTyu3XwD n+ZhMfepgmWdcAKgxGf47EQX+/1JI6wb18ef2FFcEzlKbHEDM01pIyYxNxom8gzNVyKD 32OLWw+Pbl2eXjhQDGwdicz+NwGFY/E/f/Lmuj+8vpiLqC/ZUvNQi8cTKUmQRRaEmmq3 xxPw== X-Gm-Message-State: AOAM531VcCzgngmMwfwZNTk7OERj6/n7+9Zi3F7Jvfn24lFFD2xDTpbj CbPf8RVpynJxSIhol8QvZjF4tA== X-Received: by 2002:ac8:d03:: with SMTP id q3mr3814296qti.19.1612979788592; Wed, 10 Feb 2021 09:56:28 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id a25sm1697115qtw.87.2021.02.10.09.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 09:56:27 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1l9tj0-00686U-SC; Wed, 10 Feb 2021 13:56:26 -0400 Date: Wed, 10 Feb 2021 13:56:26 -0400 From: Jason Gunthorpe To: Jerome Glisse Cc: Alistair Popple , Daniel Vetter , Linux MM , Nouveau Dev , Ben Skeggs , Andrew Morton , Linux Doc Mailing List , Linux Kernel Mailing List , kvm-ppc@vger.kernel.org, dri-devel , John Hubbard , Ralph Campbell Subject: Re: [PATCH 0/9] Add support for SVM atomics in Nouveau Message-ID: <20210210175626.GN4718@ziepe.ca> References: <20210209010722.13839-1-apopple@nvidia.com> <3426910.QXTomnrpqD@nvdebian> <20210209133520.GB4718@ziepe.ca> <20210209211738.GA834106@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210209211738.GA834106@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 04:17:38PM -0500, Jerome Glisse wrote: > > > Yes, I would like to avoid the long term pin constraints as well if possible I > > > just haven't found a solution yet. Are you suggesting it might be possible to > > > add a callback in the page migration logic to specially deal with moving these > > > pages? > > > > How would migration even find the page? > > Migration can scan memory from physical address (isolate_migratepages_range()) > So the CPU mapping is not the only path to get to a page. I mean find out that the page is now owned by the GPU driver to tell it that it needs to migrate that reference. Normally that would go through the VMA to the mmu notifier, but with the page removed from the normal VMA it can't get to a mmu notifier or the GPU driver. Jason