Re: user_to_phys() without mmap?
- From: Neil Steiner <neil.steiner@xxxxxx>
- Date: Mon, 16 Jul 2007 11:18:51 -0400
Assuming you are using /dev/mem, could it be possible that you are
accessing cached memory?
It turns out that the memory was indeed being cached. I was already using ioremap_nocache(), so I didn't realize that I had to specify anything additional when using remap_page_range().
In any case, once I added the following, my speeds and latencies from user and kernel spaces evened out:
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE|_PAGE_GUARDED;
Thanks for the comments Rainer, and each of the rest of you as well. It's nice to have this problem squared away.
.
- References:
- user_to_phys() without mmap?
- From: Neil Steiner
- Re: user_to_phys() without mmap?
- From: Rainer Weikusat
- user_to_phys() without mmap?
- Prev by Date: Re: My program can't work on redhat enterprise AS 4
- 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):