🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19318

Re: [PATCH net-next v3 3/3] ptp: ocp: support the WiWi revision 02 Time Card

#19318
From: Vadim Fedorenko
Date: Thu, 19 Nov 2026 18:44
49 lines
11036 bytes
On 16/11/2026 18:20, Ahmad Byagowi wrote:
> Match WiWi 2163:1008, subsystem 10ee:0007, without a class filter.
> Resolve WiWi devices against the static PCI table so a dynamic ID
> cannot substitute an unrelated resource layout. NetTimeLogic uses the PCI
> Revision ID for incompatible interface changes. Revision 02 identifies
> the LitePCIe/MSI-X interface; the Xilinx subsystem ID and FPGA build
> number do not identify the register interface. Reject unknown revisions
> and check BAR0 and the MSI-X layout before accessing FPGA registers.
> Do not probe a CoreList or require exact versions of individual cores.
> 
> Report the full 32-bit image ID as the running firmware build. Derive
> signal and frequency capabilities from the supported revision, not the
> legacy FB build-number thresholds. This ID does not identify the boot
> slot. Retain legacy version reporting on other cards.
> 
> WiWi shares the peripheral resource table used by the existing Celestica
> entry (18d4:1008), not its PCI addressing and interrupt scheme.
> For WiWi only, translate peripheral offsets by 0x02000000 and interrupt
> inputs by 32.

Let's not do this magic. If addressing and interrupt schema differ then
it means another resource table. If there is a way to make it flexible,
let's do it compile-time only.

Use aligned 32-bit UART I/O and typed XIIC platform
> data, sharing the EEPROM list but not casting another controller's data.
> Do not expose an unvalidated second GNSS UART or PPS output source.

Why it's not a problem for ADVA and ART boards?

> Keep the external SMA PPS2 input. The PCI revision identifies the host
> interface, not optional board wiring. Use hardware selector values for
> WiWi DPLL routing; preserve the existing behavior on other boards.
> 
> Enable the three UART and XIIC inputs during probe. Reject attempts to
> arm a timestamper or generator with -EAGAIN until the timing gate write
> has been flushed. This avoids relying on FPGA replay of a pulse caused
> by a userspace request made while the gate was closed.

Why is it a problem for new revision but not for the older ones?

> 
> Do not register the WiWi SPI flash controller or enable its interrupt.
> This prevents the driver from exposing raw MTD access to the golden
> image. Reject devlink flash as well. The update format and controller
> support are not validated; read access via MTD is intentionally lost.

Is there a process to actually enable flash upgrades?
Technical Details
Message-ID: <890ef941-0c52-4e3c-9fce-70b11fd1b198@linux.dev>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367250-linux-kernel-netdev=dewy.ru
References: <20261116-wiwi-v3-87afa10a8-0-ahmadexp@gmail.com> <20261116-wiwi-v3-87afa10a8-3-ahmadexp@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367250-linux-kernel-netdev=dewy.ru
From: vadim.fedorenko@linux.dev (Vadim Fedorenko)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 3/3] ptp: ocp: support the WiWi revision 02
 Time Card
Date: Thu, 19 Nov 2026 18:44:38 +0000
Organization: Usenet Network
Message-ID: <890ef941-0c52-4e3c-9fce-70b11fd1b198@linux.dev>
References: <20261116-wiwi-v3-87afa10a8-0-ahmadexp@gmail.com>
 <20261116-wiwi-v3-87afa10a8-3-ahmadexp@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2954373"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:nhP6DFGp1u6YiAv4p7LJWw1vWwo= sha256:mhAvyQQ9CfeVOfYSt5aS1pj8jUmoKcaCdVVrZh8aXS4=
	sha1:LDaE4uK578dtfhmdazI1Gewqzvc= sha256:Phb/35RYC+YiNdtB/ojwBkWWwu+KSuBiPcuRKIe67vk=
Content-Language: en-US
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 7775F11573A; Thu, 19 Nov 2026 21:45:07 +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.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.dev
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 AMfWucFnwTBq;
	Thu, 19 Nov 2026 21:45:00 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367250-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E38C4115697; Thu, 19 Nov 2026 21:44:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 38027160730; Thu, 19 Nov 2026 18:44:46 +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=1795113883;
	b=E4k5xcO/D3IIg5OMqdzQQ4DoQVDH/ye4P6i6gQUpd1ZAqbg2Kg41PqDtHfX8K9kWbdjG
	 xuJ2x1rN6BLuzMTVj45TqAXODux8FzJX/DF/dXyuvJ1INxgpxSE9DejXMTSRWzjJc74/F
	 OeYp4bQ5zgiTRQ4GK5RRedIPlXUHtKov8l7coB+th0is3kwRGwD/0u09ED+qEe6plCeVR
	 RLClU/i/JH5YOV7fv7D/qZbY/4KT/Bfty+DUiqeCwmxCmBBotuA0ZCzqyi3Y2Nr5cPnSI
	 E2o8g6uM/v0IDtg6JfEHPkkdPvAq/FIU+QD1pnADDotK7GLfq+ZmLtApP5ZVqrA/vIA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795113883;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=2H2ujk4pMkofjrrxTD/0OLd5M9zgZ4osSGOPOf/44rw=;
	b=ttzyauBXMo7poCsaZWb4SLeDnYedHIi1TQaunz/rhtHqeyYzfExRAQS3WO0Fb6wTjlsv
	 KxO0UcVJKawf8br7RHBzAxqPXClTTf5bKHx2yDmmnslXyqb0dKw40nXzVO91DuJp+lKQc
	 n3rO/SVYKmJCcNMKZVOynAkEq4vapLKJVhXiXzwqY7uJDZzaAOYal59SJdNDc57LHvc/h
	 /zaJJ3sjqlnqJ2HXNnrLa7yjndPMKjLwxTWHDVwb614Elh51bkN6xHTvKISgfoQHWdn6S
	 +1/EMCsQiTXH3mHGKhkejdo+6Mr00oaDcPhUHGwJ5mypCUF2IR2J9hnDcTaP/2grvRg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=APIUpFI6;
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	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 7C3D760A2606;
	Thu, 19 Nov 2026 18:44:43 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=APIUpFI6
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.82
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795113882;
	b=lVQnKkwT/gTfK2tzZ/3wKY9FPBVuZO0XRI7F509vjp9OI/OZj63tGz0+iAIFC2VGCuD5
	 jzPPOxV6mMCdVO2NsMGSvh0KyyTjjcLe7VVfXkTziPwjIpIWXlQygtVP3lUHSR1GOwLeV
	 zSwZeKrsnSy5MNCUcrnVXfAztMew0/NgfFGAUTflR3HlXbZ/Veh6yz+dQVdRa0ZvFkymB
	 BCOJ99jnGDv9x744JqUfwtjt33vtAEPfm4WvG8ippJhvBotS5WMHQlA2GbV5BgCsjDpzI
	 onQ9YcO9aWUoMeEeAUiqQnBUruluHy17ZRh/h5ZcQ7POYSkp5nHTpxh250/XxBGr95A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795113882;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=2H2ujk4pMkofjrrxTD/0OLd5M9zgZ4osSGOPOf/44rw=;
	b=02SayW3l8Ovv7ObhcW/7N6bvW/gYbKeiDBuaCipa5y7Mm6dlcSAHxid6OczdvqKBeu6W
	 Xf5BBU5TYTYrh1hD0lNrPC2oeCRTgPSbjL/7MR44uRvK/fzGyILGsczysZnNx/fckpnjw
	 lvU//lH0jrZihSFh+9AnZN4nUPC8bQbX/up3h0UbuTILgz9phQQEEelA9H+GPAoYrLMaE
	 CuZ/75zLdCC8RkDVzUw4x94NUzWFvMgFc/U0d8vMTHCsunPr4dlfFOMGBtXUBu5acc4Yc
	 Y+1KkY0mOuWA76K6PA/2FSTRVE/XCaGpfyPWCsMYIMR//yG0nlg+NF1wvQSWi2+2Luw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=APIUpFI6;
	arc=none smtp.remote-ip=95.215.58.82
X-Received: from mta1.migadu.com (out-82.mta1.migadu.com [95.215.58.82])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B807F606A325
	for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 18:44:41 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B807F606A325
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=/kMkRCy9H1vl6y0EZSX58RectQkIJBsV5pNvyHexP54=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1795113879; v=1; x=1795718679;
 b=APIUpFI6O+EsWur3vIqBq6FHT4j6Lftc/879eFNEb9HY31mw15a5es92FyE2I29zBBOzF229
 8I/dgnFyfFcIDrpEmXe0OaxQWGYeFy8MBX5yDgXIVRbc7Z7idJIbsv2RDSwelgllEod8gk48hvk
 vphidaFCoeu/tA7zO61X5YjA=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by smtp.migadu.com with ESMTPS id 2db01476e0a08c7e;
	Thu, 19 Nov 2026 18:44:39 +0000
X-Mizu-Trace-ID: 2db01476e0a08c7e
X-Migadu-Flow: FLOW_OUT
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-User-Agent: Mozilla Thunderbird
X-Cc: andrew+netdev@lunn.ch, corbet@lwn.net, davem@davemloft.net,
 edumazet@kernel.org, horms@kernel.org, jiri@resnulli.us, kuba@kernel.org,
 linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org,
 linux-kernel@vger.kernel.org, pabeni@redhat.com, rdunlap@infradead.org,
 richardcochran@gmail.com, skhan@linuxfoundation.org
X-In-Reply-To: <20261116-wiwi-v3-87afa10a8-3-ahmadexp@gmail.com>