Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Lukasz Czapnik <lukasz.czapnik@intel.com>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
	Jakub Kaminski <jakub.kaminski@intel.com>,
	Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
	Tomasz Lichwala <tomasz.lichwala@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-net v2] ice: Fix "Unknown bps" during link events
Date: Mon, 10 Aug 2026 10:57:28 +0100	[thread overview]
Message-ID: <20260810095728.GP51943@horms.kernel.org> (raw)
In-Reply-To: <20260806162458.2384818-1-lukasz.czapnik@intel.com>

On Thu, Aug 06, 2026 at 06:24:58PM +0200, Lukasz Czapnik wrote:
> From: Jakub Kaminski <jakub.kaminski@intel.com>
> 
> The driver may display "NIC Link is up Unknown bps" messages during
> link state changes. This occurs when link status and link speed are
> read from different points in time.
> 
> The driver processes link events by receiving an asynchronous ARQ event
> from firmware containing link_up and link_speed values, then performing
> a synchronous AQ query via ice_update_link_info() which overwrites the
> phy.link_info structure, and finally calling ice_link_event() with a
> link_speed parameter while ice_print_link_msg() read link_speed from
> phy.link_info directly.
> 
> ice_print_link_msg() always read link_speed from the phy.link_info
> structure. This caused link status from the ARQ event to be combined
> with link_speed from the later AQ query, mixing information from two
> different points in time. When firmware state changed between these
> moments, inconsistent messages like "Link is up Unknown bps" appeared.
> 
> Add a link_speed parameter to ice_print_link_msg() to ensure link
> status and speed are always taken from the same source and point in
> time.
> 

Hi Lukasz,

Probably this can be addressed when the patch applied.
But I'll point out that git am will truncate the patch description
at this point due to the immediately following scissors ("---").

IOW, Fixes and the other tags should probably appear exactly here.
With the v2 information left below the scissors.

> ---
> 
> v2:
> Remove conditional assignement of local var link_up only during
> UP events. Cache state of both link_up and link_speed for every event.

Thanks for the update.

Reviewed-by: Simon Horman <horms@kernel.org>

> ---
> 
> Fixes: c2a23e00613b ("ice: Refactor link event flow")
> Signed-off-by: Jakub Kaminski <jakub.kaminski@intel.com>
> Signed-off-by: Lukasz Czapnik <lukasz.czapnik@intel.com>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> Reviewed-by: Tomasz Lichwala <tomasz.lichwala@intel.com>

...

      reply	other threads:[~2026-08-10  9:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06 16:24 [Intel-wired-lan] [PATCH iwl-net v2] ice: Fix "Unknown bps" during link events Lukasz Czapnik
2026-08-10  9:57 ` Simon Horman [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=20260810095728.GP51943@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=aleksandr.loktionov@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jakub.kaminski@intel.com \
    --cc=lukasz.czapnik@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=tomasz.lichwala@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