All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Hershberger <joe.hershberger@ni.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Pull request: u-boot-net.git master
Date: Fri, 10 May 2019 21:50:45 +0000	[thread overview]
Message-ID: <CANr=Z=aaAxL_mx=gDrv=Z+jEhSaoYa0KMbFBd3bSkcRsD63ziA@mail.gmail.com> (raw)
In-Reply-To: <DB7PR04MB5163C8B6102851E0730451CAE0330@DB7PR04MB5163.eurprd04.prod.outlook.com>

Hi Vladimir and Tom,

On Thu, May 9, 2019 at 7:51 AM Vladimir Oltean <vladimir.oltean@nxp.com> wrote:
>
> On 09.05.2019 02:05, Vladimir Oltean wrote:
> > On 5/9/19 1:55 AM, Tom Rini wrote:
> >> On Wed, May 08, 2019 at 10:52:28PM +0000, Vladimir Oltean wrote:
> >>> On 5/9/19 1:48 AM, Tom Rini wrote:
> >>>> On Wed, May 08, 2019 at 10:45:50PM +0000, Vladimir Oltean wrote:
> >>>>> On 5/9/19 1:42 AM, Tom Rini wrote:
> >>>>>> On Wed, May 08, 2019 at 10:40:57PM +0000, Vladimir Oltean wrote:
> >>>>>>> On 5/9/19 1:24 AM, Joe Hershberger wrote:
> >>>>>>>> On Tue, May 7, 2019 at 5:15 PM Joe Hershberger <joe.hershberger@ni.com> wrote:
> >>>>>>>>>
> >>>>>>>>> Hi Tom,
> >>>>>>>>>
> >>>>>>>>> The following changes since commit 8d7f06bbbef16f172cd5e9c4923cdcebe16b8980:
> >>>>>>>>>
> >>>>>>>>> I rebased on your master and built for BB Black. DHCP seems to work fine.
> >>>>>>>>> MLO also now fits again.
> >>>>>>>>>
> >>>>>>>>>        Merge branch 'master' of git://git.denx.de/u-boot-sh (2019-05-07 09:38:00 -0400)
> >>>>>>>>>
> >>>>>>>>> are available in the git repository at:
> >>>>>>>>>
> >>>>>>>>>        git://git.denx.de/u-boot-net.git master
> >>>>>>>>>
> >>>>>>>>> for you to fetch changes up to 8d0c6858455e89b089222a08d55ff711681ca011:
> >>>>>>>>>
> >>>>>>>>>        net: phy: micrel: Find Micrel PHY node correctly (2019-05-07 14:51:55 -0500)
> >>>>>>>>>
> >>>>>>>>> ----------------------------------------------------------------
> >>>>>>>>> Carlo Caione (4):
> >>>>>>>>>            net: phy: Add generic helpers to access MMD PHY registers
> >>>>>>>>>            net: phy: ti: use generic helpers to access MMD registers
> >>>>>>>>>            cmd: mdio: Switch to generic helpers when accessing the registers
> >>>>>>>>>            net: phy: realtek: Introduce quirk to mark RXC not stoppable
> >>>>>>>>>
> >>>>>>>>> James Byrne (2):
> >>>>>>>>>            net: phy: micrel: Use correct skew values on KSZ9021
> >>>>>>>>>            net: phy: micrel: Find Micrel PHY node correctly
> >>>>>>>>>
> >>>>>>>>> Murali Karicheri (2):
> >>>>>>>>>            ARM: k2g-gp-evm: update to rgmii pinmux configuration
> >>>>>>>>>            ARM: k2g-ice: Add pinmux support for rgmii interface
> >>>>>>>>>
> >>>>>>>>> Pankaj Bansal (1):
> >>>>>>>>>            drivers: net: ldpaa_eth: fix resource leak
> >>>>>>>>>
> >>>>>>>>> Siva Durga Prasad Paladugu (2):
> >>>>>>>>>            net: phy: Reloc next and prev pointers inside phy_drivers
> >>>>>>>>>            net: phy: Fix return value check phy_probe
> >>>>>>>>>
> >>>>>>>>> Valentin-catalin Neacsu (1):
> >>>>>>>>>            net: phy: aquantia: Set only autoneg on in register 4.c441
> >>>>>>>>>
> >>>>>>>>> Vladimir Oltean (6):
> >>>>>>>>>            net: phy: ar803x: Address packet drops at low traffic rate due to SmartEEE feature
> >>>>>>>>>            net: phy: ar803x: Make RGMII Tx delays actually configurable for AR8035
> >>>>>>>>>            net: phy: ar803x: Use common functions for RGMII internal delays
> >>>>>>>>>            net: phy: ar803x: Clarify the configuration of the CLK_25M output pin
> >>>>>>>>>            net: phy: ar803x: Explicitly disable RGMII delays
> >>>>>>>>
> >>>>>>>> Tom, this [1] is the patch that is breaking the evm. It doesn't affect
> >>>>>>>> BB Black because it uses an SMSC phy, where as this evm uses an
> >>>>>>>> AR8031/AR8033.
> >>>>>>>>
> >>>>>>>> Is it possible the device tree [2] is wrong for the board? It lists
> >>>>>>>> 'phy-mode = "rgmii-txid";', so that means that with this patch the RX
> >>>>>>>> delay is now being disabled.
> >>>>>>>>
> >>>>>>>> Any thoughts, Vladimir?
> >>>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>> -Joe
> >>>>>>>>
> >>>>>>>> [1] b3224e0f7e - "net: phy: ar803x: Explicitly disable RGMII delays"
> >>>>>>>> [2] arch/arm/dts/am335x-evm.dts
> >>>>>>>>
> >>>>>>>>>            net: phy: ar803x: Clarify the intention of ar8021_config
> >>>>>>>>>
> >>>>>>>>>       arch/arm/dts/sama5d3xcm.dtsi                    |  32 +++---
> >>>>>>>>>       arch/arm/dts/sama5d3xcm_cmp.dtsi                |  32 +++---
> >>>>>>>>>       arch/arm/dts/socfpga_arria5_socdk.dts           |   4 +-
> >>>>>>>>>       arch/arm/dts/socfpga_cyclone5_is1.dts           |   4 +-
> >>>>>>>>>       arch/arm/dts/socfpga_cyclone5_socdk.dts         |   4 +-
> >>>>>>>>>       arch/arm/dts/socfpga_cyclone5_sockit.dts        |   4 +-
> >>>>>>>>>       arch/arm/dts/socfpga_cyclone5_vining_fpga.dts   |   4 +-
> >>>>>>>>>       board/ti/ks2_evm/mux-k2g.h                      |  36 +++----
> >>>>>>>>>       cmd/mdio.c                                      |  27 +++--
> >>>>>>>>>       doc/device-tree-bindings/net/micrel-ksz90x1.txt |  27 +++++
> >>>>>>>>>       drivers/net/ldpaa_eth/ldpaa_eth.c               |   1 +
> >>>>>>>>>       drivers/net/phy/Kconfig                         |  41 ++++++++
> >>>>>>>>>       drivers/net/phy/aquantia.c                      |   7 +-
> >>>>>>>>>       drivers/net/phy/atheros.c                       | 128 ++++++++++++++++-------
> >>>>>>>>>       drivers/net/phy/micrel_ksz90x1.c                |  24 ++++-
> >>>>>>>>>       drivers/net/phy/phy.c                           |  21 +++-
> >>>>>>>>>       drivers/net/phy/realtek.c                       |  19 ++++
> >>>>>>>>>       drivers/net/phy/ti.c                            | 130 +++++-------------------
> >>>>>>>>>       include/phy.h                                   |  70 +++++++++++++
> >>>>>>>>>       19 files changed, 394 insertions(+), 221 deletions(-)
> >>>>>>>>>
> >>>>>>>>> Thanks!
> >>>>>>>>> -Joe
> >>>>>>>>> _______________________________________________
> >>>>>>>>> U-Boot mailing list
> >>>>>>>>> U-Boot at lists.denx.de
> >>>>>>>>> https://lists.denx.de/listinfo/u-boot
> >>>>>>>>
> >>>>>>>
> >>>>>>> Hi Joe, Tom,
> >>>>>>>
> >>>>>>> It sounds like what Joe pointed to (my patch) has a high chance of
> >>>>>>> causing link failure.
> >>>>>>> If the board is relying on RX delays in the Atheros PHY to ensure
> >>>>>>> correct RGMII timing budget, then for sure it was working before and now
> >>>>>>> it is broken. In that case, it was working by mistake; the DT blob is
> >>>>>>> broken and should be corrected.
> >>>>>>> Sorry for the trouble this has caused.
> >>>>>>
> >>>>>> How is this handled in the Linux kernel and/or why doesn't it fail
> >>>>>> there?
> >>>>>
> >>>>> On the latest net-next, it's handled the same: disable everything and
> >>>>> enable only what's specified in phy-mode. I didn't keep track of older
> >>>>> versions.
> >>>>
> >>>> So you would expect the network to be broken on net-next with this DTS?
> >>>> Because that's not allowed...
> >>>>
> >>>
> >>> Yes, if it's the same problem, the behavior should be the same.
> >>> I see net-next is only rejecting the bad DT since 2019-02-21:
> >>> https://patchwork.kernel.org/patch/10819279/
> >>> So it depends when you checked it last time.
> >>
> >> I'll see about testing eth in Linux with net-next tomorrow, but, uh, is
> >> there some work-around for the DTS so that ethernet works?
> >
> > Work-around in Linux or in U-boot?
> > U-boot can fix up the DT for Linux and replace "rgmii-txid" with
> > "rgmii-id", whereas neither Linux nor U-boot can do anything for
> > themselves except either load a correct DT blob, or not use (revert, not
> > upgrade to, etc) the enforcing patch.
> >
> >> You cannot break existing DTs
> > RGMII delay breakages happen all the time. To play the devil's advocate,
> > protecting against them should be done by observing the semantics
> > described in the devicetree/bindings document.
> > If you follow Linux net-next, a breakage for RTL8211F is planned out
> > right as we speak.
> >
> > But let's wait until we know for sure that this is what's causing the
> > issues.
> >
> > Regards,
> > -Vladimir
> >
>
> Hi Tom,
>
> I understand now what you mean by "workaround".
> Yes you can enable RGMII delays by hand in U-boot:
>
> Check if RX delay is enabled (bit 15 of debug register 0):
> => mdio write eTSEC1 0x1D 0
> => mdio read eTSEC1 0x1E
> => mdio write eTSEC1 0x1E <new value>
>
> Check if TX delay is enabled (bit 8 of debug register 5):
> => mdio write eTSEC1 0x1D 5
> => mdio read eTSEC1 0x1E
> => mdio write eTSEC1 0x1E <new value>
>
> Replace eTSEC1 with your net device from "mdio list".

I'm not sure what the follow-on action is here. I'll hold off on
Vladimir's series until there is a resolution that everyone is
satisfied with.

Cheers,
-Joe

  reply	other threads:[~2019-05-10 21:50 UTC|newest]

Thread overview: 178+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-07 22:09 [U-Boot] Pull request: u-boot-net.git master Joe Hershberger
2019-05-08 22:24 ` Joe Hershberger
2019-05-08 22:37   ` Tom Rini
2019-05-08 22:40   ` [U-Boot] [EXT] " Vladimir Oltean
2019-05-08 22:42     ` Tom Rini
2019-05-08 22:45       ` [U-Boot] " Vladimir Oltean
2019-05-08 22:48         ` Tom Rini
2019-05-08 22:52           ` Vladimir Oltean
2019-05-08 22:54             ` Tom Rini
2019-05-08 23:05               ` Vladimir Oltean
2019-05-09  2:38                 ` Tom Rini
2019-05-09 12:51                 ` Vladimir Oltean
2019-05-10 21:50                   ` Joe Hershberger [this message]
2019-05-15 14:58                     ` Tom Rini
2019-07-25 22:40                       ` Vladimir Oltean
2019-07-25 23:12                         ` Tom Rini
2019-11-02 13:17                       ` Michael Walle
2019-11-02 14:12                         ` Tom Rini
2019-11-02 14:30                           ` Vladimir Oltean
2019-11-02 15:05                             ` Tom Rini
2019-11-03 15:22                               ` Michael Walle
  -- strict thread matches above, loose matches on Subject: below --
2019-09-04 16:42 Joe Hershberger
2019-09-05 13:24 ` Tom Rini
2019-07-25 18:38 Joe Hershberger
2019-07-26 19:37 ` Tom Rini
2019-07-26 19:39   ` Joe Hershberger
2019-07-18 21:38 Joe Hershberger
2019-07-23 13:46 ` Tom Rini
2019-07-15 22:49 Joe Hershberger
2019-07-16 14:57 ` Tom Rini
2019-06-01 23:10 Joe Hershberger
2019-06-02 20:03 ` Tom Rini
2019-05-14 19:57 Joe Hershberger
2019-05-15 17:42 ` Tom Rini
2019-05-08 22:30 Joe Hershberger
2019-05-09 22:25 ` Tom Rini
2019-03-12 18:15 Joe Hershberger
2019-03-19 22:41 ` Tom Rini
2019-04-30 21:15   ` Joe Hershberger
2019-04-30 21:28     ` Tom Rini
2019-05-01  0:56       ` Joe Hershberger
2019-05-01  1:19         ` Tom Rini
2019-03-05 18:02 Joe Hershberger
2019-03-07 14:15 ` Tom Rini
2019-01-24 17:35 Joe Hershberger
2019-01-25 15:16 ` Tom Rini
2018-11-05 17:51 Joe Hershberger
2018-11-06  4:06 ` Tom Rini
2018-11-06 20:58   ` Joe Hershberger
2018-10-24 19:45 Joe Hershberger
2018-10-26 11:52 ` Tom Rini
2018-10-26 12:24   ` Stefano Babic
2018-10-26 12:40     ` Tom Rini
2018-10-26 13:04   ` Anatolij Gustschin
2018-10-26 14:46   ` York Sun
2018-10-26 16:45 ` Tom Rini
2018-10-11 19:23 Joe Hershberger
2018-10-12 15:52 ` Tom Rini
2018-07-26 19:12 Joe Hershberger
2018-07-27 17:09 ` Tom Rini
2018-07-02 19:49 Joe Hershberger
2018-07-02 19:57 ` Tom Rini
2018-07-02 20:09   ` Joe Hershberger
2018-07-03  3:24 ` Tom Rini
2018-06-13 19:00 Joe Hershberger
2018-06-14 15:36 ` Tom Rini
2018-04-15  4:18 Joe Hershberger
2018-04-15 17:52 ` Tom Rini
2018-03-22 20:39 Joe Hershberger
2018-03-23  1:21 ` Tom Rini
2018-02-27 17:17 Joe Hershberger
2018-02-28  3:41 ` Tom Rini
2018-01-15 18:06 Joe Hershberger
2018-01-16  2:25 ` Tom Rini
2018-01-17 18:46   ` Joe Hershberger
2018-01-03 21:32 Joe Hershberger
2018-01-04  1:09 ` Tom Rini
2018-01-04 17:56   ` Joe Hershberger
2018-01-09 18:06 ` Tom Rini
2018-01-15 18:10   ` Joe Hershberger
2018-01-15 18:13     ` Tom Rini
2018-01-15 18:15       ` Joe Hershberger
2018-01-15 18:22         ` Tom Rini
2018-01-15 18:23           ` Joe Hershberger
2017-09-07 18:29 Joe Hershberger
2017-09-08  0:02 ` Tom Rini
2017-08-14 17:48 Joe Hershberger
2017-08-15  0:03 ` Tom Rini
2017-08-07 20:30 Joe Hershberger
2017-08-08 21:03 ` Tom Rini
2017-06-02 19:45 Joe Hershberger
2017-06-04 17:11 ` Tom Rini
2017-03-27 16:50 Joe Hershberger
2017-04-04 19:59 ` Tom Rini
2017-03-07 20:01 Joe Hershberger
2017-03-08 17:48 ` Tom Rini
2017-02-09 16:25 Joe Hershberger
2017-02-09 19:50 ` Tom Rini
2016-12-08 16:37 Joe Hershberger
2016-12-09 12:12 ` Tom Rini
2016-12-09 16:22   ` Joe Hershberger
2016-12-09 17:43     ` Michal Simek
2016-12-09 18:35       ` Joe Hershberger
2016-12-09 19:09         ` Michal Simek
2016-12-09 19:52         ` Tom Rini
2016-11-07 17:29 Joe Hershberger
2016-11-08 20:52 ` Tom Rini
2016-10-13 17:34 Joe Hershberger
2016-10-13 22:45 ` Tom Rini
2016-09-09 18:52 Joe Hershberger
2016-09-09 19:53 ` Tom Rini
2016-08-23  2:26 Joe Hershberger
2016-08-24 15:32 ` Tom Rini
2016-08-15 20:30 Joe Hershberger
2016-08-16  1:09 ` Tom Rini
2016-08-15 20:20 Joe Hershberger
2016-08-15 20:26 ` Joe Hershberger
2016-07-06 15:46 Joe Hershberger
2016-07-08  2:50 ` Tom Rini
2016-06-21 22:04 Joe Hershberger
2016-06-22 14:38 ` Tom Rini
2016-05-24 16:50 Joe Hershberger
2016-05-24 23:18 ` Tom Rini
2016-05-03 22:58 Joe Hershberger
2016-05-04  1:35 ` Tom Rini
2016-05-03 20:01 Joe Hershberger
2016-05-03 21:34 ` Tom Rini
2016-05-03 21:49   ` Joe Hershberger
2016-02-26 19:42 Joe Hershberger
2016-02-28  1:19 ` Tom Rini
2016-02-18 17:39 Joe Hershberger
2016-02-20  0:54 ` Tom Rini
2016-01-28 23:32 Joe Hershberger
2016-02-09 17:01 ` Tom Rini
2015-10-29 19:34 Joe Hershberger
2015-10-30  2:09 ` Tom Rini
2015-09-30 17:23 Joe Hershberger
2015-10-03  0:35 ` Tom Rini
2015-08-21 21:48 Joe Hershberger
2015-08-24 13:44 ` Tom Rini
2015-08-12 19:37 Joe Hershberger
2015-08-13 13:16 ` Tom Rini
2015-06-01 18:24 Joe Hershberger
2015-06-02 12:55 ` Tom Rini
2015-05-26 17:24 Joe Hershberger
2015-05-27  2:02 ` Tom Rini
2015-05-27 16:17   ` Joe Hershberger
2015-05-19 18:56 Joe Hershberger
2015-05-20 11:28 ` Tom Rini
2015-05-20 17:11   ` Joe Hershberger
2015-05-21 13:09     ` Tom Rini
2015-05-21 13:50       ` Joe Hershberger
2015-04-20 23:08 Joe Hershberger
2015-04-21 14:06 ` Tom Rini
2015-01-30 22:01 Joe Hershberger
2015-02-02 18:59 ` Tom Rini
2014-01-14 19:12 Joe Hershberger
2014-01-14 21:01 ` Tom Rini
2013-11-22 23:08 Joe Hershberger
2013-11-25 21:56 ` Tom Rini
2013-08-19 17:39 Joe Hershberger
2013-08-19 21:59 ` Tom Rini
2013-06-25  0:21 Joe Hershberger
2013-06-25 14:55 ` Tom Rini
2012-12-15 18:41 Joe Hershberger
2012-12-18 19:59 ` Tom Rini
2012-12-11 19:38 Joe Hershberger
2012-12-11 23:47 ` Langer Thomas
2012-12-12  3:42   ` Joe Hershberger
2012-12-12 13:16     ` Tom Rini
2012-09-27 17:38 Joe Hershberger
2012-09-27 20:05 ` Tom Rini
2012-07-24 19:19 Joe Hershberger
2012-07-26  8:57 ` Wolfgang Denk
2012-07-19 16:54 Joe Hershberger
2012-07-20  6:57 ` Wolfgang Denk
2012-05-23 19:36 Joe Hershberger
2012-05-24 19:24 ` Wolfgang Denk

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='CANr=Z=aaAxL_mx=gDrv=Z+jEhSaoYa0KMbFBd3bSkcRsD63ziA@mail.gmail.com' \
    --to=joe.hershberger@ni.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.