Article View: linux.kernel.netdev
Article #18890Re: [PATCH net-next v2 0/9] dpll: do not serialize driver callbacks under global dpll_lock
From: Jakub Kicinski
Date: Thu, 19 Nov 2026 01:44
Date: Thu, 19 Nov 2026 01:44
37 lines
10271 bytes
10271 bytes
On Wed, 18 Nov 2026 16:29:23 +0100 Ivan Vecera wrote: > A step of the zl3073x PHC, which ptp4l and ts2phc do at start and after > a large offset, waits for the next 1 PPS edge, up to 1 s, with the > channel lock held. A phase step can hold it for up to 3 s while it > waits for the previous one. A dpll callback of that channel waits for > the lock under dpll_lock, and every other DPLL request and notification > in the system waits behind it. With ToD writes running, requests to an > ice DPLL took 1448 ms in median and 3.9 s at most. With the series they > took 0.2 ms and 0.3 ms, the same as idle. > > The bigger reason are zl3073x callbacks we are working on, which have > to wait for the hardware themselves: > > - a device reset with resync waits for the fast lock, up to 1 s with a > 1 PPS input > - a glitchless stop or start of an output completes on an output edge, > so it takes up to one period, 1 s for a 1 PPS output > > Holding the global dpll_lock for that long would stall every DPLL > device in the system. For the output state we tried an asynchronous > implementation, but then the callback returns success before it knows > the result. Right, for these level of waiting async seems like the right direction, at least naively/without knowing the HW. Why does the device wait until PPS to apply the step change? Is the programmed time supposed to correspond to the pulse? > A failure can only be reported by a later notification, and > the next request gets -EBUSY until the change completes. With a lock > per chip the callback can simply wait, and one chip cannot do these > operations in parallel anyway. Do the failures only happen because of "unforeseen circumstances" / EIO, or there may be more common errors reported? If it's just the former a devlink health reporter could be an option.
Technical Details
Message-ID:
<20261118174424.32e9f130@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366648-linux-kernel-netdev=dewy.ruReferences:
<20261111164021.273409-1-ivecera@redhat.com> <20261116181612.107a4b57@kernel.org> <fe1dcdd5-ef75-4231-bf9f-03bf8536c2aa@redhat.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366648-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 0/9] dpll: do not serialize driver callbacks under global dpll_lock Date: Wed, 18 Nov 2026 17:44:24 -0800 Organization: Usenet Network Message-ID: <20261118174424.32e9f130@kernel.org> References: <20261111164021.273409-1-ivecera@redhat.com> <20261116181612.107a4b57@kernel.org> <fe1dcdd5-ef75-4231-bf9f-03bf8536c2aa@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2756036"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:qepqDbnVSuRtRa3do7d/h1eeWNA= sha256:LT0nyxgtrhkVvkybVW9PZdUgtDkLbjNVMTL2bQuDqP8= sha1:ocwSz4Ud/us1T9uAaawGVCISnQ0= sha256:W3O92vQ9ZH6ZDo0jjffvezGbvTXjQpXy/aLNYQ3zl3s= 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 7AB54115490; Thu, 19 Nov 2026 04:44:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 rhlEQC72Bati; Thu, 19 Nov 2026 04:44:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366648-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 069E011541F; Thu, 19 Nov 2026 04:44:35 +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 84B9B2C856F; Thu, 19 Nov 2026 01:44:32 +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=1795052672; b=RCHCMYKjbLTbCqcop5Rd4BJmvrzJWT0l2pGPswBIkenVjq0yLSp5SQQl/8FLIGWKVu+p o4RWIjltbQ/U1voqFUDq6Xz+LDgz12TWfqb5QNtVdN0hBXQhQTh2qSwflQRM1OkIaaSzn D8poKrU9e+AKODdvx+/tbCbfuX1nmUlt4EbLW0ai6egmTMLwuGPOL9DvwVxkUATtrqUgz bRkI7JIKCHyJ4+qcJc6vn9VNv+oHfopirQ2Z/qGKy5fnZ/6tDlR0QnA8vm/QUwzwcvShX yUlUAGsm8LypJh5Kax5pnzFQg5ZjKmYqNqdXwxzdMWaFIBBrO0OL5oD8WuPX+6rXc+A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795052672; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject: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-Type:Content-Transfer-Encoding; bh=9waXTkMYmXwP4/W6e6Zut8DdWOx9w1dU7kQpzPoyvwU=; b=ep72CikCvNaOBobNfeZpg8PlRobxZ+o4KE91koAx/yMBs46YPA9njfq0Ixl9MfWnU9zS 9hDY1FQuAN5VRRprDwEbXBYwN6nk3U3Y5u+jE1wrX3Mpfc27qtQ78fEZ1XizBZ2WT6Q9u Gg5tjGDIrjI0GQWdZoUbkj/2ykQRbC8WJaDCR6P3sibwD4uW9NF/d2VFNDaqK0RvS4xt1 REdOzDeAmeQkz3J9YLqIPb2HTPUQuPBzkf6fo3prgrD0aan0siCrfEe+9OLLyM3P91Hcq gthjjmDN2qmbXpCtmSaM2uNdlVVSsgw4FkUiExc2GHWW5SUL1yHrzDnILkkoEXcTenw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4+24Kgw; 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 07E5A606A333; Thu, 19 Nov 2026 01:44:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4+24Kgw X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795052666; b=X0rzQy9XLCfje2ujvg18tGb40f7La8kPYvNKckT1VTSfzfTCl1px9f3r7W3o0KmIrpnU 89kEKtJgterKKeHBlbCo5hqFJ0mvPmLI7vFRIDpztENmr2CcNJGL1eQ2RgLy2V5Lm/UdB QzFTRRkyJc4CNZscpXp7MdnwUWkVRpRVtjZeIo1ISIpsx/fT6DflxkzN4j1iG8OUHodWu 7rpdUbzK0uIu09Lt+8Rgaq3EVaU2ke6sErODW1lttm1x6Q2W9vs+Y+6s0jWwIcAGttfAC y++1B/XzjUyi7kgtj6efk1EMeTFFeBwHpoe8SZVPpQa+Sl8dcV4Ju12izrRs12P/b0g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795052666; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=9waXTkMYmXwP4/W6e6Zut8DdWOx9w1dU7kQpzPoyvwU=; b=HpP/ztlOXM5CaPZQCD/cLqWd/+6is6dmlZvn9heSg5BRlyauyhXUG2wbJ1MdDdIeJGuW fFM8b44q83OBV/D+L410pL123iY5BFZzQ+/nilTvf4g7oy0HBhjfqGLxtOjbrmfqV2zv/ EXAZqMo1A3FCKYMPi5ZqgLUALMO8Q0rS6LSJxUlvb9Ad6yzDK46/oEMX5Fl6TT/kR8+hF zuaOLd/usleIw0oxZGofoWA2pynJBrCIM8NzWpCzB1M4Fnf24lEJnRRLhxDlsDXRd/C2a Mdh9suMIp+2Zst5PFSiB7DQUhNltdjg9iRDu2OrEtXwVjtzkK0tH6G2ZjeJ4jLAuv2w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g4+24Kgw; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 249F7606A31C; Thu, 19 Nov 2026 01:44:26 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F8C51F000C4; Thu, 19 Nov 2026 01:44:25 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795052665; bh=9waXTkMYmXwP4/W6e6Zut8DdWOx9w1dU7kQpzPoyvwU=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=g4+24Kgwh/t7ZndPUj9S0xlpXcGv1IYYD22Krr8k+/31irosmzvTiBx1eEohjk3O3 MFJDjLIiWO+DEEfv7a8XHdJsDWvk9ihr2hLU67OZcQVvcMBrvGF2kyLtnb9AMWivPX dIp6oKsNR8c4w4TdEzUYVpraMDEFj5xzlTEPJikb0W+nzvtlDK66uhxl7VmnrM3Oj8 vqh6CcEr6FGt4lYrT74jDza5iMl90iWjconT0umM/VmscSjTVcYhNWX/o4lVQsM5jk WCZndvOtsHxjZ/NJnUrQHQbF4WLq6o7LBa28as8OWMDZp1+DfXXhOlUkU9AS8RO1Tf WfKnQb0ObJK4Q== X-Cc: netdev@vger.kernel.org, Vadim Fedorenko <vadim.fedorenko@linux.dev>, Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>, Jiri Pirko <jiri@resnulli.us>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <skhan@linuxfoundation.org>, Randy Dunlap <rdunlap@infradead.org>, Min Li <min.li@microchip.com>, Tony Nguyen <anthony.l.nguyen@intel.com>, Przemek Kitszel <przemyslaw.kitszel@intel.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Richard Cochran <richardcochran@gmail.com>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Grzegorz Nitka <grzegorz.nitka@intel.com>, Karol Kolacinski <karol.kolacinski@intel.com>, Saeed Mahameed <saeedm@nvidia.com>, Tariq Toukan <tariqt@nvidia.com>, Petr Oros <poros@redhat.com> X-In-Reply-To: <fe1dcdd5-ef75-4231-bf9f-03bf8536c2aa@redhat.com> 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