Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9779924ybi; Wed, 24 Jul 2019 09:49:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqygrf/d2M5XtrN1kg0a+63E0qYpwKLkGQEhvMcV2E/HwQUGwr1s2UQQtN8zMBt2p/FHh3D6 X-Received: by 2002:aa7:9ab5:: with SMTP id x21mr12119212pfi.139.1563986955961; Wed, 24 Jul 2019 09:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563986955; cv=none; d=google.com; s=arc-20160816; b=j8XMqycGX01ru8f+lbC7CCITctvnFnx3gQ8BdMqBB/1Zs+GPQJ/U0Xxv+ZITiRZIcP qXBnpJ15JPIDY2PuWnKKkGnMapFKGQHr/Vk2Y6IdeQRXsSe0EksnFhHhphxuclveA5Vu 3L74108KdO92lM8JbZhw02w00bZUvRkX6fTQ+Y5ndZbK8NXxaKFF5v4K36I7k7eg4zQT UrF9Ij6uNRFLZQDnX5KXP3yVFYTb2Ne2lSGtGS/8n/V7NdDr1HmCHY5Zsmg5/qVeZwt2 DeX0VDuhD2c4sWzjFdGFF4GgTxi66Ded08ayGOXshqbgG6zZZXhbSPmw0qKcycy3vljh qHUw== 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=J47c5Xv+H4pUUYAommvtDQM3CfR2VRutFeXq9FWvutY=; b=EqKFnMdtig3xw1GMkR/NjntAw8HYWIEcwAXzFMPFQWZ3wJyxb1iIAayp4GNj5JeYp7 L/QcJgMu6HoYf0XhPPCpidhJ2picpaFX261MkXh7SWOaclU63jM3jdfdj9G7M4rLA+XY aIyF0o2L1UHqFF/nS8N18OoxUOlXD/wkLBe2MjiujbJ4VqQ/TKZJLLysVEHzGiGvu6Jj su9ngeQz5x5ZdYDdRn43AgSiMOv7rSxCLk8Wurw0MCEn1PBOtY4pNXY3lJnNy+MIQtyM srfVzBb25i7Nm/oyctHpGaIzjziouk25Z4//+UFhXv01wTl/62B85M1XU34/Mzv5OQQP +eWw== 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 c76si15194457pfb.208.2019.07.24.09.49.01; Wed, 24 Jul 2019 09:49:15 -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 S2387625AbfGXPdJ (ORCPT + 99 others); Wed, 24 Jul 2019 11:33:09 -0400 Received: from verein.lst.de ([213.95.11.211]:51929 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387619AbfGXPdI (ORCPT ); Wed, 24 Jul 2019 11:33:08 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E22EC68B20; Wed, 24 Jul 2019 17:33:05 +0200 (CEST) Date: Wed, 24 Jul 2019 17:33:05 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , Michal Hocko , Ralph Campbell , linux-mm@kvack.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, =?iso-8859-1?B?Suly9G1l?= Glisse , Ben Skeggs Subject: Re: [PATCH] mm/hmm: replace hmm_update with mmu_notifier_range Message-ID: <20190724153305.GA10681@lst.de> References: <20190723210506.25127-1-rcampbell@nvidia.com> <20190724070553.GA2523@lst.de> <20190724152858.GB28493@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190724152858.GB28493@ziepe.ca> 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 Wed, Jul 24, 2019 at 12:28:58PM -0300, Jason Gunthorpe wrote: > Humm. Actually having looked this some more, I wonder if this is a > problem: What a mess. Question: do we even care for the non-blocking events? The only place where mmu_notifier_invalidate_range_start_nonblock is called is the oom killer, which means the process is about to die and the pagetable will get torn down ASAP. Should we just skip them unconditionally? nouveau already does so, but amdgpu currently tries to handle the non-blocking notifications.