Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp578162ybt; Wed, 17 Jun 2020 08:32:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyesbC/0SJ3Ovowz/rsMOkIIm5/ae1STAMEIsrgBZYmUEV5EWYDwkrdsBKi/kLJzsX8vHEH X-Received: by 2002:a17:906:5602:: with SMTP id f2mr7804052ejq.381.1592407947089; Wed, 17 Jun 2020 08:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592407947; cv=none; d=google.com; s=arc-20160816; b=KWLj3EeknifLPFIrz5EUxB7bhaB9b3VKHdkrCOJOHzvKlprqD9ZJ4FZEhTW9z/LtwH NDY9Wi6oqajYGVaZri/GhCMwcsalqiErCMx+GavFxi7I3Ia+cYUaInr8lGR3fupC/amB cIT3K9vtVxpJyPNBSjLYUymMP0UepGrLT1bqDki0/tLgIRUGNmVk216Qr1FmOcFgYd9+ AYJuuxkoT32Y91bgv6TZG+Pb1FI04dnJzw6A9C4756BkJawxU/5p3JuK0+F6qmg7VJwg +PY32NVYWhTqkzLn9aSDQXflVP9XpjONcHncXuA1rCdSalimC9dG3UgjcRKO6lxYqQY3 GOUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=v5BdIMSU0SgDrZuQSRW4xvIrY4rZ7WnbUK5J5TOXFb0=; b=T8Yt8Tc1oG/yx0NsET3Z/qAJGngRzKKuFQ/jOp56fb1D879hldZpq3Nw+oYbSPFr65 DOpoC2dkOPXOsnaEJ5yRwphU1ReotDVdVfDzboZr+EQKaO2YPgJ8xEN1swvNhFsziJPh 3Ht7APvEPoilkbyCXehw42gUgW5/oDyIpwxlnDp5F6CnQ0fjTjQKLxZ0Scnrtv7AmE+0 63tLFWR+PhiMvnHnl+ar32YteBGRaIwUh6G/GR3W2wmmPRlCL7z9P7Jw6e0XT6Ykzg9x o8mAxecoxCmpk+K7B9hZrjpFs7Ak1d2yh+OuCukwhGmKV0UYnLx4m3jmT/+I3M/EnQ6o d4JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=X4atcg3Q; 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 t22si180954edt.28.2020.06.17.08.32.03; Wed, 17 Jun 2020 08:32:27 -0700 (PDT) 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=X4atcg3Q; 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 S1726966AbgFQP3n (ORCPT + 99 others); Wed, 17 Jun 2020 11:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbgFQP3m (ORCPT ); Wed, 17 Jun 2020 11:29:42 -0400 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B444DC06174E for ; Wed, 17 Jun 2020 08:29:42 -0700 (PDT) Received: by mail-qv1-xf42.google.com with SMTP id r16so1207944qvm.6 for ; Wed, 17 Jun 2020 08:29:42 -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; bh=v5BdIMSU0SgDrZuQSRW4xvIrY4rZ7WnbUK5J5TOXFb0=; b=X4atcg3QCitKJdCOr5ja2tE2bUBLSFF91J0CzDtXnsV5WejCzsk2eajJzTjXjsFLTA 5s+gkYE18Kz4f7uWFKMYMARjm17DhKgqFhDle7hMjPDQJSHTF3vHPDJzf/g8gfXm1XCc xS0VLL2kkFYRGpHsv6IKsvfpDgxixqoGb1C7eZAdpsByKmZrD/PLYevp7FEa9NQdLxHk yZFftabPuFhyEj1G7fMasvfilN4m93P/kXM+Vvvx/r/xyhIpvBM0x0Ha3wX71m2O7A/a L0H0SGP2pZKrl4si0m+rtOCOCb+j5CVmE5xryjAmjELn7Uqp0ivvBvKuiMRBNAyyx2kG itRw== 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=v5BdIMSU0SgDrZuQSRW4xvIrY4rZ7WnbUK5J5TOXFb0=; b=O+z6B/QuXJwH+Kajg2U0IZiKT11qC246q3X7wmCrl6s/ufiyN0WX1Pmkbba0PinFuE obwuYCnyIm4hEh4kZLzgRkEqPdYXHLaJgLWo23Mt5ZhmXA+zvG+vE/GMokDq2jmV3RI2 DmjvO4/lB6hYLH+NeoLbMFVv1vN2J9DZouBgtf+Qsma11FgMcaebZiGQPcgcUjfF4sui UvqJc7fZiKQoSfUYVktrPTHkRS4QZy/BcuZRJFFr1oFGq8M+/vwm4Fg7F5/Qwi2IuhQ1 Ce77+QNdsc2K3reBGbmwiVl9y2HYPxujVG9pSCr+GGHkVG5qBUvjY9hqPhnARKB1mBLr ESQQ== X-Gm-Message-State: AOAM533kww+l+vqZroPcww6V/LCQrwZWpU8wKZdcBiqshCALQxxsPOt2 n7XvqdIJE+qpVh7OSmWRIJgM+rvGhO109w== X-Received: by 2002:a0c:f388:: with SMTP id i8mr8163963qvk.224.1592407781973; Wed, 17 Jun 2020 08:29:41 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id y13sm204954qto.23.2020.06.17.08.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 08:29:41 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.93) (envelope-from ) id 1jla0S-009d9h-Uc; Wed, 17 Jun 2020 12:29:40 -0300 Date: Wed, 17 Jun 2020 12:29:40 -0300 From: Jason Gunthorpe To: Daniel Vetter Cc: Thomas =?utf-8?B?SGVsbHN0csO2bSAoSW50ZWwp?= , DRI Development , linux-rdma , Intel Graphics Development , Maarten Lankhorst , LKML , amd-gfx list , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Thomas Hellstrom , Daniel Vetter , "open list:DMA BUFFER SHARING FRAMEWORK" , Christian =?utf-8?B?S8O2bmln?= , Mika Kuoppala Subject: Re: [Linaro-mm-sig] [PATCH 04/18] dma-fence: prime lockdep annotations Message-ID: <20200617152940.GG6578@ziepe.ca> References: <20200604081224.863494-1-daniel.vetter@ffwll.ch> <20200604081224.863494-5-daniel.vetter@ffwll.ch> <20200611083430.GD20149@phenom.ffwll.local> <20200611141515.GW6578@ziepe.ca> <20200616120719.GL20149@phenom.ffwll.local> <20200616145312.GC6578@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 09:57:54AM +0200, Daniel Vetter wrote: > > At the very least I think there should be some big warning that > > dma_fence in notifiers should be avoided. > > Yeah I'm working on documentation, and also the notifiers here > hopefully make it clear it's massive pain. I think we could even make > a hard rule that dma_fence in mmu notifier outside of drivers/gpu is a > bug/misfeature. Yep! > Might be a good idea to add a MAINTAINERS entry with a K: regex > pattern, so that you can catch such modifiers. We do already have such > a pattern for dma-fence, to catch abuse. So if you want I could type > up a documentation patch for this, get your and others acks and the > dri-devel folks would enforce that the dma_fence_wait madness doesn't > leak beyond drivers/gpu It seems like the best thing > Oded has agreed to remove the dma-fence usage, since they really don't > need it (and all the baggage that comes with it), plain old completion > is enough for their use. This use is also why I added the regex to > MAINTAINERS, so that in the future we can catch people who try to use > dma_fence because it looks cute and useful, and are completely > oblivious to all the pain and headaches involved. This is good! Thanks, Jason