I'm trying to allocate mem for dma descriptor in chain mode, I need your help in allocation of dma descriptors and buffers. Suppose I have 10 descriptors and 512 bytes of data buffers, then I would allocate 10*sizeof(struct desc) amount of memory, similarily 512*10 bytes of memory for data buffers. Do I need to use dma_alloc_coherent() for allocating both dma desc and data buffers? Do both share same addr space?
Appreciate your help.
Thanks a lot