linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] allow simple{fb, drm} drivers to be used on non-x86 EFI platforms
@ 2021-06-01 14:59 Javier Martinez Canillas
  2021-06-03 20:27 ` [PATCH v2 0/2] allow simple{fb,drm} " Borislav Petkov
  0 siblings, 1 reply; 3+ messages in thread
From: Javier Martinez Canillas @ 2021-06-01 14:59 UTC (permalink / raw)
  To: linux-kernel
  Cc: Hans de Goede, Peter Robinson, dri-devel, Daniel Vetter,
	Thomas Zimmermann, David Airlie, Javier Martinez Canillas,
	Albert Ou, Andy Shevchenko, Ard Biesheuvel, Arvind Sankar,
	Bjorn Andersson, Borislav Petkov, Brijesh Singh, Catalin Marinas,
	Chester Lin, Dinh Nguyen, Greg Kroah-Hartman, H. Peter Anvin,
	Ingo Molnar, Joerg Roedel, John Stultz, Josh Poimboeuf,
	Juergen Gross, Kalle Valo, Krzysztof Kozlowski, Linus Walleij,
	Nicolas Saenz Julienne, Palmer Dabbelt, Paul Walmsley,
	Peter Zijlstra (Intel),
	Russell King, Sudeep Holla, Thomas Gleixner, Will Deacon,
	linux-arm-kernel, linux-efi, linux-riscv, x86

The simplefb and simpledrm drivers match against a "simple-framebuffer"
device, but for aarch64 this is only registered when using Device Trees
and there's a node with a "simple-framebuffer" compatible string.

There is no code to register a "simple-framebuffer" platform device when
using EFI instead. In fact, the only platform device that's registered in
this case is an "efi-framebuffer", which means that the efifb driver is
the only driver supported to have an early console with EFI on aarch64.

The x86 architecture platform has a Generic System Framebuffers (sysfb)
support, that register a system frambuffer platform device. It either
registers a "simple-framebuffer" for the simple{fb,drm} drivers or legacy
VGA/EFI FB devices for the vgafb/efifb drivers.

The sysfb is generic enough to be reused by other architectures and can be
moved out of the arch/x86 directory to drivers/firmware, allowing the EFI
logic used by non-x86 architectures to be folded into sysfb as well.

Patch #1 in this series do the former while patch #2 do the latter. It has
been tested on x86_64 and aarch64 machines using the efifb, simplefb and
simpledrm drivers. But more testing will be highly appreciated, to make
sure that no regressions are being introduced by these changes.

The series touches different subystems and will need coordination between
maintainers. Ard Biesheuvel said that can be merged through the EFI tree.

Best regards,
Javier

Changes in v2:
- Use default y and depends on X86 instead doing a select in arch/x86/Kconfig.
- Also enable the SYSFB Kconfig option when COMPILE_TEST.
- Improve commit message to explain why is useful for other arches to use this.
- Use "depends on" for the supported architectures instead of selecting it.
- Improve commit message to explain the benefits of reusing sysfb for !X86.

Javier Martinez Canillas (2):
  drivers/firmware: move x86 Generic System Framebuffers support
  drivers/firmware: consolidate EFI framebuffer setup for all arches

 arch/arm/include/asm/efi.h                    |  5 +-
 arch/arm64/include/asm/efi.h                  |  5 +-
 arch/riscv/include/asm/efi.h                  |  5 +-
 arch/x86/Kconfig                              | 26 ------
 arch/x86/kernel/Makefile                      |  3 -
 drivers/firmware/Kconfig                      | 32 +++++++
 drivers/firmware/Makefile                     |  2 +
 drivers/firmware/efi/Makefile                 |  2 +
 drivers/firmware/efi/efi-init.c               | 90 -------------------
 .../firmware/efi}/sysfb_efi.c                 | 79 +++++++++++++++-
 {arch/x86/kernel => drivers/firmware}/sysfb.c | 42 +++++----
 .../firmware}/sysfb_simplefb.c                | 31 ++++---
 .../x86/include/asm => include/linux}/sysfb.h | 34 +++----
 13 files changed, 180 insertions(+), 176 deletions(-)
 rename {arch/x86/kernel => drivers/firmware/efi}/sysfb_efi.c (84%)
 rename {arch/x86/kernel => drivers/firmware}/sysfb.c (70%)
 rename {arch/x86/kernel => drivers/firmware}/sysfb_simplefb.c (82%)
 rename {arch/x86/include/asm => include/linux}/sysfb.h (68%)

-- 
2.31.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 0/2] allow simple{fb,drm} drivers to be used on non-x86 EFI platforms
  2021-06-01 14:59 [PATCH v2 0/2] allow simple{fb, drm} drivers to be used on non-x86 EFI platforms Javier Martinez Canillas
@ 2021-06-03 20:27 ` Borislav Petkov
  2021-06-04  9:41   ` [PATCH v2 0/2] allow simple{fb, drm} " Javier Martinez Canillas
  0 siblings, 1 reply; 3+ messages in thread
From: Borislav Petkov @ 2021-06-03 20:27 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: linux-kernel, Hans de Goede, Peter Robinson, dri-devel,
	Daniel Vetter, Thomas Zimmermann, David Airlie, Albert Ou,
	Andy Shevchenko, Ard Biesheuvel, Arvind Sankar, Bjorn Andersson,
	Brijesh Singh, Catalin Marinas, Chester Lin, Dinh Nguyen,
	Greg Kroah-Hartman, H. Peter Anvin, Ingo Molnar, Joerg Roedel,
	John Stultz, Josh Poimboeuf, Juergen Gross, Kalle Valo,
	Krzysztof Kozlowski, Linus Walleij, Nicolas Saenz Julienne,
	Palmer Dabbelt, Paul Walmsley, Peter Zijlstra (Intel),
	Russell King, Sudeep Holla, Thomas Gleixner, Will Deacon,
	linux-arm-kernel, linux-efi, linux-riscv, x86

On Tue, Jun 01, 2021 at 04:59:10PM +0200, Javier Martinez Canillas wrote:
> The series touches different subystems and will need coordination between
> maintainers. Ard Biesheuvel said that can be merged through the EFI tree.

I'm always happy when code from arch/x86/ moves away so

Acked-by: Borislav Petkov <bp@suse.de>

Btw, for the future, please CC everyone on the whole patchset - I had to
go look at your 2/2 on lore to see what it does because I had only 1/2
in my mbox.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 0/2] allow simple{fb, drm} drivers to be used on non-x86 EFI platforms
  2021-06-03 20:27 ` [PATCH v2 0/2] allow simple{fb,drm} " Borislav Petkov
@ 2021-06-04  9:41   ` Javier Martinez Canillas
  0 siblings, 0 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2021-06-04  9:41 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: linux-kernel, Hans de Goede, Peter Robinson, dri-devel,
	Daniel Vetter, Thomas Zimmermann, David Airlie, Albert Ou,
	Andy Shevchenko, Ard Biesheuvel, Arvind Sankar, Bjorn Andersson,
	Brijesh Singh, Catalin Marinas, Chester Lin, Dinh Nguyen,
	Greg Kroah-Hartman, H. Peter Anvin, Ingo Molnar, Joerg Roedel,
	John Stultz, Josh Poimboeuf, Juergen Gross, Kalle Valo,
	Krzysztof Kozlowski, Linus Walleij, Nicolas Saenz Julienne,
	Palmer Dabbelt, Paul Walmsley, Peter Zijlstra (Intel),
	Russell King, Sudeep Holla, Thomas Gleixner, Will Deacon,
	linux-arm-kernel, linux-efi, linux-riscv, x86

Hello Borislav,

On 6/3/21 10:27 PM, Borislav Petkov wrote:
> On Tue, Jun 01, 2021 at 04:59:10PM +0200, Javier Martinez Canillas wrote:
>> The series touches different subystems and will need coordination between
>> maintainers. Ard Biesheuvel said that can be merged through the EFI tree.
> 
> I'm always happy when code from arch/x86/ moves away so
> 
> Acked-by: Borislav Petkov <bp@suse.de>
> 

Thanks for the ack.

> Btw, for the future, please CC everyone on the whole patchset - I had to
> go look at your 2/2 on lore to see what it does because I had only 1/2
> in my mbox.
> 

Yes, sorry about that. I just used what get_maintainer.pl --git-fallback
suggested me, I'll make sure to include all people in Cc the next time.

> Thx.
> 

Best regards,
-- 
Javier Martinez Canillas
Software Engineer
New Platform Technologies Enablement team
RHEL Engineering


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-04  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 14:59 [PATCH v2 0/2] allow simple{fb, drm} drivers to be used on non-x86 EFI platforms Javier Martinez Canillas
2021-06-03 20:27 ` [PATCH v2 0/2] allow simple{fb,drm} " Borislav Petkov
2021-06-04  9:41   ` [PATCH v2 0/2] allow simple{fb, drm} " Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).