Article View: linux.kernel.netdev
Article #24121Re: [PATCH net-next v5 04/14] selftests: dpll: add pin enumeration and property tests
From: netdev-bot+sashiko
Date: Sun, 29 Nov 2026 10:38
Date: Sun, 29 Nov 2026 10:38
120 lines
12062 bytes
12062 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This patch adds dpll_pin_get_frequency() at dpll_lib.sh line 388,
but nothing in the tree calls it at this commit.
- [Low] The comment on dpll_log_test_skip_or_fail() says the layout and
capabilities of the device the script created are known, so a missing…
--
selftests: dpll: add pin enumeration and property tests
This commit adds pin queries to the dpll selftest library and pin helpers
for dpllsim. The standard dpllsim device now gets a GNSS input, an
external input and an external output. dpll_basic.sh gains pin
enumeration, property and state tests, which use a new
dpll_log_test_skip_or_fail() helper that fails on a device the test
created and skips on a device the user provided.
> diff --git a/tools/testing/selftests/drivers/dpll/dpll_lib.sh b/tools/testing/selftests/drivers/dpll/dpll_lib.sh
> index 467527a4343af..19e652a8e8da4 100644
> --- a/tools/testing/selftests/drivers/dpll/dpll_lib.sh
> +++ b/tools/testing/selftests/drivers/dpll/dpll_lib.sh
[ ... ]
> @@ -162,15 +166,39 @@ __dpll_lib_dump_failed()
> exit "$ksft_fail"
> }
>
> +# Name of the dpllsim device a script created as the device under test,
> +# set by the script next to DPLL_DEV_ID. Empty when the user provided
> +# the device.
> +DPLL_CREATED_DEVICE=""
> +
> +# The layout and the capabilities of the device a script created are
> +# known, so a missing pin, attribute or capability on it can only mean a
> +# failed query or broken tooling. Report such a condition as a failure
> +# on the created device and as a skip on a device the user provided,
> +# where it is a property of the hardware.
> +# $1: test name, $2: reason
> +dpll_log_test_skip_or_fail()
> +{
> + local name=$1
> + local reason=$2
> +
> + if [ -n "$DPLL_CREATED_DEVICE" ]; then
> + check_err 1 "$reason on the device created by the test"
> + log_test "$name"
> + else
> + log_test_skip "$name" "$reason"
> + fi
> +}
[Severity: Low]
This isn't a bug, but does this comment promise more than the pin tests
in dpll_basic.sh check on the created device?
On the created device, the tests only fail through this helper when the
pin list is empty or when no input pin is found:
dpll_basic.sh:test_pin_enumeration() {
...
if [ "${#pin_ids[@]}" -eq 0 ]; then
dpll_log_test_skip_or_fail "DPLL pin enumeration" \
"no pins found"
...
}
The pins they find are never compared with the layout from
dpllsim_add_standard_pins() (gnss0, ext0, out0), and the type and
direction values are never checked. check_pin_properties() also treats
frequency as optional, even on dpllsim:
dpll_basic.sh:check_pin_properties() {
...
for field in '.id' '.type'; do
...
}
The commit message does limit the claim to "an empty pin list or a
missing input pin". Later patches in the series also use this helper for
capability checks, and dpll_features.sh adds explicit frequency, prio,
state and phase-adjust tests.
Could the comment be narrowed to what the callers actually check? Or
could dpll_basic.sh compare the pins of the created device against the
standard 3-pin layout?
[ ... ]
> @@ -253,12 +281,127 @@ dpll_device_wait_gone_by_clock_id()
[ ... ]
> +dpll_pin_get_frequency()
> +{
> + __dpll_pin_field "$1" '.frequency'
> +}
[Severity: Low]
This isn't a bug, but nothing calls dpll_pin_get_frequency() at this
commit. check_pin_properties() in dpll_basic.sh only checks .id and
.type, and the commit message doesn't say the helper is groundwork for a
later patch.
The later patch "selftests: dpll: add pin frequency test" seems to be
the first to use it, from dpll_features.sh. Could the helper move into
that patch, or could the changelog say it is used later in the series?
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261125090522.3777494-1-poros%40redhat.com
Technical Details
Message-ID:
<179594872895.3146.18409224075949687634@kernel.org>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-373452-linux-kernel-netdev=dewy.ruReferences:
<20261125090522.3777494-5-poros@redhat.com>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-373452-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 04/14] selftests: dpll: add pin enumeration and property tests Date: Sun, 29 Nov 2026 10:38:48 +0000 Organization: Usenet Network Message-ID: <179594872895.3146.18409224075949687634@kernel.org> References: <20261125090522.3777494-5-poros@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1150376"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CTOmLj+YzXLssY6VGwhJfj5whQM= sha256:mRV+2QSTIWj0nFRML0r7yh25IxYZjTP1G70cNHlpxxA= sha1:kn9oPuEvvyb7mO8awMI8dsRNDUE= sha256:1JinCby+4OnuDxm0Q2KEoD2NRj14/yN+LIYavJSavZ8= 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 8E5B3125F97; Sun, 29 Nov 2026 13:39:08 +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 DASQVBmlyU1h; Sun, 29 Nov 2026 13:39:05 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373452-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 C0895125F99; Sun, 29 Nov 2026 13:38:56 +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 DE676250DB; Sun, 29 Nov 2026 10:38:51 +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=1795948731; b=gjpnLTWG2zgONhK9m+gL/aIyBE41uaaIrWQraBKnEMPEwzdXq0Ey+wNf6IIBXw7YPJKR y7glmcUResVHnJJ9hoKrfmMBL5AB0UaUQpMyez1o17fTH54XtKVGT6b/Y90WoVaUG4Eti xeaHWvraFe+X5KFZne77lLntCfa8+Rbo0Y2ODe3Kp2Sn6DIRmKbGgeP+2UHta6wP3JpMx hp01iahYvG5roPWktv4UGgitPzUgPHKaO6caQ8CnQkMmvEYmAF8gaaUNnXrqkpgWNVOVS AMyo+G5yLOW3UkvSDl99EKBCJOn3wJnvPRpDGnhIo9IWecHMvtCWJpYkCinDPsyZgtA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795948731; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=+alg7J8tkmU/SKW39P3kGrvSyPXZIjXtq5gHs3DfEFk=; b=q4qVYyNXQEdI+UFWTxCb3jca5tC0pWGUa9clKt4DV75Q4QeESZbcOegVxy5k4wMzBQoX sNuVrQDzOYyLWgpBVE+XKhGgP1ssOvXX28QJ+bVi8aJg/sy8AB++EkPdXanQ4jAXjqVp8 NukmIh87yUEHia6GFOCfLf1jz/OYRkcET9EilGJePifrybfLv/ykxRy1o0+O2Y8jkgrHL gS4xu6YPGmXsIZQj6hQBtuhV4qADCN/88NguJVOHMMqmBHb43j1uCTYkltem9SBHksAK9 hhrxx20g/76CLnkUngBTlbPsDekP9vBgdX4J7KbV3WL9Xg5FSdEh0a43X038BLA7niw== 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=IFwxOV9A; 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 B71D6606A329; Sun, 29 Nov 2026 10:38:51 +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=IFwxOV9A 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=1795948730; b=HoPD+3wcdnpqu2e0GfGvhrkV2OwUPfrXYkYes1qXV96ZMgQmNcsq7DhjDrwOIQKX2zeX n+TE7iBZrKEV2JrtnGT8EeDSj6+v2X8tEk+m/BM6yEBa7qqPY5rYv6FeuoYTz/KKss0Q2 rq4GMoVi4jdgMvVmbn0PdzAYenq8BeTAzRLU0tAvB1E+SdZy7iPd7Cwy2gwrb058o4fMN iA1K5slVk6l2r2Gt3YeSH5+W46Fmg75/2uas7fvSLiseLsW1CpQQTJQcMjZiRxPnedC1M efcCmuvZYKWDVio7eYSmmAtyI4Y3vEtg6162OLR5eLhiAI+EhwmXTfprblGPODdVwpw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795948730; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=+alg7J8tkmU/SKW39P3kGrvSyPXZIjXtq5gHs3DfEFk=; b=fardnRf+CLae8slNsLXBJDteule4TqQlnM1N+F30B6LGIfjfN6ae2LwplHmkihCg5bk4 cz3y7vJlBl+UFClDOqruQyotTa55EuL1xYE7ILWsjwGnRZ/JeGUg05iZcF3dl+cITL7F6 dDoUrw07d7TNFE4JaRzD4PYc8L88CaS2fZZKRS6Bz4ztT2xoUK2Fx1sP9G476r+0oiu9G djcJ8Dfl/lCLHSZtk1KL7k2/D7//rAluFR94FlI1gsFJwz4oy6iaEp76xyWdlbNGPU/FH mnB98x8vxilow4hvOCIfJ4LmB6SfsSYctPACFNR0K409dL3MpD9a5eWpSYyB034quqQ== 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=IFwxOV9A; 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 D5072606A31C; Sun, 29 Nov 2026 10:38:50 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66DDE1F008A0; Sun, 29 Nov 2026 10:38:49 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795948730; bh=+alg7J8tkmU/SKW39P3kGrvSyPXZIjXtq5gHs3DfEFk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=IFwxOV9AfZ25PX4v9Lcqtqw0rroe2tBXq7rqwxSa2ic/oxrN4e5sHUS7QdWzIQUWB rnsLriEFFU1975Al51upuyX4OSFsm+Ubhzm7iZtTAFj1B+HXOYeITN7DX59gnKeC1E 96rYf5DXwvrcsEKHeHAktFKdkhfXK3hvNEguU5NWh+dTjchlcJz53m6o3a6VL2fmDz HDRvzFQBs6pDOFtQiH5zxw/Fgu/QE4RBMDU34dvGDsXcD0ogQTuxTiZcy9UeSPZ1AL +kfLA9IM3eZ8mRuuRjGh8NV3t4Kgdb7z/PoEju+CGWNw4Q9P+04J3RTkyG6k2y+gTp No11NizAHeONA== X-Cc: netdev@vger.kernel.org, ivecera@redhat.com, jiri@nvidia.com, corbet@lwn.net, skhan@linuxfoundation.org, shuah@kernel.org, rdunlap@infradead.org, jani.nikula@intel.com, vadim.fedorenko@linux.dev, arkadiusz.kubalewski@intel.com, jiri@resnulli.us, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org X-In-Reply-To: <20261125090522.3777494-5-poros@redhat.com> X-sashiko-severity: Low 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