Thread (32 messages) 32 messages, 5 authors, 2005-04-25

Re: Re: 2.6.12-rc1-mm2 -- nvidiafb driver gives black screen

From: Antonino A. Daplas <hidden>
Date: 2005-04-14 05:52:35

On Friday 25 March 2005 12:31, Andrew Morton wrote:
quoted
allocation failed: out of vmalloc space - use vmalloc=<size> to increase
size. nvidiafb: cannot ioremap FB base
This patch will always limit the amount of video RAM to remap at
128 MiB.

From: Antonino Daplas <redacted>
Signed-off-by: Antonino Daplas <redacted>
---

 nvidia.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -Nru a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
--- a/drivers/video/nvidia/nvidia.c	2005-04-14 13:33:38 +08:00
+++ b/drivers/video/nvidia/nvidia.c	2005-04-14 13:44:15 +08:00
@@ -1510,7 +1510,11 @@
 	par->FbMapSize = par->RamAmountKBytes * 1024;
 
 	if (vram && vram * 1024 * 1024 < par->FbMapSize)
-	    par->FbMapSize = vram * 1024 * 1024;
+		par->FbMapSize = vram * 1024 * 1024;
+
+	/* Limit amount of vram to 128 MB */
+	if (par->FbMapSize > 128 * 1024 * 1024)
+		par->FbMapSize = 128 * 1024 * 1024;
 
 	par->FbUsableSize = par->FbMapSize - (128 * 1024);
 	par->ScratchBufferSize = (par->Architecture < NV_ARCH_10) ? 8 * 1024 :






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help