From patchwork Tue Mar 15 12:12:45 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: 551439 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp3409589mag; Tue, 15 Mar 2022 05:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTLzOfsrNE0cwZSOMSuFo+DIb8iM6xtk3vpG6n6MJGGVucc92SNe9iA14R6fFvbONV9MvM X-Received: by 2002:a05:6902:104:b0:628:bc80:748f with SMTP id o4-20020a056902010400b00628bc80748fmr22778944ybh.575.1647346785799; Tue, 15 Mar 2022 05:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647346785; cv=none; d=google.com; s=arc-20160816; b=Rz1ritBd/XyZCdrxf/nC1lr8uSibg87Wp4H+uWQz/u/cgPVHNX/zrd6tTramLBMwA/ ESXfB7TeCUZ1twn4G83vld6niwUrP3N9CwhEIP+B3E2/W7nu07bxNMgXwsKX5TWxM6Ed Z41jEcGJ9LNItb6gotqN4MUiFDE/9PRnjhG+PsZfwf9rwchYrKyQZbSG51vQIoz3zjqU 0GtuCPnbNAw25Jb/7ms3cSGKK9YmswHCeO+Nm0yW/vHrT9Z7gLioNCZTHeXuBtZwtlUt qI4oeEbYHxPVkQkFt7EPaF+wG3UBZ26qhRJ+1Iy6diKMb9DwW5J/Vd6fbIFtCupZKOiz ENDg== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=00fkJAMSPWjEO2aeQpLIdfkZ1JsNH7QRi3pDHneeZfA=; b=NW/u0q4e8v07cwMb5r4fsgcty8rD5y0c5sVl2u0/hNjHY6mlR7kqZPjZKVf2+1U/LJ hMxWicJC7UejEngO2Y9Z7juaC+PMWQV/F/IM4n7yjPG+gS7pABKJZjTyiy1cG/WecQXm PUrI9/Jazk0AFhtrtWD8Y1Y1qdUN//uGzVUF1dm8pb3OeQuXiHD6Va5s3jpBV0nPbZgk cb35Vc8YPYTPhDLYB0Pc+yua1+sirL0ndMWWnN2+p70LyaouP6DHiK/x8zMz94s7yufl SFYqrRWJltJmx8F5ybLrtKkT4QX9PlKBq1R0aHSFoB0tosiatTk52ALoFNK0Sxnj0x0f CBEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IyosvKHz; 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 i17-20020a056902069100b00628bc2e988asi10805099ybt.136.2022.03.15.05.19.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Mar 2022 05:19:45 -0700 (PDT) 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=IyosvKHz; 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]:35602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU69P-0003Ja-Um for patch@linaro.org; Tue, 15 Mar 2022 08:19:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU62u-0005tX-6C for qemu-devel@nongnu.org; Tue, 15 Mar 2022 08:13:02 -0400 Received: from [2a00:1450:4864:20::62e] (port=37757 helo=mail-ej1-x62e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nU62s-0000Zg-3k for qemu-devel@nongnu.org; Tue, 15 Mar 2022 08:12:59 -0400 Received: by mail-ej1-x62e.google.com with SMTP id bg10so40836844ejb.4 for ; Tue, 15 Mar 2022 05:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=00fkJAMSPWjEO2aeQpLIdfkZ1JsNH7QRi3pDHneeZfA=; b=IyosvKHzgY5xtHkXcMV2lxEKfsYPc61YbrfwOtu8RCvj8bMul/OuAbc8TM5q/iAVqi iSkyIBV3gltWtW+wcTkK3458bgLwR1utJoOY2s2vHzoK0ihwpJrS9GuFIEVU+NbQAfVt 1clPcQ8L/oa+gHILkPTJUsYgqKKuWh1YYsG/EnSNqSnWu2OmXvsfHWmYoeuoqCrKz0lE J5Xtdg+lNZOyn/hqzKM0RPF+dCFKQzCOELL3P3E7ZEgjIeedPV/0G8NwlMkDSXxEXqB+ 9s8vWM4IMEu/t7lB/HH8oc7y4LWNnJGdONJA7VG+RxlrCkj587tgwrsLVvLK6DnI/Tz6 DG1g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=00fkJAMSPWjEO2aeQpLIdfkZ1JsNH7QRi3pDHneeZfA=; b=I7Jek6ct+oOLy57Uk9sdWqCLBA0dOeq3gLvg9Rph5+IQbfqaqLH3Gm9fKUFIedcDn0 piHrpgFfXVLuRX43ZleU7z1DtPAbNGMWDDf08TXChcg6H314DbTGZwH9Y87CWDDGc4e/ yeeSyzJ3Osxkt3E3mrcIJqSqeF57VtRD9o78/havYOEwWcUCbPMeUt+hJnqisvWZHT9B rxXZAeL2q+XbGP+AKg3BMvKuSbAqcrg4jxK0VoN8dVyMxHl31y+780vX4Csmxx6k5Pbl SSBYmI7D9ZNFyQUB5DgjNtJnZLOHGvOpPnSpeBoYHfNiXa071sl1mcaxXTXCrIyvOAOj OPgw== X-Gm-Message-State: AOAM531bTYtWYFsYgQpSUZJ4vRZOjWN/r8INUiX974D79s5mlMO2WFw+ xDlwoffZ42r+gIPtgg0Z0pcEcw== X-Received: by 2002:a17:906:4711:b0:6d0:67bb:59e1 with SMTP id y17-20020a170906471100b006d067bb59e1mr21401497ejq.211.1647346376373; Tue, 15 Mar 2022 05:12:56 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id cn27-20020a0564020cbb00b00418b0c7fbbfsm777256edb.32.2022.03.15.05.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 05:12:52 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 23B081FFBA; Tue, 15 Mar 2022 12:12:52 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 2/8] tests/avocado: update aarch64_virt test to exercise -cpu max Date: Tue, 15 Mar 2022 12:12:45 +0000 Message-Id: <20220315121251.2280317-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220315121251.2280317-1-alex.bennee@linaro.org> References: <20220315121251.2280317-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::62e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62e.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: fam@euphon.net, berrange@redhat.com, Beraldo Leal , sw@weilnetz.de, richard.henderson@linaro.org, f4bug@amsat.org, Wainer dos Santos Moschetta , qemu-arm@nongnu.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_?= =?utf-8?q?Benn=C3=A9e?= , aurelien@aurel32.net 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 Message-Id: <20220307172249.3125779-1-alex.bennee@linaro.org> Acked-by: Richard Henderson Tested-by: 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): """