From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:504:749a:b0:1be9:327d:8ee3 with SMTP id a26csp511517njk; Wed, 16 Apr 2025 20:13:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUdAWhTTeitjz/4z19UApb8mBnPuXzNqEOkQ0vuA4Q+jr2bA7w8AVL3kpTABk8Tk0wQftrm0e+1Yu+2oQ==@linaro.org X-Google-Smtp-Source: AGHT+IHsv9HuWHkJ1WSqQMXDAzp9FnYcPyWAdoRE75GmiWoLNsxLetvYGbFs4vBxgLdwe6bAr3ko X-Received: by 2002:ac8:5f53:0:b0:476:b06a:716e with SMTP id d75a77b69052e-47ad811966cmr56356261cf.34.1744859597267; Wed, 16 Apr 2025 20:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744859597; cv=none; d=google.com; s=arc-20240605; b=jCvmWyeccRX1kUrqNYY4/398Oev3sFqSdniVzwI8k85d8uywRGnA3/tb0ZoAeCWAHn npvKmxksrhybfJG+kdXWyntepUJw8JlXhocjCzD4F6hmZoqYqcfkxo9rRUoualGokT24 P6sTVBoZvELEjWBA0PI91PIzSGeAXO47qlw7vmCebpy0jRhAqZiyn98ngfJwPy2+uFgP k0rLykhQNumavQ/FsRytXT7ACvI2ConchM6gvwjFcNH/uwu1CbXclePIYfefdM7/GD1Z 3mvwh6vTW+u2YOq/JqfRva+st0osQqyXxvsu0ZM/nps6iAZDMPnuyVFdGrTQrXj/ieAP IPyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:from:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to; bh=tWKv1pFATbXylvtHpHogWqPtt1tiN6uc3As5GMRrPu4=; fh=9slMQvAVAaDbZF94sUZsatNqTIKawFKtbOHuc7HAk0w=; b=RwIpqGdnGZ0tNfu8PplnCcNZLOg2v7stYzxEZQXWAf4nt/hScfcZ/bUpQCm7n5bBpt H+ANXnd+tyuvsslhPrXfaGwdsfaR/5Ve3wRi+mCJltH+ti7JxT9qQW4xLh/Fbv00Xu0s WR5OzL8+UIlYchhAsImNpeRxiigjvqmd85Xvo6CpplFUqgu+347YkgJkkHdsyYA2emNC JxVG0SPX7lY/PRQM8VF1NXL/jBV/v2OnnybscOUeNabbKw9f0HKHw940xc+nuI+O7oQU C85aATMkYEL14P+k1QhGrVjU+xWE7Crep5mzUcqGQoqsAn3bDOTqldXttrp55ysY1IYQ Imjg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4796eb0dc0asi156358481cf.100.2025.04.16.20.13.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Apr 2025 20:13:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u5Ffn-0000m9-0i; Wed, 16 Apr 2025 23:12:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u5Ffj-0000lb-Po; Wed, 16 Apr 2025 23:12:15 -0400 Received: from mail.aspeedtech.com ([211.20.114.72] helo=TWMBX01.aspeed.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u5Ffh-0000cO-MV; Wed, 16 Apr 2025 23:12:15 -0400 Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 17 Apr 2025 11:12:09 +0800 Received: from mail.aspeedtech.com (192.168.10.10) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 17 Apr 2025 11:12:09 +0800 To: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Peter Maydell , Steven Lee , Troy Lee , Andrew Jeffery , "Joel Stanley" , "open list:All patches CC here" , "open list:ASPEED BMCs" CC: , , Subject: [PATCH v4 00/10] Support vbootrom for AST2700 Date: Thu, 17 Apr 2025 11:11:57 +0800 Message-ID: <20250417031209.2647703-1-jamin_lin@aspeedtech.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=211.20.114.72; envelope-from=jamin_lin@aspeedtech.com; helo=TWMBX01.aspeed.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_FAIL=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jamin Lin From: Jamin Lin via Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: B0veGMpu2um/ v1: Add initial support for AST27x0 The purpose of vbootrom here is to simulate the work of BootMCU SPL (riscv) in AST2700, because QEMU doesn't support heterogenous architecture yet. ast27x0_bootrom.bin is a simplified, free (Apache 2.0) boot ROM for ASPEED AST27x0 BMC SOC. It currently implements the bare minimum to load, parse, initialize and run boot images stored in SPI flash, but may grow more features over time as needed. The source code is available at: https://github.com/google/vbootrom v2: Add "Introduced ASPEED_DEV_VBOOTROM in the device enumeration" patch to fix build failed. v3: 1. Supports both vbootrom and device loader boot methods, with vbootrom used as the default. 2. Fix review and QTEST test failed issues. v4: Adjust the patch order. Jamin Lin (10): hw/arm/aspeed_ast27x0: Rename variable sram_name to name in ast2700 realize hw/arm/aspeed_ast27x0 Introduce vbootrom memory region hw/arm/aspeed: Add vbootrom support on AST2700 EVB machines hw/arm/aspeed: Reuse rom_size variable for vbootrom setup pc-bios: Add AST27x0 vBootrom hw/arm/aspeed: Add support for loading vbootrom image via "-bios" tests/functional/aspeed: Move I2C test into shared helper for AST2700 reuse tests/functional/aspeed: Update test ASPEED SDK v09.06 tests/functional/aspeed: Add to test vbootrom for AST2700 docs/system/arm/aspeed: Support vbootrom for AST2700 MAINTAINERS | 1 + docs/system/arm/aspeed.rst | 29 +++++++++++- include/hw/arm/aspeed.h | 2 + include/hw/arm/aspeed_soc.h | 3 ++ hw/arm/aspeed.c | 41 +++++++++++++++- hw/arm/aspeed_ast27x0.c | 20 ++++++-- pc-bios/README | 6 +++ pc-bios/ast27x0_bootrom.bin | Bin 0 -> 15464 bytes pc-bios/meson.build | 1 + tests/functional/test_aarch64_aspeed.py | 59 +++++++++++++++--------- 10 files changed, 135 insertions(+), 27 deletions(-) create mode 100644 pc-bios/ast27x0_bootrom.bin -- 2.43.0