Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1147314ybl; Fri, 16 Aug 2019 09:38:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwImhGeLJkvdN6yHbono+ivQ6l+9sMvGcQncmNSnCDPOLVGyqRKE6PcIxqhul+JjLMNuAht X-Received: by 2002:a17:90a:858c:: with SMTP id m12mr8158085pjn.129.1565973489197; Fri, 16 Aug 2019 09:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565973489; cv=none; d=google.com; s=arc-20160816; b=t13NOSkBPx/0tlUrw8oddcV9mvNgmQSBA4Ia00NBC4Ml7+kpTYL/swxGf9uHXxW9i/ ZFA3FB7HBtfp+s3JY8vFSqGxlxdAUSCFRkiR2lCc5R+DPkQ7O82bYikrzWNKSbzOUVXZ qXs+sb6QHlC80P1iy8EdGmwjc/ZvtbVzbd57dChXWzgOxXhwYcfF7N55XXSj16QqHCGj YzUYmq2EXdX/x8mpl/6LTrM3cGbGD3AQV24hPKb4aV+Gak9ouD5PyK7LXL06+hoqqNSY VkdC0smlcFI9QtyHTGSCkb3JulUjpN5yFFts68Cn1lVPQLIbl+3AUlesoBoKyWh8LMvI Wwyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3TjiC7tL5tVLJpZgBmmeBYDZnQ+YoBFviaBZJfxvqRo=; b=MUVD+CfrV/t+i29YY50kx60/S1h40dfKSFz0ha0tgX95jqCsH4WARehCkKsbbU2aWp 4+m21LLFCpg4ZLswH3zs9nJWOTR+7rqWxFduCxuZiPVpD867SQ/VM9zo1zV/fahwxQIj 9mIPlFjdKucvLpYhmWH+jXb55JdOK8u8N9N8ThrrprM9FLTUV0CohbDqRg+cCirR2anp gj6i3nISZxq1rRKGoUyB6+0bZrojsk/OjnKsBXuF24DO6mdnBEAIeM3XDr5n56w0NR6d gnBeAwhnUG4g/0cgJlmheKjWOuMeeFWgnEkwJHXHyb0gNRP6mxcfVf87dXoMiPui5WfX BNSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=JfOVHWNQ; 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 98si4350317plb.345.2019.08.16.09.37.53; Fri, 16 Aug 2019 09:38: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=@ffwll.ch header.s=google header.b=JfOVHWNQ; 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 S1726851AbfHPQhF (ORCPT + 99 others); Fri, 16 Aug 2019 12:37:05 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36428 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbfHPQhE (ORCPT ); Fri, 16 Aug 2019 12:37:04 -0400 Received: by mail-ot1-f68.google.com with SMTP id k18so10206457otr.3 for ; Fri, 16 Aug 2019 09:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3TjiC7tL5tVLJpZgBmmeBYDZnQ+YoBFviaBZJfxvqRo=; b=JfOVHWNQNFhlm05DIsQUQILP6M8uBwVqZSzqy1eYSpIOTEaQbCtHbvykAwr22Tl6G1 RNXH1jUaj+1SuMHTPPN2vG+sS56vR/rcdrJk34I37Kr5H+ovEq9dCHTkoSWPVy5ywMLh lz1n0dh2WMbvNoSKqCFONNRk5N6dN3lYNnwsE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3TjiC7tL5tVLJpZgBmmeBYDZnQ+YoBFviaBZJfxvqRo=; b=fMczE/jC8XhA3SO+TItg8kq9eFBsVCoRuaq3Ket07zSiF4Mf7sBosmKCfxgNcsey08 p2GizKlCC8Irkc//IVv6s5HQWcl0Lkv5L1Q6Cpe3dt04pdHcgNgxQP4C/plpXGwNTzX2 jcyNwDlfn78PI4R2PvECMkqY4ro/3S0jL4OjPH591tgoKCJ/aYc8isVT+kMKSiuv4+Yh ttxpT0028Efk6So92IDTuOF20Ph1e6VwMK/t1SG4f0na4NDE/861+SycZja9Db959tnX dPkVX+tUxkpu62YY2tpChAzGjWohdugPO/YbYEfGt8AgE/rX05OdZnUllpA8gUQuYL1H PuyA== X-Gm-Message-State: APjAAAUYTfQjZ2unWjkiPzCR2doq8putCczlF03xFol9mTfIxDdDW9xF 6NvmMzDBy07HqRDW6X59YsufE4lHT0kMFBXieGm4nA== X-Received: by 2002:a9d:1ca3:: with SMTP id l35mr7813768ota.106.1565973423804; Fri, 16 Aug 2019 09:37:03 -0700 (PDT) MIME-Version: 1.0 References: <20190815190525.GS9477@dhcp22.suse.cz> <20190815191810.GR21596@ziepe.ca> <20190815193526.GT9477@dhcp22.suse.cz> <20190815202721.GV21596@ziepe.ca> <20190816010036.GA9915@ziepe.ca> <20190816121243.GB5398@ziepe.ca> <20190816143819.GE5398@ziepe.ca> In-Reply-To: <20190816143819.GE5398@ziepe.ca> From: Daniel Vetter Date: Fri, 16 Aug 2019 18:36:52 +0200 Message-ID: Subject: Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end() To: Jason Gunthorpe 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?SsOpcsO0bWUgR2xpc3Nl?= , Ingo Molnar , Thomas Gleixner , David Rientjes , Wei Wang , Daniel Vetter , Andrew Morton , Andy Shevchenko , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" 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 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. > - #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? From my understanding of pte zapping that makes sense, but I'm definitely not well-versed enough for that. > Can you respin? Will do. > I will propose preloading the map in another patch > - #5 is already applied in -rc Yup, I'll drop that one. Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch