mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* get_user_pages fails for contiguous memory?
@ 2008-09-23 15:49 Hiremath, Vaibhav
  2008-09-23 16:46 ` Ben Dooks
  0 siblings, 1 reply; 2+ messages in thread
From: Hiremath, Vaibhav @ 2008-09-23 15:49 UTC (permalink / raw)
  To: linux-kernel

Hi,

For some reason (unknown to me) the VM_IO and VM_PFNMAP vm_flags are set when I use get_user_pages function, causing it to fail for me. I'm currently using 2.6.22 on an ARM platform.

My Actual test case is something -

I trying run/test a simple use case where, I am allocating buffers in one driver using get_free_pages, map them to user application and pass it to another driver for processing. 

I am allocating huge memory in frame buffer driver using get_free_pages at the init time. I would like to use this buffer in resizer driver (scatter gather DMA), which resizes the image depending on user configuration. 

If I allocate a memory using malloc or memalign from in user space and pass it to resizer driver it works fine.

Any suggestions/solution how to achieve this would really helpful to me.

Thanks,
Vaibhav Hiremath
Senior Software Engg.
Platform Support Products
Texas Instruments Inc
Ph: +91-80-25099927


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-23 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-23 15:49 get_user_pages fails for contiguous memory? Hiremath, Vaibhav
2008-09-23 16:46 ` Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome