lkml.org 
[lkml]   [1997]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Kernel virtual memory?
Date
From
Rauli Ruohonen wrote:
>
> Could kernel use virtual memory hardware to make non-linear chunks of
> memory to look linear? It seems to me that it could solve the problems
> with memory fragmentation and DMA memory allocation.

The problem is that the only thing you can't do (except for on a
Sparc (#) ) is solve DMA problems.

> DMA memory could be allocated by moving allocated blocks away from the
> lower 16MB, and other parts of kernel could be made happy by changing the
> page tables accordingly.

Yeah. Another part of the kernel might still be having a "physical"
pointer to that memory because some other device is going to DMA
into that memory.

> So, is this possible/feasible/too ugly to implement?

Yeah. Too ugly.

Roger.

(#) Many sparcs use the SBUS which has "DVMA", Direct Virtual Memory
Access: They go through the MMU for DMA accesses.......

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.078 / U:1.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site