🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21739

Re: [PATCH net v3 2/3] tg3: Skip management FW version when APE firmware is not ready

#21739
From: Simon Horman
Date: Tue, 24 Nov 2026 11:46
23 lines
8828 bytes
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>
Technical Details
Message-ID: <20261124114613.GL31322@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370294-linux-kernel-netdev=dewy.ru
References: <20261118105408.1076095-1-pavan.chebbi@broadcom.com> <20261118105408.1076095-3-pavan.chebbi@broadcom.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370294-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <20261124114613.GL31322@horms.kernel.org>
References: <20261118105408.1076095-1-pavan.chebbi@broadcom.com>
 <20261118105408.1076095-3-pavan.chebbi@broadcom.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="4126284"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EJMfTHOk1Ru6KFUbB7TBBq65wvg= sha256:V3bjmahMCbDfTZqMgHqtNKEHmWchdzoJxHmzMP60Yyw=
	sha1:k+LkkQ9b19vIh6yu5c3S7nqn1aY= sha256:5wnpx9QXhSVkq8iZkZHuYmae6p5wOgi40Km4Y74roF0=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 3E6F6125DFF; Tue, 24 Nov 2026 14:47:10 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id QpL8sMmwMv-V;
	Tue, 24 Nov 2026 14:47:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-370294-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id BD579125DFC; Tue, 24 Nov 2026 14:46:57 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 1A46A272C0; Tue, 24 Nov 2026 11:46:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795520779;
	b=EJ5v7GIbDmbcjXLFcX/88f0+DuEJvqQ1AlfckY/dI6Or5uzZ0gizkrsP87LMW8HwWDC1
	 WhvEw9by2iz6njTyZBjO3p2VXIB+6VUFdX4NiC7cvA/IKnmM99sm6M897hnjBx+iOqoLJ
	 qUDOc8apZ1p0umEymB0TbdllMJ4UfAt+rUy0qvTkBzIo15vDpYXvHmpKAr5namBp/EVs+
	 q9QtOlJ/CYDejoribn4j+4M7wXDBh7G037lf6T8bIrRn++1/bLU6AL0Gv5Y124orBjBJb
	 5HbKxhNl22e+HJ774YA0yciXzQcHMTdcxWrIJ9MqkQR1WBbstKjSEgEkLYBFDhW9Zug==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795520779;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=X8yX/Tper13zhYbbbIvCInGCzUoZkSmG4e3/2KoNl/Q=;
	b=LeMdsJOQZ774tbUFPA7yRtM3kcLHrd+HN4Lvdh8qRnDtG4ko7WrV52JPzXj+F/zn8IQD
	 Atv9kSTgVeiiTHwAagLBhACwx88VxPgheBmB0hizioLo3srwMC78HFNUNTZMt11yEHqE5
	 vem/JG/3n6MoBX25/6EZzHs/V3gIeJk2vzvP0/49jhgwZc9DpNQKJGadRSMsVmFrPsj+1
	 tzAdxj537eEHEMp+WojiaG9TREHl2ztFMm50/sFJ79sPfJjv0AyD+3ScaRrhIT4qhGSm8
	 9jykGbUFHAXyyyQ65S9y+AlRiLPUJ7dRUlY2u6W/FlcmZe3ypaF57wnoRyUtZJYogbQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n7Okynvy;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 07038606A6A4;
	Tue, 24 Nov 2026 11:46:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n7Okynvy
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795520778;
	b=jFjFS/WSv42/uU3Y9QZ0jh0w7AvfddhS3nQbWe+JISu8hRaYvOwcAkvvwmX7mSoYwG34
	 cEVXT94+clkzd+x8FBylPFLs2Vx19VOKZUUB5xoppt94PxXdN7ucT+Dtewbxkt1ornLMs
	 mTvwZc67drFtNJWylqUmTuWKzAvPGEWMoEHhxCU8kRcgx44BicWX1YavxDVx0HHQ2DJGv
	 /2kzntJLRJ0AhM+kubB+NBlNLaWu7S71atmrUca3iJ8WWklbKXiXf9KBzAay3aPH90v9E
	 YnKa6vNZXMsK8MspOii9v/ZIa6tAwXBUXDJl090lZmQEoK1KQ0fWT3oWF73jJaN6P+Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795520778;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=X8yX/Tper13zhYbbbIvCInGCzUoZkSmG4e3/2KoNl/Q=;
	b=N/c+61w9ykbrcIFx7SW5WFsGfoOtj0SoYWQppiTzEG4ck7TwF1V9tTRuLDSdgKbiHWpj
	 PtuV+g10233dzEPfmj4RUYqyZmlOzn3Bywy9TuKTtES7fsUERI7AhobFng+RItn1n111W
	 idwdtPWgBhgH+oFPn9zuAMgmdMRJnPAXHHNW1k5gYPHIQ5tza7XXw8SQybd11RojANfwS
	 01wUWktkbhfjSZxKCKOZZoKe6BKUgRDPcYIsGsyFvx1VrpSx3Uuu1Pc3lJRY9vTkYKKN4
	 w0sJ45cdyxOV9/F66SBOIplCZj2V2eSJ1zYgxcHvqeYMVM8twXbugCn9st0zT03u9CA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n7Okynvy;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A072606A33F
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 11:46:17 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED5EE1F00A03;
	Tue, 24 Nov 2026 11:46:15 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795520777;
	bh=X8yX/Tper13zhYbbbIvCInGCzUoZkSmG4e3/2KoNl/Q=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=n7OkynvyNJHWNjKsGZ1vPfQyUtBcvpZ9rT+un49705DhTa9MAo3ENkbsV2e5YlzwI
	 aBKew5Ux7hJbu997L8TLoSjFLKSHHcq/lvQIIL2D6WhSPo4vnnL+z2Of4m1q2Ql6vn
	 8AmIhx/2Gil5QHXxun3VaBbMcvVNU89/z9LTbk5ScZgrhAQrCEgfw0DH33Gk7Y8BEM
	 YinOOzKeweTZCyPRfuh3GgM8OyA3g7GofnTYu9IoFHjCngD8zaNuV7y/4res80qTrs
	 VyW5zOzAAtrXRLZ5/4asxU9iXmjpjuFIQ10TBc2OulGc/8kdjmN7TVILLC3QX3hmrr
	 LIZ3AbqQ9jYQA==
X-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
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261118105408.1076095-3-pavan.chebbi@broadcom.com>