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=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS 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 32047C38A2A for ; Fri, 8 May 2020 10:45:42 +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 0565620870 for ; Fri, 8 May 2020 10:45:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="JgvO+jlQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0565620870 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch 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 4AFC56EADC; Fri, 8 May 2020 10:45:41 +0000 (UTC) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 240286EADC for ; Fri, 8 May 2020 10:45:40 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id k1so1313687wrx.4 for ; Fri, 08 May 2020 03:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FgTPoKshQV40rLJWMdUeDg1vb+1XePgzClvX1kYBbxs=; b=JgvO+jlQoKA79rJuUcx/5YaZ58YUgNoF5ZiZnL2KNY9R8qyqrDhh/5+CC4Z3S1oHe2 p/avy/u/rCFS+yNo2tblMnO+Xnxs54zj17MyvTYogVnmS2H34lPhtw0d1wmrwe4zOLk9 K3rwKtnHZ6ckRXo7r/VgRJl31TYzn4hjlNsXw= 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=FgTPoKshQV40rLJWMdUeDg1vb+1XePgzClvX1kYBbxs=; b=gTXjtpCJKJf9bMSfO+Ztg8MD6K9Jbi5/7EEtezrYlyQQv08wqxPvBn9ScSH0sJS31T 15MNM8ppLchc8jZSxJjBic6b8gAXHLXWQHzrGzS+XppNFG8tfbPB4GhlXG5nkFkHpsxy PoAlprmk4/Gq5LVwMSRG2EP1yp4qHAsTF4CA0+wYJrfa/taffL+Pv2zNfbd09Tk4ouyr kCkl48pOjnpvPCW+MqsTr1HDeOMUMsSFPgYHcqocFD6F2+/mF/IhPmyQlDx2BziC4fcE V2kqcT/AH1fPpE++t5+VS0BU7DdkPwThr09lj7HDrOp0VBi8bHMsR1dksxlHH8NsQokn xmUg== X-Gm-Message-State: AGi0PubS+i5Ap7JBUid3/ZQkcoguNkeuH4p/MH6fiIFOWPsA3MwsMLK6 BZ63wnolbZczeluHBcDKPE52hA== X-Google-Smtp-Source: APiQypLzxjuaCBiIRw7GTRO2/NWl7lhtzzzltuhRaEf6x18+wIfe8IYHoQL3QbHV/Jnlrm5v7XNv+Q== X-Received: by 2002:adf:fac4:: with SMTP id a4mr2160311wrs.134.1588934738715; Fri, 08 May 2020 03:45:38 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id z11sm2294388wro.48.2020.05.08.03.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 03:45:37 -0700 (PDT) Date: Fri, 8 May 2020 12:45:35 +0200 From: Daniel Vetter To: Emil Velikov Subject: Re: [PATCH 04/36] drm/doc: drop struct_mutex references Message-ID: <20200508104535.GH1383626@phenom.ffwll.local> References: <20200507150822.114464-1-emil.l.velikov@gmail.com> <20200507150822.114464-5-emil.l.velikov@gmail.com> <20200508062749.GC10381@phenom.ffwll.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.4.0-4-amd64 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" On Fri, May 08, 2020 at 11:07:00AM +0100, Emil Velikov wrote: > On Fri, 8 May 2020 at 07:27, Daniel Vetter wrote: > > > > 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 > > > > I think a doc patch to add a big warning for drm_device.struct_mutex would > > also be good. The current text is kinda unhelpful. > > Would something like this be enough? > > diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h > index a55874db9dd4..0988351d743c 100644 > --- a/include/drm/drm_device.h > +++ b/include/drm/drm_device.h > @@ -146,6 +146,9 @@ struct drm_device { > * @struct_mutex: > * > * Lock for others (not &drm_minor.master and &drm_file.is_master) > + * > + * WARNING: > + * Only drivers annotated with DRIVER_LEGACY should be using this. Reviewed-by: Daniel Vetter Assuming you wrap it in some suitable commit and all that. -Daniel > */ > struct mutex struct_mutex; > > -Emil -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel