viafb: try to map less memory in case of failure
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 25 Apr 2011 20:01:46 +0000 (20:01 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 25 Apr 2011 20:01:46 +0000 (20:01 +0000)
commit9d5f96f61837b1242dd8c576c6110593475fcf86
treeb5fe5a3b71be2ca239aeb404bc3b92c4da16c703
parentcace71b318aa0126e7cfe49fe5e9133e0395c478
viafb: try to map less memory in case of failure

The current code might result in trying to remap 512MB video ram on
a 32 bit system which is quite likely to fail.
This patch tries to map less of it down to 8MB as this should still
be enough to get a reasonably well working framebuffer. This should
make viafb work for many people without requiring them to manually
allocate more space.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/via-core.c