Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp202207pxb; Fri, 17 Sep 2021 23:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzySaBX5jFxSWityByox+sGwha62uWHWVogGLYehriUVgmfbKYBvMZgdKkVHd1MbPvWVgQm X-Received: by 2002:a05:6e02:1aa2:: with SMTP id l2mr8954134ilv.179.1631947983391; Fri, 17 Sep 2021 23:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631947983; cv=none; d=google.com; s=arc-20160816; b=0+jI8KnDw+CMUWbXnrJGf/lgG9FWNSQTulWQmDq7g+fCONG37/K0AAJctqyKpB4qrj AQUzdSoo3ghEVXeqVne5rj2lf+hPEf+5BXwzmbRpa30ACdA9KASYVGuUJ4ie/Y0X/nNz d9+PrxDk2b4y08dn8pUG8tKqTBkaaQxQZVKz82VsZ5wx03e6BfG6Hxkcb1InISxLsFcr +YeFmvfsM0Fwe8Y13zJm6TuaCop9/9W5tfuuVSOICSi6s5nt4lx7mgFiOgMod5n+vO4D nOM0mDTbFth4mXT8QKl0uhKFwetDCkVFSGYyQZ3O/3ljhFvGwvv0QmDPI6kBItt7u/cl EN5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0sCoJcMzph8m7gHdWZKN3dp454V4z1+jmuXCQGYY1eU=; b=WLG8/2eVQj0yXfEEW6IceQeksklOzKtP0RXzVh+12TNzzCMaf2WgvB53uBdKe/+eGy IuimhDbZZMl5AI1sOKsfwGh3uCMjA6dxyvEfwxnnCUQs5jBG1PObAVKw/RprpVNRkv7b VlYzCwXqvfLTgBa7/n7JxFt+Fx+nP8m8UQLNe/UMKyzOfTBJNH5Fxmu5YsNR69F/iYSn Cm8Sz0+roHYQOxRj5nnXwMRguoXYwwVPrkxI8dGCBeoNi9Hf5s0NYjlMxyA3EexlfKDh zzf7k1A9r5YHSKk+b/xFEIyDkm1xJW21oOXHjN/2s4OAyvbNih/TY58mQiQkcYbtwOvq ig3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=UX6GzuE3; 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 q9si10500841ilo.171.2021.09.17.23.52.22; Fri, 17 Sep 2021 23:53:03 -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=@poorly.run header.s=google header.b=UX6GzuE3; 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 S238117AbhIQP6R (ORCPT + 99 others); Fri, 17 Sep 2021 11:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231556AbhIQP6Q (ORCPT ); Fri, 17 Sep 2021 11:58:16 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E709C061574 for ; Fri, 17 Sep 2021 08:56:54 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d11so9157719qtw.3 for ; Fri, 17 Sep 2021 08:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0sCoJcMzph8m7gHdWZKN3dp454V4z1+jmuXCQGYY1eU=; b=UX6GzuE3DTpJzHN/aIeG3aCWzhBV+fCkDtBgEsxVhOm3+8K8AyENBXdIjuOYPRQKxs CTuel8m/m8KvyUEtzzp6eSepsKHiz/6oQvR50EcDMCZsQ3D7ykraTZ1895PCkIJHaqP5 sfVz/lJFm7SXIqu1gLW50masMo1/nUD/Q4NJaqleeYLk/IDnaaWJNf0YBugq8do4COrv tgciBCa4sJznbQ680HUkBOi8azZ7pZjDQk932tTjNeS8fwuKs1XZMUEsUQPyod+7kBIn PX4L5mBmBUGYZaIWPqPbQt+e/XskkfcMsuLlF5APW7WdqHZcqEAGziGAp2Q4K1+CChVa kfMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0sCoJcMzph8m7gHdWZKN3dp454V4z1+jmuXCQGYY1eU=; b=6Jd34uEp2j2xLw14UpNQO0qgfmvpVqz7/RCBbl6y/HI5EznCRBxm/QK5vAuVwKaD52 S9d9sh6ol729gW2ed6HSxsDueTDZngJlpaH06h35O1LC7LG7E3XJXHgBe+CZEv0xU9sf nAddKyD1eLscQA05m7lqnFpfe8D+etMXVBuwqe1SSwsxQKtkZDbu7ktYQJ4SrYeZD9e1 is7AWaXeHtJg9aHQrkyqrQlyzFavK3F3i8a1pdVUoRj0eCoAbGFNGjhfXDtsGXqFzEBm ElDvo0BSfrJJQnd9WxwocRy+VBsfr/SQBm27R5iSp6gf+A32CVHgKgRX3AYVjxECo6LR UcMw== X-Gm-Message-State: AOAM5317npHcp4qRhTFoIrmL0kCQNvRreRPxhMkZ3uef7GGgRhtkc+a9 Z1NbpIiisoC1z0aPCk0i9GNyUd01pXUusg== X-Received: by 2002:ac8:4a90:: with SMTP id l16mr5492592qtq.154.1631894213604; Fri, 17 Sep 2021 08:56:53 -0700 (PDT) Received: from localhost ([167.100.64.199]) by smtp.gmail.com with ESMTPSA id a8sm4075889qtx.39.2021.09.17.08.56.53 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Sep 2021 08:56:53 -0700 (PDT) Date: Fri, 17 Sep 2021 11:56:52 -0400 From: Sean Paul To: Fernando Ramos Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, sean@poorly.run, linux-doc@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 15/15] doc: drm: remove TODO entry regarding DRM_MODSET_LOCK_ALL cleanup Message-ID: <20210917155652.GP2515@art_vandelay> References: <20210916211552.33490-1-greenfoo@u92.eu> <20210916211552.33490-16-greenfoo@u92.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210916211552.33490-16-greenfoo@u92.eu> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 11:15:52PM +0200, Fernando Ramos wrote: > The previous commits do exactly what this entry in the TODO file asks > for, thus we can remove it now as it is no longer applicable. Thanks for doing this work! Can we remove drm_modeset_lock_all[_ctx] now? If so, let's queue that up as part of the set. Reviewed-by: Sean Paul > > Signed-off-by: Fernando Ramos > --- > Documentation/gpu/todo.rst | 17 ----------------- > Documentation/locking/ww-mutex-design.rst | 2 +- > 2 files changed, 1 insertion(+), 18 deletions(-) > > diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst > index 12e61869939e..6613543955e9 100644 > --- a/Documentation/gpu/todo.rst > +++ b/Documentation/gpu/todo.rst > @@ -353,23 +353,6 @@ converted, except for struct drm_driver.gem_prime_mmap. > > Level: Intermediate > > -Use DRM_MODESET_LOCK_ALL_* helpers instead of boilerplate > ---------------------------------------------------------- > - > -For cases where drivers are attempting to grab the modeset locks with a local > -acquire context. Replace the boilerplate code surrounding > -drm_modeset_lock_all_ctx() with DRM_MODESET_LOCK_ALL_BEGIN() and > -DRM_MODESET_LOCK_ALL_END() instead. > - > -This should also be done for all places where drm_modeset_lock_all() is still > -used. > - > -As a reference, take a look at the conversions already completed in drm core. > - > -Contact: Sean Paul, respective driver maintainers > - > -Level: Starter > - > Rename CMA helpers to DMA helpers > --------------------------------- > > diff --git a/Documentation/locking/ww-mutex-design.rst b/Documentation/locking/ww-mutex-design.rst > index 6a4d7319f8f0..6a8f8beb9ec4 100644 > --- a/Documentation/locking/ww-mutex-design.rst > +++ b/Documentation/locking/ww-mutex-design.rst > @@ -60,7 +60,7 @@ Concepts > Compared to normal mutexes two additional concepts/objects show up in the lock > interface for w/w mutexes: > > -Acquire context: To ensure eventual forward progress it is important the a task > +Acquire context: To ensure eventual forward progress it is important that a task > trying to acquire locks doesn't grab a new reservation id, but keeps the one it > acquired when starting the lock acquisition. This ticket is stored in the > acquire context. Furthermore the acquire context keeps track of debugging state > -- > 2.33.0 > -- Sean Paul, Software Engineer, Google / Chromium OS