From: Timur Tabi <timur@codeaurora.org>
To: Florian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net, andrew@lunn.ch, sf84@laposte.net,
martin.blumenstingl@googlemail.com, mans@mansr.com,
alexandre.torgue@st.com, peppe.cavallaro@st.com,
jbrunet@baylibre.com
Subject: Re: [PATCH net-next v2 3/4] Documentation: net: phy: Add blurb about RGMII
Date: Sun, 27 Nov 2016 16:24:59 -0600 [thread overview]
Message-ID: <583B5D3B.4040108@codeaurora.org> (raw)
In-Reply-To: <20161127184449.12351-4-f.fainelli@gmail.com>
Just some grammatical corrections. You might want to run a spellchecker
on all the patches.
Florian Fainelli wrote:
> + The Reduced Gigabit Medium Independent Interface (RGMII) is a 12 pins
"is a 12-pin"
> + electrical signal interface using a synchronous 125Mhz clock signal and several
> + data lines. Due to this design decision, a 1.5ns to 2ns delay must be added
> + between the clock line (RXC or TXC) and the data lines to let the PHY (clock
> + sink) have enough setup and hold times to sample the data lines correctly. The
> + PHY library offers different types of PHY_INTERFACE_MODE_RGMII* values to let
> + the PHY driver and optionaly the MAC driver implement the required delay. The
"driver, and optionally the MAC driver, implement"
> + values of phy_interface_t must be understood from the perspective of the PHY
> + device itself, leading to the following:
> +
> + * PHY_INTERFACE_MODE_RGMII: the PHY is not responsible for inserting any
> + internal delay by itself, it assumes that either the Ethernet MAC (if capable
> + or the PCB traces) insert the correct 1.5-2ns delay
> +
> + * PHY_INTERFACE_MODE_RGMII_TXID: the PHY should be inserting an internal delay
"should insert"
> + for the transmit data lines (TXD[3:0]) processed by the PHY device
> +
> + * PHY_INTERFACE_MODE_RGMII_RXID: the PHY should be inserting an internal delay
"should insert"
> + for the receive data lines (RXD[3:0]) processed by the PHY device
> +
> + * PHY_INTERFACE_MODE_RGMII_ID: the PHY should be inserting internal delays for
"should insert"
> + both transmit AND receive data lines from/to the PHY device
> +
> + Whenever it is possible, it is preferrable to utilize the PHY side RGMII delay
> + for several reasons:
"Whenever possible, use the PHY side RGMII delay for these reasons:"
> + * PHY devices may offer sub-nanosecond granularity in how they allow a
> + receiver/transmitter side delay (e.g: 0.5, 1.0, 1.5ns) to be specified. Such
> + precision may be required to account for differences in PCB trace lengths
> +
> + * PHY devices are typically qualified for a large range of applications
> + (industrial, medical, automotive...), and they provide a constant and
> + reliable delay across temperature/pressure/voltage ranges
> +
> + * PHY device drivers in PHYLIB being reusable by nature, being able to
> + configure correctly a specified delay enables more designs with similar delay
> + requirements to be operate correctly
Ok, this one I don't know how to fix. I'm not really sure what you're
trying to say.
> +
> + For cases where the PHY is not capable of providing this delay, but the
> + Ethernet MAC driver is capable of doing it, the correct phy_interface_t value
"doing so,"
> + should be PHY_INTERFACE_MODE_RGMII, and the Ethernet MAC driver should be
> + configured correctly in order to provide the required transmit and/or receive
> + side delay from the perspective of the PHY device. Conversely, if the Ethernet
> + MAC driver looks at the phy_interface_t value, for any other mode but
> + PHY_INTERFACE_MODE_RGMII, it should make sure that the MAC-level delays are
> + disabled.
> +
> + In case neither the Ethernet MAC, nor the PHY are capable of providing the
> + required delays, as defined per the RGMII standard, several options may be
> + available:
> +
> + * Some SoCs may offer a pin pad/mux/controller capable of configuring a given
> + set of pins' drive strength, delays and voltage, and it may be a suitable
"strength, delays, and voltage; and"
> + option to insert the expected 2ns RGMII delay
> +
> + * Modifying the PCB design to include a fixed delay (e.g: using a specifically
> + designed serpentine), which may not require software configuration at all
period after "all".
> +
> +Common problems with RGMII delay mismatch
> +
> + When there is a RGMII delay mismatch between the Ethernet MAC and the PHY, this
> + will most likely result in the clock and data line sampling to capture unstable
I'm not sure what "sampling to capture unstable" is supposed to mean.
> + signals, typical symptoms include:
> +
> + * Transmission/reception partially works, and there is frequent or occasional
> + packet loss observed
> +
> + * Ethernet MAC may report some, or all packets ingressing with a FCS/CRC error,
No comma after "some".
> + or just discard them all
> +
> + * Switching to lower speeds such as 10/100Mbits/sec makes the problem go away
> + (since there is enough setup/hold time in that case)
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the
Code Aurora Forum, hosted by The Linux Foundation.
next prev parent reply other threads:[~2016-11-27 22:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-27 18:44 [PATCH net-next v2 0/4] Documentation: net: phy: Improve documentation Florian Fainelli
2016-11-27 18:44 ` [PATCH net-next v2 1/4] Documentation: net: phy: remove description of function pointers Florian Fainelli
2016-11-27 18:44 ` [PATCH net-next v2 2/4] Documentation: net: phy: Add a paragraph about pause frames/flow control Florian Fainelli
2016-11-28 10:38 ` Sebastian Frias
2016-11-28 17:33 ` Florian Fainelli
2016-11-30 13:20 ` Sebastian Frias
2016-11-27 18:44 ` [PATCH net-next v2 3/4] Documentation: net: phy: Add blurb about RGMII Florian Fainelli
2016-11-27 22:24 ` Timur Tabi [this message]
2016-11-27 23:02 ` Florian Fainelli
2016-11-30 12:32 ` David Laight
2016-11-30 13:43 ` Måns Rullgård
2016-11-28 10:34 ` Sebastian Frias
2016-11-28 17:43 ` Florian Fainelli
2016-11-28 19:15 ` Mason
2016-11-28 19:47 ` Florian Fainelli
2016-11-27 18:44 ` [PATCH net-next v2 4/4] Documentation: net: phy: Add links to several standards documents Florian Fainelli
2016-11-27 20:32 ` [PATCH net-next v2 0/4] Documentation: net: phy: Improve documentation Martin Blumenstingl
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=583B5D3B.4040108@codeaurora.org \
--to=timur@codeaurora.org \
--cc=alexandre.torgue@st.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=jbrunet@baylibre.com \
--cc=mans@mansr.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.com \
--cc=sf84@laposte.net \
/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).