Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8278056rwp; Wed, 19 Jul 2023 07:43:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFht6bl8qHSMORaXwyrF1fVOtKkDmoGhT36+d/p2o52w5TvV1VH2LFSgrEJNJo5LXrlvdS2 X-Received: by 2002:a17:907:7290:b0:994:4e16:d430 with SMTP id dt16-20020a170907729000b009944e16d430mr2877513ejc.20.1689777822764; Wed, 19 Jul 2023 07:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689777822; cv=none; d=google.com; s=arc-20160816; b=HnIDZT1+UskQzXF5Nulf1chgDstuLyOrlU45mtcgEYfZXZdIJOU8io0PWbvaqNIgzr TMTPGP7zOzzCw8gEZvxqsW+BWhABZMJ0kheSBw2vVQhV8qvUNUgrr7Pe41O35yae/qKp c9oZ9yF0remJGoCp22un35RckyaDLvd4qioFhHBBdjx6vPjKraI5PLJscHzGgGoXK5Y7 Jito5B5AJUn9VuRj7Zkq0y+eFJF+XyWHvia65HKlwYEkHBnSY+JcavuWHC/XQAsAdYNp +yIiwMN5/GzRkRGN3EgsKwiCUtQuMpYe2GyAOkjgfIqK5Q4h13wIHIq7+7pwq2egTiDm 48tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=GW017PQkbwcyBZVSjL1eIJ3Tr23afBwEJMZO/sY3MB8=; fh=/vUeYG8BbC4v2aqyVepzpbVVZqjidfEBEuCugcFx/lo=; b=EMRrCNzhkNem08MpWokc+Dr+R0XtzPAUym91TaypRNxpRx2GtAn8xZ9qXuGHjF9POm OeRsvgCm72VJjy4rkqYLphMPnjEMc6q2mhzo17baP716fZb0c/h0w9kWT39JyTWDzdn0 G42FZzLN/r2Wtafb50z1t0aG7cyeaIjmNTjrH3yxJN5IsEbqZ6DUqdrggSdK+GWhjKec xiHDQFIc3GllpLn7YbUibwOo4gvynEJsYBLTw71sRCif9lOKyAe36hOwn8rW79WywvXX gP3uSNurJTJ+rAenY1ZNviMM/lq0u498wrcZX32wepnU05FWKZ6/IE/CD3YF4vAQvlEM 4NuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bk+dk1mB; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc12-20020a170906f90c00b009886c3287e0si3025118ejb.536.2023.07.19.07.43.18; Wed, 19 Jul 2023 07:43:42 -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=@redhat.com header.s=mimecast20190719 header.b=Bk+dk1mB; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjGSOg6 (ORCPT + 99 others); Wed, 19 Jul 2023 10:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbjGSOg2 (ORCPT ); Wed, 19 Jul 2023 10:36:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03AAA1A6 for ; Wed, 19 Jul 2023 07:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689777338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GW017PQkbwcyBZVSjL1eIJ3Tr23afBwEJMZO/sY3MB8=; b=Bk+dk1mBEQJDTKuW9K8t8hp3CB+h01vAXtIZOhfUUaOwjhn9QZJr3CrmMjGOtTHDmM5KZW vSQUlLA10dA9WKF3pWrhH871D3hn+/HeD7aooccGEqHBD5haE3RVpCeBrHeqIAGuJObE5/ sZCUoatdaCiRxEVTfL/SXBzjE87DKv8= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-587-dV8IlZ4YPdWgwiz7PR-OhA-1; Wed, 19 Jul 2023 10:35:37 -0400 X-MC-Unique: dV8IlZ4YPdWgwiz7PR-OhA-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-315998d6e7fso3830511f8f.3 for ; Wed, 19 Jul 2023 07:35:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689777336; x=1690382136; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GW017PQkbwcyBZVSjL1eIJ3Tr23afBwEJMZO/sY3MB8=; b=ApKzyOhvctH+FHDXlOd8c+fQcoJgSNhhm9C9mf5nEv6HIjRDLWTVWhFMim3XVVdjeI BC3q3SyTXHgck+ApLnB+ROEr7tqdapNMPRbd+AYDI1ujcWlf+VAMbIz8Bg+t/Gd4ZOrR Cs0m4vxTL3uOvGVtcvWeRnbVitOHqNorhcipZEO3tljMTsVCBsqZZAaEh86q1Hi1SL46 DhAWiD1N2MXtEafw6g9MZnuxvXImjZWoRd4Y8yUat5DMiCayor1WsdSfLNsAbxR8Ykqo K925jDA4l7JSkOVZWC6gpaSVFgmwH2XxOflD0SpjMLvAdVcJlz/XZgda9vagyZJKLtpZ ZT8Q== X-Gm-Message-State: ABy/qLZ9psfpk56sEO/SyQ31gPMXGGO2armZRJpgBVzgPejyi8M8luNu +x2Se48cdx73/xcQEGC6uOrjPI5qMwbKrsPb37qAywzHpDSHglQb/7WDN1bTKWREnZUCnPURuuc fEFHHfJxsvpmy0BcEAB+Z8b+R X-Received: by 2002:a05:600c:20f:b0:3fb:ab76:164b with SMTP id 15-20020a05600c020f00b003fbab76164bmr2130554wmi.13.1689777335787; Wed, 19 Jul 2023 07:35:35 -0700 (PDT) X-Received: by 2002:a05:600c:20f:b0:3fb:ab76:164b with SMTP id 15-20020a05600c020f00b003fbab76164bmr2130535wmi.13.1689777335451; Wed, 19 Jul 2023 07:35:35 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id u9-20020a7bc049000000b003fba6a0c881sm1798903wmc.43.2023.07.19.07.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 07:35:35 -0700 (PDT) From: Javier Martinez Canillas To: Arnd Bergmann , linux-fbdev@vger.kernel.org, Thomas Zimmermann , Helge Deller Cc: 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 , Huacai Chen , Ingo Molnar , 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, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 9/9] efi: move screen_info into efi init code In-Reply-To: <20230719123944.3438363-10-arnd@kernel.org> References: <20230719123944.3438363-1-arnd@kernel.org> <20230719123944.3438363-10-arnd@kernel.org> Date: Wed, 19 Jul 2023 16:35:34 +0200 Message-ID: <874jm0hsuh.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Arnd Bergmann writes: > From: Arnd Bergmann > > After the vga console no longer relies on global screen_info, there are > only two remaining use cases: > > - on the x86 architecture, it is used for multiple boot methods > (bzImage, EFI, Xen, kexec) to commicate the initial VGA or framebuffer communicate > settings to a number of device drivers. > > - on other architectures, it is only used as part of the EFI stub, > and only for the three sysfb framebuffers (simpledrm, simplefb, efifb). > > Remove the duplicate data structure definitions by moving it into the > efi-init.c file that sets it up initially for the EFI case, leaving x86 > as an exception that retains its own definition for non-EFI boots. > > The added #ifdefs here are optional, I added them to further limit the > reach of screen_info to configurations that have at least one of the > users enabled. > > Signed-off-by: Arnd Bergmann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat