1 Sep 2011 01:13
Re: bade page state while calling munmap() for kmalloc'ed UIO memory
Andrew Morton <akpm <at> linux-foundation.org>
2011-08-31 23:13:07 GMT
2011-08-31 23:13:07 GMT
On Wed, 31 Aug 2011 11:58:25 +0200 "Hans J. Koch" <hjk <at> hansjkoch.de> wrote: > On Mon, Aug 29, 2011 at 05:05:47PM +0200, Jan Altenberg wrote: > > [Since we got no reply on linux-mm, I added lkml and Andrew to Cc: (mm doesn't > seem to have a maintainer...)] > > > Hi, > > > > I'm currently analysing a problem similar to some mmap() issue reported > > in the past: https://lkml.org/lkml/2010/7/11/140 > > The arch there was microblaze, and you are working on arm. That means > the problem appears on at least to archs. > > > > > So, what I'm trying to do is mapping some physically continuous memory > > (allocated by kmalloc) to userspace, using a trivial UIO driver (the > > idea is that a device can directly DMA to that buffer): > > > > [...] > > #define MEM_SIZE (4 * PAGE_SIZE) > > > > addr = kmalloc(MEM_SIZE, GFP_KERNEL) > > [...] > > info.mem[0].addr = (unsigned long) addr; > > info.mem[0].internal_addr = addr; > > info.mem[0].size = MEM_SIZE; > > info.mem[0].memtype = UIO_MEM_LOGICAL;(Continue reading)
RSS Feed