Article View: linux.kernel.netdev
Article #21340Re: [PATCH net v2 4/4] ptp: ocp: correct the DCF output frequency
From: Ahmad Byagowi
Date: Mon, 23 Nov 2026 21:58
Date: Mon, 23 Nov 2026 21:58
61 lines
13492 bytes
13492 bytes
On Mon, 23 Nov 2026 at 21:49:51 +0000, netdev-bot+sashiko@kernel.org wrote:
> Should the "10Mhz" entry in ptp_ocp_art_sma_in be fixed the same way?
> It comes from the same commit, 09eeb3aecc6c, and looks like the same
> kind of typo:
>
> drivers/ptp/ptp_ocp.c:
> static const struct ocp_selector ptp_ocp_art_sma_in[] = {
> { .name = "PPS1", .value = 0x0001, .frequency = 1 },
> { .name = "10Mhz", .value = 0x0008, .frequency = 1000000 },
> { }
> };
>
> That value is 1 MHz. The matching "10Mhz" entry in ptp_ocp_art_sma_out
> uses 10000000, and ptp_ocp_art_sma_init() labels 0x08 as the 10 MHz
> input:
>
> bp->sma[0].default_fcn = 0x08; /* IN: 10Mhz */
Yes, thank you. This is a real defect in v2. The posted v4 series already
includes the separate companion patch 5, with the same Fixes commit:
https://lore.kernel.org/r/20261122-timecard-common-v4-e0db4ab1aa-5-ahmadexp@gmail.com
It changes the ART input entry to 10000000 Hz. Keeping this separate
leaves the DCF correction narrowly scoped and preserves its review tag.
I reran the source-derived ASan/UBSan regression on the unchanged
submitted v4 source. It uses the actual ART init/set/get functions and
the DPLL core supported-frequency and get-before-set functions:
- A literal 10000000 Hz request succeeds and selects 0x08.
- A 1000000 Hz request is rejected by core validation.
- The fixed-pin default 0x08 reads back as 10000000 Hz.
The pre-fix source failed the ART regression during v4 preparation;
the submitted v4 code passes. These tests use stubbed registers, not a
physical ART card or an end-to-end netlink session.
> The diff only changes the DCF .frequency value in ptp_ocp_sma_out. The
> selector, mask, disabled-state and removal ordering work mentioned here
> is not part of this patch. Someone reading this commit by itself, such
> as a stable backporter, will see validation claims for code it does not
> touch.
>
> Could the series-level testing notes and the description of tool
> assistance go in the cover letter or below the '---' separator instead?
Agreed about the cross-patch claims. The posted v4 DCF patch now describes
only the DCF set/readback regression and its software-only validation:
https://lore.kernel.org/r/20261122-timecard-common-v4-e0db4ab1aa-4-ahmadexp@gmail.com
Detailed test and revision notes are below the separator. Brief discovery,
validation and provenance statements remain in the commit message as
required by maintainer-netdev.rst and generated-content.rst. The repeated
selector, disabled-state and teardown testing claims are removed, and
the original report link is retained. No new revision is needed for
either of these v2 findings.
Ahmad
Technical Details
Message-ID:
<20261123-timecard-common-v4-followup-art-ahmadexp@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369801-linux-kernel-netdev=dewy.ruReferences:
<20261119-timecard-common-v2-078fe69f33-4-ahmadexp@gmail.com> <179547059147.3135.16821426799248727782@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369801-linux-kernel-netdev=dewy.ru
From: ahmadexp@gmail.com (Ahmad Byagowi)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 4/4] ptp: ocp: correct the DCF output frequency
Date: Mon, 23 Nov 2026 13:58:55 -0800
Organization: Usenet Network
Message-ID: <20261123-timecard-common-v4-followup-art-ahmadexp@gmail.com>
References: <20261119-timecard-common-v2-078fe69f33-4-ahmadexp@gmail.com> <179547059147.3135.16821426799248727782@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3993885"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:K+qigkZjEeGOqnV6e6ZR475ARKk= sha256:MANTMldZd4AnGqgW2wRkCEMyk5ryqU2c8XgaVaK1kT8=
sha1:kKoqUgHvPXBHOkqd+cKqCBth3Y4= sha256:xlRugiS6nwDDPqmO4xHFkXV/R8IkumjhMNTyXwR4+yY=
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 0E700125DC6; Tue, 24 Nov 2026 00:59:19 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
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]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
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 GD2sstT5br5P;
Tue, 24 Nov 2026 00:59:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-369801-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 468C4125DB9; Tue, 24 Nov 2026 00:59:01 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 5F881606510; Mon, 23 Nov 2026 21:59:00 +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=1795471139;
b=mUIh2ac0W9Rq1XqW9v+3a9LvQuuailaUxEyl73OvmUkKPMovXqwYTnWtPkVO25bfUntZ
Juci5FEQVZLOwVTVQdMREi2i1mz6QaC8vUQTS3WY6B2a6zA3fa0ekDxDrIalcpdVaQLCw
erpxEQbp8z3+y5B0Ogwci3upJVMIoA30SR0go6eBiPKv4dGQeVgIpvcsi4wHtKefZO7lj
2ddxkGMFqUWJDPnoIvP5RbnAjOGbS37p4nQeV6/LP5R9DSUEkO5se4iQM1laFxnWbIMlH
ys/ubqxB1ZhSXIQuy0fwm1Ij8zmObpjHsuJlm/JzhZgOyddT07u76G84VqrgB4+JuVA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795471139;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=DV9yKzignK8HrwTMEbGEbZ0KghQpPXelP3Qat87gORM=;
b=3g5QS2cihxzFe0DMKtcqRBUPjQJgX5ERqSw8sC/jrr/+Tzd13ole9MTl0mofOYlpcFkv
GYq5C40PCJ0HnYFFdpSdBMheRXolDWQ3SNcL9GibYr6AQ1m4+qIUIezLrUhO8HEO7Z2/E
QLDUK0HNnw/ZM3o/aBxuQj2YZBUyF5ro2QX8gqtXGHS1QZw/iIyXPSY9nAg2pj7SigZ9c
zJW7V8hJn6gpDRG9sJZBX9Itzt6oQXwtte45gWdBPFykXeCVAZ7ynz5llcPEJVFaqZTqG
b/gy6ySPxEk4K5L6EHM6PamIIf0T/Ve2++qHBcq3/GkMgoqueqHpgeM0IYvWkIx2EGw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=WgDuQE8y;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 8ECEE606A336;
Mon, 23 Nov 2026 21:58:59 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=WgDuQE8y
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795471138;
b=PctbnIdPa/WddiCZca1dvWUwqlhZop/OUR2opZPgJDi36cCOYQmC9DaNGdWUrW1wurA9
JrOg6SfmJbKjuM0QpsbhcEhqf4baIlyCJQBb5VwNk61KuUoBfuWJfvsEV9BkJYLRhbk4z
5y4PG6wlY/Rn81tyfeGDInZg8RKLeQiwBZPx6iYhflLJQbq8RQeASyf3s9gzGZ8OFz9WF
Asp6lSzRJ3A2brSD9qiDV27yXMPYw3CY89aIxJSpoGBchJ3L//J+ys9YDqei1wy4lhxFP
ajUStk8fkxxXkTwCgjGjEmxsgzfnxxhW/3Mwi1ck5ZNjIugpv5NtMbQESnNU8i4dJsg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795471138;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=DV9yKzignK8HrwTMEbGEbZ0KghQpPXelP3Qat87gORM=;
b=4HuVTohkZ+AiXUFPFw+A34g/Pvp0e0P2AuC86Vjbk+THKeyOj08aLZQj4YJdKbgtwu4u
EYS1FcMpCxvV1oMCiHDV+s7mjMfklj8gEWeeHiuUtJ7dHvkwynesvmh0gH8HYVyYG0S6S
SbgWCPvLTTIOQmkAiSMXsjTf/gfiJ8Kk8TImoq8o7IZUrlmI+rHVYB3KD0S9L7+lOjwZ6
MseOzmUKRhZAKgRUa5AmQ+AJMBNB5q55MixlADqlnBjAhZTElDk4hR5aI4LwLhVDkN4oL
WVU1YafOiG9fEDnKUNcygV+tAEQiVvtDdmgD3Jv8VlHBPPJJo62d8j91z/nqUnRA/Ag==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=WgDuQE8y;
arc=none smtp.remote-ip=74.125.82.182
X-Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182])
(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 636C5606A326
for <netdev@vger.kernel.org>; Mon, 23 Nov 2026 21:58:58 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 636C5606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f182.google.com with SMTP id 5a478bee46e88-3282db206d3so688999eec.0
for <netdev@vger.kernel.org>; Mon, 23 Nov 2026 13:58:58 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795471137; x=1796075937; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=DV9yKzignK8HrwTMEbGEbZ0KghQpPXelP3Qat87gORM=;
b=WgDuQE8y/o1A69jb5YvYN0KY3iiB7eA9MDq2I1XX5YCoe46tux7MzpMrKiXclX1CRX
5kVjAcdqoN3JmlrtNbvtLG0bSyuTtZRQKgNWeO0tvi0u2KbBU1BlR/td6IVtD5xn/evf
DrI0U/yxWHdR+17WVfTODJTm4wFQxix1bd5vmUpVtnJqpZ+yjoGj6RmusesiE6ysDNMy
ZLze/QHBJjN1ikLTdMQWv21e6B8Ib3dmpXVhVHrUto9ppxhBshj6ZxAVqeS5LlxzyUO0
LV0E8gxYoqCdvYw5sjatTaL+5qYwbPQWcuXLSRfAuZFGkpMDwbXY7X7w8oanZVqWDzRw
5nqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795471137; x=1796075937;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=DV9yKzignK8HrwTMEbGEbZ0KghQpPXelP3Qat87gORM=;
b=CGHySkeSPqprZUKhdQl5a8idb1TKC1RY6fNDf8R0Xcc10QLN7gTiNzpLPHtyBBlgkd
hxbejYnO9Je99/m7SRr4wSXQD6iqx7YXO+OLT+cZPk07Wrix/jf4Z8qXNsRzXA5a88Tb
C3UFopR0oXnQRZqFQwb3R6u9ZtqvqpxmhmogKzHMry6jkCXyn42x/pkB69VW2iHcbaA9
CCcpBw8Q/dM2xJY+LwVZtSQVRrq9r0odLFdc7WnavunORKsEP6qpUEaEihkMjr6UbEKN
cmYLIUyXyvIW9Z1++zzTWGQGdM/zok4NqgGozLuVleR+zHa1pPC/nsVu8YYDGlKqHZLZ
KW7Q==
X-Gm-Message-State: APuU4Z+EkPzio/qo2RjCnxdwKj3ppmn8fybM7xET6CVwnQpY6D34tv3v
s2Dfytq4s4FibT+mUIAMKZhioZXbUsG0k122IKioVaMuJg3bt0Av3+yh
X-Gm-Gg: AZFdTZf++MW4c0lZ3//Qa7NCDDfJ6dMIZmvwH6wJT5+EGUPcfxsQ3G/6DozhrYFeeYx
Io/b/K9qTpeqMTRFgP4ie0qXS3EcgvGIwftf1GCcEib59KZbLfmr4qVqaC2AiESrsZVrzzwmRuS
PQiRu/DBbWnSNVNu1loeJuA7J+ki2yR3N87Osy3qlL26FvSywKeaiDMsG8S6wbHS7Hub5/mNsCI
kkFFFuVfsJM89P+ausPmHQpD5iZcKJRahMJsb7UTNJYB++CJ5xa/4TJAFqTCGmXMcG5Pv+1gEM0
WAtQrwekyW76t8koBxnmaTldJsiWooeMfy+gXM3c6ey28WVo6Wa5ON4jwcA32hdx9j0mBIxUEZp
z5+4sMLK9hQ/TCasUAx1qzUL/4+ry1q9+6pfCF6azwknPb+OYVcDj9ZdX9z75vgl1n2XDhUfR6P
9/qJNQQi3ewwPkjopdJ3zjU/YEs8x8Hiah/UiHfSDun7DXGp9WfIE79wXrh26gU+PedldbjDKxF
p7ZrcWwCzzhc3LtJEt2udZHCOdXmpMiuMefBAsZti3NN5O9v17dXaQ3rjAMzqQqs6JTXwMOArOz
S4dF0MD0iQKrwLORM1f1jV+r07PY8dSpVcrbqOfSeCeEZie5EPxmz2CsvALxdwmG9YQL0Mr3cNZ
Ab5QzOWVnijgiYLQRmzhpmkFK+7QIdnRP4sXu/9O5p/bCFDE9Mw==
X-Received: by 2002:a05:7300:d090:b0:386:8bd2:da2c with SMTP id 5a478bee46e88-3868bd2db9amr10983073eec.2.1795471137447;
Mon, 23 Nov 2026 13:58:57 -0800 (PST)
X-Received: from Mac.localdomain ([12.162.234.74])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385677c371esm38247176eec.23.2026.11.23.13.58.55
(version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
Mon, 23 Nov 2026 13:58:56 -0800 (PST)
X-Cc: netdev@vger.kernel.org,
vadim.fedorenko@linux.dev,
richardcochran@gmail.com,
andrew+netdev@lunn.ch,
arkadiusz.kubalewski@intel.com,
davem@davemloft.net,
edumazet@kernel.org,
jiri@resnulli.us,
kuba@kernel.org,
pabeni@redhat.com
X-In-Reply-To: <179547059147.3135.16821426799248727782@kernel.org>
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