Article View: linux.kernel.netdev
Article #12174Re: [PATCH net-next v2 00/14] dpll: add a simulated DPLL device driver
From: Jiri Pirko
Date: Fri, 06 Nov 2026 12:27
Date: Fri, 06 Nov 2026 12:27
55 lines
14083 bytes
14083 bytes
Thu, Nov 05, 2026 at 04:18:38PM +0100, poros@redhat.com wrote: >The DPLL subsystem has no in-tree driver that can run without real >hardware, so core changes and userspace tooling are hard to exercise in >CI, and the pin-on-pin and reference sync paths see almost no coverage >outside the vendors' labs. This series adds dpllsim, a simulated DPLL >device driver, together with selftests that run against it. > >The driver is controlled through configfs, following gpio-sim. Writing a >clock ID into a device directory and setting "live" to 1 registers a >DPLL device with the core. Pins are directories under pins/ with their >type, frequency, direction and priority as attributes, and all of them >are registered when the device goes live. The split between creating >the configuration and going live keeps the register and unregister >paths reachable from userspace, so they can be exercised repeatedly >without reloading the module. Nothing in the simulator is a stable ABI. > >The patches follow the shape of the zl3073x introduction. The >driver starts with the device alone, then gains pins and the static pin >operations one at a time (state, priority, frequency, phase adjustment), >and every feature patch is followed by the selftest that covers it. The >last two patches add concurrency stress tests and reference tracker >leak tests for the lifecycle paths. > >The simulation loop (lock state machine, phase and frequency >measurements, monitoring features), the topology features (MUX pin >hierarchies, reference sync, media failure injection), netdevsim >integration and device mode setting follow in two further series once >this one is in, to stay within the 15 patch limit. > >The driver and the selftests were developed with an LLM coding >assistant (Claude Code) working under my direction. I chose the >configfs design, the split into one feature per patch and the test >scenarios, and I reviewed every line. The assistant wrote most of the >code and the first drafts of the changelogs, and it found and fixed >bugs by running the suite on the lab host. The series then went >through several rounds of an LLM based patch reviewer whose findings >were fixed, and through a mutation test in which deliberately broken >driver and core code was caught by the tests. > >The selftests live in tools/testing/selftests/drivers/net/dpll and run >with "make -C tools/testing/selftests TARGETS=drivers/net/dpll >run_tests". By default they create dpllsim devices; with >DPLL_DEV_ID=<id> the basic and feature scripts run against an existing >device instead, so the same suite exercises real hardware. The whole >suite was run through the kselftest runner on an ice E810 host with >CONFIG_KASAN, CONFIG_PROVE_LOCKING and CONFIG_DPLL_REFCNT_TRACKER >enabled, against the simulator and, with DPLL_DEV_ID, against the ice >DPLL, where the tests that need a simulator skip and the pin state and >priorities of the hardware are left as they were. All pass with no >warnings in dmesg. > set- Acked-by: Jiri Pirko <jiri@nvidia.com>
Technical Details
Message-ID:
<au3HhHt5LD5scvn1@FV6GYCPJ69>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357992-linux-kernel-netdev=dewy.ruReferences:
<20261105151852.1844305-1-poros@redhat.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-357992-linux-kernel-netdev=dewy.ru
From: jiri@resnulli.us (Jiri Pirko)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 00/14] dpll: add a simulated DPLL device
driver
Date: Fri, 6 Nov 2026 13:27:24 +0100
Organization: Usenet Network
Message-ID: <au3HhHt5LD5scvn1@FV6GYCPJ69>
References: <20261105151852.1844305-1-poros@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="3876195"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iUaL/Cr2T6UZIouXouPP2/PaOB0= sha256:IlEa+F/I/jx7eg7TKel4f/B6L2L+9ZXq586sZYXViqo=
sha1:T6Ec91tlZEmses2LXn4XOLkGlMQ= sha256:75jjbz1gL+Worrs7UQBAdsTIlI3hGz/u4+08rjr3sys=
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 D77D211324B; Fri, 6 Nov 2026 15:30:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=resnulli.us
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 9ITaQ1bRRIe0;
Fri, 6 Nov 2026 15:30:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-357992-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=resnulli.us
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id EAC38113244; Fri, 6 Nov 2026 15:30:40 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 151392A80A; Fri, 6 Nov 2026 12:27:40 +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=1793968059;
b=MXU/OvY513vrfhL7HwlvTR8mjozje44dl6CBU3yZ4f1dFER+eYaifHhgT2wa4CmtifBC
3ZxMnxkwMHrUgOz1cldCc5ZCSrhU+nkMYzLrcpXf5HEjrs5zRPeCjGtqwzhSZx+iRb3jP
Pes1nJiI3igkQ4Vld9aI3r8jLASu+pc42DVtNC4MZ2o3HsJqFgu6Onr3nsycxCGFTAUhh
ByZncnFlEZnh7XdwJGzYCx3NwPcbqKdYJ4wqrGInHDlz3ng5/wsPdOf8mEfwmGYhECJfx
Eddpd3iaYkZJ8Ys0MWYs1PvN6zeYn2J+qEdLbiXH2HLzfXTmk8mSIzScInf9iyir/GQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793968059;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
In-Reply-To;
bh=hVQgj/qtamPKqZe9GjDSaLmwvkqiYswM2rlF0amjSwA=;
b=Xz5730ReUM1LZ37duT/m3Ndx/j/R1X/I/DWwdu2qVKi6YkDPUQUXh3H3c2PJBy6k/OiC
CmW5cjkyfBTmqP5qYKPSYafzkSAH7p3o9V0suBE3e01Gio7YuPTSVCmwC9ANL/R7JXjoN
ZInkxMFVh2eL/uu7XXtae5aWojS3D+0004AId9LJnxnr0dGna4oJGX11i1Kq6sTJdM9wN
9+X578fx+wj2lqXzU+C/jjAQQgeMEfKmeo/dRDidscsoSwQ57i4UuHJMbLtozTLIge707
RSMi5/i/LURY2PRRi1Ev6a8V683Pe5LLqUU/lrDAGU2vQ38+dv6cWmR/IohTownTmZg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=Slzp+EhU;
dmarc=pass header.from=resnulli.us;
spf=pass smtp.mailfrom=resnulli.us;
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 A467D606A338;
Fri, 6 Nov 2026 12:27:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=Slzp+EhU
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793968053;
b=xgCF/pi3wcRjW7eNb/8LqcM3LeEvBMTZZcSPVZK9Z4v+Au+cWlTRAaoPtZukpE01DOcF
79zaJFVe/3nPFp+Vt6EFIfDr1stbAld864xuogX1nCD/5mTCP6SneWD0uCgqgjJYjDZdV
5+DHylG3w0ZW8FgG6e73nXzO1i0SMenE7tZ638VGRz6M9/F7xbEiCDJafle6bOG06bbTO
Hsui8sy6zfe3jCIU07yAUUKOB1SpMupNqGwizm2UznIOCGrfdQ+NAJWSZo6PVrqjNm6JY
fxLaAFyfIuZxhAYHT1smbjZmWOncdTfARAWIssXMjnQz/KmAtLvzmm3V7tYwp82IYzQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793968053;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
Subject:Message-ID:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To;
bh=hVQgj/qtamPKqZe9GjDSaLmwvkqiYswM2rlF0amjSwA=;
b=jCKRAA0NKZgeRCiph1ew3ZWCluiuvZ2Ts/N/c64x2onu3NWIN38OcUguhJ2gcPEAnRWS
s187y5n4SSfQKtlesfIZGx17Jb9dMoQtBnaRweirqgoOIeYb1EUyYHywpTcQMuikN/N5U
/9I+XGnx7dr1TGZZsC3HRkEAGWprM1AmZBiAm1BpuLRxems+JDT9nv1tiHtuDGaKu4Zu7
ve4PWCWKjXGBHfi1Ldp9IwO6THq21RQ7AFvM3FAPjI8UPcn2zYmDIk5VhlYeOYva3ntb6
I0fx6n8wa4bETIv8Yh3AN2rYGe6AU5AgZDp1+ZFic99PTZHi3zZH43/rK9nfNFAL9gw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=resnulli.us;
spf=pass smtp.mailfrom=resnulli.us;
dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=Slzp+EhU;
arc=none smtp.remote-ip=209.85.128.52
X-Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52])
(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 46DE1606A326
for <netdev@vger.kernel.org>; Fri, 6 Nov 2026 12:27:30 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46DE1606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us
X-Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4a5b2be99a8so4154275e9.2
for <netdev@vger.kernel.org>; Fri, 06 Nov 2026 04:27:30 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=resnulli.us; s=google; t=1793968049; x=1794572849; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=hVQgj/qtamPKqZe9GjDSaLmwvkqiYswM2rlF0amjSwA=;
b=Slzp+EhUlrouRtTK7cIqBLFjFKtffdW/HyvUHLYmJw7XjmBeYevm8Lj12xNdvJ+2qi
liAcKT2C2BgvihbgNMzb8b3i69eta9Ggy22EKuffT47ojjRQQeUZUlL0+CMrIOXXRdN+
sRLJx6nb9Q70/SrkYjnSYGmXCsN58DJZDOsQf3cuKue7biIpYuLYhoQmYvNYoUk6fl9O
lbOnIYtMBTTw5XM6N7cJWvWgsAPf/swDvDDEU7e0iy8FWBxtte++wUHhFiZsO9OPSdTN
CsUi1P7v2jyC3Rb5umcVVSNAGKgE5NKtIg3wR8TSSyEYwPS5r+U3dUbei/vxB4IV5Zoe
WKAw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793968049; x=1794572849;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=hVQgj/qtamPKqZe9GjDSaLmwvkqiYswM2rlF0amjSwA=;
b=RgzgeIgEsqhoisDk2mybQIbGfRDJFWG1vOrKZZqIX/wdTzru3BVN3PFJvtP/7dThC1
nbIGtRx9qlQdE/ue7Rl1ayC13yU+y0/VoJo3BPhwFQN2+T44T2KxuQ1wTWuCeIUHf9IU
/m8uZcKguTSl9udnd8DyuslumjWVra0CDfEYjnwm1MNeYzVne76fx7e8Eh9xPsoVrYPI
Xd9jB3P8ek/p9LLwEpJguc0Zy2rNdhC9bDwzMusQpaEEbrbWog6m6kbYEycsBAcJOhDn
xHlXBNz9AoGX3IxW2DwHnNlkW+CRilxSvFGXN5FAGUps7cFZNOYqD5xksgwbQph7W4Xn
kgIQ==
X-Gm-Message-State: APuU4Z8ULN3EPQgWjSY2Zz1ELFzyDcSAYipSJWkbJCbu6Tvq0IFkz/MB
V5yJ1V2eF+S8mW0ZcZ1Gq/k/59Jq3fnCFiOwRL7J1aqJs1LC8QD5ela3sfS4zru7Quw=
X-Gm-Gg: AYBFou0tPYrthRmmkxqhktvgY+32RQpcDPe++rgDopWG2LOiqXLJ5JiAMS8JLiiMrJT
DUHaxOLsMLa2H763KsuHQoIJjUIsdooGzXhhyGeXabUDijVNDdH9++Hnge+R5wXPDY3EVYp4d1J
Py6bvDwkyTNEYNV4s1IwY9zGoSlm0bOkgM5FKMYzdsaiH0lvvae05lPa1q4xr8VXHjnJmBtPS7e
EF7Psb0SnxI6NQ4lPrWCEwtZIGrtekAitfWgz45x1ktVWf28aIIvEXnlkeoZ3MDmAdAhSwhjCwu
K6ff7oFKeBCcKmH0dkFZiLMniM7ylxTUX3EYS30fzXZH5+O1r6e8gTYUdPU1J9XcKdvJdmgDmOd
DOvsbT9IVluMKg3dP2fJY3OAkZ1ZbgElC/kOwS5vXpCObE4ROlo4U6lpS1HdxzSQrjNTMo3Yvp4
5OQu48lZoKhl5jdG9yPea4Sr+td2Z2SxOQ1rQHh24rnXdrCyd7a4yPrO5kBYCL/+LX2SE7TmJ2q
rGcmFFIU2UPsFdjAJbTRJU07aWMzYHDuOvejv9Z8D99ab4z9ayy6+wT+FqbwERCmb9icj+phJjb
tw1tEPEw/jysuj4JHOuzPgOEgVn5y9NmUOik
X-Received: by 2002:a05:600c:4454:b0:4a0:1b21:2628 with SMTP id 5b1f17b1804b1-4b6dfba8640mr38712955e9.23.1793968049321;
Fri, 06 Nov 2026 04:27:29 -0800 (PST)
X-Received: from localhost ([208.127.45.21])
by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b6e1b5d745sm51444055e9.6.2026.11.06.04.27.27
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 06 Nov 2026 04:27:28 -0800 (PST)
X-Cc: netdev@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>, Shuah Khan <shuah@kernel.org>,
Randy Dunlap <rdunlap@infradead.org>, Jani Nikula <jani.nikula@intel.com>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>, Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>,
Ivan Vecera <ivecera@redhat.com>, Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-doc@vger.kernel.org,
linux-kselftest@vger.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
X-In-Reply-To: <20261105151852.1844305-1-poros@redhat.com>