DMA transfer failing most of the time
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.
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