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: 2+ 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
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$(echo .)com \
--cc=linuxppc-embedded@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox