[U-Boot] [PATCH 0/2] Add fix for Pine64 gigabit throughput issues

Peter Robinson pbrobinson at gmail.com
Fri Feb 16 13:57:17 UTC 2018


On Thu, Feb 15, 2018 at 9:32 PM, André Przywara <andre.przywara at arm.com> wrote:
> Hi,
>
> thanks for picking this up!
>
> (CC:ing Icenowy, who was engaged in a Linux fix for this issue last year
> [2][3]. It's Chinese New Year though, so not sure how quickly she will
> answer).
>
> On 14/02/18 23:02, kevans at FreeBSD.org wrote:
>> The Pine64 has a known issue on gigabit links (see [1]); some boards suffer
>> significant packet loss on Gigabit links.
>
> Do you have a faulty board at hand? What is the actual effect in U-Boot?
> IIRC the bug "just" causes a slower connection in Gigabit mode, I am not
> sure we care so much in U-Boot? Or is it actually packages dropped,
> which is much more annoying without TCP covering up for this?
>
>> This patch sets the magical bits
>> in CONFREG on the RTL8211E PHY to turn off the internal delay and do some other
>> undocumented stuff.
>
> So if I remember the discussion correctly, this workaround affects the
> performance of the "good" boards. Have you checked this?
> There was a discussion last year [2][3] about how to fix this in Linux,
> which definitely involved some DT property (ideally in the PHY node).
> This would allow people to turn this on and off depending on their
> particular board.

So I have a "bad" board, the fix upstream took it from "basically not
working at all" to vaguely but not with great speed be able to
transfer data.

I've just tested this patch series on that board and was getting
around 7MBps on Linux too. So presumably what ever bits that are being
tweaked by this patch in u-boot aren't reset when the linux driver
loads and it improved performance on Linux for me too.

>From a netboot (untested) I would think this would be useful too.

Either way for the series:
Tested-by: Peter Robinson <pbrobinson at gmail.com>

> [2] https://marc.info/?l=devicetree&m=149281711105621
> [3] https://marc.info/?l=linux-netdev&m=150337466923103
>
>> [1] https://forum.pine64.org/showthread.php?tid=835&pid=19704#pid19704
>>
>> Kyle Evans (2):
>>   net: phy: Add PHY_RTL8211E_PINE64_GIGABIT_FIX for realtek phys
>>   Configs: Use the newly added PHY_RTL8211E_PINE64_GIGABIT_FIX
>>
>>  configs/pine64_plus_defconfig |  2 ++
>>  drivers/net/phy/Kconfig       | 10 ++++++++++
>>  drivers/net/phy/realtek.c     | 34 ++++++++++++++++++++++++++++++++++
>>  3 files changed, 46 insertions(+)
>>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot


More information about the U-Boot mailing list