linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC8540 DMA routines (channel 0 broken?)
@ 2005-07-15 15:01 Clemens Koller
  2005-07-18 12:37 ` Clemens Koller
  0 siblings, 1 reply; 6+ messages in thread
From: Clemens Koller @ 2005-07-15 15:01 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,

I am about to bring Jason McMullan's DMA routines up to linux-2.6
Currently I am in the process of getting the things started step
by step.

Until today I had a pretty hard time for some basic direct dma
transfers because it seems that dma channel 0 doesn't work at all
on my hardware (PPC8540PX833LB 2L71V MSIA QEAD0412).
The status register always stays 0x0 (means everything is happy and
okay) but it doesn't copy any data. I cannot even trigger a
programming error by a wrong configuration!
But when I let ch 1,2,3 do the work, everything
seems to work fine!
I havent found anything in the errata sheets or in the web.
Can a DMA machine crash that it stays completely unusable?
Have anybody seen similar things like that?

Some other questions:
I would also suggest to put my revised and almost
complete immap_85xx.h and the mpc85xx_dma module into the
current linux tree (Kumar?) to get things like that
started more easily.
Why is Jason's work not in the Kernel?

If you are fine with that, I can offer some patches.
But I first need to strip tons of the debug stuff from
the last two weeks. :-/

Best greets,

Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: MPC8540 DMA routines (channel 0 broken?)
@ 2005-07-18 12:42 Fillod Stephane
  2005-07-18 15:44 ` Clemens Koller
  0 siblings, 1 reply; 6+ messages in thread
From: Fillod Stephane @ 2005-07-18 12:42 UTC (permalink / raw)
  To: Clemens Koller; +Cc: linuxppc-embedded

Clemens Koller wrote:
>In the meanwhile, I got channel 0 working. It seems
>that the DMA#0 machine got stuck in some configuration from any
>previous (u-boot?) operation which didn't clean up things
>properly. I had to explicitly abort a (continously running?)
>transfer to be able to re-program it in the way I need.

Are you using a BDI2000?=20
Some init mode uses the DMA#0 for memory zeroing (see your .cfg file).
Also the DDR ECC U-boot code may use the DMA#0.
Isn't it possible to reset the DMA#0 from Linux?

Best regards,
--=20
Stephane

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

end of thread, other threads:[~2005-07-19 13:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 15:01 MPC8540 DMA routines (channel 0 broken?) Clemens Koller
2005-07-18 12:37 ` Clemens Koller
  -- strict thread matches above, loose matches on Subject: below --
2005-07-18 12:42 Fillod Stephane
2005-07-18 15:44 ` Clemens Koller
2005-07-18 16:17   ` Kumar Gala
2005-07-19 13:27     ` Clemens Koller

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