Skip to content

x86: video: Speed up the framebuffer

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26x86: fsp: Reinit the FPU after FSP meminitarch/x86/cpu/i386/cpu.c arch/x86/include/asm/u-boot-x86.h arch/x86/lib/fsp2/fsp_meminit.c+14 -00 replies
2/26console: Add a way to output to serial onlycommon/console.c include/console.h+35 -60 replies
3/26video: Show an error when a vidconsole function failsdrivers/video/vidconsole-uclass.c+19 -31 reply
4/26sandbox: video: Allow selection of rotated consoledrivers/video/sandbox_sdl.c+1 -01 reply
5/26video: Split out expression parts into variablesdrivers/video/console_rotate.c+17 -171 reply
6/26video: Adjust rotated console to start at right edgedrivers/video/console_rotate.c test/dm/video.c+2 -21 reply
7/26video: Drop unnecessary #ifdef around vid_console_color()include/video_console.h+2 -41 reply
8/26video: Add a comment for struct video_uc_platdatainclude/video.h+12 -01 reply
9/26video: Add support for copying to a hardware framebufferdrivers/video/Kconfig drivers/video/video-uclass.c include/video.h+95 -01 reply
10/26video: Set up the copy framebuffer when enableddrivers/video/video-uclass.c+3 -01 reply
11/26video: Clear the copy framebuffer when clearing the screendrivers/video/video-uclass.c+4 -01 reply
12/26video: Add helpers for vidconsole for the copy framebufferdrivers/video/vidconsole-uclass.c include/video_console.h+71 -01 reply
13/26video: Update normal console to support copy bufferdrivers/video/console_normal.c+23 -31 reply
14/26video: Update truetype console to support copy bufferdrivers/video/console_truetype.c+31 -121 reply
15/26video: Update rotated console to support copy bufferdrivers/video/console_rotate.c+60 -231 reply
16/26video: Update the copy framebuffer when writing bitmapsdrivers/video/video_bmp.c+13 -31 reply
17/26video: Add comments to struct sandbox_sdl_platinclude/dm/test.h test/dm/video.c+15 -21 reply
18/26video: sandbox: Add support for the copy framebufferconfigs/sandbox_defconfig drivers/video/sandbox_sdl.c test/dm/video.c+43 -221 reply
19/26video: pci: Set up the copy framebufferdrivers/pci/pci_rom.c+21 -11 reply
20/26x86: fsp: video: Allocate a frame buffer when neededarch/x86/lib/fsp/fsp_graphics.c+12 -01 reply
21/26video: Correctly handle multiple framebuffersdrivers/video/video-uclass.c+25 -21 reply
22/26x86: video: Support copy framebuffer with probed devicesdrivers/video/Kconfig drivers/video/video-uclass.c+24 -01 reply
23/26x86: chromebook_samus: Enable the copy framebufferconfigs/chromebook_samus_defconfig drivers/video/broadwell_igd.c+16 -21 reply
24/26x86: chromebook_link: Enable the copy framebufferconfigs/chromebook_link_defconfig drivers/video/ivybridge_igd.c+21 -71 reply
25/26x86: minnowmax: Enable the copy framebufferconfigs/minnowmax_defconfig drivers/video/vesa.c+30 -21 reply
26/26x86: minnowmax: Drop screen resolution to 1024x768configs/minnowmax_defconfig+1 -10 replies

Reviews trailers per patch

23 of 26 patches have a Reviewed-by or Acked-by.

PatchAnatolij Gustschin
1/26
2/26
3/26R-b
4/26R-b
5/26R-b
6/26R-b
7/26R-b
8/26R-b
9/26R-b
10/26R-b
11/26R-b
12/26R-b
13/26R-b
14/26R-b
15/26R-b
16/26R-b
17/26R-b
18/26R-b
19/26R-b
20/26R-b
21/26R-b
22/26R-b
23/26R-b
24/26R-b
25/26R-b
26/26

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/26] x86: video: Speed up the framebuffer

Some architectures use a cached framebuffer and flush the cache as needed so that changes are visible. This is supported by U-Boot.

However x86 uses an uncached framebuffer with a 'write-combining' feature to speed up writes. Reads are permitted but they are extremely expensive.

Unfortunately, reading from the frame buffer is quite common, e.g. to scroll it. This makes scrolling very slow.

This series adds a new feature which supports copying modified parts of the frame buffer to the uncached hardware buffer. This speeds up scrolling dramatically on x86 so the extra complexity cost seems worth it.

In an extreme case, the time to print the environment on minnowboard with 1280x1024 and CONFIG_CONSOLE_SCROLL_LINES disabled is reduced significantly, from 13 seconds to 300ms.

Simon Glass (26):
x86: fsp: Reinit the FPU after FSP meminit
console: Add a way to output to serial only
video: Show an error when a vidconsole function fails
sandbox: video: Allow selection of rotated console
video: Split out expression parts into variables
video: Adjust rotated console to start at right edge
video: Drop unnecessary #ifdef around vid_console_color()
video: Add a comment for struct video_uc_platdata
video: Add support for copying to a hardware framebuffer
video: Set up the copy framebuffer when enabled
video: Clear the copy framebuffer when clearing the screen
video: Add helpers for vidconsole for the copy framebuffer
video: Update normal console to support copy buffer
video: Update truetype console to support copy buffer
video: Update rotated console to support copy buffer
video: Update the copy framebuffer when writing bitmaps
video: Add comments to struct sandbox_sdl_plat
video: sandbox: Add support for the copy framebuffer
video: pci: Set up the copy framebuffer
x86: fsp: video: Allocate a frame buffer when needed
video: Correctly handle multiple framebuffers
x86: video: Support copy framebuffer with probed devices
x86: chromebook_samus: Enable the copy framebuffer
x86: chromebook_link: Enable the copy framebuffer
x86: minnowmax: Enable the copy framebuffer
x86: minnowmax: Drop screen resolution to 1024x768

 arch/x86/cpu/i386/cpu.c            |   5 ++
 arch/x86/include/asm/u-boot-x86.h  |   8 +++
 arch/x86/lib/fsp/fsp_graphics.c    |  12 ++++
 arch/x86/lib/fsp2/fsp_meminit.c    |   1 +
 common/console.c                   |  28 ++++++--
 configs/chromebook_link_defconfig  |   2 +-
 configs/chromebook_samus_defconfig |   2 +-
 configs/minnowmax_defconfig        |   4 +-
 configs/sandbox_defconfig          |   1 +
 drivers/pci/pci_rom.c              |  22 +++++-
 drivers/video/Kconfig              |  31 +++++++++
 drivers/video/broadwell_igd.c      |  16 ++++-
 drivers/video/console_normal.c     |  26 +++++++-
 drivers/video/console_rotate.c     | 103 ++++++++++++++++++++---------
 drivers/video/console_truetype.c   |  43 ++++++++----
 drivers/video/ivybridge_igd.c      |  26 ++++++--
 drivers/video/sandbox_sdl.c        |  10 ++-
 drivers/video/vesa.c               |  30 ++++++++-
 drivers/video/vidconsole-uclass.c  |  44 +++++++++++-
 drivers/video/video-uclass.c       |  93 +++++++++++++++++++++++++-
 drivers/video/video_bmp.c          |  16 ++++-
 include/console.h                  |  13 ++++
 include/dm/test.h                  |  14 +++-
 include/video.h                    |  41 ++++++++++++
 include/video_console.h            |  51 +++++++++++++-
 test/dm/video.c                    |  60 ++++++++++-------
 26 files changed, 600 insertions(+), 102 deletions(-)
Signature · 1 line
2.26.2.761.g0e0b3e54be-goog