qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: aliguori@us.ibm.com, mst@redhat.com, qemu-devel@nongnu.org,
	Juergen Lock <nox@jelal.kn-bremen.de>,
	benjamin.poirier@gmail.com, Frediano Ziglio <freddy77@gmail.com>,
	aurelien@aurel32.net
Subject: Re: [Qemu-devel] RFC: rtl8139 improvements
Date: Tue, 06 Mar 2012 11:15:45 +0800	[thread overview]
Message-ID: <4F558161.70103@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1203050722230.12164@bbs.intern>

On 03/05/2012 02:48 PM, Gerhard Wiesinger wrote:
> Hello,
>
> I'm trying to implement better emulation and wider OS support for the 
> rtl8139 card. Therefore I want to see the following testcases to be 
> successful:
>
>  * Testcases and successful regression tests:
>  * 1.) DOS RSET8139.EXE: EEPROM Test successful
>  * 2.) DOS RSET8139.EXE: Local loopback Test (Run Diagnostics On Board)
>  * 3.) DOS RSET8139.EXE: Remote loopback Test as Initiator (Run 
> Diagnostics On Network)
>  * 4.) DOS RSET8139.EXE: Remote loopback Test as Responder (Run 
> Diagnostics On Network)
>  * 5.) DOS driver: Loads and works
>  * 6.) Linux tests
>  * 7.) Windows tests
>
> I fixed already a major bug in DMA handling and (real hardware doesn't 
> reset DMA register to 0 on reset condition as DOS driver crashes OS, 
> see patch for details) and improved EEPROM handling and checksumming 
> as well as unimplemented register handling (As Jason did partially in 
> latest patch).
>
> But finally testcases 1-4 aren't successful, testcase 5 (DOS driver 
> and MS SMB client) works but I think there are still problems, see below.
>
> Details:
> Ad 1.) EERPOM Test: I also copied a full EEPROM from real hardware but 
> still no success. According to the logs everything is read correctly. 
> Also verified checksumming to real hardware . Any ideas?
> (Attached rtl8139-diag.c will also help to diagnose)
>
> Ad 2.) Local Loopback Test: One packet succeeds, other fail. Any ideas 
> what might be wrong?
>
> Ad 5.) DOS driver loads and also works but I think there is still a 
> strange thing in packet receiving and possible sending (e.g. DHCP 
> request is done twice). I also did some change in packet handling. See 
> patch.
>
> To get this to work I'm a little bit lost now and I need your help and 
> comments and suggestions.

Hi, it's better to split the patch into small ones, each one for a 
dedicated feature/fixe. This would let the reviewing and bisecting more 
easier, and you could easily check which patch does the wrong thing.
>
> Can someone also make tests under DOS with RSET8139.EXE?
> I think it is a good testing program how good our emulation is.
>
> RSET8139.EXE can be found at:
> http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=14&PFid=6&Level=5&Conn=4&DownTypeID=3&GetDown=false 
>
> Look for DOS Diagnostic program (RSET8139).
>
> Patch is attached as diff and not indented to be used as regular patch 
> since not ready for commit.
>
> Thnx.
>
> Ciao,
> Gerhard
>
> -- 
> http://www.wiesinger.com/

  reply	other threads:[~2012-03-06  3:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-05  6:48 [Qemu-devel] RFC: rtl8139 improvements Gerhard Wiesinger
2012-03-06  3:15 ` Jason Wang [this message]
2012-03-07  6:40 ` Gerhard Wiesinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F558161.70103@redhat.com \
    --to=jasowang@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=aurelien@aurel32.net \
    --cc=benjamin.poirier@gmail.com \
    --cc=freddy77@gmail.com \
    --cc=lists@wiesinger.com \
    --cc=mst@redhat.com \
    --cc=nox@jelal.kn-bremen.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).