Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1693407pxb; Wed, 9 Feb 2022 02:21:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwLN8FB8ruz7/1derk9t1ukzzAxohAOVTzwlkSh0stkcbNAE/arU25jhndH01pYzGzm1e2 X-Received: by 2002:a17:907:62a9:: with SMTP id nd41mr1314396ejc.50.1644402114880; Wed, 09 Feb 2022 02:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644402114; cv=none; d=google.com; s=arc-20160816; b=Pd9P/VcuDFGVp9e/k0GPLVrO5FYsmi93U3Fe50defzp6HnN0GlBGR+l6lq5vjHTEUC 2OKymgbucFFikH4Hg4eIv3JlNXrurqiqOhIN5SAlYcxNvbzfkGfmfVmaMwpiek48S2TF 5W7AzqSsFZPsdjBoPluHS9dWCijN+pL7DniiX3CrSztqKuG3UCwOBWCqhoHHyVj8yK0B fhwQ/0JO3hVuWrmEvKjKwYvjGiPEW9zF2XHWXZEbW18QgaHp/nLDr1pJYH50WiPkmt1v maApmFcta+w4Wbv0dZ/HTGMTl1S+hfq4gVmBdBnq6KAv/aJb3YLT7o0COTlPRBOag5ej EKRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6maJYITlPCb5At2tK8fKqUeOaLx2xzFZeuz9bTxWtaA=; b=oM2ofvNaKfgVl7UnUdeoh+pwXLK72HLLwc3th8WC0E0mx+I9ejRnSLYSYhBsbALTnJ XTBQTwy7euIl6jIci8DjqzVUiPRwJE1GjcMLz+SSxfaPm/apTOi3bIH33x0NFKwAPtK/ hVRCsmJQz15uqw38lnuR/EjJLmp+ahKYGiaNR2/C7JfmOOlm14p4yXJ3A3uHAFYo9hRR RKovP0xolobDDDuLkG7aVNMQQuiIoTd3+A0uMLZyahqNfSCtEAkSC9VaKZBriHQxsEyC xYo24Qlw1waQtOHyYIn5mjSW0kiuugN2QyNesU7WouDTatRw6W8tZVUoIyNBAERFEGoV D1dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=NXKKgezb; 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 w23si6105995edi.27.2022.02.09.02.21.28; Wed, 09 Feb 2022 02:21:54 -0800 (PST) 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=@ffwll.ch header.s=google header.b=NXKKgezb; 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 S237619AbiBHNmb (ORCPT + 99 others); Tue, 8 Feb 2022 08:42:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243023AbiBHNma (ORCPT ); Tue, 8 Feb 2022 08:42:30 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89349C03FED0 for ; Tue, 8 Feb 2022 05:42:29 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id p24so14640674ejo.1 for ; Tue, 08 Feb 2022 05:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=6maJYITlPCb5At2tK8fKqUeOaLx2xzFZeuz9bTxWtaA=; b=NXKKgezbC9q9uaMIRiYHTN4bTXXumjui8I6ooy0xz8c5Emc2s/AqQ2WgPMbFEB1JPi tt2C2CyOwM6xd/DPqgbd6nefn2Px3gvIEKg1+9NggBp29xPz1qIXxCAlvt5pzhWXmxWM zG6YqnU4MScmVN6BImvTWU9YxJONaSzMmUzyU= 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=6maJYITlPCb5At2tK8fKqUeOaLx2xzFZeuz9bTxWtaA=; b=qtYWFjp69CFWXRVKTTs/nX+sBxugll/BYXlttqVC95tLR2sjbiMNRjNveGOE1mojTp tlXXJlEA9m4FmlLsKhmStTQkGyddoV+/LAbbqjH0LWFraG1UWQEPpUnEslXWCIrGQo0r kWzaPq84kb7psmks7sEKoAUWmmgVOVI4nyudMeJumBtbJAEIcOtuRSMdxtXYDd0+9J+c wWU0br99Y5WA1VZlnAW0zgejxS0p6qLkVD7qOhblCIQ27PYXyXSHJ4vA79/xA32ozUuV ylB2LTP3QA+sfoGc3ys9Pdyi9/gd1O5bs4w3iVyaUpVd2SJPhn7FJUOqTxjzJwn5GEKS wgWw== X-Gm-Message-State: AOAM533WHIXfMo8On2oDJwGIGraBuqwCkaAHlnDcMWMffF6WdhImex9O YZfTt1rEagN0mCsOGscp6BO3r2ldEYW/yg== X-Received: by 2002:a17:907:760a:: with SMTP id jx10mr3810310ejc.713.1644327748049; Tue, 08 Feb 2022 05:42:28 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id i6sm4831019eja.132.2022.02.08.05.42.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 05:42:27 -0800 (PST) Date: Tue, 8 Feb 2022 14:42:25 +0100 From: Daniel Vetter To: Sam Ravnborg Cc: Daniel Vetter , DRI Development , linux-fbdev@vger.kernel.org, Du Cheng , Tetsuo Handa , Intel Graphics Development , LKML , Claudio Suarez , Greg Kroah-Hartman , Daniel Vetter , Helge Deller Subject: Re: [PATCH 06/21] fbcon: delete delayed loading code Message-ID: Mail-Followup-To: Sam Ravnborg , DRI Development , linux-fbdev@vger.kernel.org, Du Cheng , Tetsuo Handa , Intel Graphics Development , LKML , Claudio Suarez , Greg Kroah-Hartman , Daniel Vetter , Helge Deller References: <20220131210552.482606-1-daniel.vetter@ffwll.ch> <20220131210552.482606-7-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.10.0-8-amd64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 03, 2022 at 09:45:29PM +0100, Sam Ravnborg wrote: > Hi Daniel, > > On Mon, Jan 31, 2022 at 10:05:37PM +0100, Daniel Vetter wrote: > > Before > > > > commit 6104c37094e729f3d4ce65797002112735d49cd1 > > Author: Daniel Vetter > > Date: Tue Aug 1 17:32:07 2017 +0200 > > > > fbcon: Make fbcon a built-time depency for fbdev > > > > it was possible to load fbcon and fbdev drivers in any order, which > > means that fbcon init had to handle the case where fbdev drivers where > > already registered. > > > > This is no longer possible, hence delete that code. > > > > Note that the exit case is a bit more complex and will be done in a > > separate patch. > > > > Signed-off-by: Daniel Vetter > > Cc: Helge Deller > > Cc: Daniel Vetter > > Cc: Claudio Suarez > > Cc: Greg Kroah-Hartman > > Cc: Tetsuo Handa > > Cc: Du Cheng > > --- > > drivers/video/fbdev/core/fbcon.c | 13 +------------ > > 1 file changed, 1 insertion(+), 12 deletions(-) > > > > diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c > > index 8f971de35885..814b648e8f09 100644 > > --- a/drivers/video/fbdev/core/fbcon.c > > +++ b/drivers/video/fbdev/core/fbcon.c > > @@ -942,7 +942,7 @@ static const char *fbcon_startup(void) > > return display_desc; > > /* > > * Instead of blindly using registered_fb[0], we use info_idx, set by > > - * fb_console_init(); > > + * fbcon_fb_registered(); > > */ > This comment change looks like it does not belong in this patch. > Also, the comment is wrong as info_idx is set in several places. > Like set_con2fb_map(), fbcon_remap_all(), and more. Yeah I can split this out into a separate patch, but I spotted this wrong comment as part of reviewing this code change here - essentially you have to check how fb_info for fbcon are registered and fbcon init happens to validate that deleting the below code is correct. Ok if I put this explainer into the commit message, or do you want me to split this out fully? -Daniel > > Though it is not set by fb_console_init - so partly OK. > > With the comment adjustment dropped. > Acked-by: Sam Ravnborg > > at least the code deletion looked OK, I failed to follow all the logic. > So would be good if someone else could ack it too. > > Sam > > > > > info = registered_fb[info_idx]; > > if (!info) > > @@ -3316,17 +3316,6 @@ static void fbcon_start(void) > > return; > > } > > #endif > > - > > - if (num_registered_fb) { > > - int i; > > - > > - for_each_registered_fb(i) { > > - info_idx = i; > > - break; > > - } > > - > > - do_fbcon_takeover(0); > > - } > > } > > > > static void fbcon_exit(void) > > -- > > 2.33.0 -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch