Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp785935lqp; Wed, 22 May 2024 22:46:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUx5xO4Z0J/yOhAf9HPxlusCPtuUKhIvRmAMuXASoY9iKzCvzQD3RAXKTGmDEv2C+FCPg0UPhJyqOfwfrJofBQEEVh+36MlBnT73eSC7g== X-Google-Smtp-Source: AGHT+IFI8yoeerSRYhBImeT239qVRsXRlUZvXkJEXs7uii16cuvBE2WDaoLtjGA2SdHGHvBd9RYx X-Received: by 2002:a17:90a:bd09:b0:2bd:744a:1131 with SMTP id 98e67ed59e1d1-2bd9f5a051fmr4447233a91.30.1716443160674; Wed, 22 May 2024 22:46:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716443160; cv=pass; d=google.com; s=arc-20160816; b=VxGX08Q+KHyCs5eyNAgBrBudgRMj7U0iOq2Q4ClMZldv+58+Y//Vr7d9YEV4o4CACI bxgX8DE2FrEaRqn1htIyvefBoFKQfqLCfFKfrMMFq7rPz9C/+CouOuHL6jupfWySaHg5 IeMPsgmHp1E/PP5/6+Kwq22ZoNqSKTUHzMaY0h7DeX3TjEC59Q9KoSAsQMFJkol3RcI8 +HfEYhjRHMeAVW8fkx4mwYgM8DdneSd/GMrLFWmG3bOBCH7BP5NNIsFqjG3AI/r96IIJ Jdy/Vr+WAvXjnNTjI0pUHHdCIdCDVsDtNXPfRnRXyw0z5eF92PGWu0wvTE6lzp8rMCJo 9dpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=uTyeLMDb4lNaxhZJTQsoV5C1v2Ta4iSW4vHweH8NajA=; fh=giIdXDOsHFsjBgCCIrBK2jCdO+b5L/41uG/Q6ACLS6s=; b=N90+4n9+HM+r+VjXo4B6ta+QHmTC9Gje5npX9uiKluZqOkBAgxdbsG1XVWE1e8TlsC LqvF9B4Sl0crUvubY+qSTxGgomer8LS9BzB2Koi8+yKkT468IRr0gV6hGq8RbySVJenb +rTkGxLn8hmOyrZZCwttlcNwdqdjlrj1t0SvD9bzN8Ao8Az86EzL+0ZCursMihWrfpiX 4etYm2YCa+83ibq5+VldJWUKp6t5cHPfxSdG/dRo/ThV4w2ERx5pRvR8B8jeLW+HLOLX B+g5mRXbkwwxRZA2+OWD76Qp1a2uz0uQQAbQAup9SN/ffO26FtMa0vK8F4hyxXUhypMF LEcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=V6XZISe2; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-187016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9f03f8bsi202009a91.71.2024.05.22.22.46.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 22:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=V6XZISe2; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-187016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BF06281E70 for ; Thu, 23 May 2024 05:46:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13C1613AA39; Thu, 23 May 2024 05:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="V6XZISe2" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F4801BDD0; Thu, 23 May 2024 05:45:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716443153; cv=none; b=SABG15XjTT+kVESu7Hkt5yEMRbel6UjhUbpDbI6b7KV4Tj0Tx7O+YYKPO0yIQl0DXsjPxSOfA8ys7Tcd3wnfV8b61aetwdY8SCyevwUPXl6E6DGflsY8lDT4D7z9A0aYt5mTLLdEACoBoxe+SKm4uvCoVI1jRVOc8CrT2v28QzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716443153; c=relaxed/simple; bh=ixt8OajYR20IPA+H5M4ytRrCuvQEPCIDj6wZr5U9vZU=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=rhGKOq3bdfhFx/nVbUkZ3Rq0Wq4Jg97twlUqkUXEivrnjwve2Hrykb8mUa5+8elkjA4ouLDTeql3zEph3MQViqaZsQzaCcGnvdMJkkvWvBTCysJeiSKDmkfnTXft9mfz53q5fLCYHT4EXDfSu73kBkCW/4R0kH4A+1UzgpI0MPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=V6XZISe2; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1716443149; bh=ixt8OajYR20IPA+H5M4ytRrCuvQEPCIDj6wZr5U9vZU=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=V6XZISe2rHRPDxCU3RcaRltfEjMsf3Um1F7s2Knx3jBoPnoWXYLTzBB1x2GEXFNlA zCUCvq/awcplJhGU9EHEmA06ZVtHfJe0QRL0SxHOCBDpNUeLpks5b6o7YrYR8Z+0JD jJVHUHbOum7lO29ITpT33LzBWBmhEmtjVsm1AeUnTM81zmzbDR00y3AVw7dE0/xQ7q wgIzSxGobBDfFQRLyrrVAK78jMvSAybnilANfAm2CwRhrPydRXI5h2h1YYYNI9aIDM pVoGtRcF0sS4YgQRyYQUvx/UVf6KA9mvN2TP05pxOmAzrMSCZx594KP6GwZlPhptpQ PQxZ6jnI5aOrg== Received: from [100.66.96.193] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: vignesh) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 8AA8637820E5; Thu, 23 May 2024 05:45:45 +0000 (UTC) Message-ID: Date: Thu, 23 May 2024 11:15:42 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/6] drm/ci: build virtual GPU driver as module From: Vignesh Raman To: Dmitry Baryshkov Cc: dri-devel@lists.freedesktop.org, daniels@collabora.com, helen.koike@collabora.com, airlied@gmail.com, daniel@ffwll.ch, robdclark@gmail.com, david.heidelberg@collabora.com, guilherme.gallo@collabora.com, sergi.blanch.torne@collabora.com, mcanal@igalia.com, linux-mediatek@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-rockchip@lists.infradead.org, amd-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, intel-gfx@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20240517092502.647420-1-vignesh.raman@collabora.com> <20240517092502.647420-4-vignesh.raman@collabora.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Dmitry, On 21/05/24 12:39, Vignesh Raman wrote: > Hi Dmitry, > > On 20/05/24 16:32, Dmitry Baryshkov wrote: >> On Fri, May 17, 2024 at 02:54:59PM +0530, Vignesh Raman wrote: >>> With latest IGT, the tests tries to load the module and it >>> fails. So build the virtual GPU driver for virtio as module. >> >> Why? If the test fails on module loading (if the driver is built-in) >> then it's the test that needs to be fixed, not the kerenel config. >> >> It's fine as a temporal workaround, but please include a link to the >> patch posted to fix the issue. > > I will recheck this issue and post a link to the fix. This was the issue seen with IGT commit https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/7d1841317c13c19c26b6352f923b205d43742c55 [ 4.450571] [drm:virtio_gpu_init] *ERROR* failed to find virt queues [ 4.450962] virtio_gpu virtio0: probe with driver virtio_gpu failed with error -2 [ 5.471417] [drm:virtio_gpu_init] *ERROR* failed to find virt queues [ 5.471916] virtio_gpu virtio0: probe with driver virtio_gpu failed with error -2 https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/59037122 With the recent uprev of IGT to https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/0df7b9b97f9da0e364f5ee30fe331004b8c86b56, this issue is not seen. So will drop this commit. Regards, Vignesh > > Regards, > Vignesh > >> >>> >>> Signed-off-by: Vignesh Raman >>> --- >>> >>> v2: >>>    - No changes. >>> >>> --- >>>   drivers/gpu/drm/ci/build.sh       | 1 - >>>   drivers/gpu/drm/ci/igt_runner.sh  | 6 +++--- >>>   drivers/gpu/drm/ci/image-tags.yml | 4 ++-- >>>   drivers/gpu/drm/ci/test.yml       | 1 + >>>   drivers/gpu/drm/ci/x86_64.config  | 2 +- >>>   5 files changed, 7 insertions(+), 7 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/ci/build.sh b/drivers/gpu/drm/ci/build.sh >>> index a67871fdcd3f..e938074ac8e7 100644 >>> --- a/drivers/gpu/drm/ci/build.sh >>> +++ b/drivers/gpu/drm/ci/build.sh >>> @@ -157,7 +157,6 @@ fi >>>   mkdir -p artifacts/install/lib >>>   mv install/* artifacts/install/. >>> -rm -rf artifacts/install/modules >>>   ln -s common artifacts/install/ci-common >>>   cp .config artifacts/${CI_JOB_NAME}_config >>> diff --git a/drivers/gpu/drm/ci/igt_runner.sh >>> b/drivers/gpu/drm/ci/igt_runner.sh >>> index 20026612a9bd..55532f79fbdc 100755 >>> --- a/drivers/gpu/drm/ci/igt_runner.sh >>> +++ b/drivers/gpu/drm/ci/igt_runner.sh >>> @@ -30,10 +30,10 @@ case "$DRIVER_NAME" in >>>               export IGT_FORCE_DRIVER="panfrost" >>>           fi >>>           ;; >>> -    amdgpu) >>> +    amdgpu|virtio_gpu) >>>           # 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 >>> +        mv /install/modules/lib/modules/* /lib/modules/. || true >>> +        modprobe --first-time $DRIVER_NAME >>>           ;; >>>   esac >>> diff --git a/drivers/gpu/drm/ci/image-tags.yml >>> b/drivers/gpu/drm/ci/image-tags.yml >>> index 60323ebc7304..328f5c560742 100644 >>> --- a/drivers/gpu/drm/ci/image-tags.yml >>> +++ b/drivers/gpu/drm/ci/image-tags.yml >>> @@ -4,9 +4,9 @@ variables: >>>      DEBIAN_BASE_TAG: "${CONTAINER_TAG}" >>>      DEBIAN_X86_64_BUILD_IMAGE_PATH: "debian/x86_64_build" >>> -   DEBIAN_BUILD_TAG: "2023-10-08-config" >>> +   DEBIAN_BUILD_TAG: "2024-05-09-virtio" >>> -   KERNEL_ROOTFS_TAG: "2023-10-06-amd" >>> +   KERNEL_ROOTFS_TAG: "2024-05-09-virtio" >>>      DEBIAN_X86_64_TEST_BASE_IMAGE: "debian/x86_64_test-base" >>>      DEBIAN_X86_64_TEST_IMAGE_GL_PATH: "debian/x86_64_test-gl" >>> diff --git a/drivers/gpu/drm/ci/test.yml b/drivers/gpu/drm/ci/test.yml >>> index 612c9ede3507..864ac3809d84 100644 >>> --- a/drivers/gpu/drm/ci/test.yml >>> +++ b/drivers/gpu/drm/ci/test.yml >>> @@ -350,6 +350,7 @@ virtio_gpu:none: >>>     script: >>>       - ln -sf $CI_PROJECT_DIR/install /install >>>       - mv install/bzImage /lava-files/bzImage >>> +    - mkdir -p /lib/modules >> >> Is it necessary to create it manually here? >> >>>       - mkdir -p $CI_PROJECT_DIR/results >>>       - ln -sf $CI_PROJECT_DIR/results /results >>>       - install/crosvm-runner.sh install/igt_runner.sh >>> diff --git a/drivers/gpu/drm/ci/x86_64.config >>> b/drivers/gpu/drm/ci/x86_64.config >>> index 1cbd49a5b23a..78479f063e8e 100644 >>> --- a/drivers/gpu/drm/ci/x86_64.config >>> +++ b/drivers/gpu/drm/ci/x86_64.config >>> @@ -91,7 +91,7 @@ CONFIG_KVM=y >>>   CONFIG_KVM_GUEST=y >>>   CONFIG_VIRT_DRIVERS=y >>>   CONFIG_VIRTIO_FS=y >>> -CONFIG_DRM_VIRTIO_GPU=y >>> +CONFIG_DRM_VIRTIO_GPU=m >>>   CONFIG_SERIAL_8250_CONSOLE=y >>>   CONFIG_VIRTIO_NET=y >>>   CONFIG_VIRTIO_CONSOLE=y >>> -- >>> 2.40.1 >>> >>