The patch titled FB: Get the Geode GX frambuffer size from the BIOS has been added to the -mm tree. Its filename is fb-get-the-geode-gx-frambuffer-size-from-the-bios.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: FB: Get the Geode GX frambuffer size from the BIOS From: Jordan Crouse <jordan.crouse@xxxxxxx> Use the Geode GX BIOS virtual registers to get the actual size of the framebuffer. Signed-off-by: Jordan Crouse <jordan.crouse@xxxxxxx> Cc: "Antonino A. Daplas" <adaplas@xxxxxxx> Cc: James Simmons <jsimmons@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/video/geode/display_gx.c | 15 ++++++++++++--- drivers/video/geode/display_gx.h | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff -puN drivers/video/geode/display_gx.c~fb-get-the-geode-gx-frambuffer-size-from-the-bios drivers/video/geode/display_gx.c --- a/drivers/video/geode/display_gx.c~fb-get-the-geode-gx-frambuffer-size-from-the-bios +++ a/drivers/video/geode/display_gx.c @@ -21,10 +21,19 @@ #include "geodefb.h" #include "display_gx.h" -int gx_frame_buffer_size(void) +unsigned int gx_frame_buffer_size(void) { - /* Assuming 16 MiB. */ - return 16*1024*1024; + unsigned int val; + + /* FB size is reported by a virtual register */ + /* Virtual register class = 0x02 */ + /* VG_MEM_SIZE(512Kb units) = 0x00 */ + + outw(0xFC53, 0xAC1C); + outw(0x0200, 0xAC1C); + + val = (unsigned int)(inw(0xAC1E)) & 0xFFl; + return (val << 19); } int gx_line_delta(int xres, int bpp) diff -puN drivers/video/geode/display_gx.h~fb-get-the-geode-gx-frambuffer-size-from-the-bios drivers/video/geode/display_gx.h --- a/drivers/video/geode/display_gx.h~fb-get-the-geode-gx-frambuffer-size-from-the-bios +++ a/drivers/video/geode/display_gx.h @@ -11,7 +11,7 @@ #ifndef __DISPLAY_GX_H__ #define __DISPLAY_GX_H__ -int gx_frame_buffer_size(void); +unsigned int gx_frame_buffer_size(void); int gx_line_delta(int xres, int bpp); extern struct geode_dc_ops gx_dc_ops; _ Patches currently in -mm which might be from jordan.crouse@xxxxxxx are acpi-clear-gpe-before-disabling-it.patch git-cryptodev.patch video-get-the-default-mode-from-the-right-database.patch fb-get-the-geode-gx-frambuffer-size-from-the-bios.patch gxfb-fixups-for-the-amd-geode-gx.patch gxfb-fixups-for-the-amd-geode-gx-tidy.patch gxfb-support-flat-panel-timings.patch gxfb-support-flat-panel-timings-tidy.patch gxfb-support-command-line-options.patch gxfb-support-command-line-options-tidy.patch gxfb-fixup-flatpanel-detection.patch gxfb-turn-on-the-flatpanel-power-and-data.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html