From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 403AD1F000C1; Thu, 3 Dec 2026 15:36:09 +0000 (UTC) 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== Subject: Re: [PATCH net-next v6 08/14] selftests: dpll: add pin priority test From: netdev-bot+sashiko@kernel.org To: poros@redhat.com 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 Date: Thu, 03 Dec 2026 15:36:08 +0000 Message-ID: <179631216883.3146.15028486024263668485@kernel.org> In-Reply-To: <20261202153223.2725780-9-poros@redhat.com> References: <20261202153223.2725780-9-poros@redhat.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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