Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp389415rdb; Thu, 2 Nov 2023 06:46:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPAxqfReCG9HZUlZq41Qutfih+DSPdneXK6Vrv8EbgtxQdK0tLqZ0g3gjhEFLf0gkbOmK+ X-Received: by 2002:a17:90b:1a8d:b0:274:616e:3fc4 with SMTP id ng13-20020a17090b1a8d00b00274616e3fc4mr15240319pjb.34.1698932804053; Thu, 02 Nov 2023 06:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698932804; cv=none; d=google.com; s=arc-20160816; b=P+uxGu1SuLoDTTXWZP8+0jB8AFvOOgakTTGPhW+teMywHa5uQWjwwV/IPA33flvaU3 fmZ+WtappmKvQnuZOvyZY0qDjJbrTcQUy70EFIVWl8CQ8IILi0URCEQLqyTj6U7lCl8V ucu4V0+a9VyUKBVfNLRz2NY5hXroEMpcAybNblnP6SYGLMkZOqyABdwsoz/SbXnH8W09 SU4m0uRcaD3P0txHoC8p8Tv31DKOy3nlU1zsZwZyFCRrl2tOGmh3xnia2hJt6UtMcTTc fHZAc63hxvsNR223E83wsjWgWVuUYM1ry9eTVobWS4L2Krie1V8Kgi9v5hwH7cylot6v jl6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GJhHm2XHGMd0cXtLzgcvnKoFChgDo5Gjqf+1+H8tOko=; fh=QPRnhJum4ljZDrCioLFJBVP+VcfxvImnr37UdHfvB+8=; b=zF9Ow6MV0REooszY7SQCrQbln/2MB+taZqm2MdChC77ENwF6MRFaIlzZPU4QFYuAZQ ZMo6c72I68aczV5ya6Sp6gvl4cxkJubTbZb1RidroKv5yhMnZb7slHFrmDPOwQOa04vB mAghzs4c9iVQkz8O9QzjTZUnfo2T3V7bbg3yG/WTkm7ykIOiloEKHimZ/s5fk88mHXLK nANuIyUOPqKPYEYKW5fSdFjj89eh1xDXr6iLoi8cXh8IcB17AhLdkQleC1xuMPwy0erG fP0PpMrqYf1X5Kc+lxG2KTx+Wb2SDyQgpDBAFKdYzfH1wu/PO6hyabfYLwV4wkjIElym CeQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zMFY9vah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a23-20020a17090abe1700b0026b502223cbsi2870763pjs.10.2023.11.02.06.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 06:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zMFY9vah; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DB59A80A442E; Thu, 2 Nov 2023 06:46:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376677AbjKBNqT (ORCPT + 99 others); Thu, 2 Nov 2023 09:46:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376664AbjKBNqR (ORCPT ); Thu, 2 Nov 2023 09:46:17 -0400 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4729181 for ; Thu, 2 Nov 2023 06:46:10 -0700 (PDT) Received: by mail-ua1-x92c.google.com with SMTP id a1e0cc1a2514c-7ba9bd62fdfso338831241.3 for ; Thu, 02 Nov 2023 06:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698932770; x=1699537570; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GJhHm2XHGMd0cXtLzgcvnKoFChgDo5Gjqf+1+H8tOko=; b=zMFY9vahLvaORYmKehb5tIIV+Vj0CxaV274MXSF9gCgZj6KCVX5C+vIxNbOTFRG6EX mpTZ4x98r4bzgiU+uoiYXZYTiKJfnVX2JeHxs+6OgfJKy86LWO7M9RX3aZe0uahtdG8q 28DYoyFRLkDMAZday/hA76PchlgPYe/xVD2WswY0D95v5CBfMzp1nGEaOHn2K5IURu2Q iXW4+l/sUMSorlK8D9q8plDlVq//6PJvjpobzMEKOthCQXo0nJIaL1YVZY4on3NaeFvP AWjRE/YLMwEsBtSq1jlSou4SRqoKIkf2+mQdiUBB1jvwdSrmEQe/Y61gBvVCNOaj9yDl TOjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698932770; x=1699537570; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GJhHm2XHGMd0cXtLzgcvnKoFChgDo5Gjqf+1+H8tOko=; b=o+qJnIIFfYObgq/TfOqmESBthBV0FWI8qB9CfEKK+3Q9CuGwN2E7w9H1rzLHQ96RVQ PcW1AL3q7gXyC+YOCZfRqvT8XQyGlMstG4jNKCsfC7YTvxjFM5e36ZyvCtYXxKPEU96w 1PaVGsHDsvWV5DxQpEDeEa7kFWWSDPSGp9q2m3S9p7Xy0Z0SrIDv6tZfH/k3GHxKQ+Fy h8JJrpyXMzOZKPlWAZrvZXXNW4k9aU7WRRIhIDGfEmyN9/u7bkGyaJVD+jt7Xcz/pYUd F7Hzuj7oOG3nsCZqd0qxN2GaPgJSKKPEvmHADK2gwo5HUGt6BadiXHAcSM039DaIEukk /mgQ== X-Gm-Message-State: AOJu0Yxb523Tu89Ja3AB0cZYrXbXki0INyYf5ejcSdIiu84MW97d+hf6 7JbkR2tonM/4yuaVk2A24OS9xJBXxul/y/uP1g8/zg== X-Received: by 2002:a67:e092:0:b0:45d:56e0:7178 with SMTP id f18-20020a67e092000000b0045d56e07178mr2224367vsl.2.1698932769829; Thu, 02 Nov 2023 06:46:09 -0700 (PDT) MIME-Version: 1.0 References: <20230828211424.2964562-1-nfraprado@collabora.com> <20230828211424.2964562-4-nfraprado@collabora.com> In-Reply-To: From: Naresh Kamboju Date: Thu, 2 Nov 2023 19:15:58 +0530 Message-ID: Subject: Re: [PATCH v3 3/3] kselftest: Add new test for detecting unprobed Devicetree devices To: Aishwarya TCV Cc: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Mark Brown , kernelci@lists.linux.dev, kernel@collabora.com, Guenter Roeck , Bjorn Andersson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Rob Herring , Frank Rowand , Shuah Khan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 02 Nov 2023 06:46:38 -0700 (PDT) Hi Aishwarya, On Thu, 2 Nov 2023 at 17:41, Aishwarya TCV wrote: > > > > On 28/08/2023 22:13, N=C3=ADcolas F. R. A. Prado wrote: > > Introduce a new kselftest to detect devices that were declared in the > > Devicetree, and are expected to be probed by a driver, but weren't. > > > > The test uses two lists: a list of compatibles that can match a > > Devicetree device to a driver, and a list of compatibles that should be > > ignored. The first is automatically generated by the > > dt-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 the > > few exceptions of compatibles that are expected to match a driver but > > not be bound to it. > > > > Signed-off-by: N=C3=ADcolas F. R. A. Prado > > Reviewed-by: Shuah Khan > > > > Hi Nicolas, > > Currently when building kselftest against next-master and > mainline-master the below build error is observed. A bisect (full log > below) identified this patch as introducing the failure. > > Full log from a failure: > > https://storage.kernelci.org/mainline/master/v6.6-9152-gdeefd5024f07/arm6= 4/defconfig%2Bkselftest/gcc-10/logs/kselftest.log > > make[4]: Entering directory '/tmp/kci/linux/tools/testing/selftests/dt' > /tmp/kci/linux/tools/testing/selftests/../../../scripts/dtc/dt-extract-co= mpatibles > -d /tmp/kci/linux/tools/testing/selftests/../../.. > > /tmp/kci/linux/build/kselftest/dt/compatible_list > Traceback (most recent call last): > File > "/tmp/kci/linux/tools/testing/selftests/../../../scripts/dtc/dt-extract-c= ompatibles", > line 107, in > compat_ignore_list.extend(parse_compatibles_to_ignore(f)) > File > "/tmp/kci/linux/tools/testing/selftests/../../../scripts/dtc/dt-extract-c= ompatibles", > line 67, in parse_compatibles_to_ignore > with open(file, 'r', encoding=3D'utf-8') as f: > OSError: [Errno 40] Too many levels of symbolic links: OSError: [Errno 40] Too many levels of symbolic links: This is not related to selftests/dt tests build. May be due to, A loop of symlinks that are pointing to self / same files ? > '/tmp/kci/linux/tools/testing/selftests/../../../build/source/build/sourc= e/build/source/build/source/build/source/build/source/build/source/build/so= urce/build/source/build/source/build/source/build/source/build/source/build= /source/build/source/build/source/build/source/build/source/build/source/bu= ild/source/build/source/build/source/build/source/build/source/build/source= /build/source/build/source/build/source/build/source/build/source/build/sou= rce/build/source/build/source/build/source/build/source/build/source/build/= source/build/source/build/source/build/source/tools/testing/selftests/power= pc/vphn/vphn.c' > make[4]: *** [Makefile:12: > /tmp/kci/linux/build/kselftest/dt/compatible_list] Error 1 > make[4]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/dt' Here is the log showing selftests/dt build pass for arm64 build from Linux next master branch. Links to the successful build and kselftest.tar file shared below [1]. Build log: =3D=3D=3D=3D=3D=3D=3D=3D make[4]: Entering directory 'tools/testing/selftests/dt' tools/testing/selftests/../../../scripts/dtc/dt-extract-compatibles -d tools/testing/selftests/../../.. > /home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/dt/compatible_list make[4]: Leaving directory 'tools/testing/selftests/dt Please build by using tuxmake and validate builds are working. steps to reproduce: =3D=3D=3D=3D=3D=3D #!/bin/sh # TuxMake is a command line tool and Python library that provides # portable and repeatable Linux kernel builds across a variety of # architectures, toolchains, kernel configurations, and make targets. # # TuxMake supports the concept of runtimes. # See https://docs.tuxmake.org/runtimes/, for that to work it requires # that you install podman or docker on your system. # # To install tuxmake to your home directory at ~/.local/bin: # pip3 install -U --user tuxmake # # Or install a deb/rpm depending on the running distribution # See https://tuxmake.org/install-deb/ or # https://tuxmake.org/install-rpm/ # # See https://docs.tuxmake.org/ for complete documentation. # Original tuxmake command with fragments listed below. # tuxmake --runtime podman --target-arch arm64 --toolchain gcc-13 --kconfig defconfig --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-k= ernel/linux/files/systemd.config --kconfig-add CONFIG_BCMGENET=3Dy --kconfig-add tools/testing/selftests/cgroup/config --kconfig-add tools/testing/selftests/cpufreq/config --kconfig-add tools/testing/selftests/efivarfs/config --kconfig-add tools/testing/selftests/filesystems/binderfs/config --kconfig-add tools/testing/selftests/filesystems/fat/config --kconfig-add tools/testing/selftests/firmware/config --kconfig-add tools/testing/selftests/ftrace/config --kconfig-add tools/testing/selftests/gpio/config --kconfig-add tools/testing/selftests/ipc/config --kconfig-add tools/testing/selftests/memfd/config dtbs dtbs-legacy headers kernel kselftest modules tuxmake --runtime podman --target-arch arm64 --toolchain gcc-13 --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2XYjd2yxHi= ay3gVALCGpAch4G8o/config dtbs dtbs-legacy headers kernel kselftest modules Build links: [1] https://storage.tuxsuite.com/public/linaro/lkft/builds/2XYjd2yxHiay3gV= ALCGpAch4G8o/ - Naresh