Article View: linux.kernel.netdev
Article #26464Re: [PATCH net-next v6 08/14] selftests: dpll: add pin priority test
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 15:36
Date: Thu, 03 Dec 2026 15:36
79 lines
10968 bytes
10968 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] The patch gives the simulator layout configured priorities, but
no test in the series checks that those priorities come back overβ¦
--
selftests: dpll: add pin priority test
This commit adds test_pin_priority_get_set() to dpll_features.sh. The
test sets a new priority on a spare input pin, reads it back and then
restores the original value. It also adds an optional priority argument
to dpllsim_add_pin() and gives configured priorities to the standard and
stress simulator layouts.
> diff --git a/tools/testing/selftests/drivers/dpll/dpll_features.sh b/tools/testing/selftests/drivers/dpll/dpll_features.sh
> index 9dcf53d019987..e50b60608f1e9 100755
> --- a/tools/testing/selftests/drivers/dpll/dpll_features.sh
> +++ b/tools/testing/selftests/drivers/dpll/dpll_features.sh
[ ... ]
> + # A query that failed is not a pin without a priority.
> + if ! before=$(dpll_pin_get_prio "$DPLL_DEV_ID" "$PIN_TUNE_ID"); then
> + check_err 1 "pin $PIN_TUNE_ID query failed"
> + log_test "DPLL pin priority set/get"
> + return
> + fi
> + if [ -z "$before" ]; then
> + dpll_log_test_skip_or_fail "DPLL pin priority set/get" \
> + "prio not reported"
> + return
> + fi
> + if ! [[ "$before" =~ ^[0-9]+$ ]]; then
> + check_err 1 "prio '$before' is not a number"
> + log_test "DPLL pin priority set/get"
> + return
> + fi
[Severity: Low]
This isn't a bug, but should the created device also check before against
the configured layout here?
dpllsim_add_standard_pins() now writes prio 0 for gnss0 and prio 1 for
ext0 through configfs. The comment above dpllsim_setup_standard_device()
documents those values.
test_pin_priority_get_set() only checks that before is a number, even when
DPLL_CREATED_DEVICE is set and the layout is known. dpll_basic.sh has no
prio checks. pin_ranks_below_refs() only reads .prio on devices the user
provided. dpll_stress.sh never reads back the priorities it assigns
randomly.
That leaves the configfs to netlink path untested:
dpllsim_pin_prio_store() sets cfg_prio
-> dpllsim_pin_reset()
pin->prio = pin->cfg_prio;
-> dpllsim_pin_prio_get()
Suppose the store silently dropped the value, or the copy in
dpllsim_pin_reset() were lost when the device goes live. ext0 would then
report the simulator default of 128 instead of 1. The test would still
pass, because it would set 129, read 129 back and restore 128.
ext0 is the pin pick_tune_pin() picks on the created device. Would a check
such as this one close the gap?
[ -z "$DPLL_CREATED_DEVICE" ] || [ "$before" = 1 ]
[ ... ]
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202153223.2725780-1-poros%40redhat.com
Technical Details
Message-ID:
<179631216883.3146.15028486024263668485@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376718-linux-kernel-netdev=dewy.ruReferences:
<20261202153223.2725780-9-poros@redhat.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376718-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v6 08/14] selftests: dpll: add pin priority test Date: Thu, 03 Dec 2026 15:36:08 +0000 Organization: Usenet Network Message-ID: <179631216883.3146.15028486024263668485@kernel.org> References: <20261202153223.2725780-9-poros@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2529418"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ryhZRtlIxf5hB63a/OK4oL1/MBA= sha256:jg5j7vx45D38r2vxbPFaT5zaO/DoyCIte3lXCnH+hF0= sha1:lhRkVpJ5KSduup7RxXqdTIKqFjY= sha256:wcCPy8hO360Oi8eB9KuZ4gTPj/2MRKMkGqZNCSGhNc8= 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 6B6601179B0; Thu, 3 Dec 2026 18:36:25 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.24, 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 mDbG-UX5pAZA; Thu, 3 Dec 2026 18:36:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376718-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 57C6D1179AD; Thu, 3 Dec 2026 18:36:13 +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 BDC49241A9; Thu, 3 Dec 2026 15:36:11 +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=1796312171; b=bo+U7YOo/iZqU9E4uG0PeuqBQd/v/CZGvqvCMU3TX+hbY6D2n5qt/hMwhOxJCqufw5st 5rRMGZ6PYf88xvn/IQXxeNFoJKMmSSZTer/oBTUmXHHjPlN2QhJSeO+uTFuoc169+ws5o mq24SmO5iCff3vGRxha6lqjH57l9/ryqDQ5+3NG4vPS5714muVg9Ji6vzQqXsETWBRimW ZdX/+TKaqOrElqfxDa00JUumbWhHI5/CiSU9wXkTnZPw54Q+Zexcu+m9gScpePN1NHs4W sCRpe8ymhCk02npyhJqAeUQPp4XrQ8XXeMKeZg2yBezlA09slO8K1O62LSL339k47Dg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796312171; 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=U3ddByqxVBrkuz3EYvxAxeMyRBGIaYIRbG1AmRg5YSU=; b=toXVOGMwSjhWjrx9c+SOZORuwfrej73a4rgSnNK8Nt9LPEOnQa0uyxFUnnzLHgboS7o0 pDzE2KVyKDCooNumzAYTDOa8d/xi/RbzXQ9DoiL/x4mgQ8MkKScwrJh06veNkKJk/t3gy fEFL3fOKpqhWaq7wuXCCGLedEpT21JSnEBNugqNcMbsNbMMM0de+Zs16+DFNT4+1rK9kI N5UCnGQCqNmVdvrC7vTq2kgQO3HYxhsBWaZZLlbPGUqCrCfjAi7+Iatqfj4XFeKDJS6rf WsrfedWh5Y1Q5oZsIC45AxVeiMAmpRjdTL7Sb8mTPUGHu6FxCamQVV3VqKBcI3b5SrA== 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=kTAKOZMk; 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 651F4606A687; Thu, 3 Dec 2026 15:36:11 +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=kTAKOZMk 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=1796312170; b=Ki+ck6+H9JjP6Bsj+i++1YCevsx9EAm+5TmF29cNRiMpRqc0EOAkzDPv5LCjYXn9ITY/ B9Lkxe8smxVqZTvYqeRJrvIOJQVExR/wGOm0Ce4bwss6ZbXU0VUUCXxBMLSGesfmv1T7o piN/tAD0HqUvd+NlDK5zMMmrqTmzfz7J0rxiEfZaPxpgpOCEDaNsan4nSjq5qR0qjBNaK fazACWucGOL/KoaatIHoM0+hg8TeDUyVIaMfTgUs9yoxXJxqyJPFdNlXiQIDOZr1AqsR2 TOVIHJEbZiwMiEHfBWilyiUB8NuYY+yHZIb+wuUzKeoNmPEag9Mnk/G8tQ+lpES7DDA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796312170; 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=U3ddByqxVBrkuz3EYvxAxeMyRBGIaYIRbG1AmRg5YSU=; b=jkGTZfOa3DTb6ZiVNkJo+1Kd7R50IlzTMHIt69HB1RY9CEPRG07jMN12TWZ8U4fN7Cjw IC4LqMPKIQITE9WOzohC8PrBAd5JytmMErWARrEHN0Ws54XQZtKwB1x19GlgbRF+hSTvb yKYViyEfAA8Lt9jsCUVFHcusgUQvW2NyvhKViZec1QwciXbq+FFZUP0RuyXrXZE6L5h9v njGy7mnvRE7QmBoZPrCYd2WH13gLRoU6TYbVq19UVwcD+6sp2rAlEEbAFs/kT1YhKIQjx G7qO99M5xBn7XNSPDFnaG5sXDE9NcK+rFUDaXxL/CEnXAKbguIUwfgA9M8KMl0XXayw== 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=kTAKOZMk; 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 85AD8606A330; Thu, 3 Dec 2026 15:36:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 403AD1F000C1; Thu, 3 Dec 2026 15:36:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796312170; bh=U3ddByqxVBrkuz3EYvxAxeMyRBGIaYIRbG1AmRg5YSU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=kTAKOZMkD7ZTz3O/e1OFR6m0xwjr2/vq4/eSRJ5bvcN8siGK1N+wxWKhV4TaH9LYm +P+ozj71xDC3zMQynKFDjx8lOioKOixhtHbGz3VP/8Ba7NzptB1j2ww5vJ3xY/qRbP H1dkgV9rpSWo80FkRi1h+GjD3QVYp/dEg4Ew9BqzjxcfscbQ7vdJkzYSb4JlfyL/EI mh4lRb0MHqQS7lrVzcacUsjTdNpWOT3Ab12nn5EtrjJdmK3o7NM/Vkmog7lUYIv+5E A6uuCBWIz9H4inzANDDyfXJBXDUMOYQ9ULgDAetqOd/aJqxJDNsfuuwSLGV4t+pepJ Lp+4PUMK3/ydg== X-Cc: netdev@vger.kernel.org, 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, ivecera@redhat.com, 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: <20261202153223.2725780-9-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