Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp768164rdb; Thu, 19 Oct 2023 20:42:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF98cN6r5YJkFMevXq76nsIXcMHFmm6hXlrLkKyP2TUDRZvqB+YZ9U+ExTF/o4wtKF/8bHY X-Received: by 2002:a17:902:f14b:b0:1c9:e95a:9d5a with SMTP id d11-20020a170902f14b00b001c9e95a9d5amr599884plb.17.1697773359874; Thu, 19 Oct 2023 20:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697773359; cv=none; d=google.com; s=arc-20160816; b=G/cPPYrddrtm7tWQLMqZC5rky14hLx40PUAAYlU5uX8UKlnBhiux65wdSeKzkdrE2A /tYPnYHftVX9N5P85e2+MchXe6fRyrfcoq3frDYPfD1ddYWhGZGoYI7JTMlo6iO+fF5t 38lK1bHLqGPhc6oIrKNU2KZ5YXJoVssJwZrk4+mVjNyQEWO935EJZG3sjnIiTJKPAAcJ 4xh2xgRTyuXQ8H7oalQqkkYA6Vfed6l5lvi6PMRJ0PojVLDjNl5fc6qg16BXa1GSn65X DjGnIMcb9C4HYT9GcxFlU9dI7sK8de37oJGl2xG3c4Awc1Wt8CRj8RnRdoLA4I8xRzRo enZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xgAq5Lql16tsM/TLRsAZnhGDl+XMwLQCvyjYhsWrztc=; fh=hbkQlQAFqXcET9GBZfGBkpiKc9vV1mieonZ/m68/wEg=; b=E2HH6sd7iv2DtOyXME5LZY1jh+7TKXVjzV8qMdED4LpZZkTFwf5/hNtbtp82sJNX72 WZToChIL0ER/PjkIth+c/NmNG3n99EpF8ryEe9134etiV3f9inlutUAXdJnBivqs2bEW QHF3edrutxyG7Qy36xgNxxCb46skeNSEX18lTPvBPYpBVxtehwAA2n4rbICcJRGAddEI R2dT/VncTBMIXIJg0rFCvG4rNwkM8QsPIdyPIl3Zb6C+H2oLmvUBBm1+L7zFsSZZi072 D5nhIYYiftb/jjoCfAcRcAbozkkWXQxhiWiVgYsqg9b9fpR4EW1tuflHQyxiHuTjHEm9 RadQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=j8khpEhx; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q16-20020a170902789000b001bb0ba81053si906077pll.50.2023.10.19.20.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 20:42:39 -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=@collabora.com header.s=mail header.b=j8khpEhx; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A8CCF81DEEC0; Thu, 19 Oct 2023 20:42:36 -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 S235608AbjJTDm0 (ORCPT + 99 others); Thu, 19 Oct 2023 23:42:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235620AbjJTDmW (ORCPT ); Thu, 19 Oct 2023 23:42:22 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4A3BD71 for ; Thu, 19 Oct 2023 20:42:10 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2804:14d:e646:872b:8302:9b9b:d59b:1681]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: koike) by madras.collabora.co.uk (Postfix) with ESMTPSA id 4FEC6660734A; Fri, 20 Oct 2023 04:42:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697773329; bh=Ra4SYnnrvudeuTZYuBGT55bgQEN6QNJrjAurGFGlPcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j8khpEhxiss4625Lxvb1U5GHwcBA+qmgqRJqTmZeZdRsp2Rf0xI9z8G50aa/dLOUU akwiuG2fskpMnkmitCn7sU2kva2ZUMaprW718ymaAYKQ1hnM3ltZQ+P8p9sb6tyspU ALVnRLC1m6EeKHApuZ2JtiCJbgEXFnKQjqNdCWeGh79+zwMQ6UMmHGjc+DDfaUa7w8 XQafdfdy+Z6YyCoA18hi4MSSRwZTwyIZXir8B5OrL97503rXsxj8i8ZEK81t5AeMZw vyydTtb9/b6FiscoTaXA3xbu1Sz2d4yK6zv8RQE4JeJY2h8RkS28tGPgDm2IjUFCyc 1cf1g3vKrks9A== From: Helen Koike To: dri-devel@lists.freedesktop.org, Helen Koike , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno Cc: robdclark@chromium.org, dmitry.baryshkov@linaro.org, vignesh.raman@collabora.com, sergi.blanch.torne@collabora.com, guilherme.gallo@collabora.com, david.heidelberg@collabora.com, quic_abhinavk@quicinc.com, quic_jesszhan@quicinc.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 4/9] drm/ci: uprev IGT and make sure core_getversion is run Date: Fri, 20 Oct 2023 00:41:19 -0300 Message-Id: <20231020034124.136295-5-helen.koike@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231020034124.136295-1-helen.koike@collabora.com> References: <20231020034124.136295-1-helen.koike@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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, 19 Oct 2023 20:42:36 -0700 (PDT) IGT has recently merged a patch that makes code_getversion test to fails if the driver isn't loaded or if it isn't the expected one defined in variable IGT_FORCE_DRIVER. Without this test, jobs were passing when the driver didn't load or probe for some reason, giving the illusion that everything was ok. Uprev IGT to include this modification and include core_getversion test in all the shards. Signed-off-by: Helen Koike Reviewed-by: David Heidelberg --- v2: - fixed typo in the commit message --- drivers/gpu/drm/ci/gitlab-ci.yml | 2 +- drivers/gpu/drm/ci/igt_runner.sh | 31 ++++++++++++++++++++++++------- drivers/gpu/drm/ci/image-tags.yml | 2 +- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml index 51b1af77b04f..ade6c65a1945 100644 --- a/drivers/gpu/drm/ci/gitlab-ci.yml +++ b/drivers/gpu/drm/ci/gitlab-ci.yml @@ -5,7 +5,7 @@ variables: UPSTREAM_REPO: git://anongit.freedesktop.org/drm/drm TARGET_BRANCH: drm-next - IGT_VERSION: 471bfababd070e1dac0ebb87470ac4f2ae85e663 + IGT_VERSION: d1db7333d9c5fbbb05e50b0804123950d9dc1c46 DEQP_RUNNER_GIT_URL: https://gitlab.freedesktop.org/anholt/deqp-runner.git DEQP_RUNNER_GIT_TAG: v0.15.0 diff --git a/drivers/gpu/drm/ci/igt_runner.sh b/drivers/gpu/drm/ci/igt_runner.sh index 2bb759165063..2f815ee3a8a3 100755 --- a/drivers/gpu/drm/ci/igt_runner.sh +++ b/drivers/gpu/drm/ci/igt_runner.sh @@ -20,11 +20,16 @@ set +e cat /sys/kernel/debug/dri/*/state set -e -# Cannot use HWCI_KERNEL_MODULES as at that point we don't have the module in /lib -if [ "$IGT_FORCE_DRIVER" = "amdgpu" ]; then - mv /install/modules/lib/modules/* /lib/modules/. - modprobe amdgpu -fi +case "$DRIVER_NAME" in + rockchip|mediatek|meson) + export IGT_FORCE_DRIVER="panfrost" + ;; + amdgpu) + # Cannot use HWCI_KERNEL_MODULES as at that point we don't have the module in /lib + mv /install/modules/lib/modules/* /lib/modules/. + modprobe amdgpu + ;; +esac if [ -e "/install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" ]; then IGT_SKIPS="--skips /install/xfails/$DRIVER_NAME-$GPU_VERSION-skips.txt" @@ -48,6 +53,20 @@ fi curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${FDO_HTTP_CACHE_URI:-}$PIPELINE_ARTIFACTS_BASE/$ARCH/igt.tar.gz | tar --zstd -v -x -C / + +# If the job is parallel at the gitab job level, take the corresponding fraction +# of the caselist. +if [ -n "$CI_NODE_INDEX" ]; then + sed -ni $CI_NODE_INDEX~$CI_NODE_TOTAL"p" /install/testlist.txt +fi + +# core_getversion checks if the driver is loaded and probed correctly +# so run it in all shards +if ! grep -q "core_getversion" /install/testlist.txt; then + # Add the line to the file + echo "core_getversion" >> /install/testlist.txt +fi + set +e igt-runner \ run \ @@ -57,8 +76,6 @@ igt-runner \ $IGT_SKIPS \ $IGT_FLAKES \ $IGT_FAILS \ - --fraction-start $CI_NODE_INDEX \ - --fraction $CI_NODE_TOTAL \ --jobs 1 ret=$? set -e diff --git a/drivers/gpu/drm/ci/image-tags.yml b/drivers/gpu/drm/ci/image-tags.yml index e1b387581c11..7dd3f995f8a2 100644 --- a/drivers/gpu/drm/ci/image-tags.yml +++ b/drivers/gpu/drm/ci/image-tags.yml @@ -4,7 +4,7 @@ variables: DEBIAN_BASE_TAG: "${CONTAINER_TAG}" DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build" - DEBIAN_BUILD_TAG: "2023-10-06-amd" + DEBIAN_BUILD_TAG: "2023-10-08-igt" KERNEL_ROOTFS_TAG: "2023-10-06-amd" -- 2.39.2