BD allocation and IDMA driver question
Hi
I would like to know what is the difference betweenm8260_cpm_hostalloc and m8260_dp_alloc. The FCC driver uses the former API and the serial driver uses the latter API. When I try to use m8260_cpm_hostalloc to allocate buffer descriptor for the SPI driver the timesys 2.4 kernel hangs. When I use m8260_dp_alloc the SPI driver works.
Has anybody developed a IDMA driver for 8260 for 2.4
kernel?
Thanks in advance.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 2 lines · kas turi
I would like to know what is the difference between
m8260_cpm_hostallocandm8260_dp_alloc.
The 'hostalloc' allocates from a small pool of host memory. This is usually used for small FIFOs as there is only a page or so for use by the entire system. The 'dp_alloc' allocates from the CPM dual ported memory.
Quoted 3 lines
.... The FCC driver
uses the former API and the serial driver uses the latter API.
If you would read the comment in the FCC driver, you may understand why :-)
Quoted 4 lines
..... When I try to use
m8260_cpm_hostallocto allocate buffer descriptor for the SPI driver the timesys 2.4 kernel hangs. When I usem8260_dp_allocthe SPI driver works.
The 'hostalloc' returns a kernel virtual address. You have to convert this to a physical address for the CPM DMA.
Quoted 2 lines
Has anybody developed a IDMA driver for 8260 for 2.4
kernel?
There have been discussions about it on this mailing list. You may wish to search the archives for more information.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/