From: Eric Blake <eblake@redhat.com>
To: sfeldma@gmail.com, qemu-devel@nongnu.org, jiri@resnulli.us,
roopa@cumulusnetworks.com, john.fastabend@gmail.com
Subject: Re: [Qemu-devel] [PATCH 04/10] rocker: add register programming guide
Date: Mon, 05 Jan 2015 09:00:04 -0700 [thread overview]
Message-ID: <54AAB504.40604@redhat.com> (raw)
In-Reply-To: <1419916451-49258-5-git-send-email-sfeldma@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2862 bytes --]
On 12/29/2014 10:14 PM, sfeldma@gmail.com wrote:
> From: Scott Feldman <sfeldma@gmail.com>
>
> This is the register programming guide for the Rocker device. It's intended
> for driver writers and device writers. It covers the device's PCI space,
> the register set, DMA interface, and interrupts.
>
> Signed-off-by: Scott Feldman <sfeldma@gmail.com>
> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
> ---
> hw/net/rocker/reg_guide.txt | 957 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 957 insertions(+)
> create mode 100644 hw/net/rocker/reg_guide.txt
>
> diff --git a/hw/net/rocker/reg_guide.txt b/hw/net/rocker/reg_guide.txt
> new file mode 100644
> index 0000000..21ed9f7
> --- /dev/null
> +++ b/hw/net/rocker/reg_guide.txt
> @@ -0,0 +1,957 @@
> +Rocker Network Switch Register Programming Guide
> +Scott Feldman <sfeldma@gmail.com>
> +Neil Horman <nhorman@tuxdriver.com>
> +Version 0.11, 12/29/2014
> +
Missing a copyright and license clause. Although this means that it
defaults to GPLv2+, per the top-level files, it's better to be explicit
(especially if you intended a different license).
> +
> +XXXXX this section needs work A generation bit in each descriptors comp_err
You'll want to fix this in your v2 patch.
> +field marks hardware's progression through the descriptor ring. Each time the
> +ring wraps, the generation bit is toggled. The generation bit allows software
> +to know which descriptors are DMA complete. Software must also toggle its
> +sense of the generation bit each pass through the ring to remain synchronized
> +with hardware. Hardware will write '1' to generation bit on first pass through
> +ring, so software should zero-set descriptor ring memory to be syncronized with
s/syncronized/synchronized/
> +
> +Interrupt credits
> +^^^^^^^^^^^^^^^^^
> +
> +masked but the device generates an interrupt, signally the driver that more
s/signally/signaling/
> +outstansing work is available.
s/outstansing/outstanding/
> +
> +Various buffer address and sizes should be tested to verify no address boundary
> +issue exists. In particular, buffers that start on odd-8-byte boudary and/or
s/boudary/boundary/
> +SECTION 8: CPU Packet Processing
> +================================
> +
> +For packets ingressing on switch ports that are not forwarded by the switch but
> +rather directed to the host CPU for further processing are delievered in the
s/delievered/delivered/
> +Rx Packet Processing
> +--------------------
> +
> +For packets ingressing on switch ports that are not forwarded by the switch but
> +rather directed to the host CPU for further processing are delievered in the
again
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
prev parent reply other threads:[~2015-01-05 16:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-30 5:14 [Qemu-devel] [PATCH 04/10] rocker: add register programming guide sfeldma
2015-01-05 16:00 ` Eric Blake [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=54AAB504.40604@redhat.com \
--to=eblake@redhat.com \
--cc=jiri@resnulli.us \
--cc=john.fastabend@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=roopa@cumulusnetworks.com \
--cc=sfeldma@gmail.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).