From: David Hawkins <dwh@ovro.caltech.edu>
To: "Sauce.Cheng" <chmhou@sina.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: question : DMA of PCI bridge
Date: Tue, 19 May 2009 20:51:43 -0700 [thread overview]
Message-ID: <4A137E4F.4040900@ovro.caltech.edu> (raw)
In-Reply-To: <23628338.post@talk.nabble.com>
Hi,
> Now I attempt to fetch data from peripheral device to SDRAM, and it has been
> successed
>
> but how the DMA controller know the data bandwidth of src and dest.
>
> for example, if i get a 16bits data with a 32bits bus, and other 16bits will
> be set high
> and data will fetched into cache line of dma, then it will be wrote to
> 32bits SDRAM.
You'll need to give us a little more detail. For example,
what processor are you using to perform the transaction?
Your email title says DMA of PCI bridge, however, you
mention peripheral to SDRAM. Are you using a DMA controller
on the peripheral, eg. a PCI bus master, to DMA into the
host SDRAM, or are you using a host DMA controller to
DMA over PCI into memory on the host?
Whether or not you get packing bytes when you access a
16-bit device and transfer the data to a 32-bit destination
depends on how the device is mapped. For example, a 16-bit
device can be implemented such that it responds to 8-bit,
16-bit, and 32-bit requests, but the 32-bit requests will
require more wait-states, since the device has to be
read from twice before constructing a 32-bit word to
place on the PCI bus.
Its also possible that the DMA controller can be configured
to deal with different source and destination widths. However
without knowing what processor or DMA controller you are
asking about, theres not much to say.
Cheers,
Dave
next prev parent reply other threads:[~2009-05-20 3:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 3:19 question : DMA of PCI bridge Sauce.Cheng
2009-05-20 3:51 ` David Hawkins [this message]
2009-05-21 3:42 ` Sauce.Cheng
2009-05-21 3:57 ` David Hawkins
2009-05-22 3:24 ` Sauce.Cheng
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=4A137E4F.4040900@ovro.caltech.edu \
--to=dwh@ovro.caltech.edu \
--cc=chmhou@sina.com \
--cc=linuxppc-dev@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.