Re: user_to_phys() without mmap?
- From: Neil Steiner <neil.steiner@xxxxxx>
- Date: Mon, 16 Jul 2007 11:25:50 -0400
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?
You're right. I was already using ioremap_nocache(), so I didn't realize that I had to specify anything additional when using remap_page_range(). But I added this, and everything started working as desired.
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE|_PAGE_GUARDED;
Just one thing though: why not use the Linux framebuffer interface?
I'm using this for a special purpose proof-of-concept, and although I need this to work, it really is not a central part of my work. Honestly, the framebuffer interface looked like it would be more complicated to use in my case. I usually opt for the Right Way, but this time I took the shortcut. ;)
Thanks for your comments. They helped me get this worked out.
.
- References:
- user_to_phys() without mmap?
- From: Neil Steiner
- Re: user_to_phys() without mmap?
- From: Ulrich Eckhardt
- user_to_phys() without mmap?
- Prev by Date: Re: user_to_phys() without mmap?
- Next by Date: Re: sys/queue.h
- Previous by thread: Re: user_to_phys() without mmap?
- Next by thread: sys/queue.h
- Index(es):
Relevant Pages
|