[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e23a44ba-5e9d-d27b-b5e8-0cce3b158ed7@suse.de>
Date: Sat, 22 May 2021 07:14:25 +0200
From: Thomas Zimmermann <tzimmermann@...e.de>
To: Javier Martinez Canillas <javierm@...hat.com>,
linux-kernel@...r.kernel.org
Cc: Albert Ou <aou@...s.berkeley.edu>, David Airlie <airlied@...ux.ie>,
Catalin Marinas <catalin.marinas@....com>,
Russell King <linux@...linux.org.uk>,
dri-devel@...ts.freedesktop.org,
Hans de Goede <hdegoede@...hat.com>,
linux-efi@...r.kernel.org, Palmer Dabbelt <palmer@...belt.com>,
Peter Robinson <pbrobinson@...il.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
linux-riscv@...ts.infradead.org, Will Deacon <will@...nel.org>,
Ard Biesheuvel <ardb@...nel.org>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 2/2] drivers/firmware: consolidate EFI framebuffer setup
for all arches
Hi
Am 21.05.21 um 21:37 schrieb Javier Martinez Canillas:
> The register_gop_device() function registers an "efi-framebuffer" platform
> device to match against the efifb driver, to have an early framebuffer for
> EFI platforms.
>
> But the Generic System Framebuffers (sysfb) already has support for this.
>
> Instead of having duplicated logic for x86 and other architectures using
> EFI, consolidate the two in sysfb and remove it from the EFI init logic.
>
> Signed-off-by: Javier Martinez Canillas <javierm@...hat.com>
> ---
>
> arch/arm/Kconfig | 1 +
> arch/arm/include/asm/efi.h | 5 +-
> arch/arm64/Kconfig | 1 +
> arch/arm64/include/asm/efi.h | 5 +-
> arch/riscv/Kconfig | 1 +
> arch/riscv/include/asm/efi.h | 5 +-
> drivers/firmware/Kconfig | 7 ++-
> drivers/firmware/Makefile | 2 +-
> drivers/firmware/efi/efi-init.c | 90 -------------------------------
> drivers/firmware/efi/sysfb_efi.c | 77 +++++++++++++++++++++++++-
> drivers/firmware/sysfb.c | 40 +++++++++-----
> drivers/firmware/sysfb_simplefb.c | 29 ++++++----
> include/linux/sysfb.h | 28 +++++-----
> 13 files changed, 145 insertions(+), 146 deletions(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 24804f11302..30ba195ca72 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -127,6 +127,7 @@ config ARM
> select PERF_USE_VMALLOC
> select RTC_LIB
> select SET_FS
> + select SYSFB
Don't select this as part of the architecture. Rather make an option for
SYSFB that depends in the architectures that supports it.
Best regards
Thomas
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
Download attachment "OpenPGP_signature" of type "application/pgp-signature" (841 bytes)
Powered by blists - more mailing lists