From: Stefan Hajnoczi <stefanha@gmail.com>
To: Roy Franz <roy.franz@linaro.org>
Cc: kwolf@redhat.com, peter.maydell@linaro.org,
peter.crosthwaite@xilinx.com, patches@linaro.org,
qemu-devel@nongnu.org, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH V2 0/2] net: Fix lan9118 multi-buffer transmit
Date: Mon, 13 Jan 2014 13:44:41 +0800 [thread overview]
Message-ID: <20140113054441.GC14770@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1389154792-6651-1-git-send-email-roy.franz@linaro.org>
On Tue, Jan 07, 2014 at 08:19:50PM -0800, Roy Franz wrote:
> This patchset fixes some bugs in the lan9118 emulation that were found
> while debugging UEFI network support on the emulated VExpress platform.
>
> The 9118 ethernet controller supports transmission of multi-buffer packets
> with arbitrary byte alignment of the start and end bytes of each buffer.
> All writes to the packet fifo are 32 bits, so the controller discards
> bytes at the beginning and end of each buffer based on the 'Data start
> offset' and 'Buffer size' of the TX command 'A' word.
>
> The UEFI network driver uses 1 buffer for the packet header, and one for
> the payload. The mishandling of the start offset and buffer length
> resulted in extra bytes being inserted in the packet.
>
> With these changes the UEFI network driver that works with the real 9118
> chip on the VExpress evaluation board works unmodified on QEMU. The Linux
> kernel driver continues to work on QEMU as well. Since the Linux driver
> was unaffected by these bugs I am inferring that it is using a single
> buffer for each packet.
>
> Changes since V1:
> * use extract32() instead of shift/mask for CMD A field extraction
> * compute number of valid bytes in word at beginning of block
>
> Roy Franz (2):
> Fix lan9118 TX "CMD A" handling
> Fix lan9118 buffer length handling
>
> hw/net/lan9118.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Thanks, applied to my net tree:
https://github.com/stefanha/qemu/commits/net
Stefan
prev parent reply other threads:[~2014-01-13 5:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 4:19 [Qemu-devel] [PATCH V2 0/2] net: Fix lan9118 multi-buffer transmit Roy Franz
2014-01-08 4:19 ` [Qemu-devel] [PATCH V2 1/2] Fix lan9118 TX "CMD A" handling Roy Franz
2014-01-08 4:49 ` Peter Crosthwaite
2014-01-08 4:19 ` [Qemu-devel] [PATCH V2 2/2] Fix lan9118 buffer length handling Roy Franz
2014-01-08 4:50 ` Peter Crosthwaite
2014-01-13 5:44 ` Stefan Hajnoczi [this message]
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=20140113054441.GC14770@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=kwolf@redhat.com \
--cc=patches@linaro.org \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=roy.franz@linaro.org \
--cc=stefanha@redhat.com \
/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).