]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/QemuVideoDxe: round up FrameBufferSize to full page
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Apr 2018 07:02:07 +0000 (09:02 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 26 Apr 2018 10:53:19 +0000 (12:53 +0200)
commitdd7760470fcefc31acd439b5e6e314839d45f358
treed82ca20d0313db3fed92eb0dfc56bef2d6a1abb5
parente31fe995b81b191987b40e2556232493f6e9984f
OvmfPkg/QemuVideoDxe: round up FrameBufferSize to full page

Guests do the same, because the framebuffer is mapped somewhere, which
obviously works with page granularity only.

When not rounding up to full page size we get messages like this one
(linux kernel):

    efifb: framebuffer at 0x80000000, using 1876k, total 1875k
                                            ^^^^^        ^^^^^
Also sysfb is confused and throws an error:

    sysfb: VRAM smaller than advertised

Cc: Phil Dennis-Jordan <phil@philjordan.eu>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
[lersek@redhat.com: fix coding style]
OvmfPkg/QemuVideoDxe/Gop.c