From: Andrew Lunn <andrew@lunn.ch>
To: Mark Pearson <mpearson-lenovo@squebb.ca>
Cc: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] e1000e: Link flap workaround option for false IRP events
Date: Wed, 26 Feb 2025 23:52:01 +0100 [thread overview]
Message-ID: <36ae9886-8696-4f8a-a1e4-b93a9bd47b2f@lunn.ch> (raw)
In-Reply-To: <20250226194422.1030419-1-mpearson-lenovo@squebb.ca>
On Wed, Feb 26, 2025 at 02:44:12PM -0500, Mark Pearson wrote:
> Issue is seen on some Lenovo desktop workstations where there
> is a false IRP event which triggers a link flap.
> Condition is rare and only seen on networks where link speed
> may differ along the path between nodes (e.g 10M/100M)
>
> Intel are not able to determine root cause but provided a
> workaround that does fix the issue. Tested extensively at Lenovo.
>
> Adding a module option to enable this workaround for users
> who are impacted by this issue.
Why is a module option needed? Does the workaround itself introduce
issues? Please describe those issues?
In general, module options are not liked. So please include in the
commit message why a module option is the only option.
> Signed-off-by: Mark Pearson <mpearson-lenovo@squebb.ca>
> ---
> drivers/net/ethernet/intel/e1000e/netdev.c | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
> index 286155efcedf..06774fb4b2dd 100644
> --- a/drivers/net/ethernet/intel/e1000e/netdev.c
> +++ b/drivers/net/ethernet/intel/e1000e/netdev.c
> @@ -37,6 +37,10 @@ static int debug = -1;
> module_param(debug, int, 0);
> MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");
>
> +static int false_irp_workaround;
> +module_param(false_irp_workaround, int, 0);
> +MODULE_PARM_DESC(false_irp_workaround, "Enable workaround for rare false IRP event causing link flap");
> +
> static const struct e1000_info *e1000_info_tbl[] = {
> [board_82571] = &e1000_82571_info,
> [board_82572] = &e1000_82572_info,
> @@ -1757,6 +1761,21 @@ static irqreturn_t e1000_intr_msi(int __always_unused irq, void *data)
> /* read ICR disables interrupts using IAM */
> if (icr & E1000_ICR_LSC) {
> hw->mac.get_link_status = true;
> +
> + /*
> + * False IRP workaround
> + * Issue seen on Lenovo P5 and P7 workstations where if there
> + * are different link speeds in the network a false IRP event
> + * is received, leading to a link flap.
> + * Intel unable to determine root cause. This read prevents
> + * the issue occurring
> + */
> + if (false_irp_workaround) {
> + u16 phy_data;
> +
> + e1e_rphy(hw, PHY_REG(772, 26), &phy_data);
Please add some #define for these magic numbers, so we have some idea
what PHY register you are actually reading. That in itself might help
explain how the workaround actually works.
Andrew
---
pw-bot: cr
next prev parent reply other threads:[~2025-02-26 22:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 19:44 Mark Pearson
2025-02-26 22:52 ` Andrew Lunn [this message]
2025-02-27 15:05 ` Mark Pearson
2025-02-27 16:02 ` Andrew Lunn
2025-02-27 16:07 ` Andrew Lunn
2025-02-28 14:59 ` Mark Pearson
2025-02-28 16:37 ` Andrew Lunn
2025-03-02 13:09 ` [Intel-wired-lan] " Lifshits, Vitaly
2025-03-02 16:13 ` Andrew Lunn
2025-03-03 3:34 ` Mark Pearson
2025-03-04 10:48 ` Lifshits, Vitaly
2025-03-04 13:41 ` Andrew Lunn
2025-03-04 14:12 ` Mark Pearson
2025-03-04 22:24 ` Andrew Lunn
2025-03-03 3:05 ` Mark Pearson
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=36ae9886-8696-4f8a-a1e4-b93a9bd47b2f@lunn.ch \
--to=andrew@lunn.ch \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpearson-lenovo@squebb.ca \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
/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
all inboxes | Powered by JetHome®