Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSimple data transfer over PCIe for co-processing
I will briefly explain what I am trying do. I have a host PC running linux and connected to an Arria GX II over PCIe. I am trying to send some data over to the FPGA, do some processing on that ( say ...
Altera_Forum
Honored Contributor
14 years agoFor (1) I've used a simple driver that gets the virtual address from pci_iomap() then in response to read/write requests (normally pread/pwrite) from the application does a copy_to/from_user() directly from the io space.
Remember to check the limit of the user copy! However this will be somewhat slow - you will almost certainly need to use DMA (initiated at either end) in order to get reasonable sized PCIe requests. Possibly very careful use of the data cache will suffice.