kselftest: dt: Ignore nodes that have ancestors disabledFilter out nodes that have one of its ancestors disabled as they aren'texpected to probe.This removes the following false-positive failure
kselftest: dt: Ignore nodes that have ancestors disabledFilter out nodes that have one of its ancestors disabled as they aren'texpected to probe.This removes the following false-positive failures on thesc7180-trogdor-lazor-limozeen-nots-r5 platform:/soc@0/geniqup@8c0000/i2c@894000/proximity@28/soc@0/geniqup@ac0000/spi@a90000/ec@0/soc@0/remoteproc@62400000/glink-edge/apr/soc@0/remoteproc@62400000/glink-edge/apr/service@3/soc@0/remoteproc@62400000/glink-edge/apr/service@4/soc@0/remoteproc@62400000/glink-edge/apr/service@4/clock-controller/soc@0/remoteproc@62400000/glink-edge/apr/service@4/dais/soc@0/remoteproc@62400000/glink-edge/apr/service@7/soc@0/remoteproc@62400000/glink-edge/apr/service@7/dais/soc@0/remoteproc@62400000/glink-edge/apr/service@8/soc@0/remoteproc@62400000/glink-edge/apr/service@8/routing/soc@0/remoteproc@62400000/glink-edge/fastrpc/soc@0/remoteproc@62400000/glink-edge/fastrpc/compute-cb@3/soc@0/remoteproc@62400000/glink-edge/fastrpc/compute-cb@4/soc@0/remoteproc@62400000/glink-edge/fastrpc/compute-cb@5/soc@0/spmi@c440000/pmic@0/pon@800/pwrkeyFixes: 14571ab1ad21 ("kselftest: Add new test for detecting unprobed Devicetree devices")Signed-off-by: Nícolas F. R. A. Prado <[email protected]>Link: https://lore.kernel.org/r/20240729-dt-kselftest-parent-disabled-v2-1-d7a001c4930d@collabora.comSigned-off-by: Rob Herring (Arm) <[email protected]>
show more ...
selftests: Move KTAP bash helpers to selftests common folderMove bash helpers for outputting in KTAP format to the common selftestsfolder. This allows kselftests other than the dt one to source th
selftests: Move KTAP bash helpers to selftests common folderMove bash helpers for outputting in KTAP format to the common selftestsfolder. This allows kselftests other than the dt one to source the fileand make use of the helper functions.Define pass, fail and skip codes in the same file too.Signed-off-by: Laura Nao <[email protected]>Reviewed-by: Nícolas F. R. A. Prado <[email protected]>Tested-by: Nícolas F. R. A. Prado <[email protected]>Acked-by: Rob Herring <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
kselftest: dt: Stop relying on dirname to improve performanceWhen walking directory trees, instead of looking for specific files andrunning dirname to get the parent folder, traverse all folders a
kselftest: dt: Stop relying on dirname to improve performanceWhen walking directory trees, instead of looking for specific files andrunning dirname to get the parent folder, traverse all folders andignore the ones not containing the desired files. This avoids the needto call dirname inside the loop, which drastically decreases run time:Running locally on a mt8192-asurada-spherion, which reports 160 testcases, has gone from 5.5s to 2.9s, while running remotely with annfsroot has gone from 13.5s to 5.5s.This change has a side-effect, which is that the root DT node nowalso shows in the output, even though it isn't expected to bind to adriver. However there shouldn't be a matching driver for the boardcompatible, so the end result will be just an extra skipped test:ok 1 / # SKIPReported-by: Mark Brown <[email protected]>Closes: https://lore.kernel.org/all/[email protected]Fixes: 14571ab1ad21 ("kselftest: Add new test for detecting unprobed Devicetree devices")Tested-by: Mark Brown <[email protected]>Signed-off-by: Nícolas F. R. A. Prado <[email protected]>Link: https://lore.kernel.org/r/20240122-dt-kselftest-dirname-perf-fix-v2-1-f1630532fd38@collabora.comSigned-off-by: Rob Herring <[email protected]>
kselftest: Add new test for detecting unprobed Devicetree devicesIntroduce a new kselftest to detect devices that were declared in theDevicetree, and are expected to be probed by a driver, but wer
kselftest: Add new test for detecting unprobed Devicetree devicesIntroduce a new kselftest to detect devices that were declared in theDevicetree, and are expected to be probed by a driver, but weren't.The test uses two lists: a list of compatibles that can match aDevicetree device to a driver, and a list of compatibles that should beignored. The first is automatically generated by thedt-extract-compatibles script, and is run as part of building this test.The list of compatibles to ignore is a hand-crafted list to capture thefew exceptions of compatibles that are expected to match a driver butnot be bound to it.Signed-off-by: Nícolas F. R. A. Prado <[email protected]>Reviewed-by: Shuah Khan <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Rob Herring <[email protected]>