Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1145882ybg; Thu, 11 Jun 2020 02:06:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz20YvUp5XG+LY30MMKGzw/U+0G0ySIMSVRIkBmH1A2ZYd2+YdQvGy07hRoBewipMzpbXsc X-Received: by 2002:a17:906:fa86:: with SMTP id lt6mr7889922ejb.148.1591866368971; Thu, 11 Jun 2020 02:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591866368; cv=none; d=google.com; s=arc-20160816; b=ITBU+y0/NEqNY5Fsdvq+CP+SVvf2g+KA7UXonH2z4wT6Zb4PiOdvpzbp8k0T9OICN+ Ieh6Nbrh/unbGGzwCfezi8CyXoCenu8GA4PVoMO+Mny4QX+Xp6AD/YZ8ptA+H9kOfACs ZKB3zXEt/W0WusFnqAZvb+KN4LOahOFUVb+6IH1JI+me9j6lu9TDR33i0ZU4+KnftsJk 8q1FThHt/9quouh4bthMDRQiBZJuaFEQEmY6xp/mE2rr2WydyX4xVK3ssFbw9scvijPw 3WetpSxvY4VSO0vtdl39frFDroI9aszrekKFOM0omwdxJD/PIUZErphcpUCZ3z8x9Y7r fbjg== 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=611EZXoXvMC0wgvkSoDqQkuDX4b96jfM5TQTQEW07+g=; b=tnYjjXuGS8F+OqGFg0SgjxJdH4mJS856j7BJOzY3TaZ3lNMq6MwNQkx84ALVjlzyQ9 FLDdycnWDYMdzrDjq4W5Twa8v6xt4r84HxuHcT+Kbr6Dh2fqToup/ifBAVK3uKjSUYC8 7p/oVaErELiFIt2vWEbA/lK+YoSjkz1awMVT/KMC5OBL3aKL2a/LzeYuzJyf9UymapRm aPapdDvKeSouaIWu61K3ldcVTdE6TQlYXwbUvrt1cnzGqd4rVvSflaEGAgcNRdUr6J6M OJG+p1M2RWZjjU9vsrDiu37Pb8JSTRP+Alje34Vy+DawBueni+Z9TGkRnGv4MReiGOtS B57g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fooishbar-org.20150623.gappssmtp.com header.s=20150623 header.b=rBu3ZBBs; 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 dm9si2055212ejc.624.2020.06.11.02.05.46; Thu, 11 Jun 2020 02:06:08 -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=@fooishbar-org.20150623.gappssmtp.com header.s=20150623 header.b=rBu3ZBBs; 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 S1726992AbgFKJDu (ORCPT + 99 others); Thu, 11 Jun 2020 05:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbgFKJDt (ORCPT ); Thu, 11 Jun 2020 05:03:49 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9780CC03E96F for ; Thu, 11 Jun 2020 02:03:48 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id y20so4262381wmi.2 for ; Thu, 11 Jun 2020 02:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=611EZXoXvMC0wgvkSoDqQkuDX4b96jfM5TQTQEW07+g=; b=rBu3ZBBsiU7BegTaLT92EmVcTqTQ1ln4TngPt+QtaRUJwZJvFNvlbvL3HcjTBtXw9H G1BFGLxRjII2qe+n6Wb4wAjp/MIbndhkzRvvFKrM4W8lQT+ibssLtH8TT46cMB5P5uU3 5NUykMXB6wJxIim5uZLsueE9Lb1sMJwsx7fkaWRSDcEwhKWAYhiGyzIwnkpl/z6oq0Or 4x+BtmbF9c7Gs6DTj+RsOX7oSNj6Q0tkv5onPLhaBIsEtG4yxV9T70vq8ePrXAlDNpD8 5sB2zFwst0zY2C9XYIlAcPCJ2JUIt9V9Hjz4+vjSenZxVun25fMG+8FtkYQcjlFwLPq+ dTPg== 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=611EZXoXvMC0wgvkSoDqQkuDX4b96jfM5TQTQEW07+g=; b=soFDCb27HOdr5CZKII2fLQKlDKgb8dzn8XB17Ikt8pNTc6EaBjQoZBlMiSviNYLeRd /O45rvB//etr9JvhVUnL964JRQJWxMokDUKHNyqCZpoOw36bloAnJT4GG4aBZRc0r0ge mBUITB0HsB0hdfnmQHirKz5ASq+QhNJZ49xYB0GE2TaP3F4d8z1Yx4q/mQCmTQN9YSZ9 9YZO8qC5fjhacseTBh3YO34qIrgf6n57h/8gn8K8Jkw7ZZAXDs+7vUZW90r4yEuSS26q 6LElk6z3YVTWY1d0wKjORBbd3PqEST8vtidTT6425XZ2VWBQR+bhPoP2PzrkMHe/8r4t iSxQ== X-Gm-Message-State: AOAM533bJMqcD8qj/u4df84aanM/Esx8RYHvBDwnhMT0VTy4OerCICVu RW9plFmxadJWix0PnVGBujUV5qssv+nmIgoEDARBlw== X-Received: by 2002:a1c:6a01:: with SMTP id f1mr6984797wmc.52.1591866227178; Thu, 11 Jun 2020 02:03:47 -0700 (PDT) MIME-Version: 1.0 References: <20200604081224.863494-1-daniel.vetter@ffwll.ch> <20200604081224.863494-4-daniel.vetter@ffwll.ch> <159186243606.1506.4437341616828968890@build.alporthouse.com> In-Reply-To: From: Daniel Stone Date: Thu, 11 Jun 2020 10:01:46 +0100 Message-ID: Subject: Re: [Intel-gfx] [PATCH 03/18] dma-fence: basic lockdep annotations To: Dave Airlie Cc: Chris Wilson , linux-rdma@vger.kernel.org, Daniel Vetter , Intel Graphics Development , LKML , DRI Development , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Thomas Hellstrom , amd-gfx mailing list , Daniel Vetter , Mika Kuoppala , =?UTF-8?Q?Christian_K=C3=B6nig?= , Linux Media Mailing List 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 Hi, On Thu, 11 Jun 2020 at 09:44, Dave Airlie wrote: > On Thu, 11 Jun 2020 at 18:01, Chris Wilson wrote: > > Introducing a global lockmap that cannot capture the rules correctly, > > Can you document the rules all drivers should be following then, > because from here it looks to get refactored every version of i915, > and it would be nice if we could all aim for the same set of things > roughly. We've already had enough problems with amdgpu vs i915 vs > everyone else with fences, if this stops that in the future then I'd > rather we have that than just some unwritten rules per driver and > untestable. As someone who has sunk a bunch of work into explicit-fencing awareness in my compositor so I can never be blocked, I'd be disappointed if the infrastructure was ultimately pointless because the documented fencing rules were \_o_/ or thereabouts. Lockdep definitely isn't my area of expertise so I can't comment on the patch per se, but having something to ensure we don't hit deadlocks sure seems a lot better than nothing. Cheers, Daniel