Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp367121rwb; Fri, 4 Aug 2023 14:11:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUoIjFbh24z/FLb8+vJA6WD0qWfuMnTOuY7zvh6ywyF76xEJ+pWSv6evuIoZVsjIt1bZnu X-Received: by 2002:a05:6808:151f:b0:3a3:6329:4cb7 with SMTP id u31-20020a056808151f00b003a363294cb7mr4224271oiw.9.1691183503230; Fri, 04 Aug 2023 14:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691183503; cv=none; d=google.com; s=arc-20160816; b=Rc+8NTLRzmZoey+oGC5fhNKj4dSvLWOxwYFNErGer+QlbFa7uHZ8jAJ0t6tOvBpKnc WD4nby39oKP7aO+iYrcUvA4W2G2DMfn2BzJ8dP5NaFbiful6oXkhza+B/Aswcgc5bbny dXzjFcZUwRL7nOOoTiFW6GfZnCjyql5LhlPM60smrf+ab8cmSR9n+Fp8wmw9THr6F0ox 1n1aA7vwBqSpvKOtkuOHoRvdlHZ8fRcnqw4H1JEcnoToYunBIGeHlj8vixj+sfmifE2b KlIPDqPeo0G41YrwK0OPdsXhQWPIRLzA4k9kVNpP0rYTA3q8h4rTXQFJPyIbUVAPZosd A1wQ== 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; bh=MhAFhUVnDLLigbWO1kqZxm6bsHUlXdrD6zrJWtDzIgg=; fh=QNgbIeP9MGC1N+Hi0wJnhCxHDkbjaCYlEpLIHEBUhjc=; b=zoXmZmtmur5THF3az88oH3ZiRgw3xVw03w0Nx/0pyFoyT6FH5JeEJHHe9q0yZ8Nf2M nHsp/ylCJKU9XJ/LdC42W1wCeURJuHNwIbc3VmjyX4oD2nGGms6NENhEuUdyge0cDmfM 421gp7OBGQVGC143fDD4aFK8itrNxcjBYQE+O5iS5p5/NYcgp19O5E7vCnDQtz3+kp78 e+Z2ub6GGOzCl9NKjQjsnJDw/eMSk/ixbpcq+MXvVjBDoLwi4LOgPADmV7Bq9GDnlhL0 8xus3peVq59eqg8uOug2Y0kYZbt+OXD4+A7j/uTtbJeQ7lKy9XHqehshKXJhv5Tmcl+y Yq2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dg2rKdsC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g185-20020a636bc2000000b00547a1922957si2195107pgc.407.2023.08.04.14.11.30; Fri, 04 Aug 2023 14:11:43 -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=@kernel.org header.s=k20201202 header.b=Dg2rKdsC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjHDUzs (ORCPT + 99 others); Fri, 4 Aug 2023 16:55:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjHDUzq (ORCPT ); Fri, 4 Aug 2023 16:55:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEAE54C31; Fri, 4 Aug 2023 13:55:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 70FAD620E3; Fri, 4 Aug 2023 20:55:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11BA5C433C7; Fri, 4 Aug 2023 20:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691182544; bh=wReEdRZmNyzKl8e39OUS/Hxln9/SS8v2NW80Cb+MhRg=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=Dg2rKdsCZa9KopomzzcFwZJZVcIoYS0nwbd9LEhg5UBGsMLJciX8q4AFAGHVCtGrC P1nrcHCj2kqOfjWxuGs+6DImdGWftTInrnVWai2gagMhAs71O5JkmtftaoCtiDyu1z AERYu375lf1Pt0yYUcTHlMU9vRcscSn4K36Q5hKgxKT3iqopzNpmm1VOVPcSc2zVPv Zar+WBAKffJmB11lE1UcbucdfFdn9lwxZXodhjiOj84FicrvS5Cc1VUTfFQ9hMCtjl Q2yhSSSty8uLQxpxve0cM3XXCM2fXVihIfPTgeyh1hbBCk5xrbxB6yajkeC07Fnq3i PGtVzRLJge10A== Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id DA8B427C0054; Fri, 4 Aug 2023 16:55:42 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 04 Aug 2023 16:55:42 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrkeeggdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusehkvghrnhgvlhdrohhrgheqnecuggftrf grthhtvghrnhepvdeviefgtedugeevieelvdfgveeuvdfgteegfeeiieejjeffgeeghedu gedtveehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhguodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduvdekhedujedt vdegqddvkeejtddtvdeigedqrghrnhgupeepkhgvrhhnvghlrdhorhhgsegrrhhnuggsrd guvg X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3121EB60089; Fri, 4 Aug 2023 16:55:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: <3baeb706-dc62-487c-a909-afc3cb3bed26@app.fastmail.com> In-Reply-To: References: <20230707095415.1449376-1-arnd@kernel.org> Date: Fri, 04 Aug 2023 22:55:20 +0200 From: "Arnd Bergmann" To: "Russell King" Cc: "Thomas Zimmermann" , "Javier Martinez Canillas" , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Ard Biesheuvel" , "Helge Deller" , "Greg Kroah-Hartman" , "Arnd Bergmann" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , guoren , linux-riscv@lists.infradead.org, "linux-csky@vger.kernel.org" Subject: Re: [PATCH 1/4] vgacon: rework Kconfig dependencies Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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, Aug 1, 2023, at 19:05, Russell King (Oracle) wrote: > On Fri, Jul 07, 2023 at 11:52:23AM +0200, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> The list of dependencies here is phrased as an opt-out, but this is missing >> a lot of architectures that don't actually support VGA consoles, and some >> of the entries are stale: >> >> - powerpc used to support VGA consoles in the old arch/ppc codebase, but >> the merged arch/powerpc never did >> >> - arm lists footbridge, integrator and netwinder, but netwinder is actually >> part of footbridge, and integrator does not appear to have an actual >> VGA hardware, or list it in its ATAG or DT. > > Integrator/AP has PCI, and I have had PCI VGA cards plugged in to that > hardware when I've had it. I'm pretty sure it can no longer work and broke a while ago, so I would prefer to leave it out unless someone actually has a reason to use it and puts the work in to restore the support. From what I can tell, it's broken in at least three ways with the new PCI host driver: - the PCI memory space is identity mapped to its CPU physical address as of d3721efce22d1 ("ARM: dts: integratorap: Fix PCI windows"), which is generally better for compatibility with broken drivers that read the BAR directly, but it prevents memory mapped ISA-style devices including VGA text buffer. - vga_base is no longer set by the new PCI host driver, so any accesses to the text buffer just end up in user space memory at (__iomem*)0xb8000 - there is no DT binding for setting the global screen_info to whatever the boot firmware has initialized the VGA BIOS to, and the default 80x30 on Arm does not match the typical 80x25 text that would be set by the BIOS. > Provided any platform sets up PCI in a compatible way, and can run the > VGA's BIOS to initialise the card, then vgacon is supportable. It looks like only footbridge does at this point, all the other platforms would need to fix at least some of the three things I mentioned above, in particular plat-orion is the only thing setting vga_base but also has the identity map issue. My impression is that nobody has cared about vgacon on most Arm systems since it's harder to get working than fbcon with a native PCI driver (or the built-in pl110 on integrator) but also less useful. Arnd