Mapping large framebuffers into kernel space
Is there something preventing kernel framebuffers from being mapped to the high end of the 4GB kernel address space? Or do they have to be mapped below 1GB? Framebuffer access isn't that performance sensitive, after all it is on the PCI bus.
=====
Jon Smirl
[email protected]
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Quoted 3 lines · Jon Smirl
Is there something preventing kernel framebuffers from being mapped to the high end of the 4GB kernel address space? Or do they have to be mapped below 1GB? Framebuffer access isn't that performance sensitive, after all it is on the PCI bus.
The kernel has 4Gb of virtual address space. Because of the way x86 works it really wants to keep the user map, the view of main memory and io mappings visible at once. For larger objects you have to use kmap and map them through a window (anyone remember they joys of EMS). On 64bit this of course all goes away
Quoted 7 lines · --- Alan Cox
The kernel has 4Gb of virtual address space. Because of the way x86 works it really wants to keep the user map, the view of main memory and io mappings visible at once. For larger objects you have to use kmap and map them through a window (anyone remember they joys of EMS). On 64bit this of course all goes away
On my system I have 1GB physical and 1GB swap. So there should always be some open address space in the 1-4GB kernel address space. Would it be better to map the framebuffer to 1-4GB when HIGHMEM is configured? Is there an ioremap() that will map to high memory? Seems that this would be better than reserving 256MB in the 0-1GB range and forcing 256MB of physical RAM into highmem.
The kernel DRM drivers map framebuffers up to 256MB in size into user space. Could this be mapped as a single 256MB page instead of 64K 4KB ones?
We're working on the radeon drivers right now so I can try a few things out.
=====
Jon Smirl
[email protected]
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Quoted 2 lines
On my system I have 1GB physical and 1GB swap. So there should always be some open address space in the 1-4GB kernel address space. Would it be better to map
The kernel address space is 3Gb-4Gb (ie 1Gb sized) giving a 3Gb user address space.
Quoted 2 lines
The kernel DRM drivers map framebuffers up to 256MB in size into user space. Could this be mapped as a single 256MB page instead of 64K 4KB ones?
Well the CPU only has 4K/4Mb as the basic choices but you could map it using 4Mb pages in theory - in practice its rather complicated because of the VM handling. 2.6 has some basic stuff for doing this kind of thing with fixed unswappable memory.
However if your radeon driver is touching the RAM often enough to matter you have another problem.