All of lore.kernel.org
 help / color / mirror / Atom feed
* Physical address mapping to user space in dom0 problem
@ 2007-03-16 23:27 Haw-Yuan Yang
  2007-03-16 23:31 ` Keir Fraser
  0 siblings, 1 reply; 8+ messages in thread
From: Haw-Yuan Yang @ 2007-03-16 23:27 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 709 bytes --]

I have a PCI device which can perform bus master DMA. I developed a PCI
device driver which can allocate DMA buffer and provide mmap operation to
map the I/O and DMA buffer to user space.



The PCI device driver works well under Linux 2.6.20. However it brokes under
XEN 3.0.4. It appears that mmap map to the wrong memory.  remap_pfn_range in
mmap function return no error when it is used to map both I/O and DMA
buffer.  If I use io_remap_pfn_range instead of  remap_pfn_range, I/O
mapping works but DMA buffer mapping return -1.



Is this a known problem for XEN 3.0.4 and will be fixed later? Is there any
alternative way to map the DMA address to user space in XEN dom0?



Thanks in advance,



hyang

[-- Attachment #1.2: Type: text/html, Size: 1698 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2007-03-18 21:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 23:27 Physical address mapping to user space in dom0 problem Haw-Yuan Yang
2007-03-16 23:31 ` Keir Fraser
2007-03-17  0:36   ` Haw-Yuan Yang
2007-03-17  7:57     ` Keir Fraser
2007-03-17 21:52       ` Haw-Yuan Yang
2007-03-18  8:59         ` Keir Fraser
2007-03-18 20:11           ` Haw-Yuan Yang
2007-03-18 21:14             ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.