ikwzm / udmabuf

User space mappable dma buffer device driver for Linux.
BSD 2-Clause "Simplified" License
560 stars 168 forks source link

Optimization flags #46

Open conradholt opened 4 years ago

conradholt commented 4 years ago

I'm using petalinux on a zynq ultrascale+ (aarch64-linux-gnu-gcc)

I have a dummy script initializing udma/dma and a custom fft accelerator, and sending data to the devices. Without optimization flags everything works fine. However as soon as I optimize for "-O1" sometimes it will finish executing the script and some others it will stall. And over "-O2" It will never finish executing.

Has anyone experienced something similar, Is there something that optimization flags could be doing to cause this behavior?