qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] eepro100: feature is missing in this emulation: unknown word write
@ 2011-03-22 21:03 Sébastien BRICE
  2011-03-22 23:06 ` Stefan Weil
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien BRICE @ 2011-03-22 21:03 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2875 bytes --]

Le 21 mars 2011 22:48, Alex Williamson <alex.williamson@redhat.com> a écrit
:

> 2011/3/21 Sébastien BRICE <seb@so-sweet.org>:
> > Hi everyone
> >
> > I have been using qemu-kvm with success the last two years and its really
> > amazing.
> > I am new to this mailing list and i am requesting your assistance because
> i
> > struggle to have my virtual card working with an 'exotic' virtual System
> >
> > seb@debian:~/qemu-kvm-0.14.0$ kvm -net nic,model=i82557b
> /media/prologue.img
> >
> >
> > Whatever i try the guest system never initializes the Intel 100 Pro NIC
> Card
> > as it is supposed to do
> >
> > And thats almost working with eep100.c source and -net nic,model=i82557b
> > option
> > But each time the qemu hangs with:
> >
> > eepro100: feature is missing in this emulation: unknown word write
> ...
> >     default:
> >         logout("addr=%s val=0x%04x\n", regname(addr), val);
> >         missing("unknown word write");
> >     }
> > }
>
> Can you set DEBUG_EEPRO100 in the source file, rebuild and let us know
> what extra debug output you get?  Just change the #if 0 around the
> define near the top of the file to #if 1.
>
> Alex
>

Thx you Alex
Here is what i have with DEBUG_EEPRO100 set in the eepro100.c source file

seb@debian:~/qemu_building/
qemu-kvm-0.14.0$ x86_64-softmmu/qemu-system-x86_64 -n nic,model=i82557b
prologue.img

*EE100   e100_nic_init
EE100   e100_pci_reset          0x2b5ba10
EE100   e100_nic_init           macaddr:  52 54 00 12 34 56
EE100   nic_reset               0x2b5ba10
EE100   nic_selective_reset     checksum=0xfd33
EE100   e100_nic_init           model=i82557b,macaddr=52:54:00:12:34:56
Warning: vlan 0 is not connected to host network
EE100   nic_reset               0x2b5ba10
EE100   nic_selective_reset     checksum=0xfd33
EE100   pci_mmio_map            region 0, addr=0xf2020000, size=0x00001000,
type=8
EE100   pci_map                 region 1, addr=0x0000c040, size=0x00000040,
type=1
EE100   pci_mmio_map            region 2, addr=0xf2040000, size=0x00020000,
type=0
EE100   eepro100_write2         addr=Port+0 val=0x0000
EE100   eepro100_write2         addr=Port+0 val=0x0000
eepro100: feature is missing in this emulation: unknown word write
EE100   eepro100_write2         addr=Port+2 val=0x0000
EE100   eepro100_write2         addr=Port+2 val=0x0000
eepro100: feature is missing in this emulation: unknown word write
EE100   eepro100_write2         addr=Port+0 val=0x1d01
EE100   eepro100_write2         addr=Port+0 val=0x1d01
eepro100: feature is missing in this emulation: unknown word write
EE100   eepro100_write2         addr=Port+2 val=0x07ff
EE100   eepro100_write2         addr=Port+2 val=0x07ff
*
its not crystal clear for me, do you have any clue to get this working a bit
better ?
thank you for your advices


Seb

[-- Attachment #2: Type: text/html, Size: 3792 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] eepro100: feature is missing in this emulation: unknown word write
  2011-03-22 21:03 [Qemu-devel] eepro100: feature is missing in this emulation: unknown word write Sébastien BRICE
@ 2011-03-22 23:06 ` Stefan Weil
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Weil @ 2011-03-22 23:06 UTC (permalink / raw)
  To: Sébastien BRICE; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 3507 bytes --]

Am 22.03.2011 22:03, schrieb Sébastien BRICE:
> Le 21 mars 2011 22:48, Alex Williamson <alex.williamson@redhat.com 
> <mailto:alex.williamson@redhat.com>> a écrit :
>
>     2011/3/21 Sébastien BRICE <seb@so-sweet.org
>     <mailto:seb@so-sweet.org>>:
>     > Hi everyone
>     >
>     > I have been using qemu-kvm with success the last two years and
>     its really
>     > amazing.
>     > I am new to this mailing list and i am requesting your
>     assistance because i
>     > struggle to have my virtual card working with an 'exotic'
>     virtual System
>     >
>     > seb@debian:~/qemu-kvm-0.14.0$ kvm -net nic,model=i82557b
>     /media/prologue.img
>     >
>     >
>     > Whatever i try the guest system never initializes the Intel 100
>     Pro NIC Card
>     > as it is supposed to do
>     >
>     > And thats almost working with eep100.c source and -net
>     nic,model=i82557b
>     > option
>     > But each time the qemu hangs with:
>     >
>     > eepro100: feature is missing in this emulation: unknown word write
>     ...
>     >     default:
>     >         logout("addr=%s val=0x%04x\n", regname(addr), val);
>     >         missing("unknown word write");
>     >     }
>     > }
>
>     Can you set DEBUG_EEPRO100 in the source file, rebuild and let us know
>     what extra debug output you get?  Just change the #if 0 around the
>     define near the top of the file to #if 1.
>
>     Alex
>
>
> Thx you Alex
> Here is what i have with DEBUG_EEPRO100 set in the eepro100.c source file
>
> seb@debian:~/qemu_building/
> qemu-kvm-0.14.0$ x86_64-softmmu/qemu-system-x86_64 -n 
> nic,model=i82557b prologue.img
>
> /EE100   e100_nic_init
> EE100   e100_pci_reset          0x2b5ba10
> EE100   e100_nic_init           macaddr:  52 54 00 12 34 56
> EE100   nic_reset               0x2b5ba10
> EE100   nic_selective_reset     checksum=0xfd33
> EE100   e100_nic_init           model=i82557b,macaddr=52:54:00:12:34:56
> Warning: vlan 0 is not connected to host network
> EE100   nic_reset               0x2b5ba10
> EE100   nic_selective_reset     checksum=0xfd33
> EE100   pci_mmio_map            region 0, addr=0xf2020000, 
> size=0x00001000, type=8
> EE100   pci_map                 region 1, addr=0x0000c040, 
> size=0x00000040, type=1
> EE100   pci_mmio_map            region 2, addr=0xf2040000, 
> size=0x00020000, type=0
> EE100   eepro100_write2         addr=Port+0 val=0x0000
> EE100   eepro100_write2         addr=Port+0 val=0x0000
> eepro100: feature is missing in this emulation: unknown word write
> EE100   eepro100_write2         addr=Port+2 val=0x0000
> EE100   eepro100_write2         addr=Port+2 val=0x0000
> eepro100: feature is missing in this emulation: unknown word write
> EE100   eepro100_write2         addr=Port+0 val=0x1d01
> EE100   eepro100_write2         addr=Port+0 val=0x1d01
> eepro100: feature is missing in this emulation: unknown word write
> EE100   eepro100_write2         addr=Port+2 val=0x07ff
> EE100   eepro100_write2         addr=Port+2 val=0x07ff
> /
> its not crystal clear for me, do you have any clue to get this working 
> a bit better ?
> thank you for your advices
>
> Seb

The current emulation only supports 32 bit writes to the "port" address.

I'll read the documentation to see how 16 bit writes should be handled
(obviously your image always writes lower and upper half of the 32 bit
value, and for this case, the solution might be simple).

Is prologue.img available online (so I can run your test scenario)?

Regards,
Stefan W.


[-- Attachment #2: Type: text/html, Size: 4675 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-22 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-22 21:03 [Qemu-devel] eepro100: feature is missing in this emulation: unknown word write Sébastien BRICE
2011-03-22 23:06 ` Stefan Weil

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).