dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add generic framebuffer support to EFI earlycon driver
@ 2022-07-28 14:28 Markuss Broks
  2022-07-28 14:28 ` [PATCH 1/2] drivers: serial: earlycon: Pass device-tree node Markuss Broks
  2022-07-28 14:28 ` [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem Markuss Broks
  0 siblings, 2 replies; 22+ messages in thread
From: Markuss Broks @ 2022-07-28 14:28 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-fbdev, linux-efi, Markuss Broks, linux-doc, Tony Lindgren,
	dri-devel, Wei Ming Chen, phone-devel, Jiri Slaby,
	Ard Biesheuvel, Arnd Bergmann, Jonathan Corbet, Damien Le Moal,
	Javier Martinez Canillas, linux-serial, Borislav Petkov,
	Kees Cook, Paul E. McKenney, Bartlomiej Zolnierkiewicz,
	~postmarketos/upstreaming, Andy Shevchenko, Michal Suchanek,
	Greg Kroah-Hartman, Randy Dunlap, Thomas Zimmermann,
	Andrew Morton, Helge Deller

Make the EFI earlycon driver be suitable for any linear framebuffers.
This should be helpful for early porting of boards with no other means of
output, like smartphones/tablets. There seems to be an issue with early_ioremap
function on ARM32, but I am unable to find the exact cause. It appears the mappings
returned by it are somehow incorrect, thus the driver is disabled on ARM. EFI early
console was disabled on IA64 previously, so I kept it in EFI earlycon Kconfig.

This patch also changes behavior on EFI systems, by selecting the mapping type
based on if the framebuffer region intersects with system RAM. If it does, it's
common sense that it should be in RAM as a whole, and so the system RAM mapping is
used. It was tested to be working on my PC (Intel Z490 platform).

Markuss Broks (2):
  drivers: serial: earlycon: Pass device-tree node
  efi: earlycon: Add support for generic framebuffers and move to fbdev
    subsystem

 .../admin-guide/kernel-parameters.txt         |  12 +-
 MAINTAINERS                                   |   5 +
 drivers/firmware/efi/Kconfig                  |   6 +-
 drivers/firmware/efi/Makefile                 |   1 -
 drivers/firmware/efi/earlycon.c               | 246 --------------
 drivers/tty/serial/earlycon.c                 |   3 +
 drivers/video/fbdev/Kconfig                   |  11 +
 drivers/video/fbdev/Makefile                  |   1 +
 drivers/video/fbdev/earlycon.c                | 301 ++++++++++++++++++
 include/linux/serial_core.h                   |   1 +
 10 files changed, 331 insertions(+), 256 deletions(-)
 delete mode 100644 drivers/firmware/efi/earlycon.c
 create mode 100644 drivers/video/fbdev/earlycon.c

-- 
2.37.0


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

end of thread, other threads:[~2022-09-06 19:39 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 14:28 [PATCH 0/2] Add generic framebuffer support to EFI earlycon driver Markuss Broks
2022-07-28 14:28 ` [PATCH 1/2] drivers: serial: earlycon: Pass device-tree node Markuss Broks
2022-07-28 14:38   ` Greg Kroah-Hartman
2022-07-28 21:04     ` Andy Shevchenko
2022-07-29  7:57       ` Greg Kroah-Hartman
2022-07-29 10:47         ` Andy Shevchenko
2022-07-28 14:28 ` [PATCH 2/2] efi: earlycon: Add support for generic framebuffers and move to fbdev subsystem Markuss Broks
2022-07-28 14:39   ` Greg Kroah-Hartman
2022-07-28 14:52     ` Markuss Broks
2022-07-28 15:01       ` Greg Kroah-Hartman
2022-08-06 16:26         ` Markuss Broks
2022-08-07  6:53           ` Greg Kroah-Hartman
2022-09-06 19:39             ` Daniel Vetter
2022-07-28 21:06       ` Andy Shevchenko
2022-07-28 14:48   ` Arnd Bergmann
2022-07-28 14:57     ` Markuss Broks
2022-07-28 15:16       ` Arnd Bergmann
2022-07-28 18:13         ` Thomas Zimmermann
2022-07-28 21:19   ` Andy Shevchenko
2022-07-30 11:54     ` Markuss Broks
2022-07-30 10:25       ` Andy Shevchenko
2022-07-28 21:20   ` kernel test robot

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).