x86, EFI: Calculate the EFI framebuffer size instead of trusting the firmware
authorMatthew Garrett <mjg@redhat.com>
Fri, 27 Jul 2012 21:20:49 +0000 (17:20 -0400)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 17 Sep 2012 12:29:24 +0000 (13:29 +0100)
Seth Forshee reported that his system was reporting that the EFI framebuffer
stretched from 0x90010000-0xb0010000 despite the GPU's BAR only covering
0x90000000-0x9ffffff. It's safer to calculate this value from the pixel
stride and screen height (values we already depend on) rather than face
potential problems with resource allocation later on.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Tested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>

No differences found