Skip to content

video: screen_info cleanups

Arnd Bergmann dri-devel linux-alpha linux-csky linux-efi linux-fbdev linux-hexagon linux-hyperv linux-ia64 linux-mips linux-riscv linux-sh linuxppc-dev lkml loongarch sparclinux 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 4 repliesIn review
  2. v29 patches 17 repliesSuperseded
  3. v14 patches 19 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9vgacon: rework Kconfig dependenciesdrivers/video/console/Kconfig+3 -31 reply
2/9vgacon: rework screen_info #ifdef checksarch/alpha/kernel/setup.c arch/alpha/kernel/sys_sio.c arch/ia64/kernel/setup.c +5 more+17 -120 replies
3/9dummycon: limit Arm console size hack to footbridgearch/arm/kernel/atags_parse.c arch/arm/kernel/setup.c drivers/video/console/Kconfig +1 more+6 -60 replies
4/9vgacon, arch/*: remove unused screen_info definitionsarch/csky/kernel/setup.c arch/hexagon/kernel/Makefile arch/hexagon/kernel/screen_info.c +6 more+0 -740 replies
5/9vgacon: remove screen_info dependencyarch/alpha/kernel/setup.c arch/arm/kernel/setup.c arch/ia64/kernel/setup.c +5 more+53 -340 replies
6/9vgacon: clean up global screen_info instancesarch/alpha/kernel/proto.h arch/alpha/kernel/setup.c arch/alpha/kernel/sys_sio.c +10 more+74 -800 replies
7/9vga16fb: drop powerpc supportarch/powerpc/kernel/setup-common.c drivers/video/fbdev/Kconfig drivers/video/fbdev/vga16fb.c+2 -250 replies
8/9hyperv: avoid dependency on screen_infodrivers/gpu/drm/hyperv/hyperv_drm_drv.c drivers/hv/vmbus_drv.c drivers/video/fbdev/hyperv_fb.c+12 -90 replies
9/9efi: move screen_info into efi init codearch/arm/kernel/setup.c arch/arm64/kernel/efi.c arch/arm64/kernel/image-vars.h +7 more+28 -211 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchJavier Martinez CanillasThomas ZimmermannKhalid AzizHelge DellerLinus WalleijPhilippe Mathieu-DaudéDinh NguyenMax FilippovPalmer DabbeltGuo RenArd BiesheuvelCatalin MarinasGeert Uytterhoeven
1/9R-b R-b R-b A-b R-b
2/9R-b R-b R-b A-b
3/9R-b R-b A-b T-b
4/9R-b R-b A-b R-b A-b A-b A-b A-b
5/9R-b A-b A-b
6/9A-b A-b A-b
7/9R-b A-b
8/9R-b A-b
9/9R-b A-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 13 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/9] video: screen_info cleanups

From: Arnd Bergmann <[email protected]>

v3 changelog

No real changes, just rebased for context changes, and picked up the Acks.

This now conflicts with the ia64 removal and introduces one new dependency on IA64, but that is harmless and trivial to deal with later.

---
v2 changelog

I refreshed the first four patches that I sent before with very minor updates, and then added some more to further disaggregate the use of screen_info:

- I found that powerpc wasn't using vga16fb any more

- vgacon can be almost entirely separated from the global screen_info, except on x86

- similarly, the EFI framebuffer initialization can be kept separate, except on x86.

I did extensive build testing on arm/arm64/x86 and the normal built bot testing for the other architectures.

Which tree should this get merged through?

Arnd Bergmann (9):
vgacon: rework Kconfig dependencies
vgacon: rework screen_info #ifdef checks
dummycon: limit Arm console size hack to footbridge vgacon, arch/*: remove unused screen_info definitions
vgacon: remove screen_info dependency
vgacon: clean up global screen_info instances
vga16fb: drop powerpc support
hyperv: avoid dependency on screen_info
efi: move screen_info into efi init code

 arch/alpha/kernel/proto.h                     |  2 +
 arch/alpha/kernel/setup.c                     |  8 +--
 arch/alpha/kernel/sys_sio.c                   |  8 ++-
 arch/arm/include/asm/setup.h                  |  5 ++
 arch/arm/kernel/atags_parse.c                 | 20 +++---
 arch/arm/kernel/efi.c                         |  6 --
 arch/arm/kernel/setup.c                       | 11 +--
 arch/arm64/kernel/efi.c                       |  4 --
 arch/arm64/kernel/image-vars.h                |  2 +
 arch/csky/kernel/setup.c                      | 12 ----
 arch/hexagon/kernel/Makefile                  |  2 -
 arch/hexagon/kernel/screen_info.c             |  3 -
 arch/ia64/kernel/setup.c                      | 53 ++++++++-------
 arch/loongarch/kernel/efi.c                   |  3 +-
 arch/loongarch/kernel/image-vars.h            |  2 +
 arch/loongarch/kernel/setup.c                 |  3 -
 arch/mips/jazz/setup.c                        |  9 ---
 arch/mips/kernel/setup.c                      | 11 ---
 arch/mips/mti-malta/malta-setup.c             |  4 +-
 arch/mips/sibyte/swarm/setup.c                | 26 ++++---
 arch/mips/sni/setup.c                         | 18 ++---
 arch/nios2/kernel/setup.c                     |  5 --
 arch/powerpc/kernel/setup-common.c            | 16 -----
 arch/riscv/kernel/image-vars.h                |  2 +
 arch/riscv/kernel/setup.c                     | 12 ----
 arch/sh/kernel/setup.c                        |  5 --
 arch/sparc/kernel/setup_32.c                  | 13 ----
 arch/sparc/kernel/setup_64.c                  | 13 ----
 arch/x86/kernel/setup.c                       |  2 +-
 arch/xtensa/kernel/setup.c                    | 12 ----
 drivers/firmware/efi/efi-init.c               | 14 +++-
 drivers/firmware/efi/libstub/efi-stub-entry.c |  8 ++-
 drivers/firmware/pcdp.c                       |  1 -
 drivers/gpu/drm/hyperv/hyperv_drm_drv.c       |  7 +-
 drivers/hv/vmbus_drv.c                        |  6 +-
 drivers/video/console/Kconfig                 | 11 +--
 drivers/video/console/dummycon.c              |  2 +-
 drivers/video/console/vgacon.c                | 68 +++++++++++--------
 drivers/video/fbdev/Kconfig                   |  2 +-
 drivers/video/fbdev/hyperv_fb.c               |  8 +--
 drivers/video/fbdev/vga16fb.c                 |  9 +--
 include/linux/console.h                       |  7 ++
 42 files changed, 183 insertions(+), 252 deletions(-)
 delete mode 100644 arch/hexagon/kernel/screen_info.c
Signature · 54 lines
2.39.2

Cc: "David S. Miller" <[email protected]>
Cc: "K. Y. Srinivasan" <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Cain <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Deepak Rawat <[email protected]>
Cc: Dexuan Cui <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Guo Ren <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Javier Martinez Canillas <[email protected]>
Cc: John Paul Adrian Glaubitz <[email protected]>
Cc: Khalid Aziz <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Cc: Russell King <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: WANG Xuerui <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]