Skip to contentSkip to conversation

Mapping large framebuffers into kernel space

DISCUSSION Jon Smirl 3 participants 4 messages Sep 7, 2003

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

I just got a new P4 machine with 1GB memory and I'm trying to make radeonfb work on it. I am compiled with HIGHMEM4G. The motherboard is i875P based which supports 64b DMA.

When I first loaded radeonfb it would fail because ioremap was failing. I tracked the problem down to not having any free kernel address space below 1GB. I created some by adding reserve=FE000000-100000000 to the kernel command line.
This allowed radeonfb to load.

I'm beginning to wonder if framebuffers should be mapped into kernel space. What's going to happen when I get a 512MB video card? Does the framebuffer have to be mapped in the first 1GB of kernel address space?

If the framebuffer is mapped, it's a perfect candidate for a large page table entry because it is a very large piece of linear memory that not's going to be paged.

=====
Jon Smirl
[email protected]

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

#1 lore raw
Quoted 3 lines · Jon Smirl

I'm beginning to wonder if framebuffers should be mapped into kernel space. What's going to happen when I get a 512MB video card? Does the framebuffer have to be mapped in the first 1GB of kernel address space?

Yes but it shouldnt be mapping all of it blindly like that. Vesafb was fixed for this, radeonfb needs fixing

Quoted 2 lines

If the framebuffer is mapped, it's a perfect candidate for a large page table entry because it is a very large piece of linear memory that not's going to be paged.

By the time we need to really kernel map 512Mb of frame buffer hopefully 32bit will be dead 8)

#2 lore raw
Quoted 2 lines · Alan Cox

By the time we need to really kernel map 512Mb of frame buffer hopefully 32bit will be dead 8)

I hope that's also tongue in cheek ;)

author
#3 lore raw
In reply to Alan Cox
Quoted 2 lines · --- Alan Cox

By the time we need to really kernel map 512Mb of frame buffer hopefully 32bit will be dead 8)

I hope 32bits dies real soon. You can buy 256MB cards off the shelf right now. I bet we have 512MB ones by next Christmas.

=====
Jon Smirl
[email protected]

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com