Skip to contentSkip to conversation

BD allocation and IDMA driver question

DISCUSSION kas turi 2 participants 2 messages Aug 20, 2002

lore
Share & tools
lore

kas turi

author
#0 lore raw

Hi
I would like to know what is the difference between
m8260_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/

#1 lore raw
Quoted 2 lines · kas turi

I would like to know what is the difference between
m8260_cpm_hostalloc and m8260_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_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.

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/