From: Robert Hancock <hancockrwd@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: CPU Initiated DMA
Date: Sat, 08 Jan 2011 12:16:15 -0600 [thread overview]
Message-ID: <4D28A9EF.3050400@gmail.com> (raw)
In-Reply-To: <87mxncv3ge.fsf@inspiron.ap.columbia.edu>
On 01/07/2011 02:55 PM, Nikolaus Rath wrote:
> Hello,
>
> I want to write a driver for a rather dumb PCI card, which cannot become
> bus master itself. Is it possible to use a DMA controller on the
> mainboard to still transfer data to the card without occupying the CPU?
>
> (I believe this is the way DMA used to work on ISA cards, but do recent
> x86 systems still have a DMA controller for the CPU?)
The legacy ISA DMA controller worked like that, but you can't use that
with PCI devices. Essentially there is no way to do this, barring
perhaps some wierd platform specific feature.
This tends to be an issue with graphics card framebuffers in some cases.
You may be able to use ioremap_wc to map your device's MMIO region as
write-combining to reduce the amount of CPU overhead. However, note that
this can result in writes to the device being reordered.
>
> Any pointers are greatly appreciated. I looked into "Linux Device
> Drivers", but the DMA chapter seems to be only about the device becoming
> busmaster.
>
>
>
> Best,
>
> -Nikolaus
>
next prev parent reply other threads:[~2011-01-08 18:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 20:55 CPU Initiated DMA Nikolaus Rath
2011-01-08 18:16 ` Robert Hancock [this message]
2011-01-10 13:44 ` Steven J. Magnani
2011-01-10 14:21 ` Ming Lei
2011-01-10 17:08 ` Nikolaus Rath
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=4D28A9EF.3050400@gmail.com \
--to=hancockrwd@gmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox