Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5371195rwb; Wed, 7 Sep 2022 01:33:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR6dGX+PVXN8WAXdmg9Z9zPJW97/SXTp/IueOcIgs4FYIouD6yoVD/Hb5sH0nO2qXbWgzkEM X-Received: by 2002:a17:907:7ba4:b0:767:23c3:f3ed with SMTP id ne36-20020a1709077ba400b0076723c3f3edmr1528874ejc.569.1662539628658; Wed, 07 Sep 2022 01:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662539628; cv=none; d=google.com; s=arc-20160816; b=Sf/IP8hv+gmAiDwv74zyJ7z/v2YOzLw4kL+6zwfaeUzzgUZxQ4oxWw8dCYsFg7ANG4 UMhQLW7vc2ZdvVXkEnOjqFt1W907l2BJRiS7j278JZ6jr4KvTBjHdZBQjdhfvfMg9RW6 KBCRZkRZlMxUO6gLBE1ZePrOBVnUhyNRy9F9hzwHwTfta2VJn27Tzas6UxMPisfYNo6Z 9oOSiZZtMzcPpBiug/gSPLg4VGnK71zf3TeptLk/8rxvjjg+b3QfNwj3sDjxiWJxqAbe XyM4qHDSIfyCHRdk0S3ZvKi+zrYQ9Ydkfg/cBcaslcgp7WVfaajZezPnQNG3Vd4bHrP3 Gbhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=X79Bowixk2UfvY4aNNNBf2XN1vgN+OVQkvEi3n41B/0=; b=UxQIVSVRj8ybT4KHfKkPAGlfD9JO/Em+VZdfIyHgbNTke5TMHisMTjPLzYLsxA/SMq bIOO1fI3IhOtnrmN5iM4EOUYTB+WpM8fV0/oaR6L+neck53lLl80hIbdgL0LUYlje2So PIV7/0t9CyuDoP1AieadasZeHH79UDLi1/OBQMX51EvNNqGZGPfr1LL5za77Vp//CBFa KLzt6d8ZjI2xkbaNz0PYAeLuHD/Twatt4Vcie1JRZwTCoWKxd6w5SHi7uLr48JxuUw1o 7ko/+Gwfi7SjCQQb9EDfd9skPjhC++TFCuXkWE5uFleE3VOt9duttGrFmiafw3p4m0Io UNoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=FHq3eWsW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=i2fgw7Lm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020aa7da0d000000b0044ede634299si2626301eds.573.2022.09.07.01.33.20; Wed, 07 Sep 2022 01:33:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=FHq3eWsW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=i2fgw7Lm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbiIGIbK (ORCPT + 99 others); Wed, 7 Sep 2022 04:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiIGIbH (ORCPT ); Wed, 7 Sep 2022 04:31:07 -0400 Received: from wnew1-smtp.messagingengine.com (wnew1-smtp.messagingengine.com [64.147.123.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5441B8E4D2; Wed, 7 Sep 2022 01:31:03 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id BE3772B058E5; Wed, 7 Sep 2022 04:22:26 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Wed, 07 Sep 2022 04:22:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1662538946; x=1662542546; bh=X79Bowixk2 UfvY4aNNNBf2XN1vgN+OVQkvEi3n41B/0=; b=FHq3eWsWbj7AeTTcT3sCiG2Gid zoMcoGnX87QaDKCL9Klc4femUTSwemZiQ3qSZVwFlxvWnOSM7bX1ZQzTRZr/ntO/ rUHgfMfaMnw/547ubHfdDxNcdibTQ2teOF/7DV2qlAmttNSlW7d5iyhtiWg/uUDJ lO5qL1F586qegEJupGnmnHsI1IuCp/ImB2pbQwWZ70GdaaWn+oyXtexephhYdXmV SQislyNm+YIIa72TtD5MTVU7il9ysVv6MvEvZIg7XCSWABdf8+1sk/oBKSO3pfZ1 uvi6NqIm6jxqcFGbLN03EAn7fM7h4L7Oi/Ji5N0dSTsTCHL9kkQrct9oFswQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1662538946; x=1662542546; bh=X79Bowixk2UfvY4aNNNBf2XN1vgN +OVQkvEi3n41B/0=; b=i2fgw7Lm2RcMVoE6K+rIusyvnZ4lyDN5dx8+fgyWxbIF +AqTwmsIDN0yb6WUldLlrs74GDun+0ghaNFmnjAZTG/kG/DTX2Ue6Jo6AoIEGfnp m23C0krGK+yRAnjvF9vuguVXjMShUCvrdItalepOHerr8sWvWVCUH+p2pz2BA84o 9CL/mCBfzT64N5Sg+EM/Sn8zu3t4Mmkl8ZGk/QCKdH6GT+U+UaWKS/+FhXt/OrSz UJnDAu8M6YDAc3UEYGHiyeS8WJGorrnO8HOYrXp9DGJehh1+4dezsYWVDALjUEnt h56fIcvzomWG4T8yO1l/aiAYb7MXV5HfHSWhSnNe0w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedttddgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 32FE6B60083; Wed, 7 Sep 2022 04:22:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20220806163255.10404-1-markuss.broks@gmail.com> <20220806163255.10404-4-markuss.broks@gmail.com> Date: Wed, 07 Sep 2022 10:22:03 +0200 From: "Arnd Bergmann" To: "Daniel Vetter" , "Markuss Broks" Cc: linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, "Jonathan Corbet" , "Ard Biesheuvel" , "Greg Kroah-Hartman" , "Jiri Slaby" , "Helge Deller" , "Paul E. McKenney" , "Borislav Petkov" , "Kees Cook" , "Andrew Morton" , "Randy Dunlap" , "Damien Le Moal" , "Thomas Zimmermann" , "Michal Suchanek" , "Javier Martinez Canillas" , "Maarten Lankhorst" , "Wei Ming Chen" , "Bartlomiej Zolnierkiewicz" , "Tony Lindgren" , linux-doc@vger.kernel.org, linux-efi@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 3/3] efi: earlycon: Add support for generic framebuffers and move to console subsystem Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,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 Tue, Sep 6, 2022, at 11:52 PM, Daniel Vetter wrote: > On Sat, Aug 06, 2022 at 07:32:24PM +0300, Markuss Broks wrote: > > Ok I have a more fundamental issue with this than the lack of proper patch > splitting I mentioned in the other thread. > > This is the wrong place. > > drivers/video/console is about the various vt console implementations, > which supply a struct consw to con_register_driver. You are right, that was my mistake. The original patch was for drivers/video/fbdev/, and I suggested moving it out of there because it does not depend on the fbdev subsystem, but clearly my suggestions of drivers/video/console was equally wrong. > This otoh is an (early) kernel/printk console implemented using struct > console. Totally different thing, and really shouldn't end up in > drivers/video/console imo. Somewhere in drivers/firmware might still be > the best place, the sysfb stuff is also there. Maybe > drivers/firmware/sysfb_earlycon.c? drivers/firmware/ is better but doesn't sound great to me either, since one important thing the patch does is to not make it depend on EFI firmware or BIOS style screen_info any more. Maybe drivers/tty/earlycon_simplefb.c would work better, keeping it close to the earlycon base support in drivers/tty/serial/, the vt console and the old simplefb driver/, without tying to too closely to fbdev of UEFI. Arnd