From patchwork Mon Mar 7 17:22:49 2022 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: 548886 Delivered-To: patch@linaro.org Received: by 2002:adf:80eb:0:0:0:0:0 with SMTP id 98csp1115997wrl; Mon, 7 Mar 2022 09:24:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv8+AUXJgy5uiYMm/sM6CK23TzMv2Tsj7Bdh468Wfp5Gqkn1HJpdhtQXae2N96dgIT9tpY X-Received: by 2002:a81:5988:0:b0:2dc:5619:3692 with SMTP id n130-20020a815988000000b002dc56193692mr9503207ywb.465.1646673855311; Mon, 07 Mar 2022 09:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646673855; cv=none; d=google.com; s=arc-20160816; b=Duw0exeLxIsqjcRuZY/UTU7ya6iAXZearLoNyiK+UbVaAYdJfVa1WO7LQCjO/B5fnN t/g9R3/uyv8HMrgAj8oclq0CSFvL/Xk6gt2puSL61vhVGw42ymKlOTjedyQJvyi12Mym XJf+EWKWO17Tjhd0AP3XCpuzVr8vWhOGUHtw1+T2k+mItGFZw/cEB/3bgDlNcmpjtHg9 Tq7vU9IexUyozO18/+D6QUuNoNc2TNMk8d/gyz+fYSV0Rtri4V6OhEQqt27WEq9t2KDy 7EVvakG0aEL0gTh7H/MrkjlqZK47CQ+/cDel27M37MZksuq/fXNKD1uCa9AMnSc3VVcs 2gvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=A6rlxm4xTsM4J5Mcul43gsC0NEKqa8EwY7xDolJVX/U=; b=QFfnBuosDRjhtJ1wZaAIhgNFm2mcO9TKTOz8GAjfKhk5KwwHKhhNp5dGblmqgMn7Ie r/EccDszSi37Q0/7NPmg83S6aplDWfK64/e06N71czd7lF010DYUTgxwjwuieTxnlt6S EhZGlll2l6aLSPaZ6T9tvwmTM5cG6cqk1fei6JtsApp6sVQ7TW5omZJ1cf8W/Zw2CXuo r2UcYzs11USIvaJpY7Ygr/Dku2Ow0sGqvdP3F/kzttcKYqIY9fwQ45w3mgs1Sjm4ZR1U NE64XgIyo8gFPlPEdLqfH7wFw0QqmZiA7ly8PsJoafWnCkk13qIRcSR4grPaVDUOX1JD Ifkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=wPwsPQ75; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h18-20020a25d012000000b00628968d8d0csi9218878ybg.620.2022.03.07.09.24.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Mar 2022 09:24:15 -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=fail header.i=@linaro.org header.s=google header.b=wPwsPQ75; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRH5i-0007HB-Jm for patch@linaro.org; Mon, 07 Mar 2022 12:24:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRH4V-0007GM-Hd for qemu-devel@nongnu.org; Mon, 07 Mar 2022 12:22:59 -0500 Received: from [2a00:1450:4864:20::336] (port=44708 helo=mail-wm1-x336.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRH4T-0005bp-Km for qemu-devel@nongnu.org; Mon, 07 Mar 2022 12:22:59 -0500 Received: by mail-wm1-x336.google.com with SMTP id bg31-20020a05600c3c9f00b00381590dbb33so9701860wmb.3 for ; Mon, 07 Mar 2022 09:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A6rlxm4xTsM4J5Mcul43gsC0NEKqa8EwY7xDolJVX/U=; b=wPwsPQ75GRRRIkOtTkeu6xmjvamEWklnnSrebVR6Q6UqjK+DkHFktvXztWldetw5Tq Rl9w7TJwKI1LPBqCZEwhNNJ1Ke9DuYJCshf3oHgp/onPpbdNkiRmG5zxGsa/facJYCD7 gCTBtumTTl7vvaq41DxD0kMRReg5bYU2iVAhpbPtPsrl9uKHxQ8dU14jUZhOGHyXHSCv G63+qIcleDZ4vYeOqnQvlNqKaeIeexLN6mLF4CavVqFpdrSrrwQvO+FRa16BG/lqRvW6 xDZ1V5JCoZ1gdWQ5JXCjQhp0DdR7PVC8M1HmjAz//HmPMDcQA7A3JGBFKkSqWTOwcZae X3aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A6rlxm4xTsM4J5Mcul43gsC0NEKqa8EwY7xDolJVX/U=; b=zVUJ73Lrm09Pa+1Kn+jhyOrwQyYEEHvhgXcI3PjOfNvCn03q9V1bALe772rZTDStE0 LrHCN8wfrIAidELpb072beFpTGppVUxXszQQK9TlEn5UgBlVbe62abc10tW+H2aUoC5b j54DA618oJcZ6n+SklGl5oxiQLbKrwvBnIrYZlxUv2+PIHd1XHDszalTcXNbJCfDMEMw 6CGNl+3S3C7MGr9ONY+oZ20SK7GfDHmT8WOena/CyN553fzWSgKG2J2utpafGOdR3YOI 6YZB+3b2XUPLDUSxJ31tbweYLuqjcD6OKNKffAaXsXhN1W2kscEWCd6AmOtFZi6G09Zr GT0w== X-Gm-Message-State: AOAM533cUq9h+kQO7jZPgMt8ne/eQj0aaEfPV1D+Ea+F4T10yOix1fre 649ajPK5pJhvIPugd/IVu3FpWw== X-Received: by 2002:a05:600c:4f8f:b0:383:d0b:3706 with SMTP id n15-20020a05600c4f8f00b003830d0b3706mr10067674wmq.117.1646673775687; Mon, 07 Mar 2022 09:22:55 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 9-20020a05600c268900b00381394d74a1sm13630637wmt.9.2022.03.07.09.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 09:22:54 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C8D461FFB7; Mon, 7 Mar 2022 17:22:53 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH] tests/avocado: update aarch64_virt test to exercise -cpu max Date: Mon, 7 Mar 2022 17:22:49 +0000 Message-Id: <20220307172249.3125779-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::336 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: Beraldo Leal , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Cleber Rosa , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The Fedora 29 kernel is quite old and importantly fails when running in LPA2 scenarios. As it's not really exercising much of the CPU space replace it with a custom 5.16.12 kernel with all the architecture options turned on. There is a minimal buildroot initramfs included in the kernel which has a few tools for stress testing the memory subsystem. The userspace also targets the Neoverse N1 processor so will fail without additional v8.x+ features. Signed-off-by: Alex Bennée Cc: Richard Henderson --- tests/avocado/boot_linux_console.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/avocado/boot_linux_console.py b/tests/avocado/boot_linux_console.py index 9c618d4809..ca3a40e91d 100644 --- a/tests/avocado/boot_linux_console.py +++ b/tests/avocado/boot_linux_console.py @@ -12,6 +12,7 @@ import lzma import gzip import shutil +import time from avocado import skip from avocado import skipUnless @@ -330,25 +331,30 @@ def test_aarch64_virt(self): :avocado: tags=arch:aarch64 :avocado: tags=machine:virt :avocado: tags=accel:tcg - :avocado: tags=cpu:cortex-a53 + :avocado: tags=cpu:max """ - kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora' - '/linux/releases/29/Everything/aarch64/os/images/pxeboot' - '/vmlinuz') - kernel_hash = '8c73e469fc6ea06a58dc83a628fc695b693b8493' + kernel_url = ('https://fileserver.linaro.org/s/' + 'z6B2ARM7DQT3HWN/download') + + kernel_hash = 'ed11daab50c151dde0e1e9c9cb8b2d9bd3215347' kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) self.vm.set_console() kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyAMA0') self.require_accelerator("tcg") - self.vm.add_args('-cpu', 'cortex-a53', + self.vm.add_args('-cpu', 'max,pauth-impdef=on', '-accel', 'tcg', '-kernel', kernel_path, '-append', kernel_command_line) self.vm.launch() - console_pattern = 'Kernel command line: %s' % kernel_command_line - self.wait_for_console_pattern(console_pattern) + self.wait_for_console_pattern('Welcome to Buildroot') + time.sleep(0.1) + exec_command(self, 'root') + time.sleep(0.1) + exec_command(self, 'cat /proc/self/maps') + time.sleep(0.1) + def test_aarch64_xlnx_versal_virt(self): """