All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Heiner Kallweit <hkallweit1@gmail.com>
Cc: stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] r8169: don't advertise pause in jumbo mode" failed to apply to 5.4-stable tree
Date: Sun, 18 Apr 2021 20:29:57 -0400	[thread overview]
Message-ID: <YHzPBVyY5r9MD2IC@sashalap> (raw)
In-Reply-To: <476069fb-8a0f-bd52-3f8e-5fbf6e0fab17@gmail.com>

On Sun, Apr 18, 2021 at 05:53:31PM +0200, Heiner Kallweit wrote:
>On 18.04.2021 12:36, gregkh@linuxfoundation.org wrote:
>>
>> The patch below does not apply to the 5.4-stable tree.
>> If someone wants it applied there, or to any other stable or longterm
>> tree, then please email the backport, including the original git commit
>> id to <stable@vger.kernel.org>.
>>
>> thanks,
>>
>> greg k-h
>>
>> ------------------ original commit in Linus's tree ------------------
>>
>>>From 453a77894efa4d9b6ef9644d74b9419c47ac427c Mon Sep 17 00:00:00 2001
>> From: Heiner Kallweit <hkallweit1@gmail.com>
>> Date: Wed, 14 Apr 2021 10:47:10 +0200
>> Subject: [PATCH] r8169: don't advertise pause in jumbo mode
>>
>> It has been reported [0] that using pause frames in jumbo mode impacts
>> performance. There's no available chip documentation, but vendor
>> drivers r8168 and r8125 don't advertise pause in jumbo mode. So let's
>> do the same, according to Roman it fixes the issue.
>>
>> [0] https://bugzilla.kernel.org/show_bug.cgi?id=212617
>>
>> Fixes: 9cf9b84cc701 ("r8169: make use of phy_set_asym_pause")
>> Reported-by: Roman Mamedov <rm+bko@romanrm.net>
>> Tested-by: Roman Mamedov <rm+bko@romanrm.net>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: David S. Miller <davem@davemloft.net>
>>
>> diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
>> index 581a92fc3292..1df2c002c9f6 100644
>> --- a/drivers/net/ethernet/realtek/r8169_main.c
>> +++ b/drivers/net/ethernet/realtek/r8169_main.c
>> @@ -2350,6 +2350,13 @@ static void rtl_jumbo_config(struct rtl8169_private *tp)
>>
>>  	if (pci_is_pcie(tp->pci_dev) && tp->supports_gmii)
>>  		pcie_set_readrq(tp->pci_dev, readrq);
>> +
>> +	/* Chip doesn't support pause in jumbo mode */
>> +	linkmode_mod_bit(ETHTOOL_LINK_MODE_Pause_BIT,
>> +			 tp->phydev->advertising, !jumbo);
>> +	linkmode_mod_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT,
>> +			 tp->phydev->advertising, !jumbo);
>> +	phy_start_aneg(tp->phydev);
>>  }
>>
>>  DECLARE_RTL_COND(rtl_chipcmd_cond)
>> @@ -4630,8 +4637,6 @@ static int r8169_phy_connect(struct rtl8169_private *tp)
>>  	if (!tp->supports_gmii)
>>  		phy_set_max_speed(phydev, SPEED_100);
>>
>> -	phy_support_asym_pause(phydev);
>> -
>>  	phy_attached_info(phydev);
>>
>>  	return 0;
>>
>
>>From 90501465d4f9be209587047db1560a310a9fce1b Mon Sep 17 00:00:00 2001
>From: Heiner Kallweit <hkallweit1@gmail.com>
>Date: Sun, 18 Apr 2021 17:42:13 +0200
>Subject: [PATCH] r8169: don't advertise pause in jumbo mode
>
>It has been reported [0] that using pause frames in jumbo mode impacts
>performance. There's no available chip documentation, but vendor
>drivers r8168 and r8125 don't advertise pause in jumbo mode. So let's
>do the same, according to Roman it fixes the issue.
>
>[0] https://bugzilla.kernel.org/show_bug.cgi?id=212617
>
>Fixes: 9cf9b84cc701 ("r8169: make use of phy_set_asym_pause")
>Reported-by: Roman Mamedov <rm+bko@romanrm.net>
>Tested-by: Roman Mamedov <rm+bko@romanrm.net>
>Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

I've resolved this by taking 5e00e16cb989 ("r8169: tweak max read
request size for newer chips also in jumbo mtu mode") instead, thanks!

-- 
Thanks,
Sasha

      reply	other threads:[~2021-04-19  0:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-18 10:36 FAILED: patch "[PATCH] r8169: don't advertise pause in jumbo mode" failed to apply to 5.4-stable tree gregkh
2021-04-18 15:53 ` Heiner Kallweit
2021-04-19  0:29   ` Sasha Levin [this message]

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=YHzPBVyY5r9MD2IC@sashalap \
    --to=sashal@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=stable@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.