]> git.hungrycats.org Git - linux/commit
[PATCH] fbdev: fix framebuffer memory calculation for vesafb
authorAntonino Daplas <adaplas@hotpop.com>
Tue, 19 Oct 2004 01:08:28 +0000 (18:08 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:08:28 +0000 (18:08 -0700)
commit9e029c1e68684aba01d9837eab681554fb5c80f4
tree570cea57f3c34788634ae7e58363b5317d430025
parent26550a76ae30cae1cc0ada4e798dac9cbd0ff201
[PATCH] fbdev: fix framebuffer memory calculation for vesafb

- use vesafb_fix.line_length * vesafb_defined.yres to calculate the minimum
  memory required for a video mode. From Aurelien Jacobs <aurel@gnuage.org>.

- separately calculate the memory required for a video mode, memory to be
  remapped, and total memory (for MTRR). From Gerd Knorr
  <kraxel@bytesex.org>.

- the 'vram' option is for memory to be remapped, not total memory.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/vesafb.c