QEMU pcnet 6/28 patch against 6/30 CVS - not working?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · David Black
Hello,
I applied your AMD pcnet NIC patch dated 6/28, to the QEMU CVS snapshot from dad-answers.com dated 6/30.
The patch seems to apply well, with some manual patching needed on
vl.cand Makefile.target, but nothing that looked problematic.
The patch attached should apply more cleanly against current CVS.
I will try to see if it works any differently with running Linux. I assume you are using the pcnet32 driver, not the lance driver. Looking at the Linux driver source, it is able to use the DWORD I/O mode ... The FreeBSD, WinXP and OS/2 drivers appear to use the WORD I/O mode. It is possible that there is a bug in the simulation - particularly where the Linux driver probes the card in both modes. I will have to test it out.
Signature · 1 line
Antony T Curtis <[email protected]>
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
This new patch works for me with Mandrake 10 Official
It should apply cleanly against QEMU CVS and hopefully compile cleanly on Linux as well as FreeBSD. I have also implemented the TX-ring poll so in theory, it should be fully functional.
Quoted 42 lines · David Black
Thanks - yes, it's the 'pcnet' driver, and it comes up in 32 bit mode:
Jul 1 14:04:22 vs1a kernel: pcnet32.c:v1.27b 01.10.2002 [email protected] Jul 1 14:04:22 vs1a kernel: PCI: Found IRQ 9 for device 0000:00:03.0 Jul 1 14:04:22 vs1a kernel: PCI: Setting latency timer of device 0000:00:03.0 to 64 Jul 1 14:04:22 vs1a kernel: pcnet32: PCnet/PCI II 79C970A at 0xc020, warning: CSR address invalid, Jul 1 14:04:22 vs1a kernel: using instead PROM address of 52 54 00 12 34 56 assigned IRQ 9. Jul 1 14:04:22 vs1a kernel: eth0: registered as PCnet/PCI II 79C970A Jul 1 14:04:22 vs1a kernel: pcnet32: 1 cards_found.This driver is attractive to me because of the promise of decreased latency. I get occasional data corruption with the ne2k-pci driver, too.
Dave
Quoted 10 lines · Antony T Curtis
Quoted 8 lines · David Black
Hello,
I applied your AMD pcnet NIC patch dated 6/28, to the QEMU CVS snapshot from dad-answers.com dated 6/30.
The patch seems to apply well, with some manual patching needed on
vl.cand Makefile.target, but nothing that looked problematic.Quoted 10 lines
The patch attached should apply more cleanly against current CVS.
I will try to see if it works any differently with running Linux. I assume you are using the pcnet32 driver, not the lance driver. Looking at the Linux driver source, it is able to use the DWORD I/O mode ... The FreeBSD, WinXP and OS/2 drivers appear to use the WORD I/O mode. It is possible that there is a bug in the simulation - particularly where the Linux driver probes the card in both modes. I will have to test it out.
FLAGS (\Seen))
Signature · 1 line
Antony T Curtis <[email protected]>
Quoted 7 lines · Antony T Curtis
Hi,
This new patch works for me with Mandrake 10 Official
It should apply cleanly against QEMU CVS and hopefully compile cleanly on Linux as well as FreeBSD. I have also implemented the TX-ring poll so in theory, it should be fully functional.
I updated your patch on my web site.
Thanks,
Hetz
Hi
I have updated the patch yet again... What this new patch provides:
Fixes a bug in MMIO: fixes NetBSD.
Less bugs - fewer structures to go wrong.
Fewer data-copying. But I don't think it is endian-safe, so may not work on big-endian systems.
Hope more people could give this a go...
Quoted 15 lines · Hetz Ben Hamo
Quoted 7 lines · Antony T Curtis
Hi,
This new patch works for me with Mandrake 10 Official
It should apply cleanly against QEMU CVS and hopefully compile cleanly on Linux as well as FreeBSD. I have also implemented the TX-ring poll so in theory, it should be fully functional.
I updated your patch on my web site.
Thanks,
HetzFLAGS (\Seen))
Signature · 1 line
Antony T Curtis <[email protected]>
Hi Anthony,
The patch installed and compiled cleanly on my slackware based 9.x box. I experimented a little bit with it and made the following "quick-n-dirty" cursory comparison beteen the QEMU realtek-8029 and pcnet "cards" via an scp of 10MB file between host & guest:
openbsd x86 3.5:
pcnet: 238kb/s "average."
realtek-8029: 276kb/s "average."
freebsd x86 5.2.1:
pcnet: 289kb/s "average."
realtec-8029: 262kb/s "average"
netbsd x86 1.6.1:
pcnet: no data (hangs). note: machid is getting set
now, ping works, but little else appears to....
realtec-8029: 320kb/s "average" note: occasional
console message: ne2: remote transmit DMA failed to complete
I'm interested in experimenting w/ adding an etherboot rom to your pcnet code, and a tftp server into the slirp code to pass the -kernel and -initrd parameter arguments to a network boot client via tftp. Can you give me any quick pointers on hooking the rom into your code ?
--- Antony T Curtis <[email protected]>
Quoted 66 lines · wrote:
Hi,
This new patch works for me with Mandrake 10
OfficialIt should apply cleanly against QEMU CVS and hopefully compile cleanly
on Linux as well as FreeBSD. I have also implemented the TX-ring poll so
in theory, it should be fully functional.Quoted 1 line · David Black
Thanks - yes, it's the 'pcnet' driver, and it
comes up in 32 bit mode:
Quoted 2 lines
Jul 1 14:04:22 vs1a kernel: pcnet32.c:v1.27b01.10.2002
Quoted 2 lines
Jul 1 14:04:22 vs1a kernel: PCI: Found IRQ 9 fordevice 0000:00:03.0
Quoted 1 line
Jul 1 14:04:22 vs1a kernel: PCI: Setting latencytimer of device
Quoted 2 lines
0000:00:03.0 to 64
Jul 1 14:04:22 vs1a kernel: pcnet32: PCnet/PCI II79C970A at
0xc020,Quoted 2 lines
warning: CSR address invalid,
Jul 1 14:04:22 vs1a kernel: using insteadPROM address of 52 54
Quoted 2 lines
00 12 34 56 assigned IRQ 9.
Jul 1 14:04:22 vs1a kernel: eth0: registered asPCnet/PCI II 79C970A
Quoted 1 line
Jul 1 14:04:22 vs1a kernel: pcnet32: 1
cards_found.Quoted 2 lines
This driver is attractive to me because of the
promise of decreased
Quoted 1 line
latency. I get occasional data corruption with
the ne2k-pci driver,
Quoted 10 lines
too.
Dave
Quoted 5 lines · Antony T Curtis
Quoted 3 lines · David Black
Hello,
I applied your AMD pcnet NIC patch dated 6/28,
to the QEMU CVS snapshot
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
from dad-answers.com dated 6/30.
The patch seems to apply well, with some
manual patching needed on
vl.cQuoted 1 line
Quoted 1 line
Quoted 1 line
and Makefile.target, but nothing that looked
problematic.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
The patch attached should apply more cleanly
against current CVS.
Quoted 2 lines
Quoted 2 lines
I will try to see if it works any differently
with running Linux. I
Quoted 1 line
Quoted 1 line
assume you are using the pcnet32 driver, not the
lance driver. Looking
Quoted 1 line
Quoted 1 line
at the Linux driver source, it is able to use
the DWORD I/O mode ... The
Quoted 1 line
Quoted 1 line
FreeBSD, WinXP and OS/2 drivers appear to use
Quoted 13 lines
the WORD I/O mode. It is
Quoted 1 line
Quoted 1 line
possible that there is a bug in the simulation -
particularly where the
Quoted 1 line
Quoted 1 line
Linux driver probes the card in both modes. I
will have to test it out.
Quoted 3 lines
Quoted 2 lines
FLAGS (\Seen))
Signature · 4 lines
Antony T Curtis <[email protected]> ATTACHMENT part 2 application/x-gzip
name=qemu-pcnet.patch3.gz
Quoted 5 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com