All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: Neil MacLeod <neil@nmacleod.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: Testing of r8169 workaround removal
Date: Sun, 28 Apr 2019 20:43:19 +0200	[thread overview]
Message-ID: <7dfaf793-1cb1-faef-d700-aa24ff4d50d9@gmail.com> (raw)
In-Reply-To: <CAFbqK8n3vVuTfX+ZAi-TN70HtY75u3fBiM-h0USqPuk9K3=FZg@mail.gmail.com>

Interesting, thanks for your efforts! I submitted the patch removing
the workaround because it seems now (at least since 5.1-rc1) we're fine.

Heiner

On 28.04.2019 20:40, Neil MacLeod wrote:
> Hi Heiner
> 
> I'd already kicked off a 5.0.2 build without the workaround and I've
> tested that now, and it resumes at 10Mbps, so it may still be worth
> identifying the exact 5.0.y version when it was fixed just in case
> that provides some understanding of how it was fixed... I'll test the
> remaining kernels between 5.0.3 and 5.0.10 as that's not much extra
> work and let you know what I find!
> 
> Regards
> Neil
> 
> On Sun, 28 Apr 2019 at 18:39, Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>
>> Hi Neil,
>>
>> thanks for reporting back. Interesting, then the root cause of the
>> issue seems to have been in a different corner. On my hardware
>> I'm not able to reproduce the issue. It's not that relevant with which
>> exact version the issue vanished. Based on your results I'll just
>> remove the workaround on net-next (adding your Tested-by).
>>
>> Heiner
>>
>>
>> On 28.04.2019 19:30, Neil MacLeod wrote:
>>> Hi Heiner
>>>
>>> Do you know if this is already fixed in 5.1-rc6 (Linus Torvalds tree),
>>> as in order to test your request I thought I would reproduce the issue
>>> with plain 5.1-rc6 with the workaround removed, however without the
>>> workaround 5.1-rc6 is resuming correctly at 1000Mbps.
>>>
>>> I went back to 4.19-rc4 (which we know is brroken) and I can reproduce
>>> the issue with the PC (Revo 3700) resuming at 10Mbps, but with 5.1-rc6
>>> I can no longer reproduce the issue when the workaround is removed.
>>>
>>> I also tested 5.0.10 without the workaround, and again 5.0.10 is
>>> resuming correctly at 1000Mbps.
>>>
>>> I finally tested 4.19.23 without the workaround (the last iteration of
>>> this kernel I published) and this does NOT resume correctly at
>>> 1000Mbps (it resumes at 10Mbps).
>>>
>>> I'll test a few more iterations of 5.0.y to see if I can identify when
>>> it was "fixed" but if you have any suggestions when it might have been
>>> fixed I can try to confirm this that - currently it's somewhere
>>> between 4.19.24 and 5.0.10!
>>>
>>> Regards
>>> Neil
>>>
>>>
>>>
>>>
>>> On Sun, 28 Apr 2019 at 14:33, Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>>>
>>>> Hi Neil,
>>>>
>>>> you once reported the original issue resulting in this workaround.
>>>> This workaround shouldn't be needed any longer, but I have no affected HW
>>>> to test on. Do you have the option to apply the patch below to latest
>>>> net-next and test link speed after resume from suspend?
>>>> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
>>>> That would be much appreciated.
>>>>
>>>> Heiner
>>>>
>>>> ----------------------------------------------------------------
>>>>
>>>> After 8c90b795e90f ("net: phy: improve genphy_soft_reset") this
>>>> workaround shouldn't be needed any longer. However I don't have
>>>> affected hardware so I can't test it.
>>>>
>>>> This was the bug report leading to the workaround:
>>>> https://bugzilla.kernel.org/show_bug.cgi?id=201081
>>>>
>>>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>>>> ---
>>>>  drivers/net/ethernet/realtek/r8169.c | 8 --------
>>>>  1 file changed, 8 deletions(-)
>>>>
>>>> diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
>>>> index 383242df0..d4ec08e37 100644
>>>> --- a/drivers/net/ethernet/realtek/r8169.c
>>>> +++ b/drivers/net/ethernet/realtek/r8169.c
>>>> @@ -4083,14 +4083,6 @@ static void rtl8169_init_phy(struct net_device *dev, struct rtl8169_private *tp)
>>>>         phy_speed_up(tp->phydev);
>>>>
>>>>         genphy_soft_reset(tp->phydev);
>>>> -
>>>> -       /* It was reported that several chips end up with 10MBit/Half on a
>>>> -        * 1GBit link after resuming from S3. For whatever reason the PHY on
>>>> -        * these chips doesn't properly start a renegotiation when soft-reset.
>>>> -        * Explicitly requesting a renegotiation fixes this.
>>>> -        */
>>>> -       if (tp->phydev->autoneg == AUTONEG_ENABLE)
>>>> -               phy_restart_aneg(tp->phydev);
>>>>  }
>>>>
>>>>  static void rtl_rar_set(struct rtl8169_private *tp, u8 *addr)
>>>> --
>>>> 2.21.0
>>>
>>
> 


  reply	other threads:[~2019-04-28 18:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-28 13:33 Testing of r8169 workaround removal Heiner Kallweit
2019-04-28 17:30 ` Neil MacLeod
2019-04-28 17:39   ` Heiner Kallweit
2019-04-28 18:40     ` Neil MacLeod
2019-04-28 18:43       ` Heiner Kallweit [this message]
2019-04-28 22:05         ` Neil MacLeod
2019-04-29  3:20           ` Phil Reid
2019-04-29  3:55             ` Neil MacLeod
2019-04-29 14:06               ` Neil MacLeod

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=7dfaf793-1cb1-faef-d700-aa24ff4d50d9@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=neil@nmacleod.com \
    --cc=netdev@vger.kernel.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 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.