Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20887591rwd; Thu, 29 Jun 2023 08:12:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHFco301V5ccEjhk5KyQag5QmBgkJ5FYbMHZExoOBqPIFeiRU//Yne7XVYhQzYXx5SNHHRp X-Received: by 2002:a05:6a00:2292:b0:666:7ec0:22d7 with SMTP id f18-20020a056a00229200b006667ec022d7mr224918pfe.24.1688051552587; Thu, 29 Jun 2023 08:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688051552; cv=none; d=google.com; s=arc-20160816; b=IL0rVD4g+T25TrLwz3y5R6KJMA7Y1QUF4N0nZHbc+WH4D8jem19Smo71YmAEg5T/6o PtDECsWi6ldMFN/sb7Vxe/Vrrq4vpGrYqHYrWlyDlcWNoDPiD+i/R3IKHMmYHx7EKH88 v32g7hmFOzgdt6yU7zplVjBVYwGWQLjwLqnMER/7OZFEblDsk1TQBlPbk00PZg7hLp09 mfCVx6g5Kd3sbKVmKh1JzvzoBXe435k3qcaLtfQwu6VjAsa3vfE8ShHaVQh04YNH4JGx bg46SEUEt7uoJMe6N8kge+nm73BmP7eXr7Fk61O2BNJwNRO9zXEyeKs9XjKW+hG7PICY oVSA== 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=tHSCuJbmuJlT+unyX4wdwm35F06LE8SCy+Og6X/m9DI=; fh=H2kp8YUqSpV3mmz8wxOI3VJv1vvNwxxOYapwYWQB9JI=; b=G4yBLnh62DtHk+Bi9nOtYE6AWTBwjijDd/loKO2kUJBMVC6A+0R05ZA2r6KJCYX2A+ vhN2Ys0x4Y2MIFdm5HU5vkj1J0XSG9i3/pBtIvWqUVPdoLuvLk/Hypkuk6Eivqg4zACd l0Gud/HbnQXj7XDJC59Wu+oedabMcH5ZD7jh1qYkWjYM7HrI2jgkwfe1kvbsnDg14j3a b8Yy65vGygi1UDrkpPkvsfhYHzRZCJSyEwlHst3McUuiTuE9cWQxbJaV4BXAmihauvl7 7bUbG6RlJCFNl5ac58Ltqz7TLGWXBB5AN2wB83RycOHjEWBxVHyxY+HDdGth7OV84+o1 sLyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b="FV9nO/j/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=IEg6bOdq; 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 fd22-20020a056a002e9600b006545ec4799asi10622827pfb.271.2023.06.29.08.12.17; Thu, 29 Jun 2023 08:12:32 -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="FV9nO/j/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=IEg6bOdq; 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 S231546AbjF2OnU (ORCPT + 99 others); Thu, 29 Jun 2023 10:43:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232132AbjF2OnH (ORCPT ); Thu, 29 Jun 2023 10:43:07 -0400 Received: from wnew4-smtp.messagingengine.com (wnew4-smtp.messagingengine.com [64.147.123.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 293EA2D4A; Thu, 29 Jun 2023 07:43:06 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.west.internal (Postfix) with ESMTP id 2C0362B000BB; Thu, 29 Jun 2023 10:43:04 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 29 Jun 2023 10:43:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type: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=1688049783; x=1688056983; bh=tH SCuJbmuJlT+unyX4wdwm35F06LE8SCy+Og6X/m9DI=; b=FV9nO/j/Xdm5cnG6UB sO9u8qjWkG4zOqKUhXnhJ2RYfN1MZ3Kurqn85lEsJl7vkP5a/wdBWaFdfq4uSulg eD/TXf6t4GqPVAoNus5HnjtbA1vX8VrBrjgri2vE0OiP2BSb5Sz/Pa2C0OcILLNa uvFS7KDmA3Z+PSTaIcpOvOnZyAi2yVT1FzCqp7iRvA0LJt1+wRraHFLOR3jih5Cs jATcgblkM7OGPteVBvXmW3paY0tjSC/B5Xw7fxmwX1f73RjswI9pT+zjkQRu+TqM Zsrmd0IqOKzH2xm5FLjlXxLg/SYtjqX8WBuItuEotXdBlqMlSIKnBw9uSc0kSFc4 WB+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=1688049783; x=1688056983; bh=tHSCuJbmuJlT+ unyX4wdwm35F06LE8SCy+Og6X/m9DI=; b=IEg6bOdqZ2fgoUmwXVc8pb/uyJ2CC MOuLn/CZcijB/QkegFpO4zpbp2YYMXm7i7Fu54Datj1E0vkDR3DKgAUxo6z+GWk3 vXwluBuok2nikCjYscmpRjVF9aIs6Z3Xj7fdUsirXf+m9AdUwVoMNKOO0MYZ2R8w hgGHbzL0Ar9zadbigZQorDDjOWkOiah/gEi8RJBLof77Nwpm9iJ+r3Tp7gQ7XU3u cozoUBEjOyE8ENgbEKdyPutCHcAWlVtfgQdZBYVqqbmbh2K14vwZE6PMJ4Kx6p2+ /+OkyxEaQgOqymqPNrwdxRUuj9S7LqeMaozoifwtEIa8O5rZRMCvumLJw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdeggdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeevveeggeffjeeuieduheefhfehgfdujeetjeelueejjeffueeiudefveffhffh ffenucffohhmrghinhepsghoohhtlhhinhdrtghomhenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 44DBDB60086; Thu, 29 Jun 2023 10:43:03 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-499-gf27bbf33e2-fm-20230619.001-gf27bbf33 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230629121952.10559-1-tzimmermann@suse.de> <4d711508-c299-49f2-8691-e75d68f2485e@app.fastmail.com> Date: Thu, 29 Jun 2023 16:42:42 +0200 From: "Arnd Bergmann" To: "Thomas Zimmermann" , "Helge Deller" , "Daniel Vetter" , "Dave Airlie" Cc: Linux-Arch , linux-hyperv@vger.kernel.org, linux-efi@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, "linux-csky@vger.kernel.org" , linux-mips@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, loongarch@lists.linux.dev, linux-alpha@vger.kernel.org, sparclinux@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 00/12] arch,fbdev: Move screen_info into arch/ 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 Thu, Jun 29, 2023, at 16:15, Thomas Zimmermann wrote: > Am 29.06.23 um 15:31 schrieb Arnd Bergmann: >> On Thu, Jun 29, 2023, at 13:45, Thomas Zimmermann wrote: >>> Future directions: with the patchset in place, it will become possible >>> to provide screen_info and edid_info only if there are users. Some >>> architectures do this by testing for CONFIG_VT, CONFIG_DUMMY_CONSOLE, >>> etc. A more uniform approach would be nice. We should also attempt >>> to minimize access to the global screen_info as much as possible. To >>> do so, some drivers, such as efifb and vesafb, would require an update. >>> The firmware's EDID data could possibly made available outside of fbdev. >>> For example, the simpledrm and ofdrm drivers could provide such data >>> to userspace compositors. >> >> I suspect that most architectures that provide a screen_info only >> have this in order to compile the framebuffer drivers, and provide >> hardcoded data that does not even reflect any real hardware. > > That's quite possible. Only x86's bootparam and EFI code sets > screen_info from external data. The rest is hardcoded. A number of > architectures protect screen_info with CONFIG_VT, CONFIG_DUMMY_CONSOLE, > etc. In a later patchset, I wanted to change this such that these users > of screen_info would enable the feature via select in their Kconfig. > > Do you know the reason for this branch in dummycon: > > https://elixir.bootlin.com/linux/v6.4/source/drivers/video/console/dummycon.c#L21 > > What is special about arm that dummycon uses the screeninfo? I can only guess myself, but I see that the values are only ever set from the old ATAGS data, and not from DT on any of the modern ones, and my interpretation is that this is meant to match whatever the vga console was set to on the three platforms that support vgacon. I see this was added in linux-2.1.111, just before the corresponding sparc specific hack was removed, but I don't have patch descriptions from that era. Russell might remember, or know if that is actually still needed. Arnd