mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Using ion memory for direct-io
@ 2017-04-14  9:18 Zengtao (B)
  2017-04-17 16:13 ` Laura Abbott
  0 siblings, 1 reply; 3+ messages in thread
From: Zengtao (B) @ 2017-04-14  9:18 UTC (permalink / raw)
  To: labbott, sumit.semwal; +Cc: gregkh, arve, riandrews, devel, linux-kernel

Hi 

Currently, the ion mapped to userspace will be forced with VM_IO and VM_PFNMAP flags.
When I use the ion memory to do the direct-io, it will fail when reaching the get_user_pages,

Back to the VM_IO and VM_PFNMAP flag, there two flags are introduced by the remap_pfn_range called 
by the ion_heap_mmap_user.

>From my point of view, all ion memory(cma/vmalloc/system heap) are managed by linux vm, it
is not reasonable to have the VM_IO and VM_PFNMAP flag, but I don't any suitable function
to replace the remap_pfn_range, any suggestions?

Thanks && Regards

Zengtao 

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

end of thread, other threads:[~2017-04-18 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14  9:18 Using ion memory for direct-io Zengtao (B)
2017-04-17 16:13 ` Laura Abbott
     [not found]   ` <678F3D1BB717D949B966B68EAEB446ED0BCD4CDF@dggeml511-mbs.china.huawei.com>
2017-04-18 15:56     ` 答复: " Laura Abbott

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

all inboxes | Powered by JetHome®