🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5

Re: [PATCH net-next v4 1/3] dinghai: add firmware version check and RISC-V readiness polling

#5
From: Jakub Kicinski
Date: Wed, 07 Oct 2026 00:27
17 lines
5965 bytes
On Mon, 28 Sep 2026 20:24:27 +0800 (CST) han.junyang@zte.com.cn wrote:
> +struct zxdh_fw_compat {
> +	u8 module_id;
> +	u8 major;
> +	u8 fw_minor;
> +	u8 drv_minor;
> +	u16 patch;
> +	u16 rsv;
> +} __packed;

Why is this __packed? Please don't sprinkle packed annotations
unnecessarily, they lower code efficiency.

TBH the AI review for this patch looks like all false positives / nit
picks. We do trust PCIe devices a little. The AI review on patch 2
seems to have found real bugs.
Technical Details
Message-ID: <20261006172725.4c1e89d2@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342124-linux-kernel-netdev=dewy.ru
References: <20260928202059763e9xqxhTwFe4DHa6a2wq0L@zte.com.cn> <202609282024273579VUWteKdnnbvWlyjERLQ-@zte.com.cn>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342124-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 1/3] dinghai: add firmware version check and
 RISC-V  readiness polling
Date: Tue, 6 Oct 2026 17:27:25 -0700
Organization: Usenet Network
Message-ID: <20261006172725.4c1e89d2@kernel.org>
References: <20260928202059763e9xqxhTwFe4DHa6a2wq0L@zte.com.cn>
	<202609282024273579VUWteKdnnbvWlyjERLQ-@zte.com.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="542604"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:TuzvBLRa11vGuc7lBgYhbcACr8Y= sha256:3YahRdTn0STLUInBSOSwiV2qWmtbSFplfef7uJa1+08=
	sha1:Sd70femjdu53XiAQ91JqhjG6uNs= sha256:92N0UMQ9r9gu6kAeaZ9yPYOmUcuEYcO+cGA3RWtH1sE=
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 1529C10F092; Wed,  7 Oct 2026 03:27:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.641
X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, 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 rJ3ccIQNNnyd;
	Wed,  7 Oct 2026 03:27:35 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342124-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 3B39D10F08C; Wed,  7 Oct 2026 03:27:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id D7BC93212A; Wed,  7 Oct 2026 00:27:28 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F997235045;
	Wed,  7 Oct 2026 00:27:28 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RkxXVctl"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53EC8233933;
	Wed,  7 Oct 2026 00:27:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791332848; cv=none; b=pKOOZlV6zkIpM5PpsBl3cnieASiYYVsOmOYDWJ6/enyTp2uiX8JZacGj0cc4qVITH973ZPFEVmRPObPsUjkR+AgTZXrWYMovLVnl3tA4HLebpfbMi+iCV9j1qPtZ+hS2WMHIYRd3gCNz+VZTpanWlbRYj6y+yylyLaI1F+YqUpk=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791332848; c=relaxed/simple;
	bh=mQMmFYPEoNYCERymqt5EaqVUK25g8kBj7yIMKj9ZaX8=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	 MIME-Version:Content-Type; b=CeM1ehT8trgpRcqXe3mXV+LupXVHyu9VGAEfSAQEN8JkiRzWZzIb+skadSo1/frL885w3aJZcufN6VPWop981rgqGE1/HuqVMvE13ACD9PbouMMVqF+ID1TP4ALLkfsuosOE7E4cHzYrY93uJorFoE9zJlVlUn1wtkjKpu6eufM=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RkxXVctl; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 868711F0089B;
	Wed,  7 Oct 2026 00:27:26 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791332846;
	bh=1tRPf4gAioqgLMgU7c6dHPz8m6V2TpPM9YEN1/v6sqs=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=RkxXVctlleR061HBWfWht7a5j3oyrTArqmOMD4IwIDlxQnPZ0fZYp2hWg1GhMau0M
	 tOj/cOUOygQzsMZFnJ3yqtxjT49Ip2ZrZCt8LI8YTKh39vhXzpCbUFMiNIL3gP0tkA
	 WxtbFa1ToZRcwU2Vj8q02mf6v2UDHeOEmJu8SmZMXCEU6qsq9r/C+hye3KGNLMJ0+r
	 HYEdWk/RfCWEBKvaNhvIo90t6dGMeq1CxQcLYdSWDYrNsLMprTeusCcDqOwR/BsOEZ
	 hNihSg8sjm/ZaJFjjguCMPUCKzZ23qSVhcGEVdRKypV2fVMaeX4TvxJxlnXRnV81na
	 tvPAIUXwUh89g==
X-Cc: <andrew+netdev@lunn.ch>, <davem@davemloft.net>, <edumazet@google.com>,
 <pabeni@redhat.com>, <horms@kernel.org>, <linux-kernel@vger.kernel.org>,
 <netdev@vger.kernel.org>, <ran.ming@zte.com.cn>, <han.chengfei@zte.com.cn>,
 <zhang.yanze@zte.com.cn>
X-In-Reply-To: <202609282024273579VUWteKdnnbvWlyjERLQ-@zte.com.cn>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>