From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39360 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Aer-0000FY-5M for qemu-devel@nongnu.org; Tue, 22 Mar 2011 19:06:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Aep-0000Pd-EO for qemu-devel@nongnu.org; Tue, 22 Mar 2011 19:06:37 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:57344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Aep-0000PJ-0L for qemu-devel@nongnu.org; Tue, 22 Mar 2011 19:06:35 -0400 Message-ID: <4D892B74.7040408@mail.berlios.de> Date: Wed, 23 Mar 2011 00:06:28 +0100 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] eepro100: feature is missing in this emulation: unknown word write References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------090409020509090803070107" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?U8OpYmFzdGllbiBCUklDRQ==?= Cc: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------090409020509090803070107 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 22.03.2011 22:03, schrieb Sébastien BRICE: > Le 21 mars 2011 22:48, Alex Williamson > a écrit : > > 2011/3/21 Sébastien BRICE >: > > 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. --------------090409020509090803070107 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Am 22.03.2011 22:03, schrieb Sébastien BRICE:
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

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.

--------------090409020509090803070107--