From: Stefan Hajnoczi <stefanha@gmail.com>
To: Ayaz Akram <aaqemu@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] DMA and e1000 networking driver
Date: Fri, 23 May 2014 14:22:06 +0200 [thread overview]
Message-ID: <20140523122206.GF1260@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CAC0+NVageK7+FOOjbogNmTqPYbBOJnnEHdWn8u11EA0eFa0Cpg@mail.gmail.com>
On Tue, May 20, 2014 at 11:24:29AM +0500, Ayaz Akram wrote:
> Can e1000 driver in linux be used without DMA involvement? Actually I am
> trying to use e1000 network driver on octeon linux( to be run on QEMU), and
> I have not emulated any DMA controller, so I was wondering if I can be able
> to run networking without DMA's involvement?
I'm not sure about Octeon Linux (MIPS64?) but PCI doesn't use a
dedicated DMA controller that is programmed by the CPU. Instead, the
PCI controller forwards requests to the memory bus automatically.
If you have doubts, check the Linux PCI controller code for your Octeon
hardware. Linux APIs like dma_map_single()/dma_unmap_single() should
call down into the Octeon PCI controller code and do whatever is
necessary to ensure the device or CPU see the current state of memory.
https://en.wikipedia.org/wiki/Direct_memory_access#PCI
Stefan
prev parent reply other threads:[~2014-05-23 12:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 6:24 [Qemu-devel] DMA and e1000 networking driver Ayaz Akram
2014-05-23 12:22 ` Stefan Hajnoczi [this message]
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=20140523122206.GF1260@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=aaqemu@gmail.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).