🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4169

Re: [PATCH net-next v3] tg3: normalize inherited BCM5718 register byte order

#4169
From: patchwork-bot+netdevbpf
Date: Sat, 17 Oct 2026 00:50
31 lines
6873 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sun, 11 Oct 2026 21:41:58 +0200 you wrote:
> Firmware can leave BCM5718 vendor registers byte-swapped while standard
> PCI fields retain normal byte order. Detect this from the host-control
> revision marker, byte-swap bit and swapped product ID, without matching
> a platform model or PCI subsystem. Prefer the normal revision marker
> so already-normal controllers do not enter the normalization path.
> 
> Hardware swapping can accommodate big-endian register accesses, but tg3
> already initializes misc_host_ctrl with WORD_SWAP set and BYTE_SWAP clear
> on both little- and big-endian builds. Its normal MMIO path uses
> readl()/writel(); on SPARC64 these use little-endian accesses. Restore
> that existing register mode rather than choosing a mode based on host
> endianness. The swab32() on the initial write compensates for the device's
> inherited state; subsequent accesses use the normal driver path.
> 
> [...]

Here is the summary with links:
  - [net-next,v3] tg3: normalize inherited BCM5718 register byte order
    https://git.kernel.org/netdev/net-next/c/4f9fbb30e341

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179219821101.1034269.14465914522472303351.git-patchwork-notify@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-347576-linux-kernel-netdev=dewy.ru
References: <20261011194228.981141-1-linmag7@gmail.com>

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-347576-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3] tg3: normalize inherited BCM5718 register
 byte
 order
Date: Sat, 17 Oct 2026 00:50:11 +0000
Organization: Usenet Network
Message-ID: <179219821101.1034269.14465914522472303351.git-patchwork-notify@kernel.org>
References: <20261011194228.981141-1-linmag7@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2928378"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:fuAHW1Yo6Z3nt0orvc2CmVJJWKU= sha256:q0yikqJgBeNvJGbEHp1SHUjggGnD75Rqvf8zihcGc+A=
	sha1:Xs0giLlxQjQQwKwX3iNyxfm6VrE= sha256:YdqP7rJD0U5XG2l1OjkrEzlAgJApkVh13aRJcp4aY3U=
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 41B2C11062C; Sat, 17 Oct 2026 03:51:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.64
X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, 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 s8L2ckNmbxPK;
	Sat, 17 Oct 2026 03:51:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-347576-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 DC33411061B; Sat, 17 Oct 2026 03:51:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id A339B2EA80; Sat, 17 Oct 2026 00:50:32 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 0514937A844;
	Sat, 17 Oct 2026 00:50:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D2R7idQv"
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 DDCED3783BE;
	Sat, 17 Oct 2026 00:50:12 +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=1792198213; cv=none; b=PRJvnLAdwZS8sjGUkDOiXwjza6eRlSbPUQdj3RMl3n6tQHDBfKpEJg/YeNBL6iHa7oDC2y1fT4Z0cPKs9a33sGCKLK3FFyp3r2mtBdjXlvp3HgeUHwWyC7OlQd4gVGOttw9RMvYW5KVYEW9kAq0vM44Wp2vk3XNiqNmIMh9axos=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792198213; c=relaxed/simple;
	bh=oaDQP9nAO9YUphCmz2pU3Q78qr5RuazTLWYFq3rD/24=;
	h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc; b=CgJk+TJVrCBA2RXMFlmdlqHKPz2/TLp+23jh4kBtDeJFIaTBi17xTj0+Xxr1d+NTKM7bjzTodBVuhA/XKZLQKuc0+fTY8+08dUXhSubGlxlEPLD2bv0yrv7l21rWhmi6DLLCbexBxV4SZYHYT3Jq8VHWALXjjxrOGybbSvO8ZTc=
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=D2R7idQv; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 816C61F000C4;
	Sat, 17 Oct 2026 00:50:12 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792198212;
	bh=XryWVP0QAf8rIfBGXFxan/h01iVfkBwYZn2AuUnkxos=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=D2R7idQvStmi7tmzdkHhlIu9jU5kNnqegddrNWK5KrMdWSFQzMeXRwAd7Fiu8hq0/
	 u6i0vnINAcjgouiSt57TdoEnvvYIFkqi2Xx1mf+uagjsfvE2gUvZk8G1a8/rXm2Wj2
	 PCrKmGHYaTDXvLw9p1y7vD6tUcrPb6d+CA7dP81305BAPrMFjEYUMHL+XpB0XlQt1M
	 i8Qn6fYLhm22xf7kkDJxEgl01JUaYxarjRQkraqchv3fZKnjQ0v7DjI44HW/O1PTz4
	 nV4pXaXBQg86F1IVINeLNqZDzL2hsZKPkSA7qAm2t+ER4KBabHjpbGvkk8JAbCS6Xj
	 w4kXDlz+t4iLA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 776F0380CED8;
	Sat, 17 Oct 2026 00:50:12 +0000 (UTC)
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>
X-In-Reply-To: <20261011194228.981141-1-linmag7@gmail.com>
X-Cc: pavan.chebbi@broadcom.com, andrew+netdev@lunn.ch, edumazet@google.com,
 kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
 sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org