radeonfb, dedicate memory to something else
Jon Smirl
jonsmirl at gmail.com
Wed Jul 23 00:25:35 EST 2008
On 7/22/08, Matt Sealey <matt at genesi-usa.com> wrote:
> Michel Dänzer wrote:
>
> > On Tue, 2008-07-22 at 09:31 +0100, Matt Sealey wrote:
> >
> > > or other graphics drivers can be told "please only use the first 32MB"
> and
> > > then either manually or automatically, map the rest as ramdisk.
> > >
> >
> > You can limit the amount of video RAM used by X using the VideoRam
> > directive in xorg.conf(5).
> >
>
>
> Is it safe to poke around in radeon_identify_vram and maybe supply a kernel
> argument videomem=32M and let it check, if it's bigger, then limit it, and
> if not, keep the old size in rinfo->video_ram?
>
> Can/could this be moved to all relevant framebuffer drivers?
>
>
> > GART doesn't have anything to do with this. I suspect he was thinking of
> > the PCI BARs not covering all video RAM.
> >
>
> That's certainly not the case here.
Yes, I'm forgetting how graphics work. If you can map all of VRAM into
the PCI address space then you don't have to worry about sharing the
window with X.
> Ah okay. So now.. how do we do this for framebuffers?
My memory is suspect, but first you would need to make sure all of
VRAM is mapped. Then there is a value in fb that says how much of the
VRAM it is using. Anything above the max is fair game if X isn't
running. Note that the amount of VRAM in use by fbdev is a function of
which display mode it is in.
>
> --
> Matt Sealey <matt at genesi-usa.com>
> Genesi, Manager, Developer Relations
>
--
Jon Smirl
jonsmirl at gmail.com
More information about the Linuxppc-dev
mailing list