Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2373479lqo; Mon, 20 May 2024 04:03:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMab7JCSGAYhIfAowZt3wfpWgn8i61eEEKI3cgWj/saQtU3tbXq35wBLT0Gr5k/YoD0Qo42nP+2V+2VHs/3QhvvsciojmimLQOAkNXxw== X-Google-Smtp-Source: AGHT+IELYJhU1R3KCKOXnuEmP4u++KFnSshugLEWX8nXbpxq3aKNyOdoT8bUCH+w4mTKve8qhLJb X-Received: by 2002:a50:bb61:0:b0:572:a7c8:f12b with SMTP id 4fb4d7f45d1cf-5752b4a20d7mr5090315a12.13.1716202983511; Mon, 20 May 2024 04:03:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716202983; cv=pass; d=google.com; s=arc-20160816; b=H7GiQIQIQW8ArFmzqKZmIGoPY9uCeaYZ5tKXbID8Mf/AMO2IfXdLE4fl/69nkojrgo hSrXJKoVkL2a56DX/NbZynFpSYbzgNGTdgd6HpZILLjyQWAC+OKfZQQDAiI2/SHDhqji EkmR4Ot2tVLTADvo3Q4caA/chQYkqErT0FVxIPPpNWOgVaSZl6lu7SbnlYM04AKDlXhY bwgUtFRjLQ3JeFeqY4aOovCfmEWEaTkl81AMa/egwKbsczpm7Y82qe+4WsM5CtGdnzdO LQ10EGfzOC6ELXXOF7ili+YSDOFRnpx1NkLzA9cox1CuirvBJeNgqUDM4qGJdHKfCG6j gXjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SIDOKwIcUp4lPPO/PDmHDa/A/zxT15SPb9EQ0kHZyQI=; fh=3ZsFiJCUCWzKVcCUrNp+uGPBY9Kheh3NVBDbuokzBvc=; b=Yd3S6aE67fverE2FK3RknZm9oevFU0L+Q7Kkerkyj8rHwfCj0obdihZds2zf44T1HS HIiHx7I4mnjDjE8J4Vj/lKBxyqyKNsEA8YaY/+/GD6RjDIyXSgjApojPWBB3P7LFOpRg CSKFh7+cd0zOy/o2EvQ8ujnjlhkNCRqxDaqWk0rSjTn0ASkjEi7ACX4JmJBHvTw67YyM 7hjsQJLrG2FFrx/AUomTqcgr3SQ5iTfrPZM7E40H+WYyz7DmycBYaapy6h3QZSyhi/Zd rf3o9rnqdqOxX0IrqiDT41iAaxKDtZgWbjFHZYtLDZdznHUnAXHzByL4f+HoGbrnPXdn Fu2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KS0tDeas; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-183639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d52b0si12998631a12.243.2024.05.20.04.03.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 04:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KS0tDeas; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-183639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 343CB1F2259F for ; Mon, 20 May 2024 11:03:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBFDF537FB; Mon, 20 May 2024 11:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KS0tDeas" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0352E51C46 for ; Mon, 20 May 2024 11:02:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716202969; cv=none; b=Ft3ju1EiV7Jffjb0H/BQd4rrrjnZb+mukjWndid7ahqe6eV/91DnTMGLjNTAt9RmHf7nAEarmDKHwMaF14N+Gy8qNr9meIZAdoEy4TfTArrmD7WPugNkJLR0QTEOh578OtSEs1lOftfTZVfYHqn6kxU2HpGSVK1wpfbmXx3e+OA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716202969; c=relaxed/simple; bh=aHXJgMMAWaYsM0kSRcC2/pcFvZd8v1mmzcvs6fKS26k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IihoePT4LRMpC+n6Omkj+x0kOueRVLCX6W+591iXoTKogqak+WBNTViHjF94FNH9cDFdw2Mb1z35FWZ9YGs0AxRXC42uOUPyE8j8SZodT20rPhYSzk97yeiuT78U4O1lBFPzXq42pRC1AxtHmVIQ9voZrfYVuPO1YHLRmx0aYRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=KS0tDeas; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-51f0602bc58so2339499e87.0 for ; Mon, 20 May 2024 04:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716202966; x=1716807766; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SIDOKwIcUp4lPPO/PDmHDa/A/zxT15SPb9EQ0kHZyQI=; b=KS0tDeaswHLDsFQJ2dXVZEW00flrO7Yi+5XlZAyeYw70E8YM3gI3do48DJFdFznLqh ICnXfpB3tM9mUVTOkIC5V8UseJjuGYhmgy9zrSDeAoY2r4+OL/EizvOiPZfc47MqQIWN qMcw+Wq1nJ9Sn1hDSwW0ObUgqClllvbgXmZS5Y0G1paavKLBrcT/dhMGGW82p71m+XOo enoiKx/shfFRI+N/aaGrAAbQ4nW5KXP9QefFVq90sKxX+ju276KrJrfQuFrwjbp35FO1 TzA0JAb1Us9FRiJev/r46ZitNpz957KyXRDCm18Q0QUAsw2KUqwV7MY5rkOCjSMrb6fp OOIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716202966; x=1716807766; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SIDOKwIcUp4lPPO/PDmHDa/A/zxT15SPb9EQ0kHZyQI=; b=DENRnoQa3vLBbnZ6h4uck+C9Gn3thYXTyla0gQuhq4wILqikiS25zodSXFKvN+yOak 6PU2Kr3W2N4QL7GoShXp5dToye0DCNmpw6TAqPDXxCEdcRCVpU7JRMe/G4qc9l8+68e5 WGhdGElZckqPpwAgJ8Gz4JQs21DJYyqWeAwnzfoOA+PqQW0QZXpRu+XL37htZ0WXVJiL MPvqKka5MINnj7jf/iO7Tt92/F6Ergkjp9ZbwCUYKckJjt8V6n2yA1Spq9803RZi28M0 n7Vty6oXlAGsf4T0UVYzaU9YurSnx5vtInUQ9mgtGL5VcAVSHH3Uo0SziyDqJ6DrMUkn LLUg== X-Forwarded-Encrypted: i=1; AJvYcCXDHMTcL/LuY9BOYKtSc98hVed/yAKMFUcJ1WaRz961O+pIkrNwdYcCdc1qHxjQQNj83Oc4vtOMsXRsoW2ITjYuRnj0v8aJqqwr47tC X-Gm-Message-State: AOJu0Yyw4jp8Rw9F9Kwg+3hgnZT1N7Yyw1OE6txHH9591KuwOaM8bfWX 7f/E7v+JheKDUh+S/V8jAVsQRWot7xZN8BVuCVkaspTZEg+4udJoZjCtbhQjOlc= X-Received: by 2002:ac2:44a8:0:b0:513:dbcd:7b8e with SMTP id 2adb3069b0e04-52407cdde08mr1551456e87.24.1716202966284; Mon, 20 May 2024 04:02:46 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5236e80e8c9sm2317384e87.238.2024.05.20.04.02.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 04:02:45 -0700 (PDT) Date: Mon, 20 May 2024 14:02:44 +0300 From: Dmitry Baryshkov To: Vignesh Raman 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 Subject: Re: [PATCH v2 3/6] drm/ci: build virtual GPU driver as module Message-ID: References: <20240517092502.647420-1-vignesh.raman@collabora.com> <20240517092502.647420-4-vignesh.raman@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240517092502.647420-4-vignesh.raman@collabora.com> 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. > > 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 > -- With best wishes Dmitry