From patchwork Wed Feb 26 14:03:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 868512 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f56:0:b0:38f:210b:807b with SMTP id cm22csp815528wrb; Wed, 26 Feb 2025 06:04:23 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVxN2snerv5zt+xNKVLC5cuPnW3zLR3YZ5ecUlVHO673B4gOmCdg1YrwgeWZYGjXVVjjMWnmQ==@linaro.org X-Google-Smtp-Source: AGHT+IGsIpsdPGJ/qnaB5ISmX9F/eXOXo1kx4T5C5pFoWrtejHdarM0J8xSWOR+GPT6lDlvMvfam X-Received: by 2002:a05:6512:3ca5:b0:545:2ee6:84a8 with SMTP id 2adb3069b0e04-54838ee76c0mr10257825e87.14.1740578663410; Wed, 26 Feb 2025 06:04:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1740578663; cv=none; d=google.com; s=arc-20240605; b=P02S2e8DKUm/XxR2d9t7SVCOtXa36X5PwqcwpXGNTpveB5RqwrQl5oCeF6C5KYR/t/ 7tTn5BVLe0xHZb0Bo6iQvubjznWQ3uc/r8lBQ2Qmb+NdZNC0N0c2G0tAGOr0Bglz8sV5 tums7fZaIQG/JVGvvYayzE66rcSDzzGocLEA8mm5VS2rwXUDrTA4U0okgmqh73kbxYzy WfSNvE+vtlp1NMaQZX9ZltNdYzgYHORq+MpjNP2C5azRV4EsytSapXGMxAOicvT6dFXM 7sGh2WJ7R/0axiTqHYWG1IIwB5D9nUXZ5MXj9A8WJ52JcfyTzya/zeounluPJ/ND0jpC S1Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oTNw3ExiwY0hSDPVxjA6iIZ/5nHNcZO4ZN/EW3ctQwU=; fh=fySNGfDYHed5hYuWeyYWBmz9AHLCfB1G33J0dTYFdV4=; b=S5FwkCMN5GKlfFXPl4jt6k1J2QyUbxH4aeeogDKjGr6AEIJZ5Znb+bGFvkodGGJyIB E2DwbayGIPZzyX/uwWfODQZ6y3pi6Jmn8uS7FEhMChMUcKsllCo5cQsK6J119Qk1c1SH itquSTFrFGNiJL+ukYfpLwmsfNoDld1TY1O8YrtCtieLkBTscohMc7S2/Cu467AQD4xV zKngw0swTWdikWUhzrf2k2K7KZmHM+pkv/KViWGp9XE51MG5AA4dNhyIstdsfeSfEfpu QsznB/3U5MfOa7c5vonRnVcjR/lngaqkQExJNe/FC4vqdafh9S4N7GM3E0ADVmQnykrv IdSA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1eYwTVN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 2adb3069b0e04-548514f24c0si3690013e87.297.2025.02.26.06.04.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Feb 2025 06:04:22 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J1eYwTVN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tnI11-000149-O8; Wed, 26 Feb 2025 09:03:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnI0u-0000ud-Ie for qemu-devel@nongnu.org; Wed, 26 Feb 2025 09:03:52 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tnI0q-0005dh-5s for qemu-devel@nongnu.org; Wed, 26 Feb 2025 09:03:52 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4399deda4bfso47176285e9.0 for ; Wed, 26 Feb 2025 06:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740578626; x=1741183426; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oTNw3ExiwY0hSDPVxjA6iIZ/5nHNcZO4ZN/EW3ctQwU=; b=J1eYwTVNkQ+Bs1+KhF6zD7l0aYhjYQ8+j01yurLbXDxUBe+KrpCXy7fiNd0xdv1m48 aHUw7HbqB3PqwEAEBpJwNTyMdrh/T67JIq1t+laof/Fju1bySUM/6AOU5+1tNeeVS7vQ XNHLLWjWA+Xxxf7kccSO4net8R/p7GmpLZ4A05ntbts7TYbn6UZfpMTfZ0OI7+PUISN8 iCbCrZ50fXBzs1TJxIgTMOEVk4jG9tklfCqYgaK6OClSLV6nT566chr21GkzTG0oWs3R cvpRK6Xy8NdFUlXFUgwWqPbYx6HhCgfuSQrT5rVGHgXT4tsrMYSwUk3ypxnK13FxSz3P TSqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740578626; x=1741183426; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oTNw3ExiwY0hSDPVxjA6iIZ/5nHNcZO4ZN/EW3ctQwU=; b=rKcEzTf/5U7Pn1Gm2YHNbHnL6hJ+FCI+9BYWPGbAkRza8oBPxQmAoydiQFR+MCN/Ne gNlwsBC5iMIIenXmIhEvukcKX4lHkaKdlKLDzlW54eNEHqvM4pO1cubOk0kNf9AXHVLX WIffN8XlmEYrs3Jzip6klBe4YCXpnjnxV7UtApPEQQAy9k6XxSfpgQm9l5HIL7YVxKxQ AfxKJahCk1X92E9dXQXaqpHo0N/6iTRm1gD+veRbo3NrBxb7KBFJ6J4SFDJvq3hoIUA0 OpiHs4E4OLimt53yw3qHcgb0VpT2u1bR+6T89+ddQVY2Hk63/D/5L8Gz19PAL2pT7cw2 tN8w== X-Gm-Message-State: AOJu0YwSl9bLMlRGjwBWencpPa09+nZ7wsdwdzXeeEb3gxnL1eg+ZmdM BLnxlo5ebtpiIeCsQ6nmzlx8ldjOOr/aQScYvfvScDeXoI41f6VUbgMLcObaWGs= X-Gm-Gg: ASbGncti1fsSD7rBnRm0gsuSAM5N8G6lF570XcGOrexqzhzFXXk+Si7qGlJ6pAQkBKn Ts3E4gzltkgf8JgaYpjA9CWPnuOuvAJmuYZ4Q6WXTSAzd9HuCxRtYOvvEyHFCemdRixij1rrb/P NScIObDrgY4eeonPiVSUxvujldEEadby3Nyvb//DgSgago43k9SaBZMwmBO4sTO62SyOjScqBBH /VGIXm9a2z7epllroBupksL/NCfwLwp0+NgHh6mGMPWZvgzfh2AJ2r0Z0d8ANBSIqDhdknuIMSM jr+Qec7Xa1WigLpKIflJPyu5p9VF X-Received: by 2002:a05:600c:3b91:b0:439:9a40:aa16 with SMTP id 5b1f17b1804b1-43aafab917fmr102350055e9.16.1740578626025; Wed, 26 Feb 2025 06:03:46 -0800 (PST) Received: from draig.lan ([185.126.160.109]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba549be9sm22704255e9.34.2025.02.26.06.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 06:03:44 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 446A5601A1; Wed, 26 Feb 2025 14:03:44 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Peter Maydell , Kyle Evans , Eduardo Habkost , Alexandre Iooss , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Laurent Vivier , Mahmoud Mandour , Paolo Bonzini , Li-Wen Hsu , Riku Voipio , =?utf-8?q?Alex_Benn=C3=A9e?= , Warner Losh , Pierrick Bouvier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Ed Maste , Thomas Huth Subject: [PATCH 04/25] tests/functional: expand tests to cover virgl Date: Wed, 26 Feb 2025 14:03:22 +0000 Message-Id: <20250226140343.3907080-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250226140343.3907080-1-alex.bennee@linaro.org> References: <20250226140343.3907080-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Add two more test modes using glmark2-wayland to exercise the OpenGL pass-through modes with virgl. Virgl can run with or without the hostmem blob support. We might want to eventually add more directed tests and individual features later on but the glmark/vkmark tests are a good general smoke test for accelerated 3D. Signed-off-by: Alex Bennée Message-Id: <20250219150009.1662688-5-alex.bennee@linaro.org> Reviewed-by: Thomas Huth --- tests/functional/test_aarch64_virt_gpu.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/test_aarch64_virt_gpu.py index c9463d7285..7a8471d1ca 100755 --- a/tests/functional/test_aarch64_virt_gpu.py +++ b/tests/functional/test_aarch64_virt_gpu.py @@ -89,6 +89,26 @@ def _run_virt_gpu_test(self, gpu_device, weston_cmd, weston_pattern): full_cmd = f"weston -B headless --renderer gl --shell kiosk -- {weston_cmd}" exec_command_and_wait_for_pattern(self, full_cmd, weston_pattern) + @skipIfMissingCommands('zstd') + def test_aarch64_virt_with_virgl_gpu(self): + + self.require_device('virtio-gpu-gl-pci') + + gpu_device = "virtio-gpu-gl-pci" + weston_cmd = "glmark2-wayland -b:duration=1.0" + weston_pattern = "glmark2 Score" + self._run_virt_gpu_test(gpu_device, weston_cmd, weston_pattern) + + @skipIfMissingCommands('zstd') + def test_aarch64_virt_with_virgl_blobs_gpu(self): + + self.require_device('virtio-gpu-gl-pci') + + gpu_device = "virtio-gpu-gl-pci,hostmem=4G,blob=on" + weston_cmd = "glmark2-wayland -b:duration=1.0" + weston_pattern = "glmark2 Score" + self._run_virt_gpu_test(gpu_device, weston_cmd, weston_pattern) + @skipIfMissingCommands('zstd') def test_aarch64_virt_with_vulkan_gpu(self):