cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
772 Views
Registered: ‎05-18-2018

PCIe Driver(AR65444) 4K posix_memalign

Hi 

We are using AR65444 PCIe driver for linux , and we would like to understand why 4K posix_memalign is required, what is the reason for it ?

Thank you in advanced.

Tags (1)
0 Kudos
2 Replies
venkata
Moderator
Moderator
748 Views
Registered: ‎02-16-2010

leomcwong@astri.org

Are you referring to the threads mentioned below?

https://forums.xilinx.com/t5/PCI-Express/AR-65444-transferCount-larger-than-1/td-p/743417

https://forums.xilinx.com/t5/SDAccel/Overlapping-host-and-kernel-execution-Kernel-created-by-RTL/td-p/871009

------------------------------------------------------------------------------
Don't forget to reply, give kudo and accept as solution
------------------------------------------------------------------------------
0 Kudos
739 Views
Registered: ‎05-18-2018

Hi Venkata,

I want to know the reason of the memory allocation with 4K alignment in userspace application demo (tools/dma_from_device.c) as below.

posix_memalign((void **)&allocated, 4096 /*alignment */ , size + 4096);

Thank you.

0 Kudos