Xilinx / dma_ip_drivers

Xilinx QDMA IP Drivers
https://xilinx.github.io/dma_ip_drivers/
562 stars 415 forks source link

I wonder if extra calculation logic is correct in xdma_init_request function #249

Open YongjunYu77 opened 9 months ago

YongjunYu77 commented 9 months ago

https://github.com/Xilinx/dma_ip_drivers/blame/a93d4a4870e41d152b33aebb3f869eefb11aa691/XDMA/linux-kernel/xdma/libxdma.c#L3110

extra calculation logic is correct? extra += (len + desc_blen_max - 1) / desc_blen_max;

I think below statement is correct. please check this. extra += (len - 1) / desc_blen_max;