From: Daniel Vetter Subject: Re: [PATCH 04/12] drm: extract legacy ctxbitmap flushing Date: Thu, 24 Jul 2014 12:19:11 +0200 Message-ID: <20140724101911.GQ15237@phenom.ffwll.local> References: <1406129207-1302-1-git-send-email-dh.herrmann@gmail.com> <1406129207-1302-5-git-send-email-dh.herrmann@gmail.com> <20140723192659.GA15237@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 619576E6DD for ; Thu, 24 Jul 2014 03:19:03 -0700 (PDT) Received: by mail-wi0-f181.google.com with SMTP id bs8so3646350wib.14 for ; Thu, 24 Jul 2014 03:19:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: David Herrmann Cc: Daniel Vetter , "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org On Thu, Jul 24, 2014 at 11:34:45AM +0200, David Herrmann wrote: > Hi > > On Wed, Jul 23, 2014 at 9:26 PM, Daniel Vetter wrote: > > On Wed, Jul 23, 2014 at 05:26:39PM +0200, David Herrmann wrote: > >> The ctxbitmap code is only used by legacy drivers so lets try to keep it > >> as separated as possible. Furthermore, the locking is non-obvious and > >> kinda weird with ctxlist_mutex *and* struct_mutex. Keeping all ctxbitmap > >> access in one file is much easier to review and makes drm_release() more > >> readable. > >> > >> Signed-off-by: David Herrmann > > > > I've started to sprinkle _legacy_ over all the functions only used for > > non-kms drivers, so that the dragon dungeons are clearly marked off. With > > that this is Reviewed-by: Daniel Vetter . > > Yeah, that sounds good. But I'd prefer if we keep this patch as-is and > I will send a follow-up which renames all "drm_ctxbitmap_*" functions > to "drm_legacy_ctxbitmap_*". All those are internal to DRM-core so I > can rename them all together and add drivers/gpu/drm/drm-legacy.h. Sounds like a good plan, so r-b on the patch as-is. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch