Article View: linux.kernel.netdev
Article #4151Re: [PATCH net-next v3] tg3: normalize inherited BCM5718 register byte order
From: Sebastian Andrzej Siewior
Date: Fri, 16 Oct 2026 21:38
Date: Fri, 16 Oct 2026 21:38
22 lines
7656 bytes
7656 bytes
On 2026-10-11 21:41:58 [+0200], Magnus Lindholm 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. … > > Limit detection to BCM5718, whose register layout and inherited state > were checked on M3000 hardware. Other controller families retain their > existing initialization path. This boils down to firmware sets BYTE_SWAP and we need get it out in order to have the device working and break anything while at it. I have here DEVICE_TIGON3_5720 on x86. I forced that byte in, had the register swapped and then it fixed it back. > Signed-off-by: Magnus Lindholm <linmag7@gmail.com> Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Sebastian
Technical Details
Message-ID:
<20261016213852.o_aG9SgB@linutronix.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347552-linux-kernel-netdev=dewy.ruReferences:
<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!peer03.iad!feed-me.highwinds-media.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347552-linux-kernel-netdev=dewy.ru From: bigeasy@linutronix.de (Sebastian Andrzej Siewior) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3] tg3: normalize inherited BCM5718 register byte order Date: Fri, 16 Oct 2026 23:38:52 +0200 Organization: Usenet Network Message-ID: <20261016213852.o_aG9SgB@linutronix.de> References: <20261011194228.981141-1-linmag7@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2892077"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:8lzEUSdG2MeKMPKrzCy+vHVu1II= sha256:gqnaQG+BSys9KzBv10Lndi+O/mw6B77Ena1+/is6iC0= sha1:hXJX9udUHBsfFZOIv3EtqnmE6t0= sha256:7xmV90MM+n3XI0ripXJWyRxM6uVdA+nnb+DnqJDxtB4= 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 7F3F011060E; Sat, 17 Oct 2026 00:39:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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=linutronix.de header.b=XGcdq4JA; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=bdkIdvqW 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 vfC-o14CdEO9; Sat, 17 Oct 2026 00:39:13 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347552-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linutronix.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B94411105FE; Sat, 17 Oct 2026 00:38:59 +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 40615396BC; Fri, 16 Oct 2026 21:38:58 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7B273B8BCB; Fri, 16 Oct 2026 21:38:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XGcdq4JA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bdkIdvqW" X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 71C8936215F; Fri, 16 Oct 2026 21:38:56 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792186737; cv=none; b=mC8iha9ymTCsne+sSWsKDEXrZHUqjj8bnsX3gMs50r3+IYOrLa2uQOLsQ4iGEPU1XRgwRtXv2lYKobM0QI1jZmGH/XucNEV+L5FIECXRV+yzPXLu/OYU5VoJYQtEaNdOmg4eaLXDEMzVloP9p7qv3zEmTD4Mlz385GMu8m7NJw8= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792186737; c=relaxed/simple; bh=mbuynC9ckjkhYp367TPn/C+i6WQ2VNaT3Tlp8u5SIqg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dTaKcXSbERGiCweknqqe9sDHOrcO6pZJDMtQkfVP3cDzp2e5pyTZQiExxDNhyO2oD3WM0W3sDUoSCeOuIfSwtcz6VCZQiPwF8M0lKVnuZ9wd1oaqW3dDmK99JNT4VNytcwb0XTz0edkjNGIKgQs3m+m4S46XBz7sZtaHlL/B/ZQ= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XGcdq4JA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bdkIdvqW; arc=none smtp.client-ip=193.142.43.55 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1792186734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mbuynC9ckjkhYp367TPn/C+i6WQ2VNaT3Tlp8u5SIqg=; b=XGcdq4JAHgCp4aBhqqoZ9g5VK2aE6JNPG6KhUi9xN2UUwDGJH1iNw+egEct4U4isixctIQ WxV9A7n+7Jy98VjmG0aVHU5Hmv2MEgahgEW1um/QVsRC7gdvA211xOGe7trXtc64FFN5Y9 5JB4+ftdDYANep4lBEz83Fe11l/vhuEqjYH5UU/+c0YQ8nBhhH9UFn6wGW3NHo3DPhbfM7 XjjskvYlAOJalZELbpTRwFkhvgaqnrLA9kkoE+5U6i4B0lJzas9X+g6W2WVcyJefZOXg/H zIWk7hARK4Zw7ES/GQ1MqtfYMll86b5fXpSmgZHmmuMkrKizULPF1yjS8abs8w== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1792186734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mbuynC9ckjkhYp367TPn/C+i6WQ2VNaT3Tlp8u5SIqg=; b=bdkIdvqWrg1tPh+lh15OqybqstG9J9aDQ4fIv/rFpxCpWcGOQtRqJbyT49qJUXdEK/0XSY oVGwUCme75AXQtCA== 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 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-Received-Bytes: 7450