linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* BD allocation and IDMA driver question
@ 2002-08-20  3:33 kas turi
  2002-08-20  4:35 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: kas turi @ 2002-08-20  3:33 UTC (permalink / raw)
  To: linuxppc-embedded


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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BD allocation and IDMA driver question
  2002-08-20  3:33 BD allocation and IDMA driver question kas turi
@ 2002-08-20  4:35 ` Dan Malek
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2002-08-20  4:35 UTC (permalink / raw)
  To: kas turi, linuxppc-embedded


kas turi wrote:

>  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.

> .... 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 :-)

> ..... 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.

>   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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-20  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-20  3:33 BD allocation and IDMA driver question kas turi
2002-08-20  4:35 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).