From: Jerome Brunet <jbrunet-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
To: Martin Blumenstingl
<martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Cc: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org,
carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
will.deacon-5wv7dgnIgG8@public.gmane.org,
catalin.marinas-5wv7dgnIgG8@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH 0/5] meson-gx: reset RGMII PHYs and configure TX delay
Date: Tue, 17 Jan 2017 23:26:21 +0100 [thread overview]
Message-ID: <1484691981.26620.55.camel@baylibre.com> (raw)
In-Reply-To: <CAFBinCDvtufXUxe+cRCzOKFtbOqS-xEr0Vp=_0S4Pn+sTPHOmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Tue, 2017-01-17 at 22:09 +0100, Martin Blumenstingl wrote:
> On Tue, Jan 17, 2017 at 8:23 PM, Jerome Brunet <jbrunet-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> wrote:
> >
> > On Sat, 2016-12-03 at 00:47 +0100, Martin Blumenstingl wrote:
> > >
> > > This partially fixes the 1000Mbit/s ethernet TX throughput issues
> > > (on
> > > networks which are not affected by the EEE problem, as reported
> > > here:
> > > [1]).
> > > The actual problem for the TX throughput issues was that the TX
> > > delay
> > > was applied twice:
> > > - once "accidentally" by the PHY (this was fixed with [2])
> > > - once by the MAC because there was a hardcoded TX delay (of
> > > 2ns),
> > > this will be configurable with the changes from [0]
> > >
> > > These are the dts changes which belong to my other series (in v2
> > > these patches were part of the other series, upon request of the
> > > net maintainers I have split the .dts changes into their own
> > > series
> > > so
> > > we are able to take both through different trees):
> > > "[PATCH net-next v3 0/2] stmmac: dwmac-meson8b: configurable
> > > RGMII TX delay": [0].
> > > Thus this series depends on the ACK for the binding changes in
> > > the
> > > other series!
> > >
> > > I based these changes on my other series "[PATCH v2 0/2] GXL and
> > > GXM
> > > SCPI improvements": [3]
> > >
> > >
> > > [0] http://lists.infradead.org/pipermail/linux-amlogic/2016-Decem
> > > ber/
> > > 001834.html
> > > [1] http://lists.infradead.org/pipermail/linux-amlogic/2016-Novem
> > > ber/
> > > 001607.html
> > > [2] http://lists.infradead.org/pipermail/linux-amlogic/2016-Novem
> > > ber/
> > > 001707.html
> > > [3] http://lists.infradead.org/pipermail/linux-amlogic/2016-Decem
> > > ber/
> > > 001831.html
> > >
> > > Martin Blumenstingl (5):
> > > ARM64: dts: meson-gx: move the MDIO node to meson-gx
> >
> > Sorry for the late reply, I've only been able to test this
> > yesterday.
> >
> > With "snps,dwmac-mdio" provided in meson-gx.dtsi, the mdio_node is
> > defined in stmmac_mdio_register and auto-detection of the PHY is
> > disabled for all meson-gx boards.
> >
> > I wonder if this is desirable ? or maybe this something we could
> > fix in
> > stmmac ? (perform auto-detect the mdio bus is provided without a
> > PHY)
> actually it's only a "problem" when introducing support for new
> devices. can you please forward this question to the stmmac
> maintainers, as I think your idea of enabling auto-detection when
> there are no children in the MDIO-bus makes sense
That's one way to address the issue, sure. I just wonder if we should
keep the declaration of the mdio bus with "snps,dwmac-mdio" in the dts
using it, with the phy explicitly declared ...
Otherwise, we have to make clear that you must always explicitly
declare your PHY in amlogic's dts so there is no surprise.
As you mentioned, we missed the gxbb-nexbox-a95. No phy declared in
that dts, but it still get the mdio bus from meson-gx.dtsi. So as of
"ARM64: dts: meson-gx: move the MDIO node to meson-gx" the PHY is not
detected on this board.
>
> >
> > Also, I think bisect is broken between patch 1 and patch 4: The PHY
> > of
> > some boards won't be detected between these patches. Should we
> > squash
> > them ?
> what do you mean exactly? currently the TX-delay is hardcoded in
> dwmac-meson8b. patch 4 moves the hardcoded value from the
> dwmac-meson8b to the .dts-files.
> unfortunately the corresponding dwmac-meson8b patch was not accepted
> yet, so at the moment patch 4 should be a no-op.
Nothing related to the tx-delay ... I'm all for it ;) Thx for your work
by the way
What I meant is that as of "ARM64: dts: meson-gx: move the MDIO node to
meson-gx" all boards not declaring the PHY explicitly can't detect it
anymore. that's more or less all gxbb boards
With "ARM64: dts: meson-gxbb-odroidc2: add reset for the ethernet PHY"
the odroid gets fixed ... but the p200 and vega-s95 are still broken
With the next patch, the p200 is/should have been fixed, then the vega-
s95 is fixed
In the end the gxbb-nexbox is still broken. To be honest I did not
verify if there any other board in that case.
My point is that I think the declaration of the mdio bus in meson-
gx.dtsi and the declaration of each PHY in the board dtss should be
done in single commit to avoid having a (very) short part of the
history with regressions
>
> >
> > >
> > > ARM64: dts: meson-gxbb-odroidc2: add reset for the ethernet PHY
> > > ARM64: dts: meson-gxbb-p20x: add reset for the ethernet PHY
> > > ARM64: dts: meson-gxbb-vega-s95: add reset for the ethernet PHY
> > > ARM64: dts: amlogic: add the ethernet TX delay configuration
> > >
> >
> > Last remark, about the use of ethernet-phy-idXXXX.XXXX in the
> > odroid
> > and the vega: Isn't it better to let phylib do the autodetection of
> > the
> > phy id ?
> >
> > If we want to specify the id in DT, we should probably add it for
> > the
> > Micrel PHY of the p200 as well, for consistency.
> this seems to be a "best practice" when the PHY ID is known, see [0]
> If you know the PHY ID of the Micrel PHY then please let me know,
> then
> we can include this in the fix for the p20x boards
OK
>
> >
> > >
> > > arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 6 ++++++
> > > arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 17
> > > +++++++++++++++++
> > > arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 17
> > > +++++++++++++++++
> > > arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 17
> > > +++++++++++++++++
> > > arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts | 2 ++
> > > arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 6 ------
> > > arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts | 2 ++
> > > arch/arm64/boot/dts/amlogic/meson-gxm-s912-q200.dts | 2 ++
> > > 8 files changed, 63 insertions(+), 6 deletions(-)
> > >
>
> [0] http://lxr.free-electrons.com/source/Documentation/devicetree/bin
> dings/net/phy.txt#L22
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-01-17 22:26 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-02 23:47 [PATCH 0/5] meson-gx: reset RGMII PHYs and configure TX delay Martin Blumenstingl
2016-12-02 23:47 ` [PATCH 1/5] ARM64: dts: meson-gx: move the MDIO node to meson-gx Martin Blumenstingl
2016-12-02 23:47 ` [PATCH 2/5] ARM64: dts: meson-gxbb-odroidc2: add reset for the ethernet PHY Martin Blumenstingl
2016-12-02 23:47 ` [PATCH 3/5] ARM64: dts: meson-gxbb-p20x: " Martin Blumenstingl
[not found] ` <20161202234739.22929-4-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-17 19:22 ` Jerome Brunet
2017-01-17 21:26 ` Martin Blumenstingl
[not found] ` <CAFBinCBfJ4b1a1Bqn7kJHyj79i8UJnjJh00u3NvARzJPuUmrNA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-18 10:36 ` Jerome Brunet
[not found] ` <1484735769.26620.69.camel-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2017-01-18 14:26 ` Martin Blumenstingl
2016-12-02 23:47 ` [PATCH 4/5] ARM64: dts: meson-gxbb-vega-s95: " Martin Blumenstingl
2016-12-02 23:47 ` [PATCH 5/5] ARM64: dts: amlogic: add the ethernet TX delay configuration Martin Blumenstingl
[not found] ` <20161202234739.22929-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2016-12-17 20:36 ` [PATCH 0/5] meson-gx: reset RGMII PHYs and configure TX delay Martin Blumenstingl
[not found] ` <CAFBinCDpBew7wreNPn6=J3jKsw_Ok=Ed9_+Gxsefb661RvUdrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-09 22:52 ` Kevin Hilman
2017-01-17 19:23 ` Jerome Brunet
2017-01-17 21:09 ` Martin Blumenstingl
[not found] ` <CAFBinCDvtufXUxe+cRCzOKFtbOqS-xEr0Vp=_0S4Pn+sTPHOmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-17 22:26 ` Jerome Brunet [this message]
[not found] ` <1484691981.26620.55.camel-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2017-01-17 22:44 ` Martin Blumenstingl
2017-01-18 19:28 ` Kevin Hilman
2017-01-18 19:40 ` Martin Blumenstingl
2017-01-19 9:47 ` Jerome Brunet
2017-01-20 13:26 ` [PATCH v2 0/9] " Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 3/9] ARM64: dts: meson-gxbb-vega-s95: add the ethernet PHY's reset GPIO Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 7/9] ARM64: dts: meson-gxbb-p20x: remove the ethernet node Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 8/9] ARM64: dts: amlogic: add the ethernet TX delay configuration Martin Blumenstingl
[not found] ` <20170120132650.9784-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-20 13:26 ` [PATCH v2 1/9] ARM64: dts: meson-gxbb-odroidc2: add the ethernet PHY's reset GPIO Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 2/9] ARM64: dts: meson-gxbb-p201: " Martin Blumenstingl
[not found] ` <20170120132650.9784-3-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-20 13:31 ` Neil Armstrong
2017-01-20 13:33 ` Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 4/9] ARM64: dts: meson-gxbb-nexbox-a95x: " Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 5/9] ARM64: dts: meson-gxbb-wetek-hub: " Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 6/9] ARM64: dts: meson-gxbb-wetek-play2: " Martin Blumenstingl
2017-01-20 13:26 ` [PATCH v2 9/9] ARM64: dts: meson-gx: remove the phy-mode property from meson-gx Martin Blumenstingl
2017-01-20 15:22 ` [PATCH v3 0/9] meson-gx: reset RGMII PHYs and configure TX delay Martin Blumenstingl
[not found] ` <20170120152232.13943-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-20 15:22 ` [PATCH v3 1/9] ARM64: dts: meson-gxbb-odroidc2: add the ethernet PHY's reset GPIO Martin Blumenstingl
[not found] ` <20170120152232.13943-2-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-20 16:23 ` Neil Armstrong
2017-01-20 15:22 ` [PATCH v3 2/9] ARM64: dts: meson-gxbb-p200: " Martin Blumenstingl
[not found] ` <20170120152232.13943-3-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-20 16:18 ` Andrew Lunn
2017-01-20 16:21 ` Andrew Lunn
[not found] ` <20170120162138.GE25907-g2DYL2Zd6BY@public.gmane.org>
2017-01-20 17:07 ` Martin Blumenstingl
[not found] ` <CAFBinCA47Nng_jjxKrWrV_YBHr0bg+7xPaJrVswt_WnZ6wtyjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-20 17:46 ` Andrew Lunn
[not found] ` <20170120174658.GG25907-g2DYL2Zd6BY@public.gmane.org>
2017-01-22 16:48 ` Martin Blumenstingl
2017-01-20 16:23 ` Neil Armstrong
2017-01-20 15:22 ` [PATCH v3 3/9] ARM64: dts: meson-gxbb-vega-s95: " Martin Blumenstingl
2017-01-20 15:22 ` [PATCH v3 4/9] ARM64: dts: meson-gxbb-nexbox-a95x: " Martin Blumenstingl
2017-01-20 16:23 ` Neil Armstrong
2017-01-20 15:22 ` [PATCH v3 5/9] ARM64: dts: meson-gxbb-wetek-hub: " Martin Blumenstingl
2017-01-20 15:22 ` [PATCH v3 6/9] ARM64: dts: meson-gxbb-wetek-play2: " Martin Blumenstingl
2017-01-20 16:23 ` Neil Armstrong
2017-01-20 15:22 ` [PATCH v3 7/9] ARM64: dts: meson-gxbb-p201: fix ethernet support Martin Blumenstingl
2017-01-20 15:22 ` [PATCH v3 8/9] ARM64: dts: amlogic: add the ethernet TX delay configuration Martin Blumenstingl
2017-01-20 16:34 ` Neil Armstrong
2017-01-20 15:22 ` [PATCH v3 9/9] ARM64: dts: meson-gx: remove the phy-mode property from meson-gx Martin Blumenstingl
2017-01-20 15:32 ` [PATCH v3 0/9] meson-gx: reset RGMII PHYs and configure TX delay Martin Blumenstingl
2017-01-20 19:46 ` Kevin Hilman
2017-01-22 18:10 ` [PATCH v4 " Martin Blumenstingl
[not found] ` <20170122181028.5014-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-22 18:10 ` [PATCH v4 1/9] ARM64: dts: meson-gxbb-odroidc2: add the ethernet PHY's reset GPIO Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 2/9] ARM64: dts: meson-gxbb-p200: " Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 3/9] ARM64: dts: meson-gxbb-vega-s95: " Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 4/9] ARM64: dts: meson-gxbb-nexbox-a95x: " Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 5/9] ARM64: dts: meson-gxbb-wetek-hub: " Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 6/9] ARM64: dts: meson-gxbb-wetek-play2: " Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 7/9] ARM64: dts: meson-gxbb-p201: fix ethernet support Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 8/9] ARM64: dts: amlogic: add the ethernet TX delay configuration Martin Blumenstingl
2017-01-22 18:10 ` [PATCH v4 9/9] ARM64: dts: meson-gx: remove the phy-mode property from meson-gx Martin Blumenstingl
2017-01-23 18:55 ` [PATCH v4 0/9] meson-gx: reset RGMII PHYs and configure TX delay Kevin Hilman
[not found] ` <m24m0p38sk.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2017-01-23 19:02 ` Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 " Martin Blumenstingl
[not found] ` <20170219214149.30418-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-02-19 21:41 ` [PATCH v5 1/9] ARM64: dts: meson-gxbb-odroidc2: add the ethernet PHY's reset GPIO Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 2/9] ARM64: dts: meson-gxbb-p200: " Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 3/9] ARM64: dts: meson-gxbb-vega-s95: " Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 4/9] ARM64: dts: meson-gxbb-nexbox-a95x: " Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 5/9] ARM64: dts: meson-gxbb-wetek-hub: " Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 6/9] ARM64: dts: meson-gxbb-wetek-play2: " Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 7/9] ARM64: dts: meson-gxbb-p201: fix ethernet support Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 8/9] ARM64: dts: amlogic: add the ethernet TX delay configuration Martin Blumenstingl
2017-02-19 21:41 ` [PATCH v5 9/9] ARM64: dts: meson-gx: remove the phy-mode property from meson-gx Martin Blumenstingl
2017-02-20 9:08 ` [PATCH v5 0/9] meson-gx: reset RGMII PHYs and configure TX delay Jerome Brunet
2017-03-02 17:02 ` Kevin Hilman
2017-01-20 15:27 ` [PATCH v3 " Jerome Brunet
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=1484691981.26620.55.camel@baylibre.com \
--to=jbrunet-rdvid1duhrbwk0htik3j/w@public.gmane.org \
--cc=carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org \
--cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
--cc=linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=will.deacon-5wv7dgnIgG8@public.gmane.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).