Skip to contentSkip to conversation

aspeed queue

GIT PULL Applied Cédric Le Goater 4 participants 32 messages Feb 12 – Feb 25

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The following changes since commit 039fae56bb79af1124619daae60e01c257fcb2ee:

Merge tag 'pull-request-2026-02-12v2' of https://gitlab.com/thuth/qemu into staging (2026-02-12 11:52:31 +0000)

are available in the Git repository at:

https://github.com/legoater/qemu/ tags/pull-aspeed-20260212

for you to fetch changes up to 1b662879513fa9823a887cac9cfc3d91b9d3f616:

tests/functional/aarch64/test_aspeed_ast2700fc: Use AST2700 A2 SDK image for FC tests (2026-02-12 16:06:55 +0100)

----------------------------------------------------------------
aspeed-next queue:

* Adds support for the AST2700 A2 SoC, including a new machine and a functional test
* Enhances AST2600 OTP functional test
* Restructures Aspeed ARM tests into separate files for better parallelism.
* Includes new SDK tests with Linux 5.15.
* Fixes Aspeed I2C models

----------------------------------------------------------------
Cédric Le Goater (2):
tests/functional: Split Aspeed ARM tests into separate files tests/functional: Add SDK tests with Linux 5.15

Jamin Lin (13):
hw/i2c/aspeed_i2c: Fix out-of-bounds read in I2C MMIO handlers hw/i2c/aspeed_i2c: Increase I2C device register size to 0xA0 hw/misc/aspeed_scu: Remove unused SoC silicon revision definitions hw/misc/aspeed_scu: Add AST2700 A2 silicon revisions
hw/arm/aspeed_ast27x0: Add AST2700 A2 SoC support hw/arm/aspeed_ast27x0_evb: Add AST2700 A2 EVB machine hw/arm/aspeed_ast27x0_evb: Move ast2700-evb alias to AST2700 A2 EVB tests/qtest/ast2700-hace-test: Use ast2700-evb alias for AST2700 HACE tests tests/functional/aarch64/test_aspeed_ast2700: Rename AST2700 A1 test to reduce test runtime tests/functional/aarch64/test_aspeed_ast2700a2: Add AST2700 A2 EVB functional tests hw/arm/aspeed_ast27x0-fc: Switch AST2700 FC machine to A2 SoC hw/arm/aspeed_ast27x0-fc: Increase BMC DRAM size to 2GB for AST2700 A2 tests/functional/aarch64/test_aspeed_ast2700fc: Use AST2700 A2 SDK image for FC tests

Kane Chen (1):
tests/functional/arm/aspeed_ast2600: Enhance OTP test with functional validation

 include/hw/i2c/aspeed_i2c.h                        |   3 +-
 include/hw/misc/aspeed_scu.h                       |  11 +-
 hw/arm/aspeed_ast27x0-fc.c                         |  15 +-
 hw/arm/aspeed_ast27x0.c                            |  36 ++++
 hw/arm/aspeed_ast27x0_evb.c                        |  29 +++-
 hw/i2c/aspeed_i2c.c                                |  58 +++----
 hw/misc/aspeed_scu.c                               |  11 +-
 tests/qtest/ast2700-hace-test.c                    |  22 +--
 tests/functional/aarch64/meson.build               |   6 +-
 ..._aspeed_ast2700.py => test_aspeed_ast2700a1.py} |   0
 tests/functional/aarch64/test_aspeed_ast2700a2.py  | 190 +++++++++++++++++++++
 tests/functional/aarch64/test_aspeed_ast2700fc.py  |  16 +-
 tests/functional/arm/meson.build                   |  18 +-
 tests/functional/arm/test_aspeed_ast1060.py        |   0
 ...ast2500.py => test_aspeed_ast2500_buildroot.py} |  14 --
 tests/functional/arm/test_aspeed_ast2500_sdk.py    |  29 ++++
 .../functional/arm/test_aspeed_ast2500_sdk_515.py  |  29 ++++
 .../arm/test_aspeed_ast2600_buildroot.py           |  41 +----
 .../arm/test_aspeed_ast2600_buildroot_tpm.py       |  60 +++++++
 tests/functional/arm/test_aspeed_ast2600_sdk.py    |  15 --
 .../functional/arm/test_aspeed_ast2600_sdk_515.py  |  29 ++++
 .../functional/arm/test_aspeed_ast2600_sdk_otp.py  |  62 +++++++
 22 files changed, 539 insertions(+), 155 deletions(-)
 rename tests/functional/aarch64/{test_aspeed_ast2700.py => test_aspeed_ast2700a1.py} (100%)
 create mode 100755 tests/functional/aarch64/test_aspeed_ast2700a2.py
 mode change 100644 => 100755 tests/functional/arm/test_aspeed_ast1060.py
 rename tests/functional/arm/{test_aspeed_ast2500.py => test_aspeed_ast2500_buildroot.py} (74%)
 create mode 100755 tests/functional/arm/test_aspeed_ast2500_sdk.py
 create mode 100755 tests/functional/arm/test_aspeed_ast2500_sdk_515.py
 create mode 100755 tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.py
 create mode 100755 tests/functional/arm/test_aspeed_ast2600_sdk_515.py
 create mode 100755 tests/functional/arm/test_aspeed_ast2600_sdk_otp.py
#1 lore raw

[PULL 06/16] hw/misc/aspeed_scu: Remove unused SoC silicon revision definitions

From: Jamin Lin <[email protected]>

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.

---
 include/hw/misc/aspeed_scu.h | 10 ----------
 hw/misc/aspeed_scu.c         | 10 ----------
 2 files changed, 20 deletions(-)
include/hw/misc/aspeed_scu.h +0 -10
index 9e28bd4d2e1a..313a79f2f76b 100644
@@ -41,22 +41,12 @@ struct AspeedSCUState {
     uint32_t hw_prot_key;
 };
 
-#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
 
 #define ASPEED_IS_AST2500(si_rev)     ((((si_rev) >> 24) & 0xff) == 0x04)
 
hw/misc/aspeed_scu.c +0 -10
index 6829efa2dcd4..0edf9c1b1646 100644
@@ -555,22 +555,12 @@ static void aspeed_scu_reset(DeviceState *dev)
 }
 
 static uint32_t aspeed_silicon_revs[] = {
-    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,
 };
 
 bool is_supported_silicon_rev(uint32_t silicon_rev)
Signature · 1 line
2.53.0
#2 lore raw

[PULL 08/16] hw/arm/aspeed_ast27x0: Add AST2700 A2 SoC support

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

---
 hw/arm/aspeed_ast27x0.c | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
hw/arm/aspeed_ast27x0.c +36 -0
index 61790ea1cc2b..87dcb82e1b01 100644
@@ -1166,6 +1166,36 @@ static void aspeed_soc_ast2700a1_class_init(ObjectClass *oc, const void *data)
     sc->memmap       = aspeed_soc_ast2700_memmap;
 }
 
+static void aspeed_soc_ast2700a2_class_init(ObjectClass *oc, const void *data)
+{
+    static const char * const valid_cpu_types[] = {
+        ARM_CPU_TYPE_NAME("cortex-a35"),
+        NULL
+    };
+    DeviceClass *dc = DEVICE_CLASS(oc);
+    AspeedSoCClass *sc = ASPEED_SOC_CLASS(oc);
+
+    /* Reason: The Aspeed SoC can only be instantiated from a board */
+    dc->user_creatable = false;
+    dc->realize      = aspeed_soc_ast2700_realize;
+
+    sc->valid_cpu_types = valid_cpu_types;
+    sc->silicon_rev  = AST2700_A2_SILICON_REV;
+    sc->sram_size    = 0x20000;
+    sc->pcie_num     = 3;
+    sc->spis_num     = 3;
+    sc->sgpio_num    = 2;
+    sc->ehcis_num    = 4;
+    sc->wdts_num     = 8;
+    sc->macs_num     = 3;
+    sc->uarts_num    = 13;
+    sc->num_cpus     = 4;
+    sc->ioexp_num    = 2;
+    sc->uarts_base   = ASPEED_DEV_UART0;
+    sc->irqmap       = aspeed_soc_ast2700a1_irqmap;
+    sc->memmap       = aspeed_soc_ast2700_memmap;
+}
+
 static const TypeInfo aspeed_soc_ast27x0_types[] = {
     {
         .name           = TYPE_ASPEED27X0_SOC,
@@ -1179,6 +1209,12 @@ static const TypeInfo aspeed_soc_ast27x0_types[] = {
         .instance_init  = aspeed_soc_ast2700_init,
         .class_init     = aspeed_soc_ast2700a1_class_init,
     },
+    {
+        .name           = "ast2700-a2",
+        .parent         = TYPE_ASPEED27X0_SOC,
+        .instance_init  = aspeed_soc_ast2700_init,
+        .class_init     = aspeed_soc_ast2700a2_class_init,
+    },
 };
 
 DEFINE_TYPES(aspeed_soc_ast27x0_types)
Signature · 1 line
2.53.0
#3 lore raw

[PULL 05/16] tests/functional/arm/aspeed_ast2600: Enhance OTP test with functional validation

In reply to Cédric Le Goater

From: Kane Chen <[email protected]>

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.

---
 .../arm/test_aspeed_ast2600_sdk_otp.py        | 34 +++++++++++++++++--
 1 file changed, 31 insertions(+), 3 deletions(-)
tests/functional/arm/test_aspeed_ast2600_sdk_otp.py +31 -3
index 4066532d5dec..31a1c3bed670 100755
@@ -7,6 +7,8 @@
 from qemu_test import Asset
 from aspeed import AspeedTest
 
+from qemu_test import wait_for_console_pattern, exec_command
+from qemu_test import exec_command_and_wait_for_pattern
 
 class AST2600Machine(AspeedTest):
 
@@ -16,6 +18,7 @@ class AST2600Machine(AspeedTest):
 
     def test_arm_ast2600_otp_blockdev_device(self):
         self.vm.set_machine("ast2600-evb")
+        self.require_netdev('user')
 
         image_path = self.archive_extract(self.ASSET_SDK_V1100_AST2600)
         otp_img = self.generate_otpmem_image()
@@ -25,9 +28,34 @@ def test_arm_ast2600_otp_blockdev_device(self):
             "-blockdev", f"driver=file,filename={otp_img},node-name=otp",
             "-global", "aspeed-otp.drive=otp",
         )
-        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=' +
+                self.scratch_file("ast2600-default", "image-bmc") +
+                ',if=mtd,format=raw',
+                '-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')
 
 
 if __name__ == '__main__':
Signature · 1 line
2.53.0
#4 lore raw

[PULL 07/16] hw/misc/aspeed_scu: Add AST2700 A2 silicon revisions

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

---
 include/hw/misc/aspeed_scu.h | 1 +
 hw/misc/aspeed_scu.c         | 1 +
 2 files changed, 2 insertions(+)
include/hw/misc/aspeed_scu.h +1 -0
index 313a79f2f76b..d003955428a5 100644
@@ -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
 
 #define ASPEED_IS_AST2500(si_rev)     ((((si_rev) >> 24) & 0xff) == 0x04)
 
hw/misc/aspeed_scu.c +1 -0
index 0edf9c1b1646..e4160356e443 100644
@@ -561,6 +561,7 @@ static uint32_t aspeed_silicon_revs[] = {
     AST1030_A1_SILICON_REV,
     AST1060_A2_SILICON_REV,
     AST2700_A1_SILICON_REV,
+    AST2700_A2_SILICON_REV,
 };
 
 bool is_supported_silicon_rev(uint32_t silicon_rev)
Signature · 1 line
2.53.0
#5 lore raw

[PULL 14/16] hw/arm/aspeed_ast27x0-fc: Switch AST2700 FC machine to A2 SoC

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

---
 hw/arm/aspeed_ast27x0-fc.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
hw/arm/aspeed_ast27x0-fc.c +6 -7
index 0502a137f3d9..9b9bb2df7580 100644
@@ -24,8 +24,8 @@
 #include "hw/arm/aspeed_coprocessor.h"
 #include "hw/arm/machines-qom.h"
 
-#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);
 
 static struct arm_boot_info ast2700fc_board_info = {
     .board_id = -1, /* device-tree-only board */
@@ -49,7 +49,6 @@ struct Ast2700FCState {
 };
 
 #define AST2700FC_BMC_RAM_SIZE (1 * GiB)
-#define AST2700FC_CM4_DRAM_SIZE (32 * MiB)
 
 #define AST2700FC_HW_STRAP1 0x000000C0
 #define AST2700FC_HW_STRAP2 0x00000003
@@ -58,7 +57,7 @@ struct Ast2700FCState {
 
 static bool ast2700fc_ca35_init(MachineState *machine, Error **errp)
 {
-    Ast2700FCState *s = AST2700A1FC(machine);
+    Ast2700FCState *s = AST2700FC(machine);
     AspeedSoCState *soc;
     AspeedSoCClass *sc;
     const char *bios_name = NULL;
@@ -66,7 +65,7 @@ static bool ast2700fc_ca35_init(MachineState *machine, Error **errp)
     DeviceState *dev = NULL;
     uint64_t rom_size;
 
-    object_initialize_child(OBJECT(s), "ca35", &s->ca35, "ast2700-a1");
+    object_initialize_child(OBJECT(s), "ca35", &s->ca35, "ast2700-a2");
     soc = ASPEED_SOC(&s->ca35);
     sc = ASPEED_SOC_GET_CLASS(soc);
 
@@ -135,7 +134,7 @@ static bool ast2700fc_ca35_init(MachineState *machine, Error **errp)
 
 static bool ast2700fc_ssp_init(MachineState *machine, Error **errp)
 {
-    Ast2700FCState *s = AST2700A1FC(machine);
+    Ast2700FCState *s = AST2700FC(machine);
     AspeedSoCState *psp = ASPEED_SOC(&s->ca35);
 
     s->ssp_sysclk = clock_new(OBJECT(s), "SSP_SYSCLK");
@@ -167,7 +166,7 @@ static bool ast2700fc_ssp_init(MachineState *machine, Error **errp)
 
 static bool ast2700fc_tsp_init(MachineState *machine, Error **errp)
 {
-    Ast2700FCState *s = AST2700A1FC(machine);
+    Ast2700FCState *s = AST2700FC(machine);
     AspeedSoCState *psp = ASPEED_SOC(&s->ca35);
 
     s->tsp_sysclk = clock_new(OBJECT(s), "TSP_SYSCLK");
Signature · 1 line
2.53.0
#6 lore raw

[PULL 03/16] hw/i2c/aspeed_i2c: Fix out-of-bounds read in I2C MMIO handlers

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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 = 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.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3290

---
 include/hw/i2c/aspeed_i2c.h |  3 +--
 hw/i2c/aspeed_i2c.c         | 22 ++++++++++------------
 2 files changed, 11 insertions(+), 14 deletions(-)
include/hw/i2c/aspeed_i2c.h +1 -2
index 68bd13802601..1ba0112cef6b 100644
@@ -36,8 +36,7 @@ OBJECT_DECLARE_TYPE(AspeedI2CState, AspeedI2CClass, ASPEED_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)
 
 #define A_I2CD_M_STOP_CMD       BIT(5)
 #define A_I2CD_M_RX_CMD         BIT(3)
hw/i2c/aspeed_i2c.c +10 -12
index fb3d6a560018..741c7a7297f5 100644
@@ -94,7 +94,7 @@ static uint64_t aspeed_i2c_bus_old_read(AspeedI2CBus *bus, hwaddr offset,
                                         unsigned size)
 {
     AspeedI2CClass *aic = ASPEED_I2C_GET_CLASS(bus->controller);
-    uint64_t value = bus->regs[offset / sizeof(*bus->regs)];
+    uint64_t value = -1;
 
     switch (offset) {
     case A_I2CD_FUN_CTRL:
@@ -105,7 +105,7 @@ static uint64_t aspeed_i2c_bus_old_read(AspeedI2CBus *bus, 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 = bus->regs[offset / sizeof(*bus->regs)];
         break;
     case A_I2CD_CMD:
         value = 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 = -1;
             break;
         }
+        value = 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 = -1;
+            break;
         }
+        value = bus->regs[offset / sizeof(*bus->regs)];
         break;
-
     default:
         qemu_log_mask(LOG_GUEST_ERROR,
                       "%s: Bad offset 0x%" HWADDR_PRIx "\n", __func__, offset);
-        value = -1;
         break;
     }
 
@@ -139,7 +138,7 @@ static uint64_t aspeed_i2c_bus_new_read(AspeedI2CBus *bus, hwaddr offset,
                                         unsigned size)
 {
     AspeedI2CClass *aic = ASPEED_I2C_GET_CLASS(bus->controller);
-    uint64_t value = bus->regs[offset / sizeof(*bus->regs)];
+    uint64_t value = -1;
 
     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 = bus->regs[offset / sizeof(*bus->regs)];
         break;
     case A_I2CC_DMA_ADDR:
         value = extract64(bus->dma_dram_offset, 0, 32);
         break;
-    case A_I2CS_INTR_STS:
-        break;
     case A_I2CM_CMD:
         value = 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 = -1;
+            break;
         }
+        value = bus->regs[offset / sizeof(*bus->regs)];
         break;
     default:
         qemu_log_mask(LOG_GUEST_ERROR,
                       "%s: Bad offset 0x%" HWADDR_PRIx "\n", __func__, offset);
-        value = -1;
         break;
     }
 
Signature · 1 line
2.53.0
#7 lore raw

[PULL 09/16] hw/arm/aspeed_ast27x0_evb: Add AST2700 A2 EVB machine

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

---
 hw/arm/aspeed_ast27x0_evb.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
hw/arm/aspeed_ast27x0_evb.c +27 -0
index 31f7d61117a9..32d944848ed0 100644
@@ -50,12 +50,39 @@ static void aspeed_machine_ast2700a1_evb_class_init(ObjectClass *oc,
     aspeed_machine_class_init_cpus_defaults(mc);
 }
 
+static void aspeed_machine_ast2700a2_evb_class_init(ObjectClass *oc,
+                                                    const void *data)
+{
+    MachineClass *mc = MACHINE_CLASS(oc);
+    AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
+
+    mc->desc = "Aspeed AST2700 A2 EVB (Cortex-A35)";
+    amc->soc_name  = "ast2700-a2";
+    amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
+    amc->hw_strap2 = AST2700_EVB_HW_STRAP2;
+    amc->fmc_model = "w25q01jvq";
+    amc->spi_model = "w25q512jv";
+    amc->num_cs    = 2;
+    amc->macs_mask = ASPEED_MAC0_ON | ASPEED_MAC1_ON | ASPEED_MAC2_ON;
+    amc->uart_default = ASPEED_DEV_UART12;
+    amc->i2c_init  = ast2700_evb_i2c_init;
+    amc->vbootrom = true;
+    mc->default_ram_size = 2 * GiB;
+    aspeed_machine_class_init_cpus_defaults(mc);
+}
+
 static const TypeInfo aspeed_ast27x0_evb_types[] = {
     {
         .name          = MACHINE_TYPE_NAME("ast2700a1-evb"),
         .parent        = TYPE_ASPEED_MACHINE,
         .class_init    = aspeed_machine_ast2700a1_evb_class_init,
         .interfaces    = aarch64_machine_interfaces,
+    },
+    {
+        .name          = MACHINE_TYPE_NAME("ast2700a2-evb"),
+        .parent        = TYPE_ASPEED_MACHINE,
+        .class_init    = aspeed_machine_ast2700a2_evb_class_init,
+        .interfaces    = aarch64_machine_interfaces,
     }
 };
 
Signature · 1 line
2.53.0
#8 lore raw

[PULL 10/16] hw/arm/aspeed_ast27x0_evb: Move ast2700-evb alias to AST2700 A2 EVB

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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".

---
 hw/arm/aspeed_ast27x0_evb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/aspeed_ast27x0_evb.c +1 -1
index 32d944848ed0..0ff1bebeb0ed 100644
@@ -34,7 +34,6 @@ static void aspeed_machine_ast2700a1_evb_class_init(ObjectClass *oc,
     MachineClass *mc = MACHINE_CLASS(oc);
     AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
 
-    mc->alias = "ast2700-evb";
     mc->desc = "Aspeed AST2700 A1 EVB (Cortex-A35)";
     amc->soc_name  = "ast2700-a1";
     amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
@@ -56,6 +55,7 @@ static void aspeed_machine_ast2700a2_evb_class_init(ObjectClass *oc,
     MachineClass *mc = MACHINE_CLASS(oc);
     AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
 
+    mc->alias = "ast2700-evb";
     mc->desc = "Aspeed AST2700 A2 EVB (Cortex-A35)";
     amc->soc_name  = "ast2700-a2";
     amc->hw_strap1 = AST2700_EVB_HW_STRAP1;
Signature · 1 line
2.53.0
#9 lore raw

[PULL 04/16] hw/i2c/aspeed_i2c: Increase I2C device register size to 0xA0

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

Fixes 4f53de2f103d6dfb5ad0498995d91a9694f40dd2 ("hw/arm/aspeed_ast27x0: Remove ast2700-a0 SOC")
---
 include/hw/i2c/aspeed_i2c.h |  2 +-
 hw/i2c/aspeed_i2c.c         | 36 ++++++++++++++++++------------------
 2 files changed, 19 insertions(+), 19 deletions(-)
include/hw/i2c/aspeed_i2c.h +1 -1
index 1ba0112cef6b..53a9dba71b07 100644
@@ -36,7 +36,7 @@ OBJECT_DECLARE_TYPE(AspeedI2CState, AspeedI2CClass, ASPEED_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)
 
 #define A_I2CD_M_STOP_CMD       BIT(5)
 #define A_I2CD_M_RX_CMD         BIT(3)
hw/i2c/aspeed_i2c.c +18 -18
index 741c7a7297f5..122bfdd63dca 100644
@@ -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 *klass, const void *data)
     dc->desc = "ASPEED 2700 I2C Controller";
 
     aic->num_busses = 16;
-    aic->reg_size = 0x80;
-    aic->reg_gap_size = 0x80;
+    aic->reg_size = 0xa0;
+    aic->reg_gap_size = 0x60;
     aic->gap = -1; /* no gap */
     aic->bus_get_irq = aspeed_2600_i2c_bus_get_irq;
     aic->pool_size = 0x20;
Signature · 1 line
2.53.0
#10 lore raw

[PULL 01/16] tests/functional: Split Aspeed ARM tests into separate files

In reply to Cédric Le Goater

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.

---
 tests/functional/arm/meson.build              | 14 +++--
 tests/functional/arm/test_aspeed_ast1060.py   |  0
 ...00.py => 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 => 100755 tests/functional/arm/test_aspeed_ast1060.py
 rename tests/functional/arm/{test_aspeed_ast2500.py => test_aspeed_ast2500_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
tests/functional/arm/meson.build +10 -4
index 1762a496049d..175a83a2acd7 100644
@@ -4,9 +4,12 @@ test_arm_timeouts = {
   '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 = [
   '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',
tests/functional/arm/test_aspeed_ast1060.py +0 -0
old mode 100644
new mode 100755
tests/functional/arm/test_aspeed_ast2500_buildroot.py renamed from tests/functional/arm/test_aspeed_ast2500.py +0 -14
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
@@ -37,20 +37,6 @@ def test_arm_ast2500_evb_buildroot(self):
 
         self.do_test_arm_aspeed_buildroot_poweroff()
 
-    ASSET_SDK_V1000_AST2500 = Asset(
-        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v10.00/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__ == '__main__':
     AspeedTest.main()
tests/functional/arm/test_aspeed_ast2500_sdk.py new file +29 -0
new file mode 100755
index 000000000000..2c9211aeddc8
@@ -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 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v10.00/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__ == '__main__':
+    AspeedTest.main()
tests/functional/arm/test_aspeed_ast2600_buildroot.py +1 -40

53 lines not on this page · raw message

tests/functional/arm/test_aspeed_ast2600_buildroot_tpm.py new file +60 -0

60 lines not on this page · raw message

tests/functional/arm/test_aspeed_ast2600_sdk.py +0 -15
index 6236aeb11cd2..971fa3390d21 100755
@@ -70,21 +70,6 @@ def test_arm_ast2600_evb_sdk(self):
              '/sbin/hwclock -f /dev/rtc1', year)
         self.do_ast2600_pcie_test()
 
-    def test_arm_ast2600_otp_blockdev_device(self):
-        self.vm.set_machine("ast2600-evb")
-
-        image_path = self.archive_extract(self.ASSET_SDK_V1100_AST2600)
-        otp_img = self.generate_otpmem_image()
-
-        self.vm.set_console()
-        self.vm.add_args(
-            "-blockdev", f"driver=file,filename={otp_img},node-name=otp",
-            "-global", "aspeed-otp.drive=otp",
-        )
-        self.do_test_arm_aspeed_sdk_start(
-            self.scratch_file("ast2600-default", "image-bmc"))
-        self.wait_for_console_pattern("ast2600-default login:")
-
 
 if __name__ == '__main__':
     AspeedTest.main()
tests/functional/arm/test_aspeed_ast2600_sdk_otp.py new file +34 -0
new file mode 100755
index 000000000000..4066532d5dec
@@ -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 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-obmc.tar.gz',
+        '64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93')
+
+    def test_arm_ast2600_otp_blockdev_device(self):
+        self.vm.set_machine("ast2600-evb")
+
+        image_path = self.archive_extract(self.ASSET_SDK_V1100_AST2600)
+        otp_img = self.generate_otpmem_image()
+
+        self.vm.set_console()
+        self.vm.add_args(
+            "-blockdev", f"driver=file,filename={otp_img},node-name=otp",
+            "-global", "aspeed-otp.drive=otp",
+        )
+        self.do_test_arm_aspeed_sdk_start(
+            self.scratch_file("ast2600-default", "image-bmc"))
+        self.wait_for_console_pattern("ast2600-default login:")
+
+
+if __name__ == '__main__':
+    AspeedTest.main()
Signature · 1 line
2.53.0
#11 lore raw

[PULL 16/16] tests/functional/aarch64/test_aspeed_ast2700fc: Use AST2700 A2 SDK image for FC tests

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

Update AST2700 FC functional tests to use the AST2700 A2 SDK v11.00 image.

---
 .../functional/aarch64/test_aspeed_ast2700fc.py  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
tests/functional/aarch64/test_aspeed_ast2700fc.py +8 -8
index 47e56dcfc50c..51ee8bc78791 100755
@@ -62,8 +62,8 @@ def load_ast2700fc_coprocessor(self, name):
                              f'loader,file={file},cpu-num={cpu_num}')
 
     ASSET_SDK_V1100_AST2700 = Asset(
-            'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2700-a1-obmc.tar.gz',
-            'd5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525')
+            'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2700-default-obmc.tar.gz',
+            'e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc')
 
     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')
 
     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')
 
     def start_ast2700fc_test(self, name):
         ca35_core = 4
@@ -153,8 +153,8 @@ def test_aarch64_ast2700fc_sdk_v11_00(self):
         self.require_netdev('user')
 
         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')
 
         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()
 
Signature · 1 line
2.53.0
#12 lore raw

[PULL 11/16] tests/qtest/ast2700-hace-test: Use ast2700-evb alias for AST2700 HACE tests

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

---
 tests/qtest/ast2700-hace-test.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
tests/qtest/ast2700-hace-test.c +11 -11
index a400e2962b0b..508a34dd6c65 100644
@@ -23,57 +23,57 @@ static const struct AspeedMasks as2700_masks = {
 /* ast2700 */
 static void test_md5_ast2700(void)
 {
-    aspeed_test_md5("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_md5("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha256_ast2700(void)
 {
-    aspeed_test_sha256("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha256("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha256_sg_ast2700(void)
 {
-    aspeed_test_sha256_sg("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha256_sg("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha384_ast2700(void)
 {
-    aspeed_test_sha384("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha384("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha384_sg_ast2700(void)
 {
-    aspeed_test_sha384_sg("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha384_sg("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha512_ast2700(void)
 {
-    aspeed_test_sha512("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha512("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha512_sg_ast2700(void)
 {
-    aspeed_test_sha512_sg("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha512_sg("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha256_accum_ast2700(void)
 {
-    aspeed_test_sha256_accum("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha256_accum("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha384_accum_ast2700(void)
 {
-    aspeed_test_sha384_accum("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha384_accum("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_sha512_accum_ast2700(void)
 {
-    aspeed_test_sha512_accum("-machine ast2700a1-evb", 0x12070000, 0x400000000);
+    aspeed_test_sha512_accum("-machine ast2700-evb", 0x12070000, 0x400000000);
 }
 
 static void test_addresses_ast2700(void)
 {
-    aspeed_test_addresses("-machine ast2700a1-evb", 0x12070000, &as2700_masks);
+    aspeed_test_addresses("-machine ast2700-evb", 0x12070000, &as2700_masks);
 }
 
 int main(int argc, char **argv)
Signature · 1 line
2.53.0
#13 lore raw

[PULL 12/16] tests/functional/aarch64/test_aspeed_ast2700: Rename AST2700 A1 test to reduce test runtime

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

---
 tests/functional/aarch64/meson.build                          | 4 ++--
 .../{test_aspeed_ast2700.py => test_aspeed_ast2700a1.py}      | 0
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename tests/functional/aarch64/{test_aspeed_ast2700.py => test_aspeed_ast2700a1.py} (100%)
tests/functional/aarch64/meson.build +2 -2
index 5ad52f93e1d7..b5dd674bac61 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 test_aarch64_timeouts = {
-  'aspeed_ast2700' : 600,
+  'aspeed_ast2700a1' : 600,
   'aspeed_ast2700fc' : 600,
   'device_passthrough' : 720,
   'imx8mp_evk' : 240,
@@ -23,7 +23,7 @@ tests_aarch64_system_quick = [
 ]
 
 tests_aarch64_system_thorough = [
-  'aspeed_ast2700',
+  'aspeed_ast2700a1',
   'aspeed_ast2700fc',
   'device_passthrough',
   'hotplug_pci',
tests/functional/aarch64/test_aspeed_ast2700a1.py renamed from tests/functional/aarch64/test_aspeed_ast2700.py +0 -0
similarity index 100%
rename from tests/functional/aarch64/test_aspeed_ast2700.py
rename to tests/functional/aarch64/test_aspeed_ast2700a1.py
Signature · 1 line
2.53.0
#14 lore raw

[PULL 13/16] tests/functional/aarch64/test_aspeed_ast2700a2: Add AST2700 A2 EVB functional tests

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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".

---
 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
tests/functional/aarch64/meson.build +2 -0
index b5dd674bac61..49eca1205898 100644
@@ -2,6 +2,7 @@
 
 test_aarch64_timeouts = {
   'aspeed_ast2700a1' : 600,
+  'aspeed_ast2700a2' : 600,
   'aspeed_ast2700fc' : 600,
   'device_passthrough' : 720,
   'imx8mp_evk' : 240,
@@ -24,6 +25,7 @@ tests_aarch64_system_quick = [
 
 tests_aarch64_system_thorough = [
   'aspeed_ast2700a1',
+  'aspeed_ast2700a2',
   'aspeed_ast2700fc',
   'device_passthrough',
   'hotplug_pci',
tests/functional/aarch64/test_aspeed_ast2700a2.py new file +190 -0

190 lines not on this page · raw message

Signature · 1 line
2.53.0
#15 lore raw

[PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

In reply to Cédric Le Goater

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.

---
 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
tests/functional/arm/meson.build +4 -0
index 175a83a2acd7..2f538f29a2de 100644
@@ -5,10 +5,12 @@ test_arm_timeouts = {
   '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 = [
   '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',
tests/functional/arm/test_aspeed_ast2500_sdk_515.py new file +29 -0
new file mode 100755
index 000000000000..464a4e43961d
@@ -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 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/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__ == '__main__':
+    AspeedTest.main()
tests/functional/arm/test_aspeed_ast2600_sdk_515.py new file +29 -0
new file mode 100755
index 000000000000..f48da301d567
@@ -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 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/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__ == '__main__':
+    AspeedTest.main()
Signature · 1 line
2.53.0
#16 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

tests/functional/arm/test_aspeed_ast2600_sdk_515.py line 15

Quoted 10 lines · Cédric Le Goater

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.

tests/functional/arm/test_aspeed_ast2600_sdk_515.py new file +3 -0
+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz',
+        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

thanks
-- PMm

#17 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 13 lines · Peter Maydell

tests/functional/arm/test_aspeed_ast2600_sdk_515.py line 15

Quoted 10 lines · Cédric Le Goater

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.

tests/functional/arm/test_aspeed_ast2600_sdk_515.py new file +3 -0
+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz',
+        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')
Quoted 8 lines

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

thanks
-- PMM

#18 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

+Jamin,

Quoted 20 lines · Peter Maydell
Quoted 19 lines · Peter Maydell

tests/functional/arm/test_aspeed_ast2600_sdk_515.py line 15

Quoted 10 lines · Cédric Le Goater

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.

tests/functional/arm/test_aspeed_ast2600_sdk_515.py new file +3 -0
+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz',
+        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Quoted 6 lines
Quoted 2 lines

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

Yes. There has been a considerable increase in size over the last 6m.

Thanks,

C.

#19 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

In reply to Peter Maydell
Quoted 20 lines · Peter Maydell
Quoted 19 lines · Peter Maydell

tests/functional/arm/test_aspeed_ast2600_sdk_515.py line 15

Quoted 10 lines · Cédric Le Goater

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.

tests/functional/arm/test_aspeed_ast2600_sdk_515.py new file +3 -0
+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz',
+        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Quoted 6 lines
Quoted 2 lines

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93 ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
#20 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 6 lines · Daniel P. Berrangé
Quoted 3 lines · Peter Maydell

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

Quoted 8 lines

I see 2 big assets from aspeed only

64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93 ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

-r--r----- 1 pm215 pm215 519M Feb 16 11:07 e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc -r--r----- 1 pm215 pm215 520M Feb 5 15:57 d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525 -r--r----- 1 pm215 pm215 581M Feb 16 11:15 0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0 -r--r----- 1 pm215 pm215 582M Feb 5 15:59 4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f -r--r----- 1 pm215 pm215 1.1G Feb 16 11:11 ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6 -r--r----- 1 pm215 pm215 1.2G Feb 5 16:02 64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93

All these hash values turn up in tests/functional/arm/test_aspeed_* so they're not stale leftovers.

thanks
-- PMM

#21 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

In reply to Daniel P. Berrangé
Quoted 34 lines · Daniel P. Berrangé
Quoted 20 lines · Peter Maydell
Quoted 19 lines · Peter Maydell

tests/functional/arm/test_aspeed_ast2600_sdk_515.py line 15

Quoted 10 lines · Cédric Le Goater

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.

tests/functional/arm/test_aspeed_ast2600_sdk_515.py new file +3 -0
+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz',
+        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Quoted 6 lines
Quoted 2 lines

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93
   ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6
Quoted 5 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

With regards,
Daniel

These are the files :

5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451  166M  ast2500-default-515-obmc.tar.gz
2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe  166M  ast2500-default-obmc.tar.gz
ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6  1.1G  ast2600-default-515-obmc.tar.gz
64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93  1.2G  ast2600-default-obmc.tar.gz
4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f  582M  ast2700-a1-dcscm-obmc.tar.gz
d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525  520M  ast2700-a1-obmc.tar.gz
0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0  581M  ast2700-dcscm-obmc.tar.gz
e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc  519M  ast2700-default-obmc.tar.gz

Thanks,

C.

#22 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hello,

+ Jamin,

Quoted 43 lines · Cédric Le Goater
Quoted 34 lines · Daniel P. Berrangé
Quoted 20 lines · Peter Maydell
Quoted 19 lines · Peter Maydell
Quoted 10 lines · Cédric Le Goater

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.

+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz', +        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Quoted 6 lines
Quoted 2 lines

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93 ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 5 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

With regards,
Daniel

These are the files :

Quoted 8 lines

5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451  166M  ast2500-default-515-obmc.tar.gz 2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe  166M  ast2500-default-obmc.tar.gz ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6  1.1G  ast2600-default-515-obmc.tar.gz 64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93  1.2G  ast2600-default-obmc.tar.gz 4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f  582M  ast2700-a1-dcscm-obmc.tar.gz d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525  520M  ast2700-a1-obmc.tar.gz 0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0  581M  ast2700-dcscm-obmc.tar.gz e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc  519M  ast2700-default-obmc.tar.gz

The image size for v09.08 was around 250 MB for the ast2500, ast2600 and ast2700 SoCs. It would be best to keep it like this for testing.

Would it be possible in v12.00 ?

Thanks,

C.

#23 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hi Cedric,

Due to my vacation, I will be back in the office next week. I will update you then.

Thanks,
Jamin

取得 Android 版 Outlook<https://aka.ms/AAb9ysg>
________________________________
From: Cédric Le Goater <[email protected]>
Sent: Tuesday, February 17, 2026 6:19:04 PM
To: Daniel P. Berrangé <[email protected]>; Peter Maydell <[email protected]>
Cc: Thomas Huth <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; Kane Chen <[email protected]>; Jamin Lin <[email protected]>
Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hello,

+ Jamin,

Quoted 43 lines · Cédric Le Goater
Quoted 34 lines · Daniel P. Berrangé
Quoted 20 lines · Peter Maydell
Quoted 19 lines · Peter Maydell

tests/functional/arm/test_aspeed_ast2600_sdk_515.py line 15

Quoted 10 lines · Cédric Le Goater

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.

tests/functional/arm/test_aspeed_ast2600_sdk_515.py new file +3 -0
+    ASSET_SDK_V1100_AST2600_515 = Asset(
+        'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.00/ast2600-default-515-obmc.tar.gz',
+        'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Quoted 6 lines
Quoted 2 lines

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93
   ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6
Quoted 5 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

With regards,
Daniel

These are the files :

Quoted 8 lines
5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451  166M  ast2500-default-515-obmc.tar.gz
2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe  166M  ast2500-default-obmc.tar.gz
ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6  1.1G  ast2600-default-515-obmc.tar.gz
64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93  1.2G  ast2600-default-obmc.tar.gz
4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f  582M  ast2700-a1-dcscm-obmc.tar.gz
d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525  520M  ast2700-a1-obmc.tar.gz
0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0  581M  ast2700-dcscm-obmc.tar.gz
e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc  519M  ast2700-default-obmc.tar.gz

The image size for v09.08 was around 250 MB for the ast2500, ast2600 and ast2700 SoCs. It would be best to keep it like this for testing.

Would it be possible in v12.00 ?

Thanks,

C.

#24 lore raw

RE: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

In reply to Cédric Le Goater

+ Troy

Hi Cédric,

Quoted 89 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hello,

+ Jamin,

Quoted 3 lines · Cédric Le Goater
Quoted 2 lines · Daniel P. Berrangé
Quoted 1 line · Peter Maydell

On Mon, 16 Feb 2026 at 11:13, Peter Maydell <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Thu, 12 Feb 2026 at 21:42, Cédric Le Goater <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

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.

+    ASSET_SDK_V1100_AST2600_515 = Asset(
+

+'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+00/ast2600-default-515-obmc.tar.gz',
+

+'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 1 line

+')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7

039e93

Quoted 1 line
Quoted 1 line

   ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a857

44c0f6

Quoted 11 lines
Quoted 7 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

With regards,
Daniel

These are the files :

5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451
166M

Quoted 2 lines

ast2500-default-515-obmc.tar.gz

2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe
166M

Quoted 2 lines

ast2500-default-obmc.tar.gz

ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6
1.1G

Quoted 2 lines

ast2600-default-515-obmc.tar.gz

64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93 1.2G

Quoted 2 lines

ast2600-default-obmc.tar.gz

4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f
582M

Quoted 2 lines

ast2700-a1-dcscm-obmc.tar.gz

d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525 520M

Quoted 2 lines

ast2700-a1-obmc.tar.gz

0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0
581M

Quoted 2 lines

ast2700-dcscm-obmc.tar.gz

Quoted 9 lines

e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc
519M

Quoted 1 line

ast2700-default-obmc.tar.gz

The image size for v09.08 was around 250 MB for the ast2500, ast2600 and ast2700 SoCs. It would be best to keep it like this for testing.

Would it be possible in v12.00 ?

Thank you for your suggestion and for reporting this issue.

To allow QEMU to accept the image tarball size, I will create new tarballs specifically for QEMU functional testing.

The "ast2600-default-image.tar.gz" tarball will be based on "ast2600-default-obmc.tar.gz".
It will contain only the necessary images from ast2600-default-obmc.tar.gz for QEMU functional testing, such as image-bmc. Including only image-bmc in the tarball will significantly reduce its size. In SDK v11.01, the size should be around 64MB.

I plan to create the following new tarballs for QEMU functional testing:
1. ast2600-default-image.tar.gz
2. ast2600-default-66-image.tar.gz
3. ast2700-default-image.tar.gz
4, ast2700-a1-image.tar.gz
5. ast2700-dcscm-image.tar.gz
6. ast2700-a1-dcscm-image.tar.gz

ASPEED will release v11.01 this week. After the v11.01 release, I will update these tarballs and the QEMU functional tests accordingly. Sorry for the late reply and for any inconvenience caused.

Jamin

Quoted 7 lines

Thanks,

C.

#25 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 104 lines · Jamin Lin

+ Troy

Hi Cédric,

Quoted 89 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hello,

+ Jamin,

Quoted 3 lines · Cédric Le Goater
Quoted 2 lines · Daniel P. Berrangé
Quoted 1 line · Peter Maydell

On Mon, 16 Feb 2026 at 11:13, Peter Maydell <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Thu, 12 Feb 2026 at 21:42, Cédric Le Goater <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

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.

+    ASSET_SDK_V1100_AST2600_515 = Asset(
+

+'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+00/ast2600-default-515-obmc.tar.gz',
+

+'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 1 line

+')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7

039e93

Quoted 1 line
Quoted 1 line

   ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a857

44c0f6

Quoted 11 lines
Quoted 7 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

With regards,
Daniel

These are the files :

5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451
166M

Quoted 2 lines

ast2500-default-515-obmc.tar.gz

2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe
166M

Quoted 2 lines

ast2500-default-obmc.tar.gz

ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6
1.1G

Quoted 2 lines

ast2600-default-515-obmc.tar.gz

64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93
  1.2G

Quoted 2 lines

ast2600-default-obmc.tar.gz

4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f
582M

Quoted 2 lines

ast2700-a1-dcscm-obmc.tar.gz

d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525 520M

Quoted 2 lines

ast2700-a1-obmc.tar.gz

0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0
581M

Quoted 2 lines

ast2700-dcscm-obmc.tar.gz

Quoted 9 lines

e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc
519M

Quoted 1 line

ast2700-default-obmc.tar.gz

The image size for v09.08 was around 250 MB for the ast2500, ast2600 and ast2700 SoCs. It would be best to keep it like this for testing.

Would it be possible in v12.00 ?

Quoted 7 lines

Thank you for your suggestion and for reporting this issue.

To allow QEMU to accept the image tarball size, I will create new tarballs specifically for QEMU functional testing.

The "ast2600-default-image.tar.gz" tarball will be based on "ast2600-default-obmc.tar.gz".
It will contain only the necessary images from ast2600-default-obmc.tar.gz for QEMU functional testing, such as image-bmc. Including only image-bmc in the tarball will significantly reduce its size. In SDK v11.01, the size should be around 64MB.

I think the increase in size comes mainly from the rsa* directories. Removing these would save 1G.

Can you keep the same v09.08 contents : u-boot.bin, kernel, dtb, rootfs etc ? It is good to have the different OpenBMC files for tests too.

Quoted 7 lines

I plan to create the following new tarballs for QEMU functional testing:
1. ast2600-default-image.tar.gz
2. ast2600-default-66-image.tar.gz
3. ast2700-default-image.tar.gz
4, ast2700-a1-image.tar.gz
5. ast2700-dcscm-image.tar.gz
6. ast2700-a1-dcscm-image.tar.gz

ok. No need to change the AST2500 tarballs.

Quoted 1 line

ASPEED will release v11.01 this week. After the v11.01 release, I will update these tarballs and the QEMU functional tests accordingly.

Great !

Thanks,

C.

#26 lore raw

RE: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hi Cédric,

Quoted 128 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 35 lines · Jamin Lin

+ Troy

Hi Cédric,

Quoted 31 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hello,

+ Jamin,

Quoted 4 lines · Cédric Le Goater
Quoted 3 lines · Daniel P. Berrangé
Quoted 2 lines · Peter Maydell

On Mon, 16 Feb 2026 at 11:13, Peter Maydell
<[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Thu, 12 Feb 2026 at 21:42, Cédric Le Goater <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

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.

+    ASSET_SDK_V1100_AST2600_515 = Asset(
+

+'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+00/ast2600-default-515-obmc.tar.gz',
+

+'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 1 line

+')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c

8c7

Quoted 2 lines
Quoted 2 lines

039e93

Quoted 1 line
Quoted 1 line

   ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a

857

Quoted 6 lines
Quoted 6 lines

44c0f6

Quoted 5 lines
Quoted 5 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

With regards,
Daniel

These are the files :

5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451

Quoted 4 lines
Quoted 4 lines

166M

Quoted 2 lines

ast2500-default-515-obmc.tar.gz

2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe

Quoted 4 lines
Quoted 4 lines

166M

Quoted 2 lines

ast2500-default-obmc.tar.gz

ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 4 lines
Quoted 4 lines

1.1G

Quoted 2 lines

ast2600-default-515-obmc.tar.gz

64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93

Quoted 4 lines
Quoted 4 lines

  1.2G

Quoted 2 lines

ast2600-default-obmc.tar.gz

4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f

Quoted 8 lines
Quoted 8 lines

582M

Quoted 2 lines

ast2700-a1-dcscm-obmc.tar.gz

d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525 520M

Quoted 2 lines

ast2700-a1-obmc.tar.gz

0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0

Quoted 4 lines
Quoted 4 lines

581M

Quoted 2 lines

ast2700-dcscm-obmc.tar.gz

e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc

Quoted 6 lines
Quoted 6 lines

519M

Quoted 1 line

ast2700-default-obmc.tar.gz

The image size for v09.08 was around 250 MB for the ast2500, ast2600 and ast2700 SoCs. It would be best to keep it like this for testing.

Quoted 7 lines
Quoted 2 lines

Would it be possible in v12.00 ?

Thank you for your suggestion and for reporting this issue.

To allow QEMU to accept the image tarball size, I will create new tarballs

specifically for QEMU functional testing.

Quoted 2 lines

The "ast2600-default-image.tar.gz" tarball will be based on

"ast2600-default-obmc.tar.gz".

Quoted 1 line

It will contain only the necessary images from ast2600-default-obmc.tar.gz

for QEMU functional testing, such as image-bmc.

Quoted 9 lines
Quoted 1 line

Including only image-bmc in the tarball will significantly reduce its size. In

SDK v11.01, the size should be around 64MB.

I think the increase in size comes mainly from the rsa* directories. Removing these would save 1G.

Can you keep the same v09.08 contents : u-boot.bin, kernel, dtb, rootfs etc ? It is good to have the different OpenBMC files for tests too.

Okay.

Quoted 10 lines
Quoted 8 lines

I plan to create the following new tarballs for QEMU functional testing:
1. ast2600-default-image.tar.gz
2. ast2600-default-66-image.tar.gz
3. ast2700-default-image.tar.gz
4, ast2700-a1-image.tar.gz
5. ast2700-dcscm-image.tar.gz
6. ast2700-a1-dcscm-image.tar.gz

ok. No need to change the AST2500 tarballs.

Do we need to generate ast2700-dcscm-image.tar.gz and ast2700-a1-dcscm-image.tar.gz? These packages do not include signed images in v11.00 (e.g., the ecdsa384 and ecdsa384-lms directories). Furthermore, the contents of ast2700-dcscm-obmc.tar.gz are identical between versions v09.08 and v11.00.

Thanks,
Jamin

Quoted 8 lines
Quoted 1 line

ASPEED will release v11.01 this week. After the v11.01 release, I will update

these tarballs and the QEMU functional tests accordingly.

Great !

Thanks,

C.

#27 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 148 lines · Jamin Lin

Hi Cédric,

Quoted 128 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 35 lines · Jamin Lin

+ Troy

Hi Cédric,

Quoted 31 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hello,

+ Jamin,

Quoted 4 lines · Cédric Le Goater
Quoted 3 lines · Daniel P. Berrangé
Quoted 2 lines · Peter Maydell

On Mon, 16 Feb 2026 at 11:13, Peter Maydell
<[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Thu, 12 Feb 2026 at 21:42, Cédric Le Goater <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

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.

+    ASSET_SDK_V1100_AST2600_515 = Asset(
+

+'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+00/ast2600-default-515-obmc.tar.gz',
+

+'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 1 line

+')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c

8c7

Quoted 2 lines
Quoted 2 lines

039e93

Quoted 1 line
Quoted 1 line

   ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a

857

Quoted 6 lines
Quoted 6 lines

44c0f6

Quoted 5 lines
Quoted 5 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

With regards,
Daniel

These are the files :

5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451

Quoted 4 lines
Quoted 4 lines
   166M
Quoted 2 lines

ast2500-default-515-obmc.tar.gz

2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe

Quoted 4 lines
Quoted 4 lines
   166M
Quoted 2 lines

ast2500-default-obmc.tar.gz

ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 4 lines
Quoted 4 lines
   1.1G
Quoted 2 lines

ast2600-default-515-obmc.tar.gz

64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93

Quoted 4 lines
Quoted 4 lines

  1.2G

Quoted 2 lines

ast2600-default-obmc.tar.gz

4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f

Quoted 8 lines
Quoted 8 lines
   582M
Quoted 2 lines

ast2700-a1-dcscm-obmc.tar.gz

d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525 520M

Quoted 2 lines

ast2700-a1-obmc.tar.gz

0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0

Quoted 4 lines
Quoted 4 lines
   581M
Quoted 2 lines

ast2700-dcscm-obmc.tar.gz

e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc

Quoted 6 lines
Quoted 6 lines
   519M
Quoted 1 line

ast2700-default-obmc.tar.gz

The image size for v09.08 was around 250 MB for the ast2500, ast2600 and ast2700 SoCs. It would be best to keep it like this for testing.

Quoted 7 lines
Quoted 2 lines

Would it be possible in v12.00 ?

Thank you for your suggestion and for reporting this issue.

To allow QEMU to accept the image tarball size, I will create new tarballs

specifically for QEMU functional testing.

Quoted 2 lines

The "ast2600-default-image.tar.gz" tarball will be based on

"ast2600-default-obmc.tar.gz".

Quoted 1 line

It will contain only the necessary images from ast2600-default-obmc.tar.gz

for QEMU functional testing, such as image-bmc.

Quoted 9 lines
Quoted 1 line

Including only image-bmc in the tarball will significantly reduce its size. In

SDK v11.01, the size should be around 64MB.

I think the increase in size comes mainly from the rsa* directories. Removing these would save 1G.

Can you keep the same v09.08 contents : u-boot.bin, kernel, dtb, rootfs etc ? It is good to have the different OpenBMC files for tests too.

Okay.

Quoted 8 lines
Quoted 8 lines

I plan to create the following new tarballs for QEMU functional testing:
1. ast2600-default-image.tar.gz
2. ast2600-default-66-image.tar.gz
3. ast2700-default-image.tar.gz
4, ast2700-a1-image.tar.gz
5. ast2700-dcscm-image.tar.gz
6. ast2700-a1-dcscm-image.tar.gz

Quoted 3 lines
Quoted 2 lines

ok. No need to change the AST2500 tarballs.

Do we need to generate ast2700-dcscm-image.tar.gz and ast2700-a1-dcscm-image.tar.gz?

They slightly exceed the 512 MB limit that QEMU was planning to enforce.

  581.6 MiB [#######            ]  ast2700-a1-dcscm-obmc.tar.gz
  580.3 MiB [#######            ]  ast2700-dcscm-obmc.tar.gz
  519.3 MiB [######             ]  ast2700-a1-obmc.tar.gz
  518.4 MiB [######             ]  ast2700-default-obmc.tar.gz

I suppose this is sufficient for the time being. If you find ways to reduce their size, that would be welcome.

Coming back to your proposal, a longer-term solution would be indeed to provide a new set of artifacts, one for each QEMU machine, containing only what is required to run the functional tests :

<version>/<QEMU machine name>-qemu.tar.gz

What would be easier for you : change the existing tarballs or add new ones for QEMU ?

Thanks,

C.

Quoted 15 lines

These packages do not include signed images in v11.00 (e.g., the ecdsa384 and ecdsa384-lms directories). Furthermore, the contents of ast2700-dcscm-obmc.tar.gz are identical between versions v09.08 and v11.00.

Thanks,
Jamin

Quoted 8 lines
Quoted 1 line

ASPEED will release v11.01 this week. After the v11.01 release, I will update

these tarballs and the QEMU functional tests accordingly.

Great !

Thanks,

C.

#28 lore raw

RE: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hi Cédric

Quoted 184 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 38 lines · Jamin Lin

Hi Cédric,

Quoted 36 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Quoted 32 lines · Jamin Lin

+ Troy

Hi Cédric,

Quoted 28 lines

Subject: Re: [PULL 02/16] tests/functional: Add SDK tests with Linux
5.15

Hello,

+ Jamin,

Quoted 4 lines · Cédric Le Goater
Quoted 3 lines · Daniel P. Berrangé
Quoted 2 lines · Peter Maydell

On Mon, 16 Feb 2026 at 11:13, Peter Maydell
<[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On Thu, 12 Feb 2026 at 21:42, Cédric Le Goater <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

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.

+    ASSET_SDK_V1100_AST2600_515 = Asset(
+

+'https://github.com/AspeedTech-BMC/openbmc/releases/download/v11.

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+00/ast2600-default-515-obmc.tar.gz',
+

+'ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 1 line

+')

This asset file is over a gigabyte in size, it takes forever to download, and our functional test asset download framework has no mechanism for giving any kind of progress indication for downloads (or even for telling you the URL it is downloading until after the download is complete).

Can we have a size limit for test assets please, at least until the framework can support large assets a bit better ?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Followup: we have six test assets that are over 500MB in size, and they are all aspeed tests. Please can you have a look at slimming these down?

I see 2 big assets from aspeed only

   64d8926a7d01b649168be96c986603b5690f06391286c438a3a7

72c

Quoted 3 lines
Quoted 3 lines

8c7

Quoted 2 lines
Quoted 2 lines

039e93

Quoted 1 line
Quoted 1 line

   ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d

12a

Quoted 7 lines
Quoted 7 lines

857

Quoted 6 lines
Quoted 6 lines

44c0f6

Quoted 5 lines
Quoted 5 lines

what are the names of the other files in $HOME/.cache/qemu/download you have that are over 500 MB ?

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

With regards,
Daniel

These are the files :

5732255d4617d98b76bbbc116d331d6ac89906fa212969eb8213fdc4aea86451

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
   166M
Quoted 2 lines

ast2500-default-515-obmc.tar.gz

2768e2526bdd3f928df31341801cb6de3b9a40ca942b538a3d0800cd26fbdbfe

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
   166M
Quoted 2 lines

ast2500-default-obmc.tar.gz

ece1a934095378929780f03e7d092e562f4b33b2841b80ad7c3d12a85744c0f6

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
   1.1G
Quoted 2 lines

ast2600-default-515-obmc.tar.gz

64d8926a7d01b649168be96c986603b5690f06391286c438a3a772c8c7039e93

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

  1.2G

Quoted 2 lines

ast2600-default-obmc.tar.gz

4f8778be176ece1b57d33c4aee13bb989be114c3e4703150eaeb6f996bd5587f

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
   582M
Quoted 2 lines

ast2700-a1-dcscm-obmc.tar.gz

d5ceed511cd0dfefbb102fff2d731159e0472948a28066dc0d90bcd54be76525

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

520M

Quoted 2 lines

ast2700-a1-obmc.tar.gz

0e93f7976139da71fab9df7952a58bdd80650e23e7abf5853b0eb6695deb02d0

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
   581M
Quoted 2 lines

ast2700-dcscm-obmc.tar.gz

e2b8f043fe8063dd3b6ded93422e38bd41914dc9c3202199507652df024de4dc

Quoted 40 lines
Quoted 23 lines
Quoted 6 lines
Quoted 6 lines
   519M
Quoted 1 line

ast2700-default-obmc.tar.gz

The image size for v09.08 was around 250 MB for the ast2500, ast2600 and ast2700 SoCs. It would be best to keep it like this for testing.

Quoted 8 lines
Quoted 2 lines

Would it be possible in v12.00 ?

Thank you for your suggestion and for reporting this issue.

To allow QEMU to accept the image tarball size, I will create new tarballs

specifically for QEMU functional testing.

Quoted 2 lines

The "ast2600-default-image.tar.gz" tarball will be based on

"ast2600-default-obmc.tar.gz".

Quoted 2 lines

It will contain only the necessary images from
ast2600-default-obmc.tar.gz

for QEMU functional testing, such as image-bmc.

Quoted 2 lines

Including only image-bmc in the tarball will significantly reduce its size. In

Quoted 8 lines

SDK v11.01, the size should be around 64MB.

I think the increase in size comes mainly from the rsa* directories. Removing these would save 1G.

Can you keep the same v09.08 contents : u-boot.bin, kernel, dtb, rootfs etc ? It is good to have the different OpenBMC files for tests too.

Okay.

Quoted 8 lines
Quoted 8 lines

I plan to create the following new tarballs for QEMU functional testing:
1. ast2600-default-image.tar.gz
2. ast2600-default-66-image.tar.gz
3. ast2700-default-image.tar.gz
4, ast2700-a1-image.tar.gz
5. ast2700-dcscm-image.tar.gz
6. ast2700-a1-dcscm-image.tar.gz

Quoted 3 lines
Quoted 2 lines

ok. No need to change the AST2500 tarballs.

Do we need to generate ast2700-dcscm-image.tar.gz and

ast2700-a1-dcscm-image.tar.gz?

They slightly exceed the 512 MB limit that QEMU was planning to enforce.

   581.6 MiB [#######            ]  ast2700-a1-dcscm-obmc.tar.gz
   580.3 MiB [#######            ]  ast2700-dcscm-obmc.tar.gz
   519.3 MiB [######             ]  ast2700-a1-obmc.tar.gz
   518.4 MiB [######             ]  ast2700-default-obmc.tar.gz

I suppose this is sufficient for the time being. If you find ways to reduce their size, that would be welcome.

Quoted 9 lines

Coming back to your proposal, a longer-term solution would be indeed to provide a new set of artifacts, one for each QEMU machine, containing only what is required to run the functional tests :

<version>/<QEMU machine name>-qemu.tar.gz

What would be easier for you : change the existing tarballs or add new ones for QEMU ?

I plan to create a new set of artifacts for each QEMU machine.
The original packages will remain available on the ASPEED SDK release page, as they should not be modified. These packages are used by customers as well as for ASPEED internal testing.

If users need to test specific images such as ROFS, U-Boot, the kernel, or perform full OpenBMC firmware updates,
they can download the default package (for example, ast2600-default-obmc.tar.gz) for complete testing.
The ast2600-default-image.tar.gz package will include only image-bmc for QEMU functional testing and will support programming the entire FMC flash.

The contents of the new tarballs will be as follows:

1. ast2600-default-image.tar.gz
image-bmc

2. ast2600-default-66-image.tar.gz
image-bmc

3. ast2700-default-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

4, ast2700-a1-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

5. ast2700-dcscm-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

6. ast2700-a1-dcscm-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

Please let me know if this approach works for you.

Thanks,
Jamin

Quoted 24 lines

Thanks,

C.

Quoted 1 line

These packages do not include signed images in v11.00 (e.g., the ecdsa384

and ecdsa384-lms directories).

Quoted 1 line

Furthermore, the contents of ast2700-dcscm-obmc.tar.gz are identical

between versions v09.08 and v11.00.

Quoted 14 lines

Thanks,
Jamin

Quoted 9 lines
Quoted 2 lines

ASPEED will release v11.01 this week. After the v11.01 release, I will update

these tarballs and the QEMU functional tests accordingly.

Great !

Thanks,

C.

#29 lore raw

Re: [PULL 02/16] tests/functional: Add SDK tests with Linux 5.15

Hello Jamin,

Quoted 3 lines

I plan to create a new set of artifacts for each QEMU machine.
The original packages will remain available on the ASPEED SDK release page, as they should not be modified. These packages are used by customers as well as for ASPEED internal testing.

yes. This is what I expected.

Quoted 3 lines

If users need to test specific images such as ROFS, U-Boot, the kernel, or perform full OpenBMC firmware updates, they can download the default package (for example, ast2600-default-obmc.tar.gz) for complete testing.

Good.

Quoted 42 lines

The ast2600-default-image.tar.gz package will include only image-bmc for QEMU functional testing and will support programming the entire FMC flash.

The contents of the new tarballs will be as follows:

1. ast2600-default-image.tar.gz
image-bmc

2. ast2600-default-66-image.tar.gz
image-bmc

3. ast2700-default-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

4, ast2700-a1-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

5. ast2700-dcscm-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

6. ast2700-a1-dcscm-image.tar.gz
image-bmc
u-boot.bin
zephyr-aspeed-ssp.elf
zephyr-aspeed-tsp.elf
bl31.bin
optee/tee-raw.bin

Quoted 1 line

Please let me know if this approach works for you.

That seems perfect to me. Thank you very much.

C.

#30 lore raw

[PULL 15/16] hw/arm/aspeed_ast27x0-fc: Increase BMC DRAM size to 2GB for AST2700 A2

In reply to Cédric Le Goater

From: Jamin Lin <[email protected]>

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.

---
 hw/arm/aspeed_ast27x0-fc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/aspeed_ast27x0-fc.c +1 -1
index 9b9bb2df7580..5eb6680da99d 100644
@@ -48,7 +48,7 @@ struct Ast2700FCState {
     Aspeed27x0CoprocessorState tsp;
 };
 
-#define AST2700FC_BMC_RAM_SIZE (1 * GiB)
+#define AST2700FC_BMC_RAM_SIZE (2 * GiB)
 
 #define AST2700FC_HW_STRAP1 0x000000C0
 #define AST2700FC_HW_STRAP2 0x00000003
Signature · 1 line
2.53.0
#31 lore raw
In reply to Cédric Le Goater
Quoted 16 lines · Cédric Le Goater

The following changes since commit 039fae56bb79af1124619daae60e01c257fcb2ee:

Merge tag 'pull-request-2026-02-12v2' of https://gitlab.com/thuth/qemu into staging (2026-02-12 11:52:31 +0000)

are available in the Git repository at:

https://github.com/legoater/qemu/ tags/pull-aspeed-20260212

for you to fetch changes up to 1b662879513fa9823a887cac9cfc3d91b9d3f616:

tests/functional/aarch64/test_aspeed_ast2700fc: Use AST2700 A2 SDK image for FC tests (2026-02-12 16:06:55 +0100)

----------------------------------------------------------------
aspeed-next queue:

Quoted 8 lines

* Adds support for the AST2700 A2 SoC, including a new machine and a functional test
* Enhances AST2600 OTP functional test
* Restructures Aspeed ARM tests into separate files for better parallelism.
* Includes new SDK tests with Linux 5.15.
* Fixes Aspeed I2C models

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/11.0
for any user-visible changes.

-- PMM