Skip to contentSkip to conversation

DMA transfer failing most of the time

Qemu-devel Jérôme Arbez-Gindre 1 participant 2 messages Sep 21, 2006 – Sep 22, 2006

lore
Share & tools
lore
#0 lore raw

Hi,
I'm writing a PCI board emulation in Qemu 0.8.1. (i386) I'm also writing the corresponding Linux 2.6 driver.

In the emulation, I'm performing DMA transfers by calls to

cpu_physical_memory_rw()

and then, I'm generating a interrupt.

In the Linux driver, in the interrupt handler, when I check the transferred data, the most of the time they are not updated and when after waiting a little (10ms), I check again the transferred data, and they are OK (most of the time).

In your opinion, is their something I'm missing ?

Any help would be appreciated.

Thanks,

Jérôme.

#1 lore raw
Quoted 15 lines · [email protected] (Jérôme Arbez-Gindre) writes:

Hi,
I'm writing a PCI board emulation in Qemu 0.8.1. (i386) I'm also writing the corresponding Linux 2.6 driver.

In the emulation, I'm performing DMA transfers by calls to

cpu_physical_memory_rw()

and then, I'm generating a interrupt.

In the Linux driver, in the interrupt handler, when I check the transferred data, the most of the time they are not updated and when after waiting a little (10ms), I check again the transferred data, and they are OK (most of the time).

Quoted 7 lines

In your opinion, is their something I'm missing ?

Any help would be appreciated.

Thanks,

Jérôme.

I have found my mistake, which had nothing to do with Qemu. Thanks and apologies.

Jérôme