Re: user_to_phys() without mmap?
- From: Ulrich Eckhardt <doomster@xxxxxxxx>
- Date: Sun, 15 Jul 2007 10:27:24 +0200
Neil Steiner wrote:
I'm trying to use a framebuffer from user space (think plain video ram,
not some PCI or AGP video card), but mmap'ing from kernel space into
user space is causing large latencies and unsightly artifacts.
Maybe you should map it uncached?
It appears that anything written into the mmap'ed user memory is in
fact being copied into kernel space.
You mean that every access causes a page fault and the performs the access
from inside the kernel? That would basically mean that the memory-mapping
was incomplete/incorrect. Hard to tell without knowing what is going on...
What I was actually hoping was that the memory manager would simply map
the underlying physical pages directly into the user's address space.
I did something similar with Linux 2.2 and 2.4, though it was less than one
page for some buffers and registers. I copied the code from some other
driver in the kernel though, I think it was from some TV receiver card.
Maybe the driver is still there and by reading a bit you could do the same.
Just one thing though: why not use the Linux framebuffer interface?
Uli
.
- Follow-Ups:
- Re: user_to_phys() without mmap?
- From: Neil Steiner
- Re: user_to_phys() without mmap?
- From: Rainer Weikusat
- Re: user_to_phys() without mmap?
- References:
- user_to_phys() without mmap?
- From: Neil Steiner
- user_to_phys() without mmap?
- Prev by Date: Re: BGP Job Opening
- Next by Date: Re: user_to_phys() without mmap?
- Previous by thread: Re: user_to_phys() without mmap?
- Next by thread: Re: user_to_phys() without mmap?
- Index(es):
Relevant Pages
|