Article View: linux.kernel.netdev
Article #2525Re: [PATCH net 1/2] sfc: ptp: serialize host and MC synchronization transactions
From: Edward Cree
Date: Mon, 12 Oct 2026 21:48
Date: Mon, 12 Oct 2026 21:48
23 lines
9354 bytes
9354 bytes
On 09/10/2026 19:32, Alex Austin wrote:
> Protect the DMA handshake and result processing against concurrent
> synchronization callers. Serialize clock adjustments with the same mutex
> so they cannot change the PHC during a capture.
>
> Fixes: 7c236c43b838 ("sfc: Add support for IEEE-1588 PTP")
> Signed-off-by: Alex Austin <alex.austin@amd.com>
> Reviewed-by: Alejandro Lucero <alucerop@amd.com>
> Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
...
> static int efx_phc_settime(struct ptp_clock_info *ptp,
> const struct timespec64 *e_ts)
> {
> - /* Get the current NIC time, efx_phc_gettime.
> - * Subtract from the desired time to get the offset
> - * call efx_phc_adjtime with the offset
> - */
Not immediately clear why this comment is getting disappeared; it appears
to still be accurate. Is it just thought superfluous?
-ed
Technical Details
Message-ID:
<aecdab1f-9af6-4a07-938d-753ff9fc9938@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345240-linux-kernel-netdev=dewy.ruReferences:
<20261009183240.1898762-1-alex.austin@amd.com> <20261009183240.1898762-2-alex.austin@amd.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-345240-linux-kernel-netdev=dewy.ru
From: ecree.xilinx@gmail.com (Edward Cree)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/2] sfc: ptp: serialize host and MC synchronization
transactions
Date: Mon, 12 Oct 2026 22:48:00 +0100
Organization: Usenet Network
Message-ID: <aecdab1f-9af6-4a07-938d-753ff9fc9938@gmail.com>
References: <20261009183240.1898762-1-alex.austin@amd.com>
<20261009183240.1898762-2-alex.austin@amd.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="1893553"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:4nIv4AJtj0kIQXn9gct2M7eMraI= sha256:ABw9wc/2p/8CQLEAGp3RF+re4jlpaXq4nwm2tOucWso=
sha1:cv6k4Nt1H53ol2hrGatEtseUyos= sha256:AJ5Ps6ZK3BDRd1QQfAIvP3eANMmak471EvHwlKt+754=
Content-Language: en-GB
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 0828010FCE3; Tue, 13 Oct 2026 00:51:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, 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 XzfCoeMRLk3U;
Tue, 13 Oct 2026 00:51:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-345240-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id CC3FF10FA49; Tue, 13 Oct 2026 00:51:38 +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 6B90D43B29; Mon, 12 Oct 2026 21:48:17 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 781ED40D590;
Mon, 12 Oct 2026 21:48:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pXOo5kCg"
X-Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF6BD4F55C6
for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 21:48:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791841688; cv=none; b=UdaY6zMTHkgSz0SETlnybxzc768hEf6wuAXyAXdeMslMwARAQrVWAyb/HG7BQ6pdT/E0FoC8YYfIWxNvV/dtKmZa5yPcfqun1PHwOaTMy2EhttitAoGdiqEn2x7SUvHBKvmIMQYMhTOYR5+fGMtoMDXbtCBfI4JgtiOM8s5J7V0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791841688; c=relaxed/simple;
bh=PEBG/k1n0Nekc/Fj4VvaYhr5hFLRa7NhzeeUHCU4N7A=;
h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:
In-Reply-To:Content-Type; b=ObQr2jqXDdmtYM7clvSoFeepfXBs/oKN2VBt+tgOPB+m6Ca+oLiNID6Xposv1bXSfCc7lsMpGtX6TLFUq27gwCZJ+IedMGiJmMW2TIskWJx3r9hsTaaMC/tjGuZXWeD7svINABldmcHTbxsOZwvuSyYjA9n2GbZA17QGj6YU4+g=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=pXOo5kCg; arc=none smtp.client-ip=209.85.128.48
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-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a180fbeef5so21130815e9.1
for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 14:48:04 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791841683; x=1792446483; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=9zq/8m1eSiHTlioZUUeey5q3Q1PxGXgxzAf3i69rhbQ=;
b=pXOo5kCgGZf/tIVqqAGo3MjAEeE8g2vHRTJEqaHQd+i+kRg6qrp1hI4bs8nvSzdqyd
nW1/fwr+yLN7mgA/SOQis5wlt6zweHF6B7vvlh6is0tZxAJmBQH5L0huGqMpyh+W/RC2
FqwCOHGvtJ5J6P/BY1qilRav1FLxIXREhVNOAfUq64MDrI+2k/mLdhnctd8S0mGj24lW
jXuAC+PPCRVLGgFIVNlqhBUHJ6w+n9KSRKmbRJ9jGvPfxZLrukjgOFnn7yHqnuiFPXgj
QTK/L8Yyv4iCMH0MASwPpgIuCQtb0KTWNft8mpkXevYcPLatB82oMreDxO4pzMVJZ1zt
jLQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791841683; x=1792446483;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=9zq/8m1eSiHTlioZUUeey5q3Q1PxGXgxzAf3i69rhbQ=;
b=AbT6u5KIpFI+ppGoIMqkG7VI4qqDPxXLwS6s6s2lnat0TBSSXCu4EDU/Trnzh//aPY
M97A8Rhr9dhKvnp+q1R0guV/Zem2jZEZglWb5Cf8fCsdAUd5HZGAW+JpsHUIqwD4MVYu
OdHzktsQwcCkuU/kejvFZO1/I4XxTpMQfXzP02RzslrNUk2L58+ifCUbekEkHSxPS8sU
/XJ4OgpFd/d+kuHaT5LpuVTSarxZPNtuzGoWmX52ZH14HmtaBx8WLA7bdvzcxchYnrM7
OSXxvD9cUxGLkdcjpbomzuwnfZz4mHPqfm8OgA1n6exu9ASoPZ5toEYhwfmGmHsvinJG
nnlg==
X-Forwarded-Encrypted: i=1; AKwUvBwIEJse8pQsLzf9kOhvudJkByLs6GrzxssrVuAaGmKnMZkt7+ReQtafjOG7OZCvC/cREnNjsSY=@vger.kernel.org
X-Gm-Message-State: AFq9FYLsUlLZEemyh4aWbvWsMLhWUQodek6+s53QchWcHvSG4ZYv1ZNM
2kAU/32vb4jq+qLXDZ8nCqqfzzHN/3l5ZBBhxrMtt7ww0No+ET1pY3AL
X-Gm-Gg: AYBFou3oqxmuxjJxmfyRMlHktfnItMrOkN1iZ862MzrwwcffBzaI/BsvdQ0vTs9FmH3
qigoHFSgrvvJL2yzQ+818MfcnJydnncGA8pfFscQWeYU1RcxrgFjbzHxbHiUsxIwjxOwHkIak1O
+0ZrrjcznC6Ygf5xFcZ9vCvwxTrQLYnxdF8QZnfTmN11RrXlrxSYLejtq+RIkGT90neEKTGN8Bi
4d3h/ZMG1gei+Os9HONP6I2xsuFnITf/ObB4U2FWBVpYIwmYcvhOQ6UWPv2BErI3CCk8+s+Mx21
i8EkW9wPb/P0J7Z5gWB1HJdYoBnYkhisnqP0ZeqGpRV3Jg4v1wmKPk/hYuRO0BEMb7fbeeExuuX
UtQWtmQTuvf9Qs+2yB3esu8GeNbZaoaYZLkSNC5o1mTP/HLIxwYkbBHkaze9GWWzwSzz+u2KPUl
ypjEmsilN42P9tGJiXi7Fj9oTjWClbXDKcxCF4/jM4hPOLUiuwJCdwmn/BrpToxSX1UCtnW/o9o
zc7fearIvKTAGLDYcND1y7a4Mbz+QEcBINyoskEvSfOALI9CuStHB+IRXd2
X-Received: by 2002:a05:600c:3e0a:b0:4a0:1c10:1372 with SMTP id 5b1f17b1804b1-4a18e4aa206mr223185285e9.27.1791841682545;
Mon, 12 Oct 2026 14:48:02 -0700 (PDT)
X-Received: from [192.168.1.122] (cpc159313-cmbg20-2-0-cust161.5-4.cable.virginm.net. [82.0.78.162])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48de0ac52d3sm1449484f8f.43.2026.10.12.14.48.01
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Mon, 12 Oct 2026 14:48:02 -0700 (PDT)
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-User-Agent: Mozilla Thunderbird
X-Cc: andrew+netdev@lunn.ch, bhutchings@solarflare.com, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org,
linux-net-drivers@amd.com, pabeni@redhat.com, richardcochran@gmail.com,
smhodgson@solarflare.com, alucero@amd.com, pieter.jansen-van-vuuren@amd.com,
Alejandro Lucero <alucerop@amd.com>
X-In-Reply-To: <20261009183240.1898762-2-alex.austin@amd.com>