From nobody Mon Sep 21 15:57:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1784141879; cv=none; d=zohomail.com; s=zohoarc; b=j+ndGgswRxfljUD0Hpvl3zW/iLLAiSjn72EQAEwE/cWakK5BaBHaICXX8x8Fy86VrCsKbHGv1nUonT1M8SKGNehHvY1U9uLlcW/7JOqgcqtcneyX2aDsw9rLagaXZKwfexywLoq89nNTRWcH8fARy9WXk537IFp29sO5f8ZwAAo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784141879; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5DhB+JUpGXlk6IHlyqJjGIVrJdBRqCbw090T+V0vsho=; b=iyurv1cPJK+LiOsBSAnnt7J9KJS25XOWqsLh0lhxDqcbnwr/6Z7OLVR3Peq5r63aLa3EqvBUp1tUSlkS39iDvJkaFYV0c8YFjoO1TWUfHrqYrODZRDvFE1DlmlNSi6/SZm9b22TCiVy9Q75H3OI72keASXOKGzYSCvhhrA2XyMQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1784141879641368.7170347189216; Wed, 15 Jul 2026 11:57:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wk4nO-0002pe-1u; Wed, 15 Jul 2026 14:57:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wk4nM-0002my-Gz for qemu-devel@nongnu.org; Wed, 15 Jul 2026 14:57:24 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wk4nI-00062I-6m for qemu-devel@nongnu.org; Wed, 15 Jul 2026 14:57:24 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66FHHXkU162048 for ; Wed, 15 Jul 2026 18:57:17 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4feefqgck8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 15 Jul 2026 18:57:17 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-37fca5f21b1so990672a91.0 for ; Wed, 15 Jul 2026 11:57:17 -0700 (PDT) Received: from hu-bcain-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3140e6c2b17sm5469546eec.25.2026.07.15.11.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2026 11:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 5DhB+JUpGXlk6IHlyqJjGIVrJdBRqCbw090T+V0vsho=; b=PFp3nUa2ihgoNZar 2IN6n8fiK6j8el/V1xO29kx23NCjC1tryP6noK+d2XaOyfIxqVNWd5aQNKoyDRXm RS1BYyFs6uB62PohGFeysHbJvxD4uQnJ+qwgAKtSU+sTtQqMy8ogie9ek21ral+u WkIVae1aS2CzkcHhWnlKXaeYw37PIh0FoTe3DQD/7hBV+1oBaCQAZCzToELqecXt Rf7QLxSNKGXYgbSgbBhx8lt0IRDWAVztQ7KdEK9xqucnHhuVJZicyWn4ON0yFPeO yA4xxZb+DA9ostZKF4K5ezA8A8eQK6gM61yqUXXAUTcuH2jN4IZ7QPKBBu7+7vtv bQAvhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784141836; x=1784746636; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=5DhB+JUpGXlk6IHlyqJjGIVrJdBRqCbw090T+V0vsho=; b=EwX/4BBfMfZNgAcjV6yr5NxhQ9jWbhsEfsnFmfa9O16lmYcHWeQFVsdH04TheBG864 Do5AHmiMFBWuxCRQA36ITCyV4N9dl7xGcLs4f5lf0Mncbt0sWxxVAEKLb6UMCcE1jFQY hAAHX9GkFGUDeBQCvih6Bd+7WT7rJlYLW6NT256klW+YT1QKpFI1faId6IJsq9FPLIFP ZmKd178SlHgILC85acbguyG2SlBYqL7OrAPfEtRmKV7J4N6gzjiv5sfo34AFGLVRxVEW cj6ThvIE5NRabffOCJzmz7dXB5s3eVdhNLJbPLzMxUYk/MkiqT7AfDDHS3KEFpf52JRx sCtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784141836; x=1784746636; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state: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fT6K4cAgDwk= X-Received: by 2002:a17:90b:5843:b0:36b:de66:92c3 with SMTP id 98e67ed59e1d1-38e38166016mr490660a91.10.1784141836148; Wed, 15 Jul 2026 11:57:16 -0700 (PDT) X-Received: by 2002:a17:90b:5843:b0:36b:de66:92c3 with SMTP id 98e67ed59e1d1-38e38166016mr490605a91.10.1784141835225; Wed, 15 Jul 2026 11:57:15 -0700 (PDT) From: Brian Cain To: qemu-devel@nongnu.org Cc: philmd@oss.qualcomm.com, pierrick.bouvier@oss.qualcomm.com, Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , peter.maydell@linaro.org, matheus.bernardino@oss.qualcomm.com, ltaylorsimpson@gmail.com, Thomas Huth , Brian Cain , Laurent Vivier , Fabiano Rosas , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 7/7] tests/functional/hexagon: add arch_tests functional test Date: Wed, 15 Jul 2026 11:57:01 -0700 Message-Id: <20260715185701.1287176-8-brian.cain@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260715185701.1287176-1-brian.cain@oss.qualcomm.com> References: <20260715185701.1287176-1-brian.cain@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=APNfGQ4N c=1 sm=1 tr=0 ts=6a57d80d cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=5vFef2XoAAAA:20 a=EUspDBNiAAAA:8 a=vy0UrYlPH36GBmUselQA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE1MDE4OCBTYWx0ZWRfX5Z5ZaJDcBstq xvcneei1RQtHRGGHqTkcyp+9Z6OveKcg2S2qr0PBYPyh5Hm3dsb9JdCCQSVgyOEHp3VPg0Ab7K6 GBBCNbXtFmdqXOL5/aSuZhteZrVMaVI= X-Proofpoint-ORIG-GUID: pBdOQ_2MLQh_cb7FhGOFEl1QDyAiwfnm X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE1MDE4OCBTYWx0ZWRfX1zJlegtC/p9f 2NcoqgypDTWGDoj/c8m2YkTZryXlWcCoMFvHv9canAk1eZrxvGFsxj/rdngylDk7DnPz0YH6+oc HbwUVzw18XRtg/9z5gk4EHZjCNIeLY7ocsdLqwzMYfwNPTlDbuDhPVy0NmSK2I6jGmzZC/tKs55 R0/xzxRWnmWJne3j3EgZ1ZMb+XE/yXPww+tXCJ4sBpGf8kJrW1QWDypgmfeoDVQ8tMISExwOdBv qzPEy85xqaALJTMMavzt0Sm7yU1NZhAXlmc/Se1jHFRLtlCNogNjCmQ17VS8eVZ1CMsaySdv1in N6O0jJNy79XgcDUxDbuvM0i/0MTD0CueNqCjC28LGbmC9UrWiriL08+JAN5ZBCHET6d2j7ZCOU/ MFv+CuZAqsaVCgv31ZrXwnxLFo0raxfyFTcF/b8A8FnPO1a67OjJTR/rDTUfz39pZKOBsZxjiTZ HvjMSZMfCgp7Q6QJkTw== X-Proofpoint-GUID: pBdOQ_2MLQh_cb7FhGOFEl1QDyAiwfnm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-15_04,2026-07-15_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0 spamscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607150188 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=brian.cain@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1784141880620158500 Add new test cases from hexagon-arch-tests to exercise exceptions, guest mode, interrupt steering, etc. Reviewed-by: Pierrick Bouvier Signed-off-by: Brian Cain --- MAINTAINERS | 1 + tests/functional/hexagon/meson.build | 5 ++ tests/functional/hexagon/test_arch_tests.py | 63 +++++++++++++++++++++ tests/functional/meson.build | 1 + 4 files changed, 70 insertions(+) create mode 100644 tests/functional/hexagon/meson.build create mode 100755 tests/functional/hexagon/test_arch_tests.py diff --git a/MAINTAINERS b/MAINTAINERS index b7012e945e2..b96d8f43fff 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1361,6 +1361,7 @@ F: hw/hexagon/ F: include/hw/hexagon/ F: configs/devices/hexagon-softmmu/default.mak F: docs/system/hexagon/ +F: tests/functional/hexagon/ F: docs/devel/hexagon-sys.rst =20 LoongArch Machines diff --git a/tests/functional/hexagon/meson.build b/tests/functional/hexago= n/meson.build new file mode 100644 index 00000000000..2b5a1a8f264 --- /dev/null +++ b/tests/functional/hexagon/meson.build @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +tests_hexagon_system_thorough =3D [ + 'arch_tests', +] diff --git a/tests/functional/hexagon/test_arch_tests.py b/tests/functional= /hexagon/test_arch_tests.py new file mode 100755 index 00000000000..2bb34f9b8dc --- /dev/null +++ b/tests/functional/hexagon/test_arch_tests.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python3 +# +# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import QemuSystemTest, Asset +from qemu_test.cmd import wait_for_console_pattern + + +class ArchTestsUart(QemuSystemTest): + """ + Hexagon architecture verification tests + + These are bare-metal tests from hexagon-arch-tests that exercise + system functionality. + + Tests output results via UART. + """ + timeout =3D 60 + + ASSET_TARBALL =3D Asset( + "https://github.com/qualcomm/qemu-hexagon-testing/releases/" + "download/v0.2.5/arch_tests_uart.tar.gz", + "edb4f37b877a3a72a0e10920477458a43b40045d34398fee8cb763fefd342f4f", + ) + + def run_uart_test(self, test_name: str, + machine: str =3D "virt") -> None: + """ + Run an arch test binary and verify PASS via UART console output. + """ + self.set_machine(machine) + self.archive_extract(self.ASSET_TARBALL) + target_bin =3D self.scratch_file('arch_tests_uart_package', + 'bin', test_name) + self.vm.set_console() + self.set_vm_arg("-display", "none") + self.set_vm_arg("-kernel", target_bin) + self.vm.launch() + wait_for_console_pattern(self, "PASS") + + def test_exceptions(self) -> None: + """Tests exception delivery for trap instructions, privilege + violations, and verifies SSR cause codes and ELR values. + """ + self.run_uart_test("test_exceptions") + + def test_guest_mode(self) -> None: + """Tests guest mode entry/exit via CCR configuration, verifying + GSR fields, GELR, and guest event vector table dispatch. + """ + self.run_uart_test("test_guest_mode") + + def test_int_steering(self) -> None: + """Tests interrupt steering via priority-based routing to + specific threads using STID priority and iassignw. + """ + self.run_uart_test("test_int_steering") + + +if __name__ =3D=3D "__main__": + QemuSystemTest.main() diff --git a/tests/functional/meson.build b/tests/functional/meson.build index c158197c4b7..c7362dd00ef 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -14,6 +14,7 @@ subdir('aarch64') subdir('alpha') subdir('arm') subdir('avr') +subdir('hexagon') subdir('hppa') subdir('i386') subdir('loongarch64') --=20 2.34.1