Netdev List
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Pavan Chebbi <pavan.chebbi@broadcom.com>
Cc: michael.chan@broadcom.com, kuba@kernel.org,
	andrew+netdev@lunn.ch, andrew.gospodarek@broadcom.com,
	davem@davemloft.net, edumazet@kernel.org, netdev@vger.kernel.org,
	pabeni@redhat.com
Subject: Re: [PATCH net v3 2/3] tg3: Skip management FW version when APE firmware is not ready
Date: Tue, 24 Nov 2026 11:46:13 +0000	[thread overview]
Message-ID: <20261124114613.GL31322@horms.kernel.org> (raw)
In-Reply-To: <20261118105408.1076095-3-pavan.chebbi@broadcom.com>

On Wed, Nov 18, 2026 at 04:24:07PM +0530, Pavan Chebbi wrote:
> When the APE firmware is not present or not ready, for example when
> the NCSI component is missing in the NVRAM, tg3_read_fw_ver() still
> calls tg3_read_dash_ver() after tg3_probe_ncsi().  The signature and
> ready checks that tg3_read_dash_ver() used to make were moved into
> tg3_probe_ncsi(), which only sets the NCSI flag and does not stop the
> caller.  The driver then reads the APE firmware version register, which
> holds no valid data in this state, and ethtool -i shows an invalid
> "DASH" string with a garbage version.
> 
> Make tg3_probe_ncsi() return whether valid, ready APE firmware was
> found, and read the version only in that case.  Otherwise just report
> the bootcode version.
> 
> This was seen by a user on BCM5719/BCM5720 with no NCSI component in
> the NVRAM.  With this change, ethtool -i displays only the bootcode
> version.
> 
> Fixes: 165f4d1cb3d7 ("tg3: Fix the setting of the APE_HAS_NCSI flag")
> Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>

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


  reply	other threads:[~2026-11-24 11:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 10:54 [PATCH net v3 0/3] tg3: Bug fixes Pavan Chebbi
2026-11-18 10:52 ` netdev-bot+sinfo
2026-11-18 10:54 ` [PATCH net v3 1/3] tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported Pavan Chebbi
2026-11-22 11:07   ` netdev-bot+sashiko
2026-11-24 11:43   ` Simon Horman
2026-11-18 10:54 ` [PATCH net v3 2/3] tg3: Skip management FW version when APE firmware is not ready Pavan Chebbi
2026-11-24 11:46   ` Simon Horman [this message]
2026-11-18 10:54 ` [PATCH net v3 3/3] tg3: Fix heap overflow in unbuffered NVRAM write path Pavan Chebbi
2026-11-22 11:07   ` netdev-bot+sashiko
2026-11-22 11:43     ` Pavan Chebbi
2026-11-24 11:54       ` Simon Horman

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=20261124114613.GL31322@horms.kernel.org \
    --to=horms@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew.gospodarek@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=michael.chan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pavan.chebbi@broadcom.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