* [Qemu-devel] DMA and e1000 networking driver
@ 2014-05-20 6:24 Ayaz Akram
2014-05-23 12:22 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Ayaz Akram @ 2014-05-20 6:24 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
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?
[-- Attachment #2: Type: text/html, Size: 303 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] DMA and e1000 networking driver
2014-05-20 6:24 [Qemu-devel] DMA and e1000 networking driver Ayaz Akram
@ 2014-05-23 12:22 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2014-05-23 12:22 UTC (permalink / raw)
To: Ayaz Akram; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-23 12:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 6:24 [Qemu-devel] DMA and e1000 networking driver Ayaz Akram
2014-05-23 12:22 ` Stefan Hajnoczi
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).