From: Sanjay Bajaj <sbajaj@tsi-telsys.com>
To: linuxppc-embedded@ozlabs.org
Subject: DMA Problem
Date: Wed, 20 Apr 2005 13:37:52 -0400 [thread overview]
Message-ID: <42669370.90706@tsi-telsys.com> (raw)
I am having a setup issue with the DMA channel 0 with the DMA Controller
on PPC440GX. The code I wrote is:
#if defined(CONFIG_PPC4xx_DMA)
/* Setup the DMA */
DPRINTK("PPC4xx pwidth: %d\n", ppc4xx_get_peripheral_width(DMA_CH0));
ppc4xx_set_dma_mode(DMA_CH0, DMA_MODE_READ);
ppc4xx_set_src_addr(DMA_CH0, (phys_addr_t)(pdev->x2mem_phys_addr +
src_addr));
ppc4xx_set_dst_addr(DMA_CH0, (phys_addr_t)dst_addr);
ppc4xx_set_dma_count(DMA_CH0, count);
ppc4xx_enable_dma(DMA_CH0);
DPRINTK("PPC4xx DMA Status: %d\n", ppc4xx_get_dma_status());
#endif
The DMA never completes and leaves a residue of 'count'. What am I missing?
Please Help.
Sanjay
next reply other threads:[~2005-04-20 17:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-20 17:37 Sanjay Bajaj [this message]
2005-04-21 20:42 ` [DBG SRC] Re: DMA Problem Roger Larsson
-- strict thread matches above, loose matches on Subject: below --
2004-01-16 20:45 DMA problem DOSProfi
2004-01-16 19:24 claude parisot
2004-01-16 19:32 ` Andreas Unterkircher
2004-01-16 19:42 ` claude parisot
2004-01-16 21:03 ` DOSProfi
2004-01-16 20:18 ` claude parisot
2004-01-16 19:50 ` Wes Janzen
2004-01-16 20:03 ` claude parisot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42669370.90706@tsi-telsys.com \
--to=sbajaj@tsi-telsys.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.