{"id":2225508,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2225508/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260421053140.752059-12-joel@jms.id.au/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.2/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260421053140.752059-12-joel@jms.id.au>","list_archive_url":null,"date":"2026-04-21T05:31:36","name":"[v3,11/13] tests/functional/riscv64: Add tt-atlantis tests","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"dfc97e988fe2b03acff7ff457d14c1a6f5b76c8f","submitter":{"id":48628,"url":"http://patchwork.ozlabs.org/api/1.2/people/48628/?format=json","name":"Joel Stanley","email":"joel@jms.id.au"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260421053140.752059-12-joel@jms.id.au/mbox/","series":[{"id":500733,"url":"http://patchwork.ozlabs.org/api/1.2/series/500733/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500733","date":"2026-04-21T05:31:26","name":"hw/riscv: Add the Tenstorrent Atlantis machine","version":3,"mbox":"http://patchwork.ozlabs.org/series/500733/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2225508/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2225508/checks/","tags":{},"related":[],"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=KC9B504N;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0B0G4D7kz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 15:35:42 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wF3kQ-00015C-BO; Tue, 21 Apr 2026 01:34:10 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <joel.stan@gmail.com>)\n id 1wF3kF-0000fv-C9\n for qemu-devel@nongnu.org; Tue, 21 Apr 2026 01:34:03 -0400","from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <joel.stan@gmail.com>)\n id 1wF3kA-0004ZW-PB\n for qemu-devel@nongnu.org; Tue, 21 Apr 2026 01:33:56 -0400","by mail-pj1-x102d.google.com with SMTP id\n 98e67ed59e1d1-35da2d35eccso2714258a91.0\n for <qemu-devel@nongnu.org>; Mon, 20 Apr 2026 22:33:54 -0700 (PDT)","from donnager-debian.. ([203.221.103.1])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-36141898ebasm12472308a91.7.2026.04.20.22.33.49\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 20 Apr 2026 22:33:52 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776749633; x=1777354433; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date\n :message-id:reply-to;\n bh=tY/qxLv+6MgU0IiIphGv/gCJH4XtLm4qBwv2FYa1ikg=;\n b=KC9B504NeP7bQ+fPiKMlGkbxnz6hOc9rcyAHg5d8f1VM+8/ikBUt1oDiugBCQtvZwu\n nV1jWjCowd3/FStva8VbNPB9Vna6kd7oBtykNYcAqaLja7dyTjn6LUUv/1cHTyEvePhF\n z6lA5Szu6Y+Ecvw7cic9IsDIlcFf3G7VLRb+zIbf1sLdLmoed4VxW5B5sK0Q3AAKnUNF\n em/+zXNgIk4tiiFYkTTg0ml8mVE6L474u4gf77qSTz7piuA3vEZ9KiCOIlxqLoZiyU4k\n xbgX+CeOByHkobbpgZeffgMDrw6AbDrMinQeHCZRjClqrwlndwHB5d5Jmyb05yHQ1ocg\n S9Aw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776749633; x=1777354433;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:sender:x-gm-gg\n :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n bh=tY/qxLv+6MgU0IiIphGv/gCJH4XtLm4qBwv2FYa1ikg=;\n b=FlaeGbZ/1Wg81hVzpoLAMh8++YO7vRLFoAhc4a7qChE7b8jmARN/NAv29mQ81ttRay\n M3Jl+EGwB1IbEp3+T/agKFpmUcAXggjqe7wDMsMEgfsMrgqGxjxhaIBtFJffG7CcY+wv\n 3lTYzqCGBKyqUGLOmtI8MGhB0zbzn0bXFFkuxCYCRN7/hNbcn98IhvaAn9R4rm1fdH4M\n HnktSn2LZa9WbzBJbWfyBMmxL9s9ljRW1JwR5EVnVwdOG+t53Lhx5LrKrf5OxW1b4hLB\n vJOpR5a2jYz6BYQi4L6ngSAnmM9gVZLozK2BBrkDi24UKPB+q/Z2C6MU4yNPsKEM9J0O\n yarw==","X-Forwarded-Encrypted":"i=1;\n AFNElJ+lhFL/W4PQiQwhgU3RvcalqoncCuBWtRY69YHk+dVMNHzzPNi81GulRfHeRFF6XFEhgesDcnUog8K4@nongnu.org","X-Gm-Message-State":"AOJu0Yz9gPNv7oYkPvkW2CBLbF4ss/R+bVlYwHfGxBauegiTaTfiEyyZ\n gY1y2vHXE7tTDALSurin/92X5O3ZDdfzM6wvwdtn/bAnfiabn2HPAu25","X-Gm-Gg":"AeBDietWQf6b0zLQmN0tiY2/X1v4RFK8S/UH6v7QQGEFOZQxIo35GDoPhGZU8CqT6EC\n 9OMgv12tMgLdeq9hmsD/6d6d75XsUvv8koDMe8KD8Rh8e/lDx900vwERLo2D0zN8Eg7IKOKWt8s\n 3plkWZGmjwTmbJJdNU+igH53FfuhIXUDmYXNg2SfpYEBe03AM6jgJQO/ZUWYFkU2g3n6A8AR7FJ\n aOuURuPXAYkxqgt5YubaYKKdWGdshU+64LITnfSFu1LvWd99Q8xqRLzEsPERTZOBzSdj57j5pNR\n w1WJOSkQ6IEEDjKvisBP/qnLBk0YosKil/qskJ1ii9I1ZLx7vAqFsm3m4mAZLtiYLhbCcI1CQ5a\n cGSNQK83nd/Eguu4BroT/7/9hIrb9JaGtlKfhjZ62xzGfIY+ZUxb3ydm+jkEV1i8JIrmeCMyMN4\n 4+UKKHrv1Jp9aMcMtKTSjqsYn+2D0WDdhDN/KGbogo4M98fKTmCMeJyK8sa4v+tuGnLf+sTMfSQ\n tb5JSmWozfDRCzY72NYr+J1VjMF3I0oFUY3mQ==","X-Received":"by 2002:a17:90a:f16:b0:361:4521:d311 with SMTP id\n 98e67ed59e1d1-36145221bbfmr10637957a91.18.1776749633493;\n Mon, 20 Apr 2026 22:33:53 -0700 (PDT)","From":"Joel Stanley <joel@jms.id.au>","To":"Alistair Francis <alistair.francis@wdc.com>,\n Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>","Cc":"Nicholas Piggin <npiggin@gmail.com>, Michael Ellerman <mpe@kernel.org>,\n Joel Stanley <jms@oss.tenstorrent.com>,\n Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>,\n qemu-riscv@nongnu.org, qemu-devel@nongnu.org","Subject":"[PATCH v3 11/13] tests/functional/riscv64: Add tt-atlantis tests","Date":"Tue, 21 Apr 2026 15:31:36 +1000","Message-ID":"<20260421053140.752059-12-joel@jms.id.au>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260421053140.752059-1-joel@jms.id.au>","References":"<20260421053140.752059-1-joel@jms.id.au>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2607:f8b0:4864:20::102d;\n envelope-from=joel.stan@gmail.com; helo=mail-pj1-x102d.google.com","X-Spam_score_int":"-16","X-Spam_score":"-1.7","X-Spam_bar":"-","X-Spam_report":"(-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,\n FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n 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":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"From: Nicholas Piggin <npiggin@gmail.com>\n\nAdd OpenSBI and Linux boot tests for the tt-atlantis machine. Based on\ntests/functional/riscv64/test_sifive_u.py.\n\nSigned-off-by: Nicholas Piggin <npiggin@gmail.com>\nSigned-off-by: Joel Stanley <joel@jms.id.au>\n---\nv3:\n - Fix path to test files\n - Dedupe command line root argument\n - Remove unused import\n---\n MAINTAINERS                                  |  1 +\n tests/functional/riscv64/meson.build         |  1 +\n tests/functional/riscv64/test_opensbi.py     |  4 ++\n tests/functional/riscv64/test_tt_atlantis.py | 63 ++++++++++++++++++++\n 4 files changed, 69 insertions(+)\n create mode 100755 tests/functional/riscv64/test_tt_atlantis.py","diff":"diff --git a/MAINTAINERS b/MAINTAINERS\nindex 635a380945fd..9622ffc9edb2 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -1770,6 +1770,7 @@ F: docs/system/riscv/tt_*.rst\n F: hw/riscv/tt_*.c\n F: hw/riscv/aia.[ch]\n F: include/hw/riscv/tt_*.h\n+F: tests/functional/riscv64/test_tt_*.py\n \n AMD Microblaze-V Generic Board\n M: Sai Pavan Boddu <sai.pavan.boddu@amd.com>\ndiff --git a/tests/functional/riscv64/meson.build b/tests/functional/riscv64/meson.build\nindex b996c89d7df9..c4456fabd757 100644\n--- a/tests/functional/riscv64/meson.build\n+++ b/tests/functional/riscv64/meson.build\n@@ -13,5 +13,6 @@ tests_riscv64_system_quick = [\n tests_riscv64_system_thorough = [\n   'boston',\n   'sifive_u',\n+  'tt_atlantis',\n   'tuxrun',\n ]\ndiff --git a/tests/functional/riscv64/test_opensbi.py b/tests/functional/riscv64/test_opensbi.py\nindex d077e40f4278..0f8beb7e7a8c 100755\n--- a/tests/functional/riscv64/test_opensbi.py\n+++ b/tests/functional/riscv64/test_opensbi.py\n@@ -28,6 +28,10 @@ def test_riscv_sifive_u(self):\n         self.set_machine('sifive_u')\n         self.boot_opensbi()\n \n+    def test_riscv_tt_atlantis(self):\n+        self.set_machine('tt-atlantis')\n+        self.boot_opensbi()\n+\n     def test_riscv_virt(self):\n         self.set_machine('virt')\n         self.boot_opensbi()\ndiff --git a/tests/functional/riscv64/test_tt_atlantis.py b/tests/functional/riscv64/test_tt_atlantis.py\nnew file mode 100755\nindex 000000000000..f6f4b7ceec34\n--- /dev/null\n+++ b/tests/functional/riscv64/test_tt_atlantis.py\n@@ -0,0 +1,63 @@\n+#!/usr/bin/env python3\n+#\n+# Functional test that boots a Linux kernel on a Tenstorrent Atlantis machine\n+# and checks the console\n+#\n+# Copyright (c) Linaro Ltd.\n+# Copyright 2026 Tenstorrent\n+#\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+\n+import os\n+\n+from qemu_test import Asset, LinuxKernelTest\n+\n+\n+class TTAtlantis(LinuxKernelTest):\n+\n+    ASSET_KERNEL = Asset(\n+        'https://storage.tuxboot.com/kernels/6.11.9/riscv64/Image',\n+        '174f8bb87f08961e54fa3fcd954a8e31f4645f6d6af4dd43983d5e9841490fb0')\n+    ASSET_ROOTFS = Asset(\n+        ('https://github.com/groeck/linux-build-test/raw/'\n+         '9819da19e6eef291686fdd7b029ea00e764dc62f/rootfs/riscv64/'\n+         'rootfs.ext2.gz'),\n+        'b6ed95610310b7956f9bf20c4c9c0c05fea647900df441da9dfe767d24e8b28b')\n+\n+    def do_test_riscv64_tt_atlantis(self, connect_disk):\n+        self.set_machine('tt-atlantis')\n+        kernel_path = self.ASSET_KERNEL.fetch()\n+        rootfs_path = self.uncompress(self.ASSET_ROOTFS)\n+\n+        self.vm.set_console()\n+        kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'earlycon=sbi '\n+\n+        if connect_disk:\n+            kernel_command_line += 'root=/dev/vda panic=-1 noreboot rootwait '\n+            self.vm.add_args('-device',\n+                             'virtio-blk,drive=drive0,serial=0x1234,bus=pcie.0')\n+            self.vm.add_args('-drive',\n+                             f'file={rootfs_path},if=none,id=drive0,format=raw')\n+            pattern = 'Boot successful.'\n+        else:\n+            kernel_command_line += 'panic=0 noreboot '\n+            pattern = 'Cannot open root device'\n+\n+        self.vm.add_args('-kernel', kernel_path,\n+                         '-append', kernel_command_line,\n+                         '-no-reboot')\n+\n+        self.vm.launch()\n+        self.wait_for_console_pattern(pattern)\n+\n+        os.remove(rootfs_path)\n+\n+    def test_riscv64_tt_atlantis(self):\n+        self.do_test_riscv64_tt_atlantis(False)\n+\n+    def test_riscv64_tt_atlantis_disk(self):\n+        self.do_test_riscv64_tt_atlantis(True)\n+\n+\n+if __name__ == '__main__':\n+    LinuxKernelTest.main()\n","prefixes":["v3","11/13"]}