Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp31198rdg; Tue, 10 Oct 2023 03:26:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeaX4geMzO7fTVoeiZIQr06G+XupeXO7hJAYFivkiJe2hEt71cyUgJP1kBp1zEEZlUxefs X-Received: by 2002:a05:6a20:3d11:b0:16b:d137:de59 with SMTP id y17-20020a056a203d1100b0016bd137de59mr13089303pzi.28.1696933600383; Tue, 10 Oct 2023 03:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696933600; cv=none; d=google.com; s=arc-20160816; b=b62+LjWlEvNaOnwtpQy1+mwtNsCkHIREB9oBB726az11vR4EvHHZ3wNdms6R/Oed0f zhr3unB1VDT0ebu4IaqkMF7nQ4RCOGEWF2c0hxk/BLHAkVHDE5wkjLBY18bIdWjctYsl odVo9hhy1wiMZpu+cRm6TRVm++GZZVI8Y8J4C93Y92zN3Np+5pS7ymhBDtvMWyMjSafi mCow79qUswMChcS7kFFE91OXrt/ixS6zk6TnLu90JpFq/EaMKGFNGiR+Dm3Vk5Y3rBkX rL3RjUvAutPNpKkq0VHqFFqnjE/wtZxjEGJMg/n91u3RNxBVU9kpLIQo1O/UOkYqiYeb UzUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=uAocH+WjqiArdVnh4Piuo/rDiw5NEIyiAFQlAguYL14=; fh=mcjJGpEzcnugIP0FfqHtYLKyyvi0IVvrmasxUXiiDLg=; b=cOimev+MlC/Vgf0A+SxTjZZrtOG46VW5ztarV9VrrmBXg8b4yhSA+hHnuWF4CkNERc FzBaY0Dng068V7/SUcLpqmJE3W12tpYksYf80qD4/td54lq4/7qfTuqSCAI6bfn9lvzh ILWN2BI9kV7TQt9C5iV/tFecJhtweUc8EoFyyYvTv3KoL8gLkRxioQ7Jc7e4ZoA83z7+ z3xfPKIbTd/OGhsSO0ZxDJ0GndKihMvyKI0pRg/VvKTPpV7vY50OTxxsoHum9yTulloE dRXlla3x14EcjNtukKB2nxXCY9rfHQs/wr9ROzYopJajPu6ueuaie2ppYfWw6NhpLYW9 oMug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y7-20020a636407000000b0058987bcc892si6495441pgb.692.2023.10.10.03.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 03:26:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0B99281DE6AE; Tue, 10 Oct 2023 03:26:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbjJJK0b convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Oct 2023 06:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230511AbjJJK01 (ORCPT ); Tue, 10 Oct 2023 06:26:27 -0400 Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E622BC1; Tue, 10 Oct 2023 03:26:25 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-59f4db9e11eso64637497b3.0; Tue, 10 Oct 2023 03:26:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696933585; x=1697538385; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vbmON3xp7LlIs9AFrDaNfaYi2KFfIcOVngy3VzyA1Hk=; b=Y71D59HOyKqTrz43/4TlpQM92IH+gjAjomNB5WNQgIjBiVB4WFxad7LD4E64qsg1es Emft3alTmvw/bJ4bAW4kvhDOoN1rxuuakJTpLZp0IgmZTeYTXChockrv7UJf5roGeaMT AXhX6VHe+FzR6huPSDLTxNzyNQgGgmMN2kUBW6otG1bqxoNU96iRSPlxGsm7DU5ToD4L pENVbx92yZ9u5r/ZMDdTJAAox/eTZEKk3du1kZJfCIhIb+fSid2NnAjHwyrPOGJNld43 szkCShBOfQTiSa+y4gQhxA24TmzamzT9WnsJnf4HRUmTZwtjJPHH1/tM7/Dj+H4AV6ll UKnQ== X-Gm-Message-State: AOJu0YxchQSsaP8YIBsa2SXsyjd/p9LQJakx8JD8FEpcZI+xptt+N+1T OodIkpdpbHe/y22E9jZBvuIyyhmac2lo5Q== X-Received: by 2002:a0d:d857:0:b0:5a7:ba00:6dd8 with SMTP id a84-20020a0dd857000000b005a7ba006dd8mr2042106ywe.8.1696933584892; Tue, 10 Oct 2023 03:26:24 -0700 (PDT) Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com. [209.85.128.178]) by smtp.gmail.com with ESMTPSA id c65-20020a0df344000000b005925765aa30sm4353903ywf.135.2023.10.10.03.26.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Oct 2023 03:26:24 -0700 (PDT) Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5a7c08b7744so5244777b3.3; Tue, 10 Oct 2023 03:26:24 -0700 (PDT) X-Received: by 2002:a81:8647:0:b0:595:89b0:6b56 with SMTP id w68-20020a818647000000b0059589b06b56mr20014839ywf.28.1696933584327; Tue, 10 Oct 2023 03:26:24 -0700 (PDT) MIME-Version: 1.0 References: <20231009211845.3136536-1-arnd@kernel.org> <20231009211845.3136536-2-arnd@kernel.org> In-Reply-To: <20231009211845.3136536-2-arnd@kernel.org> From: Geert Uytterhoeven Date: Tue, 10 Oct 2023 12:26:07 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/9] vgacon: rework Kconfig dependencies To: Arnd Bergmann Cc: Thomas Zimmermann , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , "David S. Miller" , "K. Y. Srinivasan" , Ard Biesheuvel , Borislav Petkov , Brian Cain , Catalin Marinas , Christophe Leroy , Daniel Vetter , Dave Hansen , David Airlie , Deepak Rawat , Dexuan Cui , Dinh Nguyen , Greg Kroah-Hartman , Guo Ren , Haiyang Zhang , Helge Deller , Huacai Chen , Ingo Molnar , Javier Martinez Canillas , John Paul Adrian Glaubitz , Khalid Aziz , Linus Walleij , Matt Turner , Max Filippov , Michael Ellerman , Nicholas Piggin , Palmer Dabbelt , Russell King , Thomas Bogendoerfer , Thomas Gleixner , WANG Xuerui , Wei Liu , Will Deacon , x86@kernel.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-hyperv@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 03:26:38 -0700 (PDT) X-Spam-Level: ** Hi Arnd, On Mon, Oct 9, 2023 at 11:19 PM 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. > > - mips has a few platforms (malta, sibyte, and sni) that initialize > screen_info, on everything else the console is selected but cannot > actually work. > > - csky, hexgagon, loongarch, nios2, riscv and xtensa are not listed > in the opt-out table and declare a screen_info to allow building > vga_con, but this cannot work because the console is never selected. > > Replace this with an opt-in table that lists only the platforms that > remain. This is effectively x86, plus a couple of historic workstation > and server machines that reused parts of the x86 system architecture. > > Reviewed-by: Javier Martinez Canillas > Reviewed-by: Thomas Zimmermann > Reviewed-by: Khalid Aziz > Acked-by: Helge Deller > Signed-off-by: Arnd Bergmann Thanks for your patch! Reviewed-by: Geert Uytterhoeven A few suggestions for simplification below... > --- a/drivers/video/console/Kconfig > +++ b/drivers/video/console/Kconfig > @@ -7,9 +7,9 @@ menu "Console display driver support" > > config VGA_CONSOLE > bool "VGA text console" if EXPERT || !X86 > - depends on !4xx && !PPC_8xx && !SPARC && !M68K && !PARISC && !SUPERH && \ > - (!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER) && \ > - !ARM64 && !ARC && !MICROBLAZE && !OPENRISC && !S390 && !UML > + depends on ALPHA || IA64 || X86 || \ > + (ARM && ARCH_FOOTBRIDGE) || \ You can drop "ARM &&", as it is implied by ARCH_FOOTBRIDGE. > + (MIPS && (MIPS_MALTA || SIBYTE_BCM112X || SIBYTE_SB1250 || SIBYTE_BCM1x80 || SNI_RM)) Likewise for "MIPS &&". The 3 SIBYTE dependencies can be replaced by SIBYTE_SB1xxx_SOC. > select APERTURE_HELPERS if (DRM || FB || VFIO_PCI_CORE) > default y > help Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds