lkml.org 
[lkml]   [2009]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Vramfs: filesystem driver to utilize extra RAM on VGA devices
Jonathan Campbell wrote:
> I don't really see the similarity between the MTD subsystem and dividing
> vram up by files. Video cards don't have "erase blocks". And MTD is not
> a filesystem. And the onboard memory mtd driver (map system RAM) only
> handles one fixed region determined at load time.
>
> Vramfs on the other hand determines what resources to use at mount time.
> It supports multiple mounts, one per PCI device, if you want the
> combined VRAM of two VGA cards in your system.
>
> I don't think vramfs would fit well into the MTD subsystem.

Think about it this way: it is a continuum of facilities. Why is VRAM
different than, say, external DRAM that can only be accessed via a DMA
engine? Now swap the DRAM with NAND flash and perform the same exercise.

Perhaps the most important reason is that you want to be able to use
this as backing store for swap. Currently the mm doesn't handle swap
which is much faster than filesystems very well, but that should be
possible to address.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.



\
 
 \ /
  Last update: 2009-01-30 05:49    [W:0.111 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site