Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp539934imn; Thu, 28 Jul 2022 08:18:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u94HqPJNDmqPh//yejrx9QWS3RcwswIM+JZ25zthHu0fFzgkPpUgOD2y4CIhK+74JxJC6x X-Received: by 2002:a17:90b:4a91:b0:1f2:a67b:296f with SMTP id lp17-20020a17090b4a9100b001f2a67b296fmr10984366pjb.1.1659021497337; Thu, 28 Jul 2022 08:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659021497; cv=none; d=google.com; s=arc-20160816; b=hOeBt6ta/V1k83wRLkCpqd2md6syFrWAnJvahtWy2NaeN8XHwzc69JGnc/53AURfP2 DHA66VrExe6OEN0uKBarienMa+lWSnwAXT4sIfOrxT38/6dMgF/CoOwOEudrbr9K7zFA H06HhA/5BmkkXwwfJ1PwUpMA2mhtLZpL7utFYX3PThxsTRmpY4w7635VeYUG2RCxu4ZB wXOYjLSyUieX29EH/Ix8lLn6QjN0bm/A3MBmBGIAPdC76vPsTnMiF5lDL3+CR5I9PBxG bq5xcgltOfgLmg4Ys58v+y+k250Dzh8d8QuzjXDX9PHdVMMVQyjR3cl9bi1A11y1I/R5 Z8cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=e8g5yn9Pci/cuWGvkDI/pogpfVCzt1t3DG8UDTKqAZM=; b=kUYVn/pXcj3nVu194SkK20wS7dG70kJgXnKZNIvfh8lZBSmbvaPpuclh081CYfofDp 9MDzyWPc5l3rzDaXkREVhA3s2ps+ZXzGsd6WWw/QgnK78PQNNiNCoh4z+Rj40UJxqYIW vZh65WGI2zqOvNcA/1C8SFre6k0NZYdD+EzTZqCQS+veBHiA+60Ij+Z6UuOx+aUPJ5iA ZF3Z2gBnBZbV7xgtbdDiWToYPnKGzHGBrysj4+9QrejEUO7ej1qDrPjjKqX6i+G4DjOL MKr4z4qWs3i4D4xMmB/WdLIDWCnqp4v49xdVHmL/ApTJAlT1bccNeGXJxacngrzavwao sXoA== ARC-Authentication-Results: i=1; mx.google.com; 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 pq11-20020a17090b3d8b00b001f2ab2f25cesi1253998pjb.157.2022.07.28.08.17.53; Thu, 28 Jul 2022 08:18:17 -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; 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 S231355AbiG1PQy (ORCPT + 99 others); Thu, 28 Jul 2022 11:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbiG1PQw (ORCPT ); Thu, 28 Jul 2022 11:16:52 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569B846D93; Thu, 28 Jul 2022 08:16:50 -0700 (PDT) Received: from mail-ed1-f48.google.com ([209.85.208.48]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1N4R4o-1nHwPf1aDu-011SJ4; Thu, 28 Jul 2022 17:16:49 +0200 Received: by mail-ed1-f48.google.com with SMTP id z15so2575047edc.7; Thu, 28 Jul 2022 08:16:49 -0700 (PDT) X-Gm-Message-State: AJIora89W2UCTWHyw2Opf6RLtXodZIQWv5s1za0N2/J6HrS+owSyITSi Y+Pz9FNkPhqKhnJQMwkYp0K9t9nTVaf+sinGkXs= X-Received: by 2002:a05:6402:1d4c:b0:43b:c85f:5c95 with SMTP id dz12-20020a0564021d4c00b0043bc85f5c95mr28453461edb.213.1659021408962; Thu, 28 Jul 2022 08:16:48 -0700 (PDT) MIME-Version: 1.0 References: <20220728142824.3836-1-markuss.broks@gmail.com> <20220728142824.3836-3-markuss.broks@gmail.com> <8e694cb6-c3dc-74e3-6804-fc532f108523@gmail.com> In-Reply-To: <8e694cb6-c3dc-74e3-6804-fc532f108523@gmail.com> From: Arnd Bergmann Date: Thu, 28 Jul 2022 17:16:32 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem To: Markuss Broks Cc: Arnd Bergmann , Linux Kernel Mailing List , ~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 , Andrew Morton , Kees Cook , Randy Dunlap , Damien Le Moal , Thomas Zimmermann , Javier Martinez Canillas , Michal Suchanek , Andy Shevchenko , Wei Ming Chen , Bartlomiej Zolnierkiewicz , Tony Lindgren , "open list:DOCUMENTATION" , linux-efi , "open list:SERIAL DRIVERS" , Linux Fbdev development list , dri-devel , Rob Herring Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:rCxTKLoMsKF+qy1+w1yA5c+w412i/gDEbQw04N3nxbN3DJdhvUp F2gi5G/PFuuJFwleT8TaffAEaAFb/JXhwkaHNVFb6akoax/3d89aZJ26aE0MHLgwFBI/j5F 7wgq3q7/W71RajaRDc+n/+xAJL6VvIQfawNJUW4TUs1wGdLwpsdPja/20TNIRn1/FL5eP7V WdFX/7d9ESsZDDIKECRGg== X-UI-Out-Filterresults: notjunk:1;V03:K0:BwAYqLL4sg8=:datghrcUFVSGlpEFX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N_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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, Jul 28, 2022 at 4:57 PM Markuss Broks wrote: > On 7/28/22 17:48, Arnd Bergmann wrote: > > On Thu, Jul 28, 2022 at 4:28 PM Markuss Broks wrote: > >> > >> Add early console support for generic linear framebuffer devices. > >> This driver supports probing from cmdline early parameters > >> or from the device-tree using information in simple-framebuffer node. > >> The EFI functionality should be retained in whole. > >> The driver was disabled on ARM because of a bug in early_ioremap > >> implementation on ARM. > >> > >> Signed-off-by: Markuss Broks > >> --- > >> .../admin-guide/kernel-parameters.txt | 12 +- > >> MAINTAINERS | 5 + > >> drivers/firmware/efi/Kconfig | 6 +- > >> drivers/firmware/efi/Makefile | 1 - > >> drivers/firmware/efi/earlycon.c | 246 -------------- > >> drivers/video/fbdev/Kconfig | 11 + > >> drivers/video/fbdev/Makefile | 1 + > >> drivers/video/fbdev/earlycon.c | 301 ++++++++++++++++++ > > > > It looks like this is not actually related to fbdev, and since drivers are > > moving from fbdev/simplefb towards drm/simpledrm, maybe it would be > > better to put this into either drivers/gpu/drm/tiny/ or possibly > > drivers/video/console to let this be used without enabling fbdev? > > Ideally this shouldn't depend on anything, because it isn't utilizing > any of fbdev code and won't be utilizing any of drm/console code. I > agree that either of those would be a better place for it, but which one > do you think would suit more for this driver? I think ideally this would be integrated with simpledrm in the long run, but I have no idea what that means in terms of future code changes. Maybe Thomas Zimmermann has an idea here. Arnd