LKML Archive on
help / color / mirror / Atom feed
* PCI buffer allocation in Linux device
@ 2007-02-22 10:23 Joji Joseph
  0 siblings, 0 replies; only message in thread
From: Joji Joseph @ 2007-02-22 10:23 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I have a PCI host Device runs in Linux platform and the PCI slave device
runs in VxWorks platform.

The PCI DMA transmission is successful from host to slave when I have
allocated source data buffer with "dma_alloc_coherent" function and I
can read the data at the PCI slave (in vxwork platform) when DMA
interrupts happens at there.

But, Though the PCI DMA receive interrupt at the host side(in Linux
platform), I couldn't receive the data which sends from the pci slave
(in vxworks platform).

For allocating the buffer at the host side, I have used
"dma_alloc_coherent" as shown below,

pBuff =dma_alloc_coherent( NULL , lenBuf, &dma_handle, GFP_ATOMIC);

and keeping the physical address 'dma_handle' in buffer descriptor which
is used for the DMA transmission.

When interrupt happens at the host side, I am using the 'pBuff' virtual
address which was saved locally for reading the buffer.

But, the data which I am getting is not correct.

Could anybody help me out how I should allocate memory in this scenario?

Is there any other function which I should use apart from
"dma_alloc_coherent" to get the proper behavior?

Thanks a lot in advance for you help.


Conexant E-mail Firewall (Conexant.Com) made the following annotations---------------------------------------------------------------------********************** Legal Disclaimer **************************** 

"This email may contain confidential and privileged material for the sole use of the intended recipient. Any unauthorized review, use or distribution by others is strictly prohibited. If you have received the message in error, please advise the sender by reply email and delete the message. Thank you." 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-22 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-22 10:23 PCI buffer allocation in Linux device Joji Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).