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=1795948730; b=HoPD+3wcdnpqu2e0GfGvhrkV2OwUPfrXYkYes1qXV96ZMgQmNcsq7DhjDrwOIQKX2zeX n+TE7iBZrKEV2JrtnGT8EeDSj6+v2X8tEk+m/BM6yEBa7qqPY5rYv6FeuoYTz/KKss0Q2 rq4GMoVi4jdgMvVmbn0PdzAYenq8BeTAzRLU0tAvB1E+SdZy7iPd7Cwy2gwrb058o4fMN iA1K5slVk6l2r2Gt3YeSH5+W46Fmg75/2uas7fvSLiseLsW1CpQQTJQcMjZiRxPnedC1M efcCmuvZYKWDVio7eYSmmAtyI4Y3vEtg6162OLR5eLhiAI+EhwmXTfprblGPODdVwpw== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66DDE1F008A0; Sun, 29 Nov 2026 10:38:49 +0000 (UTC) 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== Subject: Re: [PATCH net-next v5 04/14] selftests: dpll: add pin enumeration and property tests From: netdev-bot+sashiko@kernel.org To: poros@redhat.com 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 Date: Sun, 29 Nov 2026 10:38:48 +0000 Message-ID: <179594872895.3146.18409224075949687634@kernel.org> In-Reply-To: <20261125090522.3777494-5-poros@redhat.com> References: <20261125090522.3777494-5-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] 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