Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1856579ybi; Sat, 25 May 2019 10:21:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/9Rqb5iAaiBmkUrNa+hSf8SsoaDDqXOjDYuvzGyLgmLTX6Zyzo9LUp9PIqmx4VcKjR2h0 X-Received: by 2002:a17:90a:2ec3:: with SMTP id h3mr17625478pjs.101.1558804881862; Sat, 25 May 2019 10:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558804881; cv=none; d=google.com; s=arc-20160816; b=RKdIJVwcG4ww8h0Y1TxcTymhaYPDNyG56XQmbO6WoCcJn/BF8Zr8t4sI0b9YDKtJ2c S7Mf8x1DoiIXgdQEVVPL/KcRQBKQdZsCr1sBs5v0Y4UmuJdealzciWFA590doVtTIM60 t2O5QQAneqlbiKTSu8epX5u/aHyx6iQF6OF4H9PWGQFftZVjDmQEfBh5rk1PWMGThcqJ AHzCwimIilKb9hqteFng0kOmzXGgXJ9kbuFdvav/SUfFEHv418WD4hBoZE2p8vBhZP+B sLAezqLJsv/ZpOPumJET+kvfUeBHtjLntCKcYCYtSJ3N7PeVd6RJzbkL6v4QOVKkl4Xa t/1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ufxtRtPE1wzOma0MGxFEtdlBpmjdJ4Rguohz8JlOoJU=; b=dEOxpDWyhEBE3P2bTsPKZdKhNMECNFU9AippFmW/rjS+687E1sk08Rays/C38AU84y PokGccyE+GVzxZk92Qhr7e1FFk5EvU2DqB0jAGBg3NG0Tr1JVDDfAMN9J5NH3BZw2DA7 vAnWRXKx9da13elAsRlGQRLe6j24PH6PPT0k44yM5iFR2igjhDEgl3Y0d8G5dff8zSc8 Dv1ST3RWTZw1yrgium2fbUiPG576NLBeh6H6tz5UWOj0eljP9AGGTrJy8SDp0MFO63fv US5bAVrCdU9y9npEtdl/xLE/zOsFlxAb7VV3xGtH3bzowOqiTcFg4mTc7erqrLVRdMmI YqgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c83si9720218pfc.246.2019.05.25.10.21.07; Sat, 25 May 2019 10:21:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbfEYRTd (ORCPT + 99 others); Sat, 25 May 2019 13:19:33 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:51064 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfEYRTd (ORCPT ); Sat, 25 May 2019 13:19:33 -0400 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 3EF86803C0; Sat, 25 May 2019 19:19:30 +0200 (CEST) Date: Sat, 25 May 2019 19:19:28 +0200 From: Sam Ravnborg To: Daniel Vetter Cc: LKML , Intel Graphics Development , DRI Development Subject: Re: [PATCH 00/33] fbcon notifier begone! Message-ID: <20190525171928.GA13526@ravnborg.org> References: <20190524085354.27411-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524085354.27411-1-daniel.vetter@ffwll.ch> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VcLZwmh9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=7gkXJVJtAAAA:8 a=ZE5gt9_PBDywe7APGxUA:9 a=FsULZnL4HXkDZy8N:21 a=dmQ2iDlEpyUWv4jE:21 a=CjuIK1q_8ugA:10 a=E9Po1WZjFZOl8hwRPBS3:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel. Good work, nice cleanup all over. A few comments to a few patches - not something that warrant a new series to be posted as long as it is fixed before the patches are applied. > btw for future plans: I think this is tricky enough (it's old code and all > that) that we should let this soak for 2-3 kernel releases. I think the > following would be nice subsequent cleanup/fixes: > > - push the console lock completely from fbmem.c to fbcon.c. I think we're > mostly there with prep, but needs to pondering of corner cases. I wonder - should this code consistently use __acquire() etc so we could get a little static analysis help for the locking? I have not played with this for several years and I do not know the maturity of this today. > - move fbcon.c from using indices for tracking fb_info (and accessing > registered_fbs without proper locking all the time) to real fb_info > pointers with the right amount of refcounting. Mostly motivated by the > fun I had trying to simplify fbcon_exit(). > > - make sure that fbcon call lock/unlock_fb when it calls fbmem.c > functions, and sprinkle assert_lockdep_held around in fbmem.c. This > needs the console_lock cleanups first. > > But I think that's material for maybe next year or so. Or maybe after next kernel release. Could we put this nice plan into todo.rst or similar so we do not have to hunt it down by asking google? For the whole series you can add my: Reviewed-by: Sam Ravnborg Some parts are reviewed as "this looks entirely correct", other parts I would claim that I actually understood. And after having spend some hours on this a r-b seems in order. Sam