Re: Mapping large framebuffers into kernel space

From: Alan Cox
Date: Mon Sep 08 2003 - 07:31:29 EST


> 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.

> 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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/