Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1164806ybl; Fri, 16 Aug 2019 09:57:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTvA+/01sRcdNdsYSmahdmRbTkpbPXG2YVUKRFE3QMYt/r3ulAij0KPGj5xMi2OSb8lytx X-Received: by 2002:a05:6a00:8e:: with SMTP id c14mr11384136pfj.241.1565974638407; Fri, 16 Aug 2019 09:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565974638; cv=none; d=google.com; s=arc-20160816; b=eQS0e7fn6p7VtvSlK+UgweSWnbiujWkPl5/wk/BSOEY6wMKd36zhnP6cNCdsMBG9a1 FX2MDyMpc6oyGXSPGG1p5TEzRFLfspRWmogVebvXfJyVZ6JtF2MUI558tKAZ8TrmJbJd MjPU3xaDc8Dl2ckUoCH4DsaUHXMG7fX0zOPVK6+Q6/7A0pTTJ/o6meyrL7gBWlOinXF4 on7v0BP56X0vzoc1iMv4wqkEXg+5+/J1YBhq6kDF/ufnGZNrSPIZKRj5yuOk/rWRG49Y Lc3dmykVP1DEc0kW/98xce8ay3Ugp8/pY8jjFWd0PLumyAc88R1bPi8R6VkbORiUDxoi p8Qw== 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=QVJMIAUNTcfruK5R8LRJMxtWPGPQI7Ry9GEDvODlN1s=; b=RtTDIPFoFu2k50IAtHYNsEAdVTQfq99hFVpC7Kik4iLP3ntnaKcsckIud0HhrpKVey 8K1C1m80KCY68Kvnb1/UeUc5lWRLHYQn4xRnldXtljEOMuTrR9MrAVpGBssxEfyZCCFG DoplACMNM6P9mJjJoGXqrtlc4WGlH3/7hbKV3wJ5h9mYQoyRB+gZ7Pz/XWRl1rBUlPwD 58BfjAGudRM+lDosg/ksnZUxcyVd4Fsgkv5s69uYSVqw5eEYQCwGNqVk0soA++7IaLyf lyrClIFXFVEbBTnp60ROnql1VGFdyKBcZtqyK+SeKwovBM5Z7iwMwwi0qYZ8L2FFTgzH cP/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=LA5Y5Kjp; 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 r23si4704083pfg.124.2019.08.16.09.57.02; Fri, 16 Aug 2019 09:57:18 -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=LA5Y5Kjp; 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 S1727357AbfHPQy6 (ORCPT + 99 others); Fri, 16 Aug 2019 12:54:58 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:40518 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfHPQy5 (ORCPT ); Fri, 16 Aug 2019 12:54:57 -0400 Received: by mail-qt1-f193.google.com with SMTP id e8so6772127qtp.7 for ; Fri, 16 Aug 2019 09:54:57 -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=QVJMIAUNTcfruK5R8LRJMxtWPGPQI7Ry9GEDvODlN1s=; b=LA5Y5Kjpj+D3o1u9JwoTLIjvYl0rV0tZs9iEM17KKWIaqJu/ZgkkQSR4NyhNUDlRqH FjmblR9wtS87K1VeqFzXFQsiypgT9FKdVQKn9t0k6GgL7ZaWTn+75LYisquhf2MDrKP9 D1076HoCBt9rn1J2iGrU4/d2vqtGTBo0qMc6MmFnT/dxxMPTYtbdtXAoMBBIaQPArPnm 8q9QeFOc8zJy4t+M9Tm4RZsZwy0eLpF51wJyDXxF9h5NpFTRTHZHoo2uEP20LmlydZZw wsRccukrRvnx42UcxrjqGJJ70J68Nv5+rYWjBEpWmNdc11451J1vravRwY6UsghcO+fY Ra0w== 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=QVJMIAUNTcfruK5R8LRJMxtWPGPQI7Ry9GEDvODlN1s=; b=DlryCc/1VVd+rRtg/VM2EqdgeIioxOpO0VCmgMXV5hyMUB5x5btk2mCfLbIcUjA9hZ QB9NqojzyOB2F5M2/38jrxUS+rQ3hhzQZgVTgmkGWFZ/f0ztTJ2V5cJYbwGBe857IQM1 sY+4mZ6Kln/eRAlLvf765b7xUdKGCSkA85ZmfYILEnuPlRcqNxs8nt1VxtRtjvv20Dct Gb14/FoKVnZ1LdG9N/LowUb1741BrJAIiTbyJ+yJnlb4n6tgGb8feoM11CqKONt94I+7 IhM0N7/OwgtiZx46+opHCcX/ix/6XRBzah9LhG3iAJk5dgxSOcG1cvMw4dEj7E7Lt5L8 5DKg== X-Gm-Message-State: APjAAAW+mDQFReE6Szt+RGgiQoc7zjsmSdsEFkHgVCbXIjZgoxhduRPq Hj+kem66NRwDgy8vALIzIAYtBQ== X-Received: by 2002:a0c:c93b:: with SMTP id r56mr2557476qvj.139.1565974496715; Fri, 16 Aug 2019 09:54:56 -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 g28sm3802062qte.46.2019.08.16.09.54.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Aug 2019 09:54:56 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hyfV9-0008Ub-Us; Fri, 16 Aug 2019 13:54:55 -0300 Date: Fri, 16 Aug 2019 13:54:55 -0300 From: Jason Gunthorpe To: Daniel Vetter Cc: Michal Hocko , Feng Tang , Randy Dunlap , Kees Cook , Masahiro Yamada , Peter Zijlstra , Intel Graphics Development , Jann Horn , LKML , DRI Development , Linux MM , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Ingo Molnar , Thomas Gleixner , David Rientjes , Wei Wang , Daniel Vetter , Andrew Morton , Andy Shevchenko , Christian =?utf-8?B?S8O2bmln?= Subject: Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end() Message-ID: <20190816165455.GG5398@ziepe.ca> References: <20190815193526.GT9477@dhcp22.suse.cz> <20190815202721.GV21596@ziepe.ca> <20190816010036.GA9915@ziepe.ca> <20190816121243.GB5398@ziepe.ca> <20190816143819.GE5398@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Aug 16, 2019 at 06:36:52PM +0200, Daniel Vetter wrote: > On Fri, Aug 16, 2019 at 4:38 PM Jason Gunthorpe wrote: > > > > On Fri, Aug 16, 2019 at 04:11:34PM +0200, Daniel Vetter wrote: > > > Also, aside from this patch (which is prep for the next) and some > > > simple reordering conflicts they're all independent. So if there's no > > > way to paint this bikeshed here (technicolor perhaps?) then I'd like > > > to get at least the others considered. > > > > Sure, I think for conflict avoidance reasons I'm probably taking > > mmu_notifier stuff via hmm.git, so: > > > > - Andrew had a minor remark on #1, I am ambivalent and would take it > > as-is. Your decision if you want to respin. > > I like mine better, see also the reply from Ralph Campbell. Sure > > - #2/#3 is this issue, I would stand by the preempt_disable/etc path > > Our situation matches yours, debug tests run lockdep/etc. > > Since Michal requested the current flavour I think we need spin a bit > more on these here. I guess I'll just rebase them to the end so > they're not holding up the others. > > > - #4 I like a lot, except the map should enclose range_end too, > > this can be done after the mm_has_notifiers inside the > > __mmu_notifier function > > To make sure I get this right: The same lockdep context, but also > wrapped around invalidate_range_end? Yes, the locking context of _range_start and _range_end should be identical, last time I checked callers this was the case. So, just add it to __mmu_notifier_invalidate_range_end() outside the SRCU as there is no reason to burden debug kernel callers twice when mmu notifiers are not enabled Jason