From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932505; cv=none; d=zohomail.com; s=zohoarc; b=f96U0ge0nR4Knqk9xwBTWs7UDRb9qmUUqyimvKbzqXs8YY9C2fFpNuqXw3DWeoBoiZ7nbLMT2mUh+iJJ0hbNv3wTRQK6PHBY5k1aoWBT2HIEdfNLd/dpePk0GfN+pGRT3Ka+cW3L2zijBT4Rp5zRBtBvc65hy3o1jH1uWkBG0H8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932505; 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=l6DyXuRfJJ5GP6M+MDaH6de8oQPLkW/WSQArjfskfQY=; b=V+bsFIWHsMb3m4KM8dbJUOwwh8EhcyYg1QAsBU80tJ7BK5jvF1n3b1XepFueG/TJj4g/n3RwxuYmGwPz+LZnGPkqzysCrqVRL5J1H0ez03v7xWRnESCE5F42uyPiqMRRGoQ+QoRgyKyJFyHF2TsyV0Ehj0UZHIqAawetrtnkJPQ= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932505907898.2907551111758; Thu, 12 Feb 2026 13:41:45 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQ1-00086m-JQ; Thu, 12 Feb 2026 16:40:13 -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 1vqePw-000855-GD for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:08 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqePu-00063t-5q for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:08 -0500 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-647-UuA0qhxnOwizyzexc6tbFw-1; Thu, 12 Feb 2026 16:40:02 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A7BD01955E88; Thu, 12 Feb 2026 21:40:01 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EC9381800668; Thu, 12 Feb 2026 21:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l6DyXuRfJJ5GP6M+MDaH6de8oQPLkW/WSQArjfskfQY=; b=gp26cky+8Px5bibzJjg/EQz+AAIfjeMOQN3+HAjm1gRsx+FY8Pk6gTVvaataNIa+GFRQ8T 1XeUw6KARSPMi4iMD5iYA7qKTJeladLPdbrZA5wY+w/MyNMRdMyg7NStCmaLnh8OreL8O9 IvYujR7wS8NA5wh5c8NK44urDz1yfko= X-MC-Unique: UuA0qhxnOwizyzexc6tbFw-1 X-Mimecast-MFC-AGG-ID: UuA0qhxnOwizyzexc6tbFw_1770932402 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Kane Chen Subject: [PULL 01/16] tests/functional: Split Aspeed ARM tests into separate files Date: Thu, 12 Feb 2026 22:39:40 +0100 Message-ID: <20260212213955.2225662-2-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932509331154100 Reorganize the monolithic Aspeed functional test files into separate files based on firmware type (Buildroot vs SDK) and specific test scenarios. This allows the test suite to run tests in parallel more effectively and makes it easier to identify and run specific test scenarios independently. Link: https://lore.kernel.org/qemu-devel/20260209065044.239378-2-clg@redhat= .com Reviewed-by: Kane Chen Signed-off-by: C=C3=A9dric Le Goater --- tests/functional/arm/meson.build | 14 +++-- tests/functional/arm/test_aspeed_ast1060.py | 0 ...00.py =3D> test_aspeed_ast2500_buildroot.py} | 14 ----- .../functional/arm/test_aspeed_ast2500_sdk.py | 29 +++++++++ .../arm/test_aspeed_ast2600_buildroot.py | 41 +------------ .../arm/test_aspeed_ast2600_buildroot_tpm.py | 60 +++++++++++++++++++ .../functional/arm/test_aspeed_ast2600_sdk.py | 15 ----- .../arm/test_aspeed_ast2600_sdk_otp.py | 34 +++++++++++ 8 files changed, 134 insertions(+), 73 deletions(-) mode change 100644 =3D> 100755 tests/functional/arm/test_aspeed_ast1060.py rename tests/functional/arm/{test_aspeed_ast2500.py =3D> test_aspeed_ast25= 00_buildroot.py} (74%) create mode 100755 tests/functional/arm/test_aspeed_ast2500_sdk.py create mode 100755 tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.= py create mode 100755 tests/functional/arm/test_aspeed_ast2600_sdk_otp.py diff --git a/tests/functional/arm/meson.build b/tests/functional/arm/meson.= build index 1762a496049d..175a83a2acd7 100644 --- a/tests/functional/arm/meson.build +++ b/tests/functional/arm/meson.build @@ -4,9 +4,12 @@ test_arm_timeouts =3D { 'aspeed_palmetto' : 120, 'aspeed_romulus' : 120, 'aspeed_witherspoon' : 120, - 'aspeed_ast2500' : 720, - 'aspeed_ast2600_buildroot' : 720, - 'aspeed_ast2600_sdk' : 1200, + 'aspeed_ast2500_sdk' : 720, + 'aspeed_ast2500_buildroot' : 480, + 'aspeed_ast2600_buildroot' : 480, + 'aspeed_ast2600_buildroot_tpm' : 720, + 'aspeed_ast2600_sdk' : 720, + 'aspeed_ast2600_sdk_otp' : 720, 'aspeed_bletchley' : 480, 'aspeed_catalina' : 480, 'aspeed_gb200nvl_bmc' : 480, @@ -32,9 +35,12 @@ tests_arm_system_thorough =3D [ 'aspeed_palmetto', 'aspeed_romulus', 'aspeed_witherspoon', - 'aspeed_ast2500', + 'aspeed_ast2500_sdk', + 'aspeed_ast2500_buildroot', 'aspeed_ast2600_buildroot', + 'aspeed_ast2600_buildroot_tpm', 'aspeed_ast2600_sdk', + 'aspeed_ast2600_sdk_otp', 'aspeed_bletchley', 'aspeed_catalina', 'aspeed_gb200nvl_bmc', diff --git a/tests/functional/arm/test_aspeed_ast1060.py b/tests/functional= /arm/test_aspeed_ast1060.py old mode 100644 new mode 100755 diff --git a/tests/functional/arm/test_aspeed_ast2500.py b/tests/functional= /arm/test_aspeed_ast2500_buildroot.py similarity index 74% rename from tests/functional/arm/test_aspeed_ast2500.py rename to tests/functional/arm/test_aspeed_ast2500_buildroot.py index 5d75e20184d6..8196923ee04d 100755 --- a/tests/functional/arm/test_aspeed_ast2500.py +++ b/tests/functional/arm/test_aspeed_ast2500_buildroot.py @@ -37,20 +37,6 @@ def test_arm_ast2500_evb_buildroot(self): =20 self.do_test_arm_aspeed_buildroot_poweroff() =20 - ASSET_SDK_V1000_AST2500 =3D Asset( - 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v10.0= 0/ast2500-default-obmc.tar.gz', - '7d71a3f71d5f4d9f3451f59a73bf9baf8fd9f6a24107eb504a3216151a8b2b5b') - - def test_arm_ast2500_evb_sdk(self): - self.set_machine('ast2500-evb') - - self.archive_extract(self.ASSET_SDK_V1000_AST2500) - - self.do_test_arm_aspeed_sdk_start( - self.scratch_file("ast2500-default", "image-bmc")) - - self.wait_for_console_pattern('ast2500-default login:') - =20 if __name__ =3D=3D '__main__': AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2500_sdk.py b/tests/functi= onal/arm/test_aspeed_ast2500_sdk.py new file mode 100755 index 000000000000..2c9211aeddc8 --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2500_sdk.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED machines +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from aspeed import AspeedTest + + +class AST2500Machine(AspeedTest): + + ASSET_SDK_V1000_AST2500 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v10.0= 0/ast2500-default-obmc.tar.gz', + '7d71a3f71d5f4d9f3451f59a73bf9baf8fd9f6a24107eb504a3216151a8b2b5b') + + def test_arm_ast2500_evb_sdk(self): + self.set_machine('ast2500-evb') + + self.archive_extract(self.ASSET_SDK_V1000_AST2500) + + self.do_test_arm_aspeed_sdk_start( + self.scratch_file("ast2500-default", "image-bmc")) + + self.wait_for_console_pattern('ast2500-default login:') + + +if __name__ =3D=3D '__main__': + AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_buildroot.py b/tests/= functional/arm/test_aspeed_ast2600_buildroot.py index 3d130b9fd189..cc5ab9796a5e 100755 --- a/tests/functional/arm/test_aspeed_ast2600_buildroot.py +++ b/tests/functional/arm/test_aspeed_ast2600_buildroot.py @@ -11,7 +11,7 @@ =20 from aspeed import AspeedTest from qemu_test import Asset -from qemu_test import exec_command_and_wait_for_pattern, skipIfMissingComm= ands +from qemu_test import exec_command_and_wait_for_pattern =20 =20 class AST2600Machine(AspeedTest): @@ -61,45 +61,6 @@ def test_arm_ast2600_evb_buildroot(self): '0000000 ffaa ffff ffff ffff ffff ffff ffff ffff') self.do_test_arm_aspeed_buildroot_poweroff() =20 - ASSET_BR2_202302_AST2600_TPM_FLASH =3D Asset( - ('https://github.com/legoater/qemu-aspeed-boot/raw/master/' - 'images/ast2600-evb/buildroot-2023.02-tpm/flash.img'), - 'a46009ae8a5403a0826d607215e731a8c68d27c14c41e55331706b8f9c7bd997') - - def _test_arm_ast2600_evb_buildroot_tpm(self, tpmstate_dir): - image_path =3D self.ASSET_BR2_202302_AST2600_TPM_FLASH.fetch() - - socket =3D os.path.join(tpmstate_dir, 'swtpm-socket') - - # We must put the TPM state dir in /tmp/, not the build dir, - # because some distros use AppArmor to lock down swtpm and - # restrict the set of locations it can access files in. - subprocess.run(['swtpm', 'socket', '-d', '--tpm2', - '--tpmstate', f'dir=3D{tpmstate_dir}', - '--ctrl', f'type=3Dunixio,path=3D{socket}'], - check=3DTrue) - - self.vm.add_args('-chardev', f'socket,id=3Dchrtpm,path=3D{socket}') - self.vm.add_args('-tpmdev', 'emulator,id=3Dtpm0,chardev=3Dchrtpm') - self.vm.add_args('-device', - 'tpm-tis-i2c,tpmdev=3Dtpm0,bus=3Daspeed.i2c.bus.1= 2,address=3D0x2e') - self.do_test_arm_aspeed_buildroot_start(image_path, '0xf00', 'Aspe= ed AST2600 EVB') - - exec_command_and_wait_for_pattern(self, - 'echo tpm_tis_i2c 0x2e > /sys/bus/i2c/devices/i2c-12/new_devic= e', - 'tpm_tis_i2c 12-002e: 2.0 TPM (device-id 0x1, rev-id 1)') - exec_command_and_wait_for_pattern(self, - 'cat /sys/class/tpm/tpm0/pcr-sha256/0', - 'B804724EA13F52A9072BA87FE8FDCC497DFC9DF9AA15B9088694639C43168= 8E0') - - self.do_test_arm_aspeed_buildroot_poweroff() - - @skipIfMissingCommands('swtpm') - def test_arm_ast2600_evb_buildroot_tpm(self): - self.set_machine('ast2600-evb') - with tempfile.TemporaryDirectory(prefix=3D"qemu_") as tpmstate_dir: - self._test_arm_ast2600_evb_buildroot_tpm(tpmstate_dir) - =20 if __name__ =3D=3D '__main__': AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.py b/te= sts/functional/arm/test_aspeed_ast2600_buildroot_tpm.py new file mode 100755 index 000000000000..7ec996e9cf22 --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED machines +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os +import time +import tempfile +import subprocess + +from aspeed import AspeedTest +from qemu_test import Asset +from qemu_test import exec_command_and_wait_for_pattern, skipIfMissingComm= ands + + +class AST2600Machine(AspeedTest): + + ASSET_BR2_202302_AST2600_TPM_FLASH =3D Asset( + ('https://github.com/legoater/qemu-aspeed-boot/raw/master/' + 'images/ast2600-evb/buildroot-2023.02-tpm/flash.img'), + 'a46009ae8a5403a0826d607215e731a8c68d27c14c41e55331706b8f9c7bd997') + + def _test_arm_ast2600_evb_buildroot_tpm(self, tpmstate_dir): + image_path =3D self.ASSET_BR2_202302_AST2600_TPM_FLASH.fetch() + + socket =3D os.path.join(tpmstate_dir, 'swtpm-socket') + + # We must put the TPM state dir in /tmp/, not the build dir, + # because some distros use AppArmor to lock down swtpm and + # restrict the set of locations it can access files in. + subprocess.run(['swtpm', 'socket', '-d', '--tpm2', + '--tpmstate', f'dir=3D{tpmstate_dir}', + '--ctrl', f'type=3Dunixio,path=3D{socket}'], + check=3DTrue) + + self.vm.add_args('-chardev', f'socket,id=3Dchrtpm,path=3D{socket}') + self.vm.add_args('-tpmdev', 'emulator,id=3Dtpm0,chardev=3Dchrtpm') + self.vm.add_args('-device', + 'tpm-tis-i2c,tpmdev=3Dtpm0,bus=3Daspeed.i2c.bus.1= 2,address=3D0x2e') + self.do_test_arm_aspeed_buildroot_start(image_path, '0xf00', 'Aspe= ed AST2600 EVB') + + exec_command_and_wait_for_pattern(self, + 'echo tpm_tis_i2c 0x2e > /sys/bus/i2c/devices/i2c-12/new_devic= e', + 'tpm_tis_i2c 12-002e: 2.0 TPM (device-id 0x1, rev-id 1)') + exec_command_and_wait_for_pattern(self, + 'cat /sys/class/tpm/tpm0/pcr-sha256/0', + 'B804724EA13F52A9072BA87FE8FDCC497DFC9DF9AA15B9088694639C43168= 8E0') + + self.do_test_arm_aspeed_buildroot_poweroff() + + @skipIfMissingCommands('swtpm') + def test_arm_ast2600_evb_buildroot_tpm(self): + self.set_machine('ast2600-evb') + with tempfile.TemporaryDirectory(prefix=3D"qemu_") as tpmstate_dir: + self._test_arm_ast2600_evb_buildroot_tpm(tpmstate_dir) + + +if __name__ =3D=3D '__main__': + AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk.py b/tests/functi= onal/arm/test_aspeed_ast2600_sdk.py index 6236aeb11cd2..971fa3390d21 100755 --- a/tests/functional/arm/test_aspeed_ast2600_sdk.py +++ b/tests/functional/arm/test_aspeed_ast2600_sdk.py @@ -70,21 +70,6 @@ def test_arm_ast2600_evb_sdk(self): '/sbin/hwclock -f /dev/rtc1', year) self.do_ast2600_pcie_test() =20 - def test_arm_ast2600_otp_blockdev_device(self): - self.vm.set_machine("ast2600-evb") - - image_path =3D self.archive_extract(self.ASSET_SDK_V1100_AST2600) - otp_img =3D self.generate_otpmem_image() - - self.vm.set_console() - self.vm.add_args( - "-blockdev", f"driver=3Dfile,filename=3D{otp_img},node-name=3D= otp", - "-global", "aspeed-otp.drive=3Dotp", - ) - self.do_test_arm_aspeed_sdk_start( - self.scratch_file("ast2600-default", "image-bmc")) - self.wait_for_console_pattern("ast2600-default login:") - =20 if __name__ =3D=3D '__main__': AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py b/tests/fu= nctional/arm/test_aspeed_ast2600_sdk_otp.py new file mode 100755 index 000000000000..4066532d5dec --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED machines +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from aspeed import AspeedTest + + +class AST2600Machine(AspeedTest): + + ASSET_SDK_V1100_AST2600 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.0= 0/ast2600-default-obmc.tar.gz', + '64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93') + + def test_arm_ast2600_otp_blockdev_device(self): + self.vm.set_machine("ast2600-evb") + + image_path =3D self.archive_extract(self.ASSET_SDK_V1100_AST2600) + otp_img =3D self.generate_otpmem_image() + + self.vm.set_console() + self.vm.add_args( + "-blockdev", f"driver=3Dfile,filename=3D{otp_img},node-name=3D= otp", + "-global", "aspeed-otp.drive=3Dotp", + ) + self.do_test_arm_aspeed_sdk_start( + self.scratch_file("ast2600-default", "image-bmc")) + self.wait_for_console_pattern("ast2600-default login:") + + +if __name__ =3D=3D '__main__': + AspeedTest.main() --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932534; cv=none; d=zohomail.com; s=zohoarc; b=I+B0v7yBhTnQBeNpVl3RpG9HOm3u6HTvC6BpJ+iUTRWkZSGITJToqOOroxqaVUMy5dYeBsJWamZHcVUH8Yxa6X4B+fRUIkubQRKy44B3Tv6KqSch6ovGHPVH7R3HOhI5EuhJ+mdeJ7eqzZEweI2s4C6h5QrHhIY+eeM84MI8imM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932534; 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=S/RpEh72LR645cq04uE0WrSusF/BJoIEc7gC+z4Dm8g=; b=aNERiQe9G3AgwRgvOETUqKHKg9z73NlT5y52ughgtOKZeVTuY3EFCf7w7nWe3HXy2keltJfSN59ieqtX4I9LJ0cX/u9CuX39we99RUnEMKHlOPLeZVvDkcmFuAOrGYyX1rnuKMvSGz28NKY4JBKi+2zdKGfnfR+YMrJUka6G9WI= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932534904199.89148891712637; Thu, 12 Feb 2026 13:42:14 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQ1-00087B-SW; Thu, 12 Feb 2026 16:40:13 -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 1vqePz-00086A-MD for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:11 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqePx-00064X-EP for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:11 -0500 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-32-RZ_U1s9FOoWtUuzc9wYabA-1; Thu, 12 Feb 2026 16:40:05 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0FB8F18005B7; Thu, 12 Feb 2026 21:40:04 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 559AF180066F; Thu, 12 Feb 2026 21:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S/RpEh72LR645cq04uE0WrSusF/BJoIEc7gC+z4Dm8g=; b=gNfDT1WLexGxBvIH/0HhHR6JRYP/ZMvF5oM/R0bYdLUytPOJbCupE+x64Ai5ttS9DckxdS E7uSRrEa43br/2au9NyxKF3iWfOH/zLYg3Ak32mcsbHvhzp4Ygsdi4EOi7qZVx3qz7WFUt DRNQSimrlM9o1KJjaU/vUmhJJcjPw4Y= X-MC-Unique: RZ_U1s9FOoWtUuzc9wYabA-1 X-Mimecast-MFC-AGG-ID: RZ_U1s9FOoWtUuzc9wYabA_1770932404 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Kane Chen Subject: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15 Date: Thu, 12 Feb 2026 22:39:41 +0100 Message-ID: <20260212213955.2225662-3-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932540619158500 Add functional tests for AST2500 and AST2600 machines using the OpenBMC SDK v11.00 with Linux kernel 5.15. These tests complement the existing SDK tests and verify that QEMU correctly boots older kernel versions on these platforms. Link: https://lore.kernel.org/qemu-devel/20260209065044.239378-3-clg@redhat= .com Reviewed-by: Kane Chen Signed-off-by: C=C3=A9dric Le Goater --- tests/functional/arm/meson.build | 4 +++ .../arm/test_aspeed_ast2500_sdk_515.py | 29 +++++++++++++++++++ .../arm/test_aspeed_ast2600_sdk_515.py | 29 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100755 tests/functional/arm/test_aspeed_ast2500_sdk_515.py create mode 100755 tests/functional/arm/test_aspeed_ast2600_sdk_515.py diff --git a/tests/functional/arm/meson.build b/tests/functional/arm/meson.= build index 175a83a2acd7..2f538f29a2de 100644 --- a/tests/functional/arm/meson.build +++ b/tests/functional/arm/meson.build @@ -5,10 +5,12 @@ test_arm_timeouts =3D { 'aspeed_romulus' : 120, 'aspeed_witherspoon' : 120, 'aspeed_ast2500_sdk' : 720, + 'aspeed_ast2500_sdk_515' : 720, 'aspeed_ast2500_buildroot' : 480, 'aspeed_ast2600_buildroot' : 480, 'aspeed_ast2600_buildroot_tpm' : 720, 'aspeed_ast2600_sdk' : 720, + 'aspeed_ast2600_sdk_515' : 720, 'aspeed_ast2600_sdk_otp' : 720, 'aspeed_bletchley' : 480, 'aspeed_catalina' : 480, @@ -36,10 +38,12 @@ tests_arm_system_thorough =3D [ 'aspeed_romulus', 'aspeed_witherspoon', 'aspeed_ast2500_sdk', + 'aspeed_ast2500_sdk_515', 'aspeed_ast2500_buildroot', 'aspeed_ast2600_buildroot', 'aspeed_ast2600_buildroot_tpm', 'aspeed_ast2600_sdk', + 'aspeed_ast2600_sdk_515', 'aspeed_ast2600_sdk_otp', 'aspeed_bletchley', 'aspeed_catalina', diff --git a/tests/functional/arm/test_aspeed_ast2500_sdk_515.py b/tests/fu= nctional/arm/test_aspeed_ast2500_sdk_515.py new file mode 100755 index 000000000000..464a4e43961d --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2500_sdk_515.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED machines +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from aspeed import AspeedTest + + +class AST2500Machine(AspeedTest): + + ASSET_SDK_V1100_AST2500_515 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.0= 0/ast2500-default-515-obmc.tar.gz', + '5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451') + + def test_arm_ast2500_evb_sdk_515(self): + self.set_machine('ast2500-evb') + + self.archive_extract(self.ASSET_SDK_V1100_AST2500_515) + + self.do_test_arm_aspeed_sdk_start( + self.scratch_file("ast2500-default-515", "image-bmc")) + + self.wait_for_console_pattern('ast2500-default-515 login:') + + +if __name__ =3D=3D '__main__': + AspeedTest.main() diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk_515.py b/tests/fu= nctional/arm/test_aspeed_ast2600_sdk_515.py new file mode 100755 index 000000000000..f48da301d567 --- /dev/null +++ b/tests/functional/arm/test_aspeed_ast2600_sdk_515.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED machines +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from aspeed import AspeedTest + + +class AST2600Machine(AspeedTest): + + ASSET_SDK_V1100_AST2600_515 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.0= 0/ast2600-default-515-obmc.tar.gz', + 'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6') + + def test_arm_ast2600_evb_sdk_515(self): + self.set_machine('ast2600-evb') + + self.archive_extract(self.ASSET_SDK_V1100_AST2600_515) + + self.do_test_arm_aspeed_sdk_start( + self.scratch_file("ast2600-default-515", "image-bmc")) + + self.wait_for_console_pattern('ast2600-default-515 login:') + + +if __name__ =3D=3D '__main__': + AspeedTest.main() --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932467; cv=none; d=zohomail.com; s=zohoarc; b=H/sd1Q55mI9l0jD9h77xmCMyY9bong53s9dudM/ksMmOg5DIGBkpj9Efw0HocyCfidFkN6SsNmBRnqRr0ULfiLmY4J30j+nnl7vjrB/CZjeQWYqm3CKjceeOq2VoJzoj5LReWpgECv8ZVzyZpWJOhpItSZV/fJO55aw8Lw4Vzy0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932467; 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=3GcbYNXwH/aSDIPjFZUN1LesZNNucAAzu2noFJMuvG4=; b=CjuD17Wr6rx8vseZeels6UOiHjZtjY7f81x7YU/8Eyz9X64XZvXcM+OATfSZ91NXHDJDL3Ab4ZJImCmaUFFu2QyQQwXfkSokd88plLFTClM+QNQexHMIz7NXI29qzf9OUxjFClZsohxgABVTIyOG+vSP+RVGHDPLM34/YTQWZ/o= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932467668100.29057494605502; Thu, 12 Feb 2026 13:41:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQ4-00088Y-9M; Thu, 12 Feb 2026 16:40:17 -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 1vqeQ1-00086o-IM for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:13 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqePz-00064o-Mj for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:13 -0500 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-348-68JmIHm2O7mbCyF_KKpyNA-1; Thu, 12 Feb 2026 16:40:07 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4205B195605B; Thu, 12 Feb 2026 21:40:06 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8636B180066E; Thu, 12 Feb 2026 21:40:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3GcbYNXwH/aSDIPjFZUN1LesZNNucAAzu2noFJMuvG4=; b=ZOeNRHnMRKCRFVEUGfhpVSFvn9f+CWxYtyEVn6L26op1PvXLYm+fzyiRmP1mglz5aAaB/W SdGvVaypaSrxjsY6Z6dy2aGsdhVPuMQ1CZPG2boClfbDcnF5FigBb6fBI/PsxuRxEuHk7X XDq28xNZEG1eXuIG1NtEzV9IsAAbyAo= X-MC-Unique: 68JmIHm2O7mbCyF_KKpyNA-1 X-Mimecast-MFC-AGG-ID: 68JmIHm2O7mbCyF_KKpyNA_1770932406 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 03/16] hw/i2c/aspeed_i2c: Fix out-of-bounds read in I2C MMIO handlers Date: Thu, 12 Feb 2026 22:39:42 +0100 Message-ID: <20260212213955.2225662-4-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @redhat.com) X-ZM-MESSAGEID: 1770932468574154100 From: Jamin Lin The ASPEED I2C controller exposes a per-bus MMIO window of 0x80 bytes on AST2600/AST1030/AST2700, but the backing regs[] array was sized for only 28 dwords (0x70 bytes). This allows guest reads in the range [0x70..0x7f] to index past the end of regs[]. Fix this by: - Sizing ASPEED_I2C_NEW_NUM_REG to match the 0x80-byte window (0x80 >> 2 =3D 32 dwords). - Avoiding an unconditional pre-read from regs[] in the legacy/new read handlers. Initialize the return value to -1 and only read regs[] for offsets that are explicitly handled/valid, leaving invalid offsets to return -1 with a guest error log. Signed-off-by: Jamin Lin Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3290 Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260210024331.3984696-2-jamin_lin= @aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- include/hw/i2c/aspeed_i2c.h | 3 +-- hw/i2c/aspeed_i2c.c | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/include/hw/i2c/aspeed_i2c.h b/include/hw/i2c/aspeed_i2c.h index 68bd13802601..1ba0112cef6b 100644 --- a/include/hw/i2c/aspeed_i2c.h +++ b/include/hw/i2c/aspeed_i2c.h @@ -36,8 +36,7 @@ OBJECT_DECLARE_TYPE(AspeedI2CState, AspeedI2CClass, ASPEE= D_I2C) #define ASPEED_I2C_NR_BUSSES 16 #define ASPEED_I2C_SHARE_POOL_SIZE 0x800 #define ASPEED_I2C_BUS_POOL_SIZE 0x20 -#define ASPEED_I2C_OLD_NUM_REG 11 -#define ASPEED_I2C_NEW_NUM_REG 28 +#define ASPEED_I2C_NEW_NUM_REG (0x80 >> 2) =20 #define A_I2CD_M_STOP_CMD BIT(5) #define A_I2CD_M_RX_CMD BIT(3) diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index fb3d6a560018..741c7a7297f5 100644 --- a/hw/i2c/aspeed_i2c.c +++ b/hw/i2c/aspeed_i2c.c @@ -94,7 +94,7 @@ static uint64_t aspeed_i2c_bus_old_read(AspeedI2CBus *bus= , hwaddr offset, unsigned size) { AspeedI2CClass *aic =3D ASPEED_I2C_GET_CLASS(bus->controller); - uint64_t value =3D bus->regs[offset / sizeof(*bus->regs)]; + uint64_t value =3D -1; =20 switch (offset) { case A_I2CD_FUN_CTRL: @@ -105,7 +105,7 @@ static uint64_t aspeed_i2c_bus_old_read(AspeedI2CBus *b= us, hwaddr offset, case A_I2CD_DEV_ADDR: case A_I2CD_POOL_CTRL: case A_I2CD_BYTE_BUF: - /* Value is already set, don't do anything. */ + value =3D bus->regs[offset / sizeof(*bus->regs)]; break; case A_I2CD_CMD: value =3D SHARED_FIELD_DP32(value, BUS_BUSY_STS, i2c_bus_busy(bus-= >bus)); @@ -113,21 +113,20 @@ static uint64_t aspeed_i2c_bus_old_read(AspeedI2CBus = *bus, hwaddr offset, case A_I2CD_DMA_ADDR: if (!aic->has_dma) { qemu_log_mask(LOG_GUEST_ERROR, "%s: No DMA support\n", __func= __); - value =3D -1; break; } + value =3D bus->regs[offset / sizeof(*bus->regs)]; break; case A_I2CD_DMA_LEN: if (!aic->has_dma) { qemu_log_mask(LOG_GUEST_ERROR, "%s: No DMA support\n", __func= __); - value =3D -1; + break; } + value =3D bus->regs[offset / sizeof(*bus->regs)]; break; - default: qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad offset 0x%" HWADDR_PRIx "\n", __func__, off= set); - value =3D -1; break; } =20 @@ -139,7 +138,7 @@ static uint64_t aspeed_i2c_bus_new_read(AspeedI2CBus *b= us, hwaddr offset, unsigned size) { AspeedI2CClass *aic =3D ASPEED_I2C_GET_CLASS(bus->controller); - uint64_t value =3D bus->regs[offset / sizeof(*bus->regs)]; + uint64_t value =3D -1; =20 switch (offset) { case A_I2CC_FUN_CTRL: @@ -159,13 +158,12 @@ static uint64_t aspeed_i2c_bus_new_read(AspeedI2CBus = *bus, hwaddr offset, case A_I2CS_CMD: case A_I2CS_INTR_CTRL: case A_I2CS_DMA_LEN_STS: - /* Value is already set, don't do anything. */ + case A_I2CS_INTR_STS: + value =3D bus->regs[offset / sizeof(*bus->regs)]; break; case A_I2CC_DMA_ADDR: value =3D extract64(bus->dma_dram_offset, 0, 32); break; - case A_I2CS_INTR_STS: - break; case A_I2CM_CMD: value =3D SHARED_FIELD_DP32(value, BUS_BUSY_STS, i2c_bus_busy(bus-= >bus)); break; @@ -176,13 +174,13 @@ static uint64_t aspeed_i2c_bus_new_read(AspeedI2CBus = *bus, hwaddr offset, if (!aic->has_dma64) { qemu_log_mask(LOG_GUEST_ERROR, "%s: No DMA 64 bits support\n", __func__); - value =3D -1; + break; } + value =3D bus->regs[offset / sizeof(*bus->regs)]; break; default: qemu_log_mask(LOG_GUEST_ERROR, "%s: Bad offset 0x%" HWADDR_PRIx "\n", __func__, off= set); - value =3D -1; break; } =20 --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932670; cv=none; d=zohomail.com; s=zohoarc; b=ZGho2/Z0k7yjhA5dv6gWrr1+YDCHwCLCtThXmcNR2CUZLqG8NlR1P4pX5p0iSQqlsa/ZRh/6Ctc5RxRWfcn7cO8p3GMrJIXQwgtB0NWoO3phGPxBxkSPXo+UYZRiCVOWJ7Bv9kg8IuGBtB+P3L5HASYxDtL9y+wEViWIOjFBTO4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932670; 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=2Mkkkhk2UiUGTwPLfktE4GWh3o9J6sQJBwTAwIgfVlk=; b=dWKc7ulOetEwBjiEj3dMmQ4A5D7NMFnE48rf3ZVUw2fsDxgT+i6BgV/8p30bVRR9U22cqxsSa2Dx3fFLVp0vLEyTAp5N9rWvuVoSeexHKQifUz8qGFgdxDPh6BxO22Y7p94ahUVvcIaUzVpV6VU5x4gOd1Ms4D4gLRiVqUG89T4= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932670052913.1916915065381; Thu, 12 Feb 2026 13:44:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQ8-00089w-0h; Thu, 12 Feb 2026 16:40:20 -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 1vqeQ3-000881-EZ for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:15 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQ1-00065G-JM for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:15 -0500 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-99-cwbQ-_4fPd2MK4kkKSTB7g-1; Thu, 12 Feb 2026 16:40:09 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 77778195606E; Thu, 12 Feb 2026 21:40:08 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B60E4180035A; Thu, 12 Feb 2026 21:40:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2Mkkkhk2UiUGTwPLfktE4GWh3o9J6sQJBwTAwIgfVlk=; b=ZV/YcwXtpLD5wzOTZHlflAZNcUDVXNbv6nqCi/yTbZnO4T2Jy2kcVG+1Ro05zSUQixo1p6 fXLAbYKhECVLiGi19QwlXtxfxD4kd/1dHKaS7zGJCXuIWNeVG4hhj+qAI8gCijrXIIryeW 1BFc3kRnT7Avm5xsVYriYH5qxT+vNAU= X-MC-Unique: cwbQ-_4fPd2MK4kkKSTB7g-1 X-Mimecast-MFC-AGG-ID: cwbQ-_4fPd2MK4kkKSTB7g_1770932408 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 04/16] hw/i2c/aspeed_i2c: Increase I2C device register size to 0xA0 Date: Thu, 12 Feb 2026 22:39:43 +0100 Message-ID: <20260212213955.2225662-5-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @redhat.com) X-ZM-MESSAGEID: 1770932671092158500 From: Jamin Lin According to the AST2700 A1 datasheet, the register space for each I2C device instance has been expanded from 0x80 bytes to 0xA0 bytes. Update the AST2700 I2C controller configuration to reflect the new register layout by increasing the per-device register size to 0xA0 and adjusting the register gap size accordingly. Signed-off-by: Jamin Lin Fixes: 4f53de2f103d6dfb5ad0498995d91a9694f40dd2 ("hw/arm/aspeed_ast27x0: Re= move ast2700-a0 SOC") Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260210024331.3984696-3-jamin_lin= @aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- include/hw/i2c/aspeed_i2c.h | 2 +- hw/i2c/aspeed_i2c.c | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/include/hw/i2c/aspeed_i2c.h b/include/hw/i2c/aspeed_i2c.h index 1ba0112cef6b..53a9dba71b07 100644 --- a/include/hw/i2c/aspeed_i2c.h +++ b/include/hw/i2c/aspeed_i2c.h @@ -36,7 +36,7 @@ OBJECT_DECLARE_TYPE(AspeedI2CState, AspeedI2CClass, ASPEE= D_I2C) #define ASPEED_I2C_NR_BUSSES 16 #define ASPEED_I2C_SHARE_POOL_SIZE 0x800 #define ASPEED_I2C_BUS_POOL_SIZE 0x20 -#define ASPEED_I2C_NEW_NUM_REG (0x80 >> 2) +#define ASPEED_I2C_NEW_NUM_REG (0xa0 >> 2) =20 #define A_I2CD_M_STOP_CMD BIT(5) #define A_I2CD_M_RX_CMD BIT(3) diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index 741c7a7297f5..122bfdd63dca 100644 --- a/hw/i2c/aspeed_i2c.c +++ b/hw/i2c/aspeed_i2c.c @@ -1205,37 +1205,37 @@ static void aspeed_i2c_instance_init(Object *obj) * * Address Definitions (AST2700) * 0x000 ... 0x0FF: Global Register - * 0x100 ... 0x17F: Device 0 + * 0x100 ... 0x19F: Device 0 * 0x1A0 ... 0x1BF: Device 0 buffer - * 0x200 ... 0x27F: Device 1 + * 0x200 ... 0x29F: Device 1 * 0x2A0 ... 0x2BF: Device 1 buffer - * 0x300 ... 0x37F: Device 2 + * 0x300 ... 0x39F: Device 2 * 0x3A0 ... 0x3BF: Device 2 buffer - * 0x400 ... 0x47F: Device 3 + * 0x400 ... 0x49F: Device 3 * 0x4A0 ... 0x4BF: Device 3 buffer - * 0x500 ... 0x57F: Device 4 + * 0x500 ... 0x59F: Device 4 * 0x5A0 ... 0x5BF: Device 4 buffer - * 0x600 ... 0x67F: Device 5 + * 0x600 ... 0x69F: Device 5 * 0x6A0 ... 0x6BF: Device 5 buffer - * 0x700 ... 0x77F: Device 6 + * 0x700 ... 0x79F: Device 6 * 0x7A0 ... 0x7BF: Device 6 buffer - * 0x800 ... 0x87F: Device 7 + * 0x800 ... 0x89F: Device 7 * 0x8A0 ... 0x8BF: Device 7 buffer - * 0x900 ... 0x97F: Device 8 + * 0x900 ... 0x99F: Device 8 * 0x9A0 ... 0x9BF: Device 8 buffer - * 0xA00 ... 0xA7F: Device 9 + * 0xA00 ... 0xA9F: Device 9 * 0xAA0 ... 0xABF: Device 9 buffer - * 0xB00 ... 0xB7F: Device 10 + * 0xB00 ... 0xB9F: Device 10 * 0xBA0 ... 0xBBF: Device 10 buffer - * 0xC00 ... 0xC7F: Device 11 + * 0xC00 ... 0xC9F: Device 11 * 0xCA0 ... 0xCBF: Device 11 buffer - * 0xD00 ... 0xD7F: Device 12 + * 0xD00 ... 0xD9F: Device 12 * 0xDA0 ... 0xDBF: Device 12 buffer - * 0xE00 ... 0xE7F: Device 13 + * 0xE00 ... 0xE9F: Device 13 * 0xEA0 ... 0xEBF: Device 13 buffer - * 0xF00 ... 0xF7F: Device 14 + * 0xF00 ... 0xF9F: Device 14 * 0xFA0 ... 0xFBF: Device 14 buffer - * 0x1000 ... 0x107F: Device 15 + * 0x1000 ... 0x109F: Device 15 * 0x10A0 ... 0x10BF: Device 15 buffer */ static void aspeed_i2c_realize(DeviceState *dev, Error **errp) @@ -1658,8 +1658,8 @@ static void aspeed_2700_i2c_class_init(ObjectClass *k= lass, const void *data) dc->desc =3D "ASPEED 2700 I2C Controller"; =20 aic->num_busses =3D 16; - aic->reg_size =3D 0x80; - aic->reg_gap_size =3D 0x80; + aic->reg_size =3D 0xa0; + aic->reg_gap_size =3D 0x60; aic->gap =3D -1; /* no gap */ aic->bus_get_irq =3D aspeed_2600_i2c_bus_get_irq; aic->pool_size =3D 0x20; --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932454; cv=none; d=zohomail.com; s=zohoarc; b=IdhFkP8YhLOTiJOSy1TIGQ9dn6xxuNVodfJeSAHSapWtR/GJwF9LqAJVTuPdk/4FqSNGkcsKxKos+naZljtfis3KRfJ4bPsrhbbVq8iQQ5GRchVhziFA0W1t3ysHe7GMUQn0+H9mFDlMKCRxE7Eye4UtA0hDGbZDbwG+8WQ6OTs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932454; 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=0JO9L76PmT5FEoC7nSjKMyGVVXxJIi0nQmig2x5pSFk=; b=QPSx+cJ4irvLIvOCIKeeEGxNYbqjj6fnjgGKsuuZLGYKjrvvjGBqyxCkqXnm3jJ6GBXR+++eaEZaYhjuX4uPRz/oxsMumVzYAwiwEXPyl8i2aCMQlXd1pDHzgIS7pjRuk7w6wUwtbrtLu5alNqbFxI2bWlkM3OHQkOXWaoIW9sc= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932454394237.61532452196536; Thu, 12 Feb 2026 13:40:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQ9-0008BK-Mc; Thu, 12 Feb 2026 16:40:21 -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 1vqeQ4-00088X-0v for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:16 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQ1-00065M-Qq for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:15 -0500 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-98-8U9YaNVYMz-pQJu-uKc3MQ-1; Thu, 12 Feb 2026 16:40:11 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9D30B18004BB; Thu, 12 Feb 2026 21:40:10 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EB1431800668; Thu, 12 Feb 2026 21:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0JO9L76PmT5FEoC7nSjKMyGVVXxJIi0nQmig2x5pSFk=; b=aPbycQ0Lz6T8I0bwFNV2o6escFlkWf/Q5J4iK2/x3pQqnct99j852oiLu1sc+ieTri/RXq 6fNaVhs5l0dd3Yi/np2iqp0WR5CwL6fus9mlnktt+by4H9HUWzYTTde289JLVUI230xCKk qaERDzJ/Pe8jRFAfWbtv0gamQ9278R0= X-MC-Unique: 8U9YaNVYMz-pQJu-uKc3MQ-1 X-Mimecast-MFC-AGG-ID: 8U9YaNVYMz-pQJu-uKc3MQ_1770932410 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Kane Chen , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 05/16] tests/functional/arm/aspeed_ast2600: Enhance OTP test with functional validation Date: Thu, 12 Feb 2026 22:39:44 +0100 Message-ID: <20260212213955.2225662-6-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @redhat.com) X-ZM-MESSAGEID: 1770932456572154100 From: Kane Chen Improve the OTP test script by adding functional verification of OTP strap registers. The test now validates that OTP modifications made in U-Boot persist through the Linux boot process and survive a subsequent reboot. Key changes: - Added interactive console commands for U-Boot and Linux. - Implemented verification for OTP register 0x30 across reboots. Signed-off-by: Kane-Chen-AS Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211052326.430475-2-kane_chen@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- .../arm/test_aspeed_ast2600_sdk_otp.py | 34 +++++++++++++++++-- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py b/tests/fu= nctional/arm/test_aspeed_ast2600_sdk_otp.py index 4066532d5dec..31a1c3bed670 100755 --- a/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py +++ b/tests/functional/arm/test_aspeed_ast2600_sdk_otp.py @@ -7,6 +7,8 @@ from qemu_test import Asset from aspeed import AspeedTest =20 +from qemu_test import wait_for_console_pattern, exec_command +from qemu_test import exec_command_and_wait_for_pattern =20 class AST2600Machine(AspeedTest): =20 @@ -16,6 +18,7 @@ class AST2600Machine(AspeedTest): =20 def test_arm_ast2600_otp_blockdev_device(self): self.vm.set_machine("ast2600-evb") + self.require_netdev('user') =20 image_path =3D self.archive_extract(self.ASSET_SDK_V1100_AST2600) otp_img =3D self.generate_otpmem_image() @@ -25,9 +28,34 @@ def test_arm_ast2600_otp_blockdev_device(self): "-blockdev", f"driver=3Dfile,filename=3D{otp_img},node-name=3D= otp", "-global", "aspeed-otp.drive=3Dotp", ) - self.do_test_arm_aspeed_sdk_start( - self.scratch_file("ast2600-default", "image-bmc")) - self.wait_for_console_pattern("ast2600-default login:") + self.vm.add_args('-drive', 'file=3D' + + self.scratch_file("ast2600-default", "image-bmc") + + ',if=3Dmtd,format=3Draw', + '-net', 'nic', '-net', 'user', '-snapshot') + self.vm.launch() + + # Set OTP value via uboot command + wait_for_console_pattern(self, 'Hit any key to stop autoboot:') + exec_command_and_wait_for_pattern(self, '\012', 'ast#') + exec_command_and_wait_for_pattern(self, + 'otp pb strap o 0x30 1', 'ast#') + # Validate OTP value in uboot stage + exec_command_and_wait_for_pattern(self, + 'otp read strap 0x30', '0x30 1') + exec_command_and_wait_for_pattern(self, 'boot', + "ast2600-default login:") + exec_command_and_wait_for_pattern(self, 'root', 'Password:') + exec_command_and_wait_for_pattern(self, '0penBmc', + 'root@ast2600-default:~#') + # Validate OTP value in BMC stage + exec_command_and_wait_for_pattern(self, + 'otp read strap 0x30', '0x30 1') + exec_command_and_wait_for_pattern(self, + 'reboot', 'Hit any key to stop autoboot') + exec_command_and_wait_for_pattern(self, '\012', 'ast#') + # Validate OTP value in uboot stage + exec_command_and_wait_for_pattern(self, + 'otp read strap 0x30', '0x30 1') =20 =20 if __name__ =3D=3D '__main__': --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932505; cv=none; d=zohomail.com; s=zohoarc; b=OCzybYI6HBhSF0GHqx6SYvNcqAXqGIXO+k/xfhSaj7/AgorP4VyIYdj0C/6JTdT9FuCFOYTfw8Xk4IGbj9eG9kB3bTZBotdHMH6mYgB+ao7wArvJosU5uMocT5xYgCrtsa486g8Celfn6o3Z1VPa1ZcCIyWK7UqgGbQr3Oikar8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932505; 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=FsxntieXxGCUkYSUMbIBq/yDMG4KsTlaZeEQq1+cBUo=; b=YXa9uPai0d9QtD084loT3UtO+2BTPbQONescwUmn80QpXcSHS/84RPToe+LQPvhmTiyzzv6cNMDOl2oKzrR58laAWOY1zNh3Ake96KHoTqr4P0LTPfnr2XK/6kAsZ6Q+rEZShYZH+HJMVW3oukcgDGDqK6QjGn0N+qSqHJiN7yw= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932505923231.7154336350053; Thu, 12 Feb 2026 13:41:45 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQA-0008CB-U9; Thu, 12 Feb 2026 16:40:22 -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 1vqeQ9-0008Ar-BW for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:21 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQ7-00067W-Mv for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:21 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-373-6maRRSpuOtqfZFTclINqtg-1; Thu, 12 Feb 2026 16:40:13 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9C9E21955D88; Thu, 12 Feb 2026 21:40:12 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1D4181800668; Thu, 12 Feb 2026 21:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FsxntieXxGCUkYSUMbIBq/yDMG4KsTlaZeEQq1+cBUo=; b=f2ToVU4PTLHPa3ebZkh8STih+hJ/SIImgMCB5DAgZ6osdU9Ki+CI/+cOgC0ADTG986F9K1 Ilns8AN80GUKSkk1B4nFEzR7OkPtPTrdoFRPQMIlmA+jf5U/SAkZtmKOSWYCOYQZuFxYNg 8In/MJHly4ikTHZg880ishRtNEWFQw8= X-MC-Unique: 6maRRSpuOtqfZFTclINqtg-1 X-Mimecast-MFC-AGG-ID: 6maRRSpuOtqfZFTclINqtg_1770932412 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 06/16] hw/misc/aspeed_scu: Remove unused SoC silicon revision definitions Date: Thu, 12 Feb 2026 22:39:45 +0100 Message-ID: <20260212213955.2225662-7-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932509177154100 From: Jamin Lin Several legacy Aspeed SoC silicon revision definitions are no longer used by any machine models or runtime logic. Remove unused silicon revision macros and corresponding entries from the silicon revision table to reduce dead code and improve maintainability. No functional change intended. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-2-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- include/hw/misc/aspeed_scu.h | 10 ---------- hw/misc/aspeed_scu.c | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/include/hw/misc/aspeed_scu.h b/include/hw/misc/aspeed_scu.h index 9e28bd4d2e1a..313a79f2f76b 100644 --- a/include/hw/misc/aspeed_scu.h +++ b/include/hw/misc/aspeed_scu.h @@ -41,22 +41,12 @@ struct AspeedSCUState { uint32_t hw_prot_key; }; =20 -#define AST2400_A0_SILICON_REV 0x02000303U #define AST2400_A1_SILICON_REV 0x02010303U -#define AST2500_A0_SILICON_REV 0x04000303U #define AST2500_A1_SILICON_REV 0x04010303U -#define AST2600_A0_SILICON_REV 0x05000303U -#define AST2600_A1_SILICON_REV 0x05010303U -#define AST2600_A2_SILICON_REV 0x05020303U #define AST2600_A3_SILICON_REV 0x05030303U -#define AST1030_A0_SILICON_REV 0x80000000U #define AST1030_A1_SILICON_REV 0x80010000U #define AST1060_A2_SILICON_REV 0xA0030000U -#define AST2700_A0_SILICON_REV 0x06000103U -#define AST2720_A0_SILICON_REV 0x06000203U -#define AST2750_A0_SILICON_REV 0x06000003U #define AST2700_A1_SILICON_REV 0x06010103U -#define AST2750_A1_SILICON_REV 0x06010003U =20 #define ASPEED_IS_AST2500(si_rev) ((((si_rev) >> 24) & 0xff) =3D=3D 0x= 04) =20 diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c index 6829efa2dcd4..0edf9c1b1646 100644 --- a/hw/misc/aspeed_scu.c +++ b/hw/misc/aspeed_scu.c @@ -555,22 +555,12 @@ static void aspeed_scu_reset(DeviceState *dev) } =20 static uint32_t aspeed_silicon_revs[] =3D { - AST2400_A0_SILICON_REV, AST2400_A1_SILICON_REV, - AST2500_A0_SILICON_REV, AST2500_A1_SILICON_REV, - AST2600_A0_SILICON_REV, - AST2600_A1_SILICON_REV, - AST2600_A2_SILICON_REV, AST2600_A3_SILICON_REV, - AST1030_A0_SILICON_REV, AST1030_A1_SILICON_REV, AST1060_A2_SILICON_REV, - AST2700_A0_SILICON_REV, - AST2720_A0_SILICON_REV, - AST2750_A0_SILICON_REV, AST2700_A1_SILICON_REV, - AST2750_A1_SILICON_REV, }; =20 bool is_supported_silicon_rev(uint32_t silicon_rev) --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932506; cv=none; d=zohomail.com; s=zohoarc; b=h6/YCSTe/L+MBvJjLXFh3GbKXPGQmMZEbDfxXF30z+N5m3LqnaB1FTNwW+XAL3Sp1EOqAcp4wyBRNGsms6TE6vcFRyqjr4TT6cqkv/qLch8fKq1Mxj6JT5QEczmSUw9vNkJrZsMwzLZ8utmLim+Kbatl03aOOVbNQsNWMz3fIHU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932506; 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=ANCjg7Py0egEHrrmzj97G8K1INZC+C28iIBdAA1rTTM=; b=VKC8Oga+DGPJqxikDT9XmBpvi7tzuxdgcPOvyydalEdh02ZjtPmkXdETDzVDRVy1+ELR5YX+OMpJhfFb8pN/BO6Kv575ol5pBL4DYvX5lnP1FgLcMDJU1zUcQs5MPUCOXpSVy9rIh3UaDWwGEpYwLSAkBNQv7+TepZDXhztM8dE= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932506631509.9560911743333; Thu, 12 Feb 2026 13:41:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQB-0008Cp-JY; Thu, 12 Feb 2026 16:40:23 -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 1vqeQ9-0008B6-G4 for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:21 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQ7-00067Y-MV for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:21 -0500 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-74-90Ai2XVmMc6nc0JD-fZcDA-1; Thu, 12 Feb 2026 16:40:15 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B3CC11955DE7; Thu, 12 Feb 2026 21:40:14 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1BFCB1800668; Thu, 12 Feb 2026 21:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ANCjg7Py0egEHrrmzj97G8K1INZC+C28iIBdAA1rTTM=; b=XGUV/Z2RB0SvBDTxQPiEr+Z+0Mc36ys95bkXmJb9MG1mbf+b9ywKPBbuCBcihoOXo8Tp0f UG7XD/vas/ihfVOHG8TcYJhL494Nd2Ij3pMcXpQHfq3xAH+49LR4ce4BckHKFj/W4sDeSJ 4H96mU5/izooRTwFw5QOBphhzcQzChU= X-MC-Unique: 90Ai2XVmMc6nc0JD-fZcDA-1 X-Mimecast-MFC-AGG-ID: 90Ai2XVmMc6nc0JD-fZcDA_1770932414 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 07/16] hw/misc/aspeed_scu: Add AST2700 A2 silicon revisions Date: Thu, 12 Feb 2026 22:39:46 +0100 Message-ID: <20260212213955.2225662-8-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @redhat.com) X-ZM-MESSAGEID: 1770932509165154100 From: Jamin Lin Add silicon revision definitions for AST2700 A2, and include them in the list of supported Aspeed silicon revisions. This allows newer AST27x0 A2 silicon to be correctly identified via the SCU silicon revision register. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-3-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- include/hw/misc/aspeed_scu.h | 1 + hw/misc/aspeed_scu.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/hw/misc/aspeed_scu.h b/include/hw/misc/aspeed_scu.h index 313a79f2f76b..d003955428a5 100644 --- a/include/hw/misc/aspeed_scu.h +++ b/include/hw/misc/aspeed_scu.h @@ -47,6 +47,7 @@ struct AspeedSCUState { #define AST1030_A1_SILICON_REV 0x80010000U #define AST1060_A2_SILICON_REV 0xA0030000U #define AST2700_A1_SILICON_REV 0x06010103U +#define AST2700_A2_SILICON_REV 0x06020103U =20 #define ASPEED_IS_AST2500(si_rev) ((((si_rev) >> 24) & 0xff) =3D=3D 0x= 04) =20 diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c index 0edf9c1b1646..e4160356e443 100644 --- a/hw/misc/aspeed_scu.c +++ b/hw/misc/aspeed_scu.c @@ -561,6 +561,7 @@ static uint32_t aspeed_silicon_revs[] =3D { AST1030_A1_SILICON_REV, AST1060_A2_SILICON_REV, AST2700_A1_SILICON_REV, + AST2700_A2_SILICON_REV, }; =20 bool is_supported_silicon_rev(uint32_t silicon_rev) --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932517; cv=none; d=zohomail.com; s=zohoarc; b=Immt/VtbVMXeA6Y0uJdpnklzDoDcnrTTefGbgU8bE/8/ic45Biq4yDwBN4XvAmht9nqOoWr+7jdnjdLFzbFIES5N2jt6VcQAeMkBDpkXESyA60zNVWo7sDzDJ6mUXr9/Toqf4WyEdTfE+G51OXlho2bvynKD+teoPbgx0mIRpqU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932517; 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=kzNIMoMsZQLW9k2rl05Uvtl5Z3XBb7ZfckzwPkttOsg=; b=VqwzbQdXgfy7vtB4q15SCG6Tgbcfv5ToACjgAhjMqzQ3rWpRPdCtT3RHOg4HyMdWw9Tk+znGuJIaXevR9RTxetjqzY7y44EQghGLIemXqk6JWfKIKqpZEko6Ytw4AQEICfi3TO2c7V6YLFxwxGNG34pnczp8d1KcQ6B9VYP//tE= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932517663891.3600463166644; Thu, 12 Feb 2026 13:41:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQD-0008E9-Of; Thu, 12 Feb 2026 16:40:25 -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 1vqeQB-0008CG-3u for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:23 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQ9-000688-8s for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:22 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-401-E8WzIMWTNPmMExCZNc_XdA-1; Thu, 12 Feb 2026 16:40:18 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 11BD71800465; Thu, 12 Feb 2026 21:40:17 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1A7C71800670; Thu, 12 Feb 2026 21:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kzNIMoMsZQLW9k2rl05Uvtl5Z3XBb7ZfckzwPkttOsg=; b=Q2Rn2ctWGe3VBm1I9VzhM3vfSJ18a6M8NFbQrRz/cWR3veG1O2zsHIViAIOcTgaYYe4Y3J LmpuQ3HoBiIyFo+71a80LOciLvzypsQCyt3EXYwOMM4cYO9V15gyAKT09E4Qd5f+NPXd50 kJHXSo+J/LLyTb/Nb+l0toqU0BRoX6g= X-MC-Unique: E8WzIMWTNPmMExCZNc_XdA-1 X-Mimecast-MFC-AGG-ID: E8WzIMWTNPmMExCZNc_XdA_1770932417 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Nabih Estefan Subject: [PULL 08/16] hw/arm/aspeed_ast27x0: Add AST2700 A2 SoC support Date: Thu, 12 Feb 2026 22:39:47 +0100 Message-ID: <20260212213955.2225662-9-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932518416158500 From: Jamin Lin AST2700 A2 is functionally identical to AST2700 A1. There are no changes to the IRQ layout, memory map, or peripheral configuration. The only difference is the silicon revision. This commit introduces a dedicated AST2700 A2 SoC type by reusing the existing AST2700 A1 implementation and setting the A2 silicon revision accordingly. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Nabih Estefan Tested-by: Nabih Estefan Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-4-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast27x0.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/hw/arm/aspeed_ast27x0.c b/hw/arm/aspeed_ast27x0.c index 61790ea1cc2b..87dcb82e1b01 100644 --- a/hw/arm/aspeed_ast27x0.c +++ b/hw/arm/aspeed_ast27x0.c @@ -1166,6 +1166,36 @@ static void aspeed_soc_ast2700a1_class_init(ObjectCl= ass *oc, const void *data) sc->memmap =3D aspeed_soc_ast2700_memmap; } =20 +static void aspeed_soc_ast2700a2_class_init(ObjectClass *oc, const void *d= ata) +{ + static const char * const valid_cpu_types[] =3D { + ARM_CPU_TYPE_NAME("cortex-a35"), + NULL + }; + DeviceClass *dc =3D DEVICE_CLASS(oc); + AspeedSoCClass *sc =3D ASPEED_SOC_CLASS(oc); + + /* Reason: The Aspeed SoC can only be instantiated from a board */ + dc->user_creatable =3D false; + dc->realize =3D aspeed_soc_ast2700_realize; + + sc->valid_cpu_types =3D valid_cpu_types; + sc->silicon_rev =3D AST2700_A2_SILICON_REV; + sc->sram_size =3D 0x20000; + sc->pcie_num =3D 3; + sc->spis_num =3D 3; + sc->sgpio_num =3D 2; + sc->ehcis_num =3D 4; + sc->wdts_num =3D 8; + sc->macs_num =3D 3; + sc->uarts_num =3D 13; + sc->num_cpus =3D 4; + sc->ioexp_num =3D 2; + sc->uarts_base =3D ASPEED_DEV_UART0; + sc->irqmap =3D aspeed_soc_ast2700a1_irqmap; + sc->memmap =3D aspeed_soc_ast2700_memmap; +} + static const TypeInfo aspeed_soc_ast27x0_types[] =3D { { .name =3D TYPE_ASPEED27X0_SOC, @@ -1179,6 +1209,12 @@ static const TypeInfo aspeed_soc_ast27x0_types[] =3D= { .instance_init =3D aspeed_soc_ast2700_init, .class_init =3D aspeed_soc_ast2700a1_class_init, }, + { + .name =3D "ast2700-a2", + .parent =3D TYPE_ASPEED27X0_SOC, + .instance_init =3D aspeed_soc_ast2700_init, + .class_init =3D aspeed_soc_ast2700a2_class_init, + }, }; =20 DEFINE_TYPES(aspeed_soc_ast27x0_types) --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932517; cv=none; d=zohomail.com; s=zohoarc; b=AiMzNvlgRo3TMecs8o/pe+gPxunk/aq+e4J3+dpPPCexgYHxqU+Z/sEzTqbcGV7F+iZ0eEj51hijdxa/Tg+TG98Ujt4N3Ca/Jv5lU1EtvO2WZFx8f0UO2HL87ze/55of9Q/R4mvyL5dLffp4628EI7uikUIlMJAMcyTRw6v6UpY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932517; 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=NnGpvOFpGxPBttJajdOIcy85X9A+EDDg6S5+1vWmuyY=; b=XCvvoMbJTwcNCeT8ntIbyZkrZ4iNs5CD3k6whWfVzj9u9E+Z0yifNr3/UpQZwIykn0m7H8/iMRKB3w8rkq1YS1j2FsaZBDJrrLns+yTfvSIwKcagaf3rni2zBM0pDxvHP9FmXaRWMcHKvz8apOJfX8AnWjshe+2qBil4dOTDxlg= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932517412718.0066965987794; Thu, 12 Feb 2026 13:41:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQF-0008FJ-KN; Thu, 12 Feb 2026 16:40:27 -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 1vqeQD-0008EH-OL for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQC-00069A-39 for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:25 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-283-w9VIqL_eO6CO2kHijguaOQ-1; Thu, 12 Feb 2026 16:40:20 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1025E1955D88; Thu, 12 Feb 2026 21:40:19 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 85E911800669; Thu, 12 Feb 2026 21:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NnGpvOFpGxPBttJajdOIcy85X9A+EDDg6S5+1vWmuyY=; b=jMyjTYNNy9TujUb9hnqlYhiqaUlo7lsIH7K5NwqhaKnlKSrZ1vBkpPf2qecJAaVe6cCag0 zjnY3M8+ftJAB9AYXta+m1Bm2PSv0kM/3mKZE+Yz/WLZ9TjDiw07i2cFQHXo/BkxKRx5XN eyrQ6zsxGV5/rMppBFTMG/3Hz0Yx+I0= X-MC-Unique: w9VIqL_eO6CO2kHijguaOQ-1 X-Mimecast-MFC-AGG-ID: w9VIqL_eO6CO2kHijguaOQ_1770932419 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 09/16] hw/arm/aspeed_ast27x0_evb: Add AST2700 A2 EVB machine Date: Thu, 12 Feb 2026 22:39:48 +0100 Message-ID: <20260212213955.2225662-10-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932519366154100 From: Jamin Lin Add a new AST2700 A2 EVB machine to model the newer A2 silicon. The ast2700a2-evb machine is largely identical to ast2700a1-evb. The only difference is the default DRAM size, which is increased to 2 GB. This change adds a dedicated ast2700a2-evb machine by copying the existing ast2700a1-evb configuration and updating the DRAM size accordingly. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-5-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast27x0_evb.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/hw/arm/aspeed_ast27x0_evb.c b/hw/arm/aspeed_ast27x0_evb.c index 31f7d61117a9..32d944848ed0 100644 --- a/hw/arm/aspeed_ast27x0_evb.c +++ b/hw/arm/aspeed_ast27x0_evb.c @@ -50,12 +50,39 @@ static void aspeed_machine_ast2700a1_evb_class_init(Obj= ectClass *oc, aspeed_machine_class_init_cpus_defaults(mc); } =20 +static void aspeed_machine_ast2700a2_evb_class_init(ObjectClass *oc, + const void *data) +{ + MachineClass *mc =3D MACHINE_CLASS(oc); + AspeedMachineClass *amc =3D ASPEED_MACHINE_CLASS(oc); + + mc->desc =3D "Aspeed AST2700 A2 EVB (Cortex-A35)"; + amc->soc_name =3D "ast2700-a2"; + amc->hw_strap1 =3D AST2700_EVB_HW_STRAP1; + amc->hw_strap2 =3D AST2700_EVB_HW_STRAP2; + amc->fmc_model =3D "w25q01jvq"; + amc->spi_model =3D "w25q512jv"; + amc->num_cs =3D 2; + amc->macs_mask =3D ASPEED_MAC0_ON | ASPEED_MAC1_ON | ASPEED_MAC2_ON; + amc->uart_default =3D ASPEED_DEV_UART12; + amc->i2c_init =3D ast2700_evb_i2c_init; + amc->vbootrom =3D true; + mc->default_ram_size =3D 2 * GiB; + aspeed_machine_class_init_cpus_defaults(mc); +} + static const TypeInfo aspeed_ast27x0_evb_types[] =3D { { .name =3D MACHINE_TYPE_NAME("ast2700a1-evb"), .parent =3D TYPE_ASPEED_MACHINE, .class_init =3D aspeed_machine_ast2700a1_evb_class_init, .interfaces =3D aarch64_machine_interfaces, + }, + { + .name =3D MACHINE_TYPE_NAME("ast2700a2-evb"), + .parent =3D TYPE_ASPEED_MACHINE, + .class_init =3D aspeed_machine_ast2700a2_evb_class_init, + .interfaces =3D aarch64_machine_interfaces, } }; =20 --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932553; cv=none; d=zohomail.com; s=zohoarc; b=SU3mu+pyddNYaHx63A2EBdDDzgtTPKP2zfSDdP9lAc9MW4cxwGGPdmTY/sPG4JQxWzaJ8XMRE+9q8grX7kehHQXQyqXybSyik9wTQW/qv8l4Cbwnt2BSb8As/qu4dTdbQaP/xx8FJnpGUQilKyWjozgSrkvQujQjQbtc07i35H0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932553; 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=7daCPthEvukOKqoj7V83sQ59GzRjxo+F8BXF3X8WYOY=; b=EtkCVx4gHT+5Y4M7alwstllhsRrS6WH0zm4snJjte6q9swKy2okwgodvUE2EMgLg7PFZiX4jBLd3DrGADZPkO0aP99qo7CfE+TStAfFXStky/9e71Vw/vzeFImmyZh4xW7q8trOfkTMl0fT0ZUitcA6dAktQfuL0kLwMLkV5VAk= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932553519280.9218740951312; Thu, 12 Feb 2026 13:42:33 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQG-0008Fu-Fo; Thu, 12 Feb 2026 16:40:28 -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 1vqeQF-0008Eo-8U for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:27 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQC-00069H-DF for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:26 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-427-8cH66wJuOzWOspMVOckCeg-1; Thu, 12 Feb 2026 16:40:22 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1F3111800473; Thu, 12 Feb 2026 21:40:21 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 850F8180035A; Thu, 12 Feb 2026 21:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7daCPthEvukOKqoj7V83sQ59GzRjxo+F8BXF3X8WYOY=; b=R14Dj1cSp2wU2K+Fl5pCw+kgt6Ur3IZALjUZgCg1z63JZv1mp+RMHwfUCM9ShZxZ7cRv6U tNYuWYWZ7I7ViYotjriKL9di0/RwXOljuyzPIFvcpJK/9VZG2s1I6R7oNM+9qCuhXGqdF3 0i0i56+hY8CBMza/IonB/FPjPw8IGFc= X-MC-Unique: 8cH66wJuOzWOspMVOckCeg-1 X-Mimecast-MFC-AGG-ID: 8cH66wJuOzWOspMVOckCeg_1770932421 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 10/16] hw/arm/aspeed_ast27x0_evb: Move ast2700-evb alias to AST2700 A2 EVB Date: Thu, 12 Feb 2026 22:39:49 +0100 Message-ID: <20260212213955.2225662-11-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @redhat.com) X-ZM-MESSAGEID: 1770932554803158501 From: Jamin Lin Make AST2700 A2 EVB the default ast2700-evb machine. The "ast2700-evb" machine alias is moved from the AST2700 A1 EVB to the AST2700 A2 EVB, making A2 the default evaluation board for AST2700. This ensures that users selecting "ast2700-evb" will run on the latest AST2700 silicon revision. The AST2700 A1 EVB machine remains available explicitly as "ast2700a1-evb". Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-6-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast27x0_evb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast27x0_evb.c b/hw/arm/aspeed_ast27x0_evb.c index 32d944848ed0..0ff1bebeb0ed 100644 --- a/hw/arm/aspeed_ast27x0_evb.c +++ b/hw/arm/aspeed_ast27x0_evb.c @@ -34,7 +34,6 @@ static void aspeed_machine_ast2700a1_evb_class_init(Objec= tClass *oc, MachineClass *mc =3D MACHINE_CLASS(oc); AspeedMachineClass *amc =3D ASPEED_MACHINE_CLASS(oc); =20 - mc->alias =3D "ast2700-evb"; mc->desc =3D "Aspeed AST2700 A1 EVB (Cortex-A35)"; amc->soc_name =3D "ast2700-a1"; amc->hw_strap1 =3D AST2700_EVB_HW_STRAP1; @@ -56,6 +55,7 @@ static void aspeed_machine_ast2700a2_evb_class_init(Objec= tClass *oc, MachineClass *mc =3D MACHINE_CLASS(oc); AspeedMachineClass *amc =3D ASPEED_MACHINE_CLASS(oc); =20 + mc->alias =3D "ast2700-evb"; mc->desc =3D "Aspeed AST2700 A2 EVB (Cortex-A35)"; amc->soc_name =3D "ast2700-a2"; amc->hw_strap1 =3D AST2700_EVB_HW_STRAP1; --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932577; cv=none; d=zohomail.com; s=zohoarc; b=oJpvqpMyOIHzShGga64JBAi4DxszYcaJROD7JDNV9hXceT2nK1sWs1mEd6kHFIbYHDKa0L9+w5xh2msHgiy6ERAS1uYqMGFvXJW6pAK3hf6g0zbzgKFNU474BGX9SERkKeI3KeBODZQY/tIP6hg4qYFAVru7pQhMS+KOmKD/7Vs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932577; 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=HrdAdF87i/JIgXqZZqk6qym024ANSehJo6VPxvcJTQo=; b=Hjul8B3UKeK+75YLOJCw6nZHmPLfhLtL5oftj+rk79mTV96YyO0Fn5KBGUL7x+SWOZHIYJ3st4N8NGtoZDov5H8xSosacsUBtmgmdu8/G1MPoHqXN+PgP/we5Ilya4b6M2bYc7bBk+Os580OYgK1jC5jFInv1qQh7h1UyYCWTj4= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932577588492.6610877713017; Thu, 12 Feb 2026 13:42:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQK-0008I7-8R; Thu, 12 Feb 2026 16:40:32 -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 1vqeQI-0008H2-5M for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:30 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQG-0006AP-Hm for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:29 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621--GbcR19WMHiD03K0TMXEFQ-1; Thu, 12 Feb 2026 16:40:24 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 84F21180034D; Thu, 12 Feb 2026 21:40:23 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 93203180035A; Thu, 12 Feb 2026 21:40:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HrdAdF87i/JIgXqZZqk6qym024ANSehJo6VPxvcJTQo=; b=PjxL5ONXYazC98esMrn5o7YofRTMBXHAeSo1AMt9uhW6rRmIBZRYD/XLDvuVgitVneAdK5 lsegzI+gZv3iKNYaDw0AzvpnICulUxaBXFd1bkzwRVvLwsljtr5XCExPSNKiGQoIfZ1xKc 37qgvdwGF/eZMIYxOWjZ0kA6Sl/WT7k= X-MC-Unique: -GbcR19WMHiD03K0TMXEFQ-1 X-Mimecast-MFC-AGG-ID: -GbcR19WMHiD03K0TMXEFQ_1770932423 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 11/16] tests/qtest/ast2700-hace-test: Use ast2700-evb alias for AST2700 HACE tests Date: Thu, 12 Feb 2026 22:39:50 +0100 Message-ID: <20260212213955.2225662-12-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932578605158500 From: Jamin Lin Update AST2700 HACE qtests to use the "ast2700-evb" machine alias instead of a specific silicon revision. The AST2700 A1 and A2 revisions are compatible for the HACE model, so the tests do not depend on a particular EVB revision. Using the "ast2700-evb" alias ensures the tests always run the latest supported AST2700 silicon revision. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-7-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- tests/qtest/ast2700-hace-test.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/qtest/ast2700-hace-test.c b/tests/qtest/ast2700-hace-tes= t.c index a400e2962b0b..508a34dd6c65 100644 --- a/tests/qtest/ast2700-hace-test.c +++ b/tests/qtest/ast2700-hace-test.c @@ -23,57 +23,57 @@ static const struct AspeedMasks as2700_masks =3D { /* ast2700 */ static void test_md5_ast2700(void) { - aspeed_test_md5("-machine ast2700a1-evb", 0x12070000, 0x400000000); + aspeed_test_md5("-machine ast2700-evb", 0x12070000, 0x400000000); } =20 static void test_sha256_ast2700(void) { - aspeed_test_sha256("-machine ast2700a1-evb", 0x12070000, 0x400000000); + aspeed_test_sha256("-machine ast2700-evb", 0x12070000, 0x400000000); } =20 static void test_sha256_sg_ast2700(void) { - aspeed_test_sha256_sg("-machine ast2700a1-evb", 0x12070000, 0x40000000= 0); + aspeed_test_sha256_sg("-machine ast2700-evb", 0x12070000, 0x400000000); } =20 static void test_sha384_ast2700(void) { - aspeed_test_sha384("-machine ast2700a1-evb", 0x12070000, 0x400000000); + aspeed_test_sha384("-machine ast2700-evb", 0x12070000, 0x400000000); } =20 static void test_sha384_sg_ast2700(void) { - aspeed_test_sha384_sg("-machine ast2700a1-evb", 0x12070000, 0x40000000= 0); + aspeed_test_sha384_sg("-machine ast2700-evb", 0x12070000, 0x400000000); } =20 static void test_sha512_ast2700(void) { - aspeed_test_sha512("-machine ast2700a1-evb", 0x12070000, 0x400000000); + aspeed_test_sha512("-machine ast2700-evb", 0x12070000, 0x400000000); } =20 static void test_sha512_sg_ast2700(void) { - aspeed_test_sha512_sg("-machine ast2700a1-evb", 0x12070000, 0x40000000= 0); + aspeed_test_sha512_sg("-machine ast2700-evb", 0x12070000, 0x400000000); } =20 static void test_sha256_accum_ast2700(void) { - aspeed_test_sha256_accum("-machine ast2700a1-evb", 0x12070000, 0x40000= 0000); + aspeed_test_sha256_accum("-machine ast2700-evb", 0x12070000, 0x4000000= 00); } =20 static void test_sha384_accum_ast2700(void) { - aspeed_test_sha384_accum("-machine ast2700a1-evb", 0x12070000, 0x40000= 0000); + aspeed_test_sha384_accum("-machine ast2700-evb", 0x12070000, 0x4000000= 00); } =20 static void test_sha512_accum_ast2700(void) { - aspeed_test_sha512_accum("-machine ast2700a1-evb", 0x12070000, 0x40000= 0000); + aspeed_test_sha512_accum("-machine ast2700-evb", 0x12070000, 0x4000000= 00); } =20 static void test_addresses_ast2700(void) { - aspeed_test_addresses("-machine ast2700a1-evb", 0x12070000, &as2700_ma= sks); + aspeed_test_addresses("-machine ast2700-evb", 0x12070000, &as2700_mask= s); } =20 int main(int argc, char **argv) --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932631; cv=none; d=zohomail.com; s=zohoarc; b=Ae5CL50Ed+h7gLVB4jArb/eGx/7jqYEjBvMb1YGAVi5WUWpbBHSk7kf1NTV4ocdfrp6P0EI3ANpgVtTbxksoS+LnkmGCzaNA+z4I+xBlZms8ny70bC3HEaLS6gMaLVaAqtp1bw/y5v6+MaxC7LfeQpuRQROP/y8SsE/oJ96Nl8E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932631; 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=AYiMPPzpDbrmmZ9+z7uDuwj3oM05b8pmH+0ydAGbCJk=; b=kKhkjQyqaiN2SRDSjtSzx4hHAL1Ner17B52JFhM2hCnqES5R8K5iUkVrVE/N4i0BGPnYpg2HFvmEQvQ3NEq2yuwOOu/EmsBRp1kI7mUd1ePXaRNJ/HFEWx5wbPt2dAdzG02BdV9y2xxJoxWh0PN2aYqrmBiVNBZIqK0/zt02yjM= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932631567451.00327603438757; Thu, 12 Feb 2026 13:43:51 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQO-0008LE-Bz; Thu, 12 Feb 2026 16:40:36 -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 1vqeQL-0008Ix-UR for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:33 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQI-0006B3-Sh for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:33 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-471-VoH1Jt6dP4al-rYg0Ol1CQ-1; Thu, 12 Feb 2026 16:40:26 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6BABB1955D89; Thu, 12 Feb 2026 21:40:25 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E0E17180035A; Thu, 12 Feb 2026 21:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AYiMPPzpDbrmmZ9+z7uDuwj3oM05b8pmH+0ydAGbCJk=; b=HTOHh53i7CmwPuPPf6Z3ie/E9tx2oLZYk9v//HjJ25olgZxMrOioqMqls7zdO/F3VojzPm /k1TQGOUWEiCPjd440OOvHXMY6vT0lRajXkDqpgZwxfj20mOUvosHdpfo7y3Sew9c0Jqy1 IQgRPqSW0PYzJrqqyZ21dnqxT8HlFAA= X-MC-Unique: VoH1Jt6dP4al-rYg0Ol1CQ-1 X-Mimecast-MFC-AGG-ID: VoH1Jt6dP4al-rYg0Ol1CQ_1770932425 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 12/16] tests/functional/aarch64/test_aspeed_ast2700: Rename AST2700 A1 test to reduce test runtime Date: Thu, 12 Feb 2026 22:39:51 +0100 Message-ID: <20260212213955.2225662-13-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932635124154100 From: Jamin Lin Adding additional test cases to test_aspeed_ast2700.py makes the test suite significantly larger and increases the overall test runtime. To keep testing efficient and better scoped, rename the existing test to test_aspeed_ast2700a1.py and dedicate it to AST2700 A1 specific tests. A new test_aspeed_ast2700.py will be introduced later to always cover the latest revision of the AST2700 SoC. No functional change. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-8-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- tests/functional/aarch64/meson.build | 4 ++-- .../{test_aspeed_ast2700.py =3D> test_aspeed_ast2700a1.py} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/functional/aarch64/{test_aspeed_ast2700.py =3D> test_aspeed_a= st2700a1.py} (100%) diff --git a/tests/functional/aarch64/meson.build b/tests/functional/aarch6= 4/meson.build index 5ad52f93e1d7..b5dd674bac61 100644 --- a/tests/functional/aarch64/meson.build +++ b/tests/functional/aarch64/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later =20 test_aarch64_timeouts =3D { - 'aspeed_ast2700' : 600, + 'aspeed_ast2700a1' : 600, 'aspeed_ast2700fc' : 600, 'device_passthrough' : 720, 'imx8mp_evk' : 240, @@ -23,7 +23,7 @@ tests_aarch64_system_quick =3D [ ] =20 tests_aarch64_system_thorough =3D [ - 'aspeed_ast2700', + 'aspeed_ast2700a1', 'aspeed_ast2700fc', 'device_passthrough', 'hotplug_pci', diff --git a/tests/functional/aarch64/test_aspeed_ast2700.py b/tests/functi= onal/aarch64/test_aspeed_ast2700a1.py similarity index 100% rename from tests/functional/aarch64/test_aspeed_ast2700.py rename to tests/functional/aarch64/test_aspeed_ast2700a1.py --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932629; cv=none; d=zohomail.com; s=zohoarc; b=R4Nd7UxDTid9AEn9Ak94LE+Yzv1ZYgf37BS9fgpdqb3/bqz+haS8XTmFs1AD+JpaAWW14qnilAT4uWCDY10xnDj+cw/nQl9rdoB3pVucq++YqXyGrxTeN7NsTt+hxZYQVLO2+8g25+Z2G1IxGWyzgVZClyW4keNtX0nw6WpBSrU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932629; 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=QqfC/Y4H9AQxjD2fA3eZ8vbjWhVvXuBuXTwWYX84JS8=; b=B8lIgV4m+ruKvdGOttBuwvnvk5oKwZzWgqR1w5NkLzekwyQuqJoThL7VNudM6XV96jjViE6BbXoo2qokWyTEvtfAopbU+VkDYa2ne/Igi/SQ3y9at3eSefBs3IioWVDtWJ2BK17nMI2ERuJIXuLc7hUzajYbWRjr9HdmeSV74oo= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932629099308.21428240549017; Thu, 12 Feb 2026 13:43:49 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQP-0008Lq-52; Thu, 12 Feb 2026 16:40:37 -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 1vqeQM-0008JR-JF for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:34 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQK-0006BU-Hc for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:34 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-672-sbp7CGQTMEmeyIT-doSvaA-1; Thu, 12 Feb 2026 16:40:28 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 781EB180047F; Thu, 12 Feb 2026 21:40:27 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E01061800668; Thu, 12 Feb 2026 21:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QqfC/Y4H9AQxjD2fA3eZ8vbjWhVvXuBuXTwWYX84JS8=; b=T00uM7yqP6/wQQPUdOeX/ZPpy9DdVOy4/jNLmkFYb/KHorS8LC35GsBerldDwVZz8ty82n r0bSbwVodxRt+Ws/2snLL+v+D28gXePI5vdavNOW8+mH4iVJT7Q5iQR63kRiQ9IlMgqB0b xXw4OPx/bgj+97bNxPN1Bs5Ujddxbrw= X-MC-Unique: sbp7CGQTMEmeyIT-doSvaA-1 X-Mimecast-MFC-AGG-ID: sbp7CGQTMEmeyIT-doSvaA_1770932427 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 13/16] tests/functional/aarch64/test_aspeed_ast2700a2: Add AST2700 A2 EVB functional tests Date: Thu, 12 Feb 2026 22:39:52 +0100 Message-ID: <20260212213955.2225662-14-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932630858158500 From: Jamin Lin Add functional coverage for the AST2700 A2 EVB machine by introducing test cases that boot and validate an OpenBMC SDK v11.00 image on "ast2700a2-evb". Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-9-jamin_lin@= aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- tests/functional/aarch64/meson.build | 2 + .../aarch64/test_aspeed_ast2700a2.py | 190 ++++++++++++++++++ 2 files changed, 192 insertions(+) create mode 100755 tests/functional/aarch64/test_aspeed_ast2700a2.py diff --git a/tests/functional/aarch64/meson.build b/tests/functional/aarch6= 4/meson.build index b5dd674bac61..49eca1205898 100644 --- a/tests/functional/aarch64/meson.build +++ b/tests/functional/aarch64/meson.build @@ -2,6 +2,7 @@ =20 test_aarch64_timeouts =3D { 'aspeed_ast2700a1' : 600, + 'aspeed_ast2700a2' : 600, 'aspeed_ast2700fc' : 600, 'device_passthrough' : 720, 'imx8mp_evk' : 240, @@ -24,6 +25,7 @@ tests_aarch64_system_quick =3D [ =20 tests_aarch64_system_thorough =3D [ 'aspeed_ast2700a1', + 'aspeed_ast2700a2', 'aspeed_ast2700fc', 'device_passthrough', 'hotplug_pci', diff --git a/tests/functional/aarch64/test_aspeed_ast2700a2.py b/tests/func= tional/aarch64/test_aspeed_ast2700a2.py new file mode 100755 index 000000000000..e527518a5537 --- /dev/null +++ b/tests/functional/aarch64/test_aspeed_ast2700a2.py @@ -0,0 +1,190 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED SoCs with firmware +# +# Copyright (C) 2022 ASPEED Technology Inc +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os + +from qemu_test import QemuSystemTest, Asset +from qemu_test import wait_for_console_pattern, exec_command +from qemu_test import exec_command_and_wait_for_pattern + + +class AST2x00MachineSDK(QemuSystemTest): + + def do_test_aarch64_aspeed_sdk_start(self, image, bus_id): + bus_str =3D str(bus_id) + self.require_netdev('user') + self.vm.set_console() + self.vm.add_args( + '-device', + f'tmp105,' + f'bus=3Daspeed.i2c.bus.{bus_str},' + f'address=3D0x4d,' + f'id=3Dtmp-test-{bus_str}' + ) + self.vm.add_args('-drive', 'file=3D' + image + ',if=3Dmtd,format= =3Draw', + '-net', 'nic', '-net', 'user', '-snapshot') + + self.vm.launch() + + def verify_vbootrom_firmware_flow(self): + wait_for_console_pattern(self, 'Found valid caliptra flash image') + wait_for_console_pattern(self, 'Check flash image checksum') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Read abb header') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Read soc manifest') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Load atf image') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Load optee image') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Load uboot image') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Load ssp image') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Load tsp image') + wait_for_console_pattern(self, 'pass') + wait_for_console_pattern(self, 'Jumping to BL31 (Trusted Firmware-= A)') + + def enable_ast2700_pcie2(self): + wait_for_console_pattern(self, 'Hit any key to stop autoboot') + exec_command_and_wait_for_pattern(self, '\012', '=3D>') + exec_command_and_wait_for_pattern(self, + 'cp 100420000 403000000 900000', '=3D>') + exec_command_and_wait_for_pattern(self, + 'bootm start 403000000', '=3D>') + exec_command_and_wait_for_pattern(self, 'bootm loados', '=3D>') + exec_command_and_wait_for_pattern(self, 'bootm ramdisk', '=3D>') + exec_command_and_wait_for_pattern(self, 'bootm prep', '=3D>') + exec_command_and_wait_for_pattern(self, + 'fdt set /soc@14000000/pcie@140d0000 status "okay"', '=3D>') + exec_command(self, 'bootm go') + + def verify_openbmc_boot_start(self, enable_pcie=3DTrue): + wait_for_console_pattern(self, 'U-Boot 2023.10') + if enable_pcie: + self.enable_ast2700_pcie2() + wait_for_console_pattern(self, 'Linux version ') + + def verify_openbmc_boot_and_login(self, name, enable_pcie=3DTrue): + self.verify_openbmc_boot_start(enable_pcie) + + wait_for_console_pattern(self, f'{name} login:') + exec_command_and_wait_for_pattern(self, 'root', 'Password:') + exec_command_and_wait_for_pattern(self, '0penBmc', f'root@{name}:~= #') + + ASSET_SDK_V1100_AST2700A2 =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v= 11.00/ast2700-default-obmc.tar.gz', + 'e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de= 4dc') + + ASSET_SDK_V1100_AST2700A2_DCSCM =3D Asset( + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v= 11.00/ast2700-dcscm-obmc.tar.gz', + '0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb0= 2d0') + + def do_ast2700_i2c_test(self, bus_id): + bus_str =3D str(bus_id) + exec_command_and_wait_for_pattern(self, + 'echo lm75 0x4d > ' + f'/sys/class/i2c-dev/i2c-{bus_str}/device/new_device ', + f'i2c i2c-{bus_str}: new_device: Instantiated device lm75 at 0= x4d') + exec_command_and_wait_for_pattern(self, + f'cat /sys/bus/i2c/devices/{bus_str}-004d/hwmon/hwmon*/temp1_i= nput', + '0') + self.vm.cmd('qom-set', path=3Df'/machine/peripheral/tmp-test-{bus_= str}', + property=3D'temperature', value=3D18000) + exec_command_and_wait_for_pattern(self, + f'cat /sys/bus/i2c/devices/{bus_str}-004d/hwmon/hwmon*/temp1_i= nput', + '18000') + + def do_ast2700_pcie_test(self): + exec_command_and_wait_for_pattern(self, + 'lspci -s 0002:00:00.0', + '0002:00:00.0 PCI bridge: ' + 'ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge') + exec_command_and_wait_for_pattern(self, + 'lspci -s 0002:01:00.0', + '0002:01:00.0 Ethernet controller: ' + 'Intel Corporation 82574L Gigabit Network Connection') + exec_command_and_wait_for_pattern(self, + 'ip addr show dev eth2', + 'inet 10.0.2.15/24') + + def start_ast2700_test(self, name, bus_id): + num_cpu =3D 4 + load_images_list =3D [ + { + 'addr': '0x400000000', + 'file': self.scratch_file(name, 'u-boot.bin') + }, + { + 'addr': '0x430000000', + 'file': self.scratch_file(name, 'bl31.bin') + }, + { + 'addr': '0x430080000', + 'file': self.scratch_file(name, 'optee', 'tee-raw.bin') + } + ] + + for load_image in load_images_list: + addr =3D load_image['addr'] + file =3D load_image['file'] + self.vm.add_args('-device', + f'loader,force-raw=3Don,addr=3D{addr},file=3D= {file}') + + for i in range(num_cpu): + self.vm.add_args('-device', + f'loader,addr=3D0x430000000,cpu-num=3D{i}') + + self.vm.add_args('-smp', str(num_cpu)) + self.do_test_aarch64_aspeed_sdk_start( + self.scratch_file(name, 'image-bmc'), bus_id) + + def start_ast2700_test_vbootrom(self, name, bus_id): + self.vm.add_args('-bios', 'ast27x0_bootrom.bin') + self.do_test_aarch64_aspeed_sdk_start( + self.scratch_file(name, 'image-bmc'), bus_id) + + def test_aarch64_ast2700a2_evb_sdk_v11_00(self): + self.set_machine('ast2700a2-evb') + self.require_netdev('user') + + self.archive_extract(self.ASSET_SDK_V1100_AST2700A2) + self.vm.add_args('-device', 'e1000e,netdev=3Dnet1,bus=3Dpcie.2') + self.vm.add_args('-netdev', 'user,id=3Dnet1') + self.start_ast2700_test('ast2700-default', 1) + self.verify_openbmc_boot_and_login('ast2700-default') + self.do_ast2700_i2c_test(1) + self.do_ast2700_pcie_test() + + def test_aarch64_ast2700a2_evb_sdk_vbootrom_v11_00(self): + self.set_machine('ast2700a2-evb') + self.require_netdev('user') + + self.archive_extract(self.ASSET_SDK_V1100_AST2700A2) + self.vm.add_args('-device', 'e1000e,netdev=3Dnet1,bus=3Dpcie.2') + self.vm.add_args('-netdev', 'user,id=3Dnet1') + self.start_ast2700_test_vbootrom('ast2700-default', 1) + self.verify_vbootrom_firmware_flow() + self.verify_openbmc_boot_start() + + def test_aarch64_ast2700a2_evb_ioexp_v11_00(self): + self.set_machine('ast2700a2-evb') + self.require_netdev('user') + + self.archive_extract(self.ASSET_SDK_V1100_AST2700A2_DCSCM) + self.vm.set_machine('ast2700a2-evb,fmc-model=3Dw25q512jv') + self.vm.add_args('-device', + 'tmp105,bus=3Dioexp0.0,address=3D0x4d,id=3Dtmp-te= st-16') + self.start_ast2700_test('ast2700-dcscm', 8) + self.verify_openbmc_boot_and_login('ast2700-dcscm', False) + self.do_ast2700_i2c_test(8) + self.do_ast2700_i2c_test(16) + +if __name__ =3D=3D '__main__': + QemuSystemTest.main() --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932460; cv=none; d=zohomail.com; s=zohoarc; b=Bj2KQ/TX4VZ1/GMMaVabS3LVO5xZ1UvFEX+HzZOmPmQvKHMfWNpLKefIh0bzNvKLosahkMuzoNb4EHWmgIVfbmSwJdpDik5rtpA9qPIJ9DLRUKtFOiVJZ4OeRNXkjQmNEFnjEDatvGJBWYFyo5/gzTFNPFY6REgMTqSbRHXZ/6c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932460; 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=TKYz2OOq/Yo22Lz/U0vqNR0yCFTqQBKR1flNZGBJoNM=; b=V81pu8J2xrlHyeAdv0LExEA7PflPh8oyJa6UrIHMp8k7bvKcEMWx0vK7q7jjtXUAHpzPQ4s0RvQ5SnxrNfOIvTr+GRT5z2qWcok/EFZ9Ki/bT5+zSBI3P8GVg2ctRQUkcsKUWG81EM33XLqJQJNFl8sbyrBSjwhXOj8det/gvNA= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932460209320.2098193896188; Thu, 12 Feb 2026 13:41:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQQ-0008MZ-KM; Thu, 12 Feb 2026 16:40:38 -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 1vqeQN-0008L0-Uq for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:35 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQM-0006CD-GR for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:35 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-91-a1cCpMhgNfeWcidFkTOfXw-1; Thu, 12 Feb 2026 16:40:30 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 79C8C1955D76; Thu, 12 Feb 2026 21:40:29 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EE95E180035A; Thu, 12 Feb 2026 21:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TKYz2OOq/Yo22Lz/U0vqNR0yCFTqQBKR1flNZGBJoNM=; b=GoCICgEFZxxakSSII6BIJuJ+alNiUhSkEQXTBjY2FzkFTAAi3kC8P8iXQM1yiGJ6LJDD6s m/OuDiSqkEcyuLkn06QxBkEBAxbXkL56mug+WOH5mJGPrxVcEMgP6eTf4JthVw6VWgUfV1 0jxW2QnW4XEKr6+T//JWtx0kCBplSUs= X-MC-Unique: a1cCpMhgNfeWcidFkTOfXw-1 X-Mimecast-MFC-AGG-ID: a1cCpMhgNfeWcidFkTOfXw_1770932429 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 14/16] hw/arm/aspeed_ast27x0-fc: Switch AST2700 FC machine to A2 SoC Date: Thu, 12 Feb 2026 22:39:53 +0100 Message-ID: <20260212213955.2225662-15-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932462697154100 From: Jamin Lin Update the AST2700 FC machine to use the AST2700 A2 SoC model instead of the A1-specific variant. This change removes A1-specific naming and definitions from the FC machine and aligns it with the newer AST2700 A2 silicon. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-10-jamin_lin= @aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast27x0-fc.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/arm/aspeed_ast27x0-fc.c b/hw/arm/aspeed_ast27x0-fc.c index 0502a137f3d9..9b9bb2df7580 100644 --- a/hw/arm/aspeed_ast27x0-fc.c +++ b/hw/arm/aspeed_ast27x0-fc.c @@ -24,8 +24,8 @@ #include "hw/arm/aspeed_coprocessor.h" #include "hw/arm/machines-qom.h" =20 -#define TYPE_AST2700A1FC MACHINE_TYPE_NAME("ast2700fc") -OBJECT_DECLARE_SIMPLE_TYPE(Ast2700FCState, AST2700A1FC); +#define TYPE_AST2700FC MACHINE_TYPE_NAME("ast2700fc") +OBJECT_DECLARE_SIMPLE_TYPE(Ast2700FCState, AST2700FC); =20 static struct arm_boot_info ast2700fc_board_info =3D { .board_id =3D -1, /* device-tree-only board */ @@ -49,7 +49,6 @@ struct Ast2700FCState { }; =20 #define AST2700FC_BMC_RAM_SIZE (1 * GiB) -#define AST2700FC_CM4_DRAM_SIZE (32 * MiB) =20 #define AST2700FC_HW_STRAP1 0x000000C0 #define AST2700FC_HW_STRAP2 0x00000003 @@ -58,7 +57,7 @@ struct Ast2700FCState { =20 static bool ast2700fc_ca35_init(MachineState *machine, Error **errp) { - Ast2700FCState *s =3D AST2700A1FC(machine); + Ast2700FCState *s =3D AST2700FC(machine); AspeedSoCState *soc; AspeedSoCClass *sc; const char *bios_name =3D NULL; @@ -66,7 +65,7 @@ static bool ast2700fc_ca35_init(MachineState *machine, Er= ror **errp) DeviceState *dev =3D NULL; uint64_t rom_size; =20 - object_initialize_child(OBJECT(s), "ca35", &s->ca35, "ast2700-a1"); + object_initialize_child(OBJECT(s), "ca35", &s->ca35, "ast2700-a2"); soc =3D ASPEED_SOC(&s->ca35); sc =3D ASPEED_SOC_GET_CLASS(soc); =20 @@ -135,7 +134,7 @@ static bool ast2700fc_ca35_init(MachineState *machine, = Error **errp) =20 static bool ast2700fc_ssp_init(MachineState *machine, Error **errp) { - Ast2700FCState *s =3D AST2700A1FC(machine); + Ast2700FCState *s =3D AST2700FC(machine); AspeedSoCState *psp =3D ASPEED_SOC(&s->ca35); =20 s->ssp_sysclk =3D clock_new(OBJECT(s), "SSP_SYSCLK"); @@ -167,7 +166,7 @@ static bool ast2700fc_ssp_init(MachineState *machine, E= rror **errp) =20 static bool ast2700fc_tsp_init(MachineState *machine, Error **errp) { - Ast2700FCState *s =3D AST2700A1FC(machine); + Ast2700FCState *s =3D AST2700FC(machine); AspeedSoCState *psp =3D ASPEED_SOC(&s->ca35); =20 s->tsp_sysclk =3D clock_new(OBJECT(s), "TSP_SYSCLK"); --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932557; cv=none; d=zohomail.com; s=zohoarc; b=MIPB2VCUdMmQEd6oH5LKIuRXvHm2Bk1oK0gU7cl1MH03TcQviL1pFgM809XNe86ZUdqR1UsXjqkKc57fVeAsucCAUTB0joR1xgnNbh2BtUGLBcJ/j5ukhBQIk7yU51lP4vENgm9Wn9VS9xJi3E+xeBsg2xtO4tUYRpLAqFw8oFk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932557; 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=U+KTsqCQZlBTZbQHkbYrjeCxXA/2cIQy/W5hXSmywUQ=; b=HN+w4xKAwhKxCXsph6bOMNF0UAny2w6/HOxO+deVeO8wtNBmAsmGJHg6xG/0GhXSdq9bxvAcBiokRlcYIkKEmhHjRJQFDkm7FNehYHRK1Mbv18GPD1F8MSjgEjgj9xO3tVUsVWsVPvIecfs3u6Vac3VZP2w1t6FyNp4whkoElNw= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932557687885.9991002739846; Thu, 12 Feb 2026 13:42:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQT-0008O5-8N; Thu, 12 Feb 2026 16:40:41 -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 1vqeQR-0008N0-8L for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:39 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQP-0006D3-FG for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:39 -0500 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-104-Nq2l-MjtO6qlY04taK9mUg-1; Thu, 12 Feb 2026 16:40:32 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 826F31956067; Thu, 12 Feb 2026 21:40:31 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EF0CA1800668; Thu, 12 Feb 2026 21:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U+KTsqCQZlBTZbQHkbYrjeCxXA/2cIQy/W5hXSmywUQ=; b=aBikQJQrk5KgzT+DWX4Iq99TS+lG5qwOx+tvC32U7qz8juw/Ht4wfFbpXepiaEWZKenQja BSesN0KkvaLLlaKrjLXfyhW5lcRXm7R6xnnYTNpEgO8j3qLlTKc1KcxZY8UcGIS+ipVDPh L5edMvExomjnNP4/rTBoEuhq44Lq2R4= X-MC-Unique: Nq2l-MjtO6qlY04taK9mUg-1 X-Mimecast-MFC-AGG-ID: Nq2l-MjtO6qlY04taK9mUg_1770932431 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 15/16] hw/arm/aspeed_ast27x0-fc: Increase BMC DRAM size to 2GB for AST2700 A2 Date: Thu, 12 Feb 2026 22:39:54 +0100 Message-ID: <20260212213955.2225662-16-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932558428158500 From: Jamin Lin The AST2700 A1 EVB is equipped with 1GB of DRAM, while the AST2700 A2 EVB increases the DRAM size to 2GB. The ast2700fc machine is updated to support the AST2700 A2. Increase the BMC DRAM size to 2GB to match the hardware configuration of AST2700 A2. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-11-jamin_lin= @aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- hw/arm/aspeed_ast27x0-fc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/aspeed_ast27x0-fc.c b/hw/arm/aspeed_ast27x0-fc.c index 9b9bb2df7580..5eb6680da99d 100644 --- a/hw/arm/aspeed_ast27x0-fc.c +++ b/hw/arm/aspeed_ast27x0-fc.c @@ -48,7 +48,7 @@ struct Ast2700FCState { Aspeed27x0CoprocessorState tsp; }; =20 -#define AST2700FC_BMC_RAM_SIZE (1 * GiB) +#define AST2700FC_BMC_RAM_SIZE (2 * GiB) =20 #define AST2700FC_HW_STRAP1 0x000000C0 #define AST2700FC_HW_STRAP2 0x00000003 --=20 2.53.0 From nobody Sun Apr 12 05:51:26 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1770932561; cv=none; d=zohomail.com; s=zohoarc; b=IwiwcIB3zoBbZlV8yI/h3VRMzZ40fAFOBcdw7GMg2eZ0VBG5fhFWFadGKCA1nKaV37tQK5JirTGeBwEUvUHjn+1dvbnkr1m4nFX83WdfG6t1aexgBw9fqVKumJKuKicjGsCB2DE0umgFyMHHpmX9dK0Y9aos4xKsC2Nm6PFg+v8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770932561; 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=idsrYY9pfBEEfLRU3KKnXin+EUmFekGrhDRA4Yvu7FE=; b=YP8/80UrWXRorOeEUjaJU6I6cDU2yilzJB7kW535HljYiLB0/txnA8dBj45QySwTRLuNq+g20d1rUQj3JKWwOlUaFt6THnlB35Ss4JJoQF4zPYRPiluPVN++KF9zdXUIMxkPO/e9Yp2cGSe0PjPfIbx8vAMovhJmHjhhnbl61Kc= 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=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770932561403251.9527945763997; Thu, 12 Feb 2026 13:42:41 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vqeQU-0008OY-7G; Thu, 12 Feb 2026 16:40:42 -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 1vqeQS-0008Nj-Jy for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:40 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vqeQR-0006DQ-1O for qemu-devel@nongnu.org; Thu, 12 Feb 2026 16:40:40 -0500 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-192-zZdFUBdBNH2hjEr_xCTNpQ-1; Thu, 12 Feb 2026 16:40:35 -0500 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E34521956046; Thu, 12 Feb 2026 21:40:33 +0000 (UTC) Received: from corto.redhat.com (unknown [10.45.224.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 039AD180035A; Thu, 12 Feb 2026 21:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770932438; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=idsrYY9pfBEEfLRU3KKnXin+EUmFekGrhDRA4Yvu7FE=; b=bWzelrWCRZZ0cIdKCr9nR7d1j+ZDXz+XhfIvkqwWBH5HQR0D5qv3tkZazacihDyX4BgviL sk57OK+n+8BA3mx9Sa+h/5CsnZb4nj7arGw00IXp57ZWhZWa2tz2Mf/ABktP88VrOKcBqO ng/X2H4Q1Dld20W2PfdnzxNSIBn3g5s= X-MC-Unique: zZdFUBdBNH2hjEr_xCTNpQ-1 X-Mimecast-MFC-AGG-ID: zZdFUBdBNH2hjEr_xCTNpQ_1770932434 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Jamin Lin , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PULL 16/16] tests/functional/aarch64/test_aspeed_ast2700fc: Use AST2700 A2 SDK image for FC tests Date: Thu, 12 Feb 2026 22:39:55 +0100 Message-ID: <20260212213955.2225662-17-clg@redhat.com> In-Reply-To: <20260212213955.2225662-1-clg@redhat.com> References: <20260212213955.2225662-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @redhat.com) X-ZM-MESSAGEID: 1770932564070154100 From: Jamin Lin Update AST2700 FC functional tests to use the AST2700 A2 SDK v11.00 image. Signed-off-by: Jamin Lin Reviewed-by: C=C3=A9dric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-12-jamin_lin= @aspeedtech.com Signed-off-by: C=C3=A9dric Le Goater --- .../functional/aarch64/test_aspeed_ast2700fc.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/functional/aarch64/test_aspeed_ast2700fc.py b/tests/func= tional/aarch64/test_aspeed_ast2700fc.py index 47e56dcfc50c..51ee8bc78791 100755 --- a/tests/functional/aarch64/test_aspeed_ast2700fc.py +++ b/tests/functional/aarch64/test_aspeed_ast2700fc.py @@ -62,8 +62,8 @@ def load_ast2700fc_coprocessor(self, name): f'loader,file=3D{file},cpu-num=3D{cpu_num}') =20 ASSET_SDK_V1100_AST2700 =3D Asset( - 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v= 11.00/ast2700-a1-obmc.tar.gz', - 'd5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76= 525') + 'https://github.com/AspeedTech-BMC/openbmc/releases/download/v= 11.00/ast2700-default-obmc.tar.gz', + 'e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de= 4dc') =20 def do_ast2700_i2c_test(self): exec_command_and_wait_for_pattern(self, @@ -98,7 +98,7 @@ def do_ast2700fc_ssp_test(self): exec_command_and_wait_for_pattern(self, 'version', 'Zephyr version 3.7.1') exec_command_and_wait_for_pattern(self, 'md 72c02000 1', - '[72c02000] 06010103') + '[72c02000] 06020103') =20 def do_ast2700fc_tsp_test(self): self.vm.shutdown() @@ -109,7 +109,7 @@ def do_ast2700fc_tsp_test(self): exec_command_and_wait_for_pattern(self, 'version', 'Zephyr version 3.7.1') exec_command_and_wait_for_pattern(self, 'md 72c02000 1', - '[72c02000] 06010103') + '[72c02000] 06020103') =20 def start_ast2700fc_test(self, name): ca35_core =3D 4 @@ -153,8 +153,8 @@ def test_aarch64_ast2700fc_sdk_v11_00(self): self.require_netdev('user') =20 self.archive_extract(self.ASSET_SDK_V1100_AST2700) - self.start_ast2700fc_test('ast2700-a1') - self.verify_openbmc_boot_and_login('ast2700-a1') + self.start_ast2700fc_test('ast2700-default') + self.verify_openbmc_boot_and_login('ast2700-default') self.do_ast2700_i2c_test() self.do_ast2700_pcie_test() self.do_ast2700fc_ssp_test() @@ -164,8 +164,8 @@ def test_aarch64_ast2700fc_sdk_vbootrom_v11_00(self): self.set_machine('ast2700fc') =20 self.archive_extract(self.ASSET_SDK_V1100_AST2700) - self.start_ast2700fc_test_vbootrom('ast2700-a1') - self.verify_openbmc_boot_and_login('ast2700-a1') + self.start_ast2700fc_test_vbootrom('ast2700-default') + self.verify_openbmc_boot_and_login('ast2700-default') self.do_ast2700fc_ssp_test() self.do_ast2700fc_tsp_test() =20 --=20 2.53.0