Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAFA0C38A2A for ; Fri, 8 May 2020 11:08:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF10E208CA for ; Fri, 8 May 2020 11:08:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF10E208CA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1DB166EAF0; Fri, 8 May 2020 11:08:22 +0000 (UTC) Received: from asavdk4.altibox.net (asavdk4.altibox.net [109.247.116.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id E1BBE6EAF0 for ; Fri, 8 May 2020 11:08:20 +0000 (UTC) Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 2702080500; Fri, 8 May 2020 13:08:19 +0200 (CEST) Date: Fri, 8 May 2020 13:08:17 +0200 From: Sam Ravnborg To: Emil Velikov Subject: Re: [PATCH 04/36] drm/doc: drop struct_mutex references Message-ID: <20200508110817.GB15931@ravnborg.org> References: <20200507150822.114464-1-emil.l.velikov@gmail.com> <20200507150822.114464-5-emil.l.velikov@gmail.com> <20200507180141.GB13247@ravnborg.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=MOBOZvRl c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=7gkXJVJtAAAA:8 a=QX4gbG5DAAAA:8 a=3ipgeT0s-hC5gTi6q10A:9 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ML dri-devel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Emil. On Fri, May 08, 2020 at 11:01:25AM +0100, Emil Velikov wrote: > Hi Sam, > > On Thu, 7 May 2020 at 19:01, Sam Ravnborg wrote: > > > > Hi Emil. > > > > On Thu, May 07, 2020 at 04:07:50PM +0100, Emil Velikov wrote: > > > From: Emil Velikov > > > > > > There's little point in providing partial and ancient information about > > > the struct_mutex. Some drivers are using it, new ones should not. > > > > > > As-it this only provides for confusion. > > > > > > Signed-off-by: Emil Velikov > > > --- > > > Documentation/gpu/drm-mm.rst | 7 ++----- > > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > > > diff --git a/Documentation/gpu/drm-mm.rst b/Documentation/gpu/drm-mm.rst > > > index 1839762044be..5ba2ead8f317 100644 > > > --- a/Documentation/gpu/drm-mm.rst > > > +++ b/Documentation/gpu/drm-mm.rst > > > @@ -178,11 +178,8 @@ GEM Objects Lifetime > > > -------------------- > > > > > > All GEM objects are reference-counted by the GEM core. References can be > > > -acquired and release by calling drm_gem_object_get() and drm_gem_object_put() > > > -respectively. The caller must hold the :c:type:`struct drm_device ` > > > -struct_mutex lock when calling drm_gem_object_get(). As a convenience, GEM > > > -provides drm_gem_object_put_unlocked() functions that can be called without > > > -holding the lock. > > > +acquired and release by calling drm_gem_object_get() and drm_gem_object_put_unlocked() > > > +respectively. > > > > Nice to get rid of struct_mutex lock stuff. > > But no need to s/drm_gem_object_put/drm_gem_object_put_unlocked()/ as this will > > be renamed a bit later. > > > This patch fixes the documentation, for people looking it today. > > While I would love to see the s/_unlocked//g part of the series land, > it is rather invasive albeit mechanical. > So driver maintainers are in their right to request that we push it at > a later point. Well, unless there is push-back within a week from one of the maintainers then we should apply the full series at drm-misc-next. Maybe wiht a gently ping in mid next week. No reason to wait for individual maintaintes to pick it up driver-by-driver. This would make such nice refactoring as this far to hard to do especially due to the dependencies to the first patches. But I see your rationale for keeping it like it is. So you can stick an Acked-by: Sam Ravnborg on the rest of the patches. Sam _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel