Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A4B3CD6E6E for ; Thu, 4 Jun 2026 22:00:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wVG7E-0002A4-SH; Thu, 04 Jun 2026 18:00:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wVG7D-00029l-IU for qemu-riscv@nongnu.org; Thu, 04 Jun 2026 18:00:39 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wVG7B-00016Y-41 for qemu-riscv@nongnu.org; Thu, 04 Jun 2026 18:00:38 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 654Epc80528695 for ; Thu, 4 Jun 2026 22:00:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= lSNTVZmMtJ2WyQtW5QJZ1ec+mKOrTJa0bu5LITZjA2k=; b=OdkTFzw2eOXPBGxS ZXJ37Fg8sL7Eee67sVAlykE90hb6bYoHR18hI2gpZUKnqlclPH+FtKsMHkKh9Jvm gaWMNOW8JSTuMEvKuO1pD6yBFtzI1XKOwdTy4elT0SecAa0BL4Bf75a+9frU0Q1u HYx6p9SvpraEM+ZdVtbActSoC5MAyGtapKBraQ4Cx+Y1vwMOlaPTLDTbWyIvnY1h yesSW+fmANLLvQGVRIAuGt+5YH3ljeI9+mNO0h38mVMZPlb27Kh0/Z1AJArYzXbw apJJmrpSa67TG7r2mh49f9DYZkYf0iqZP2qaau9hroDZaPLZLgwy6MyxoOHZJHyn AQGsVg== Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ekbgdsvv2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 04 Jun 2026 22:00:33 +0000 (GMT) Received: by mail-vk1-f200.google.com with SMTP id 71dfb90a1353d-59bf1a43cd9so4515775e0c.1 for ; Thu, 04 Jun 2026 15:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1780610433; x=1781215233; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lSNTVZmMtJ2WyQtW5QJZ1ec+mKOrTJa0bu5LITZjA2k=; b=PPMsBAZxbpeTVPTj4QgT5B1I6wdZJl4IvhKHYpc6VD+sULN3ll/zgpRzw+Cca58ax2 4+N3mAvpyEP99FZxuYAySD47u6gw81OQ41iiIjyM06mHSnVfMT9hCKPH+uRus5vJcljZ lEl1en5AW24rgqwF3r4F4YWqut8f+7m7AbrgqMqT4hHr4lRCyVKS+B5JsRyg2lNs+Akj huE5Wp1sPxS/c2tPWKt+kfNpgz2w77fNb1cxYO92OgOaiGOit7TF7AybLAZsBmLip9zK GXYxhaliQ0gQcRN7Gu93R1UQpzJ60pklkUl0w0Evb7t7M4m6Gn+Vt0/Xm8WPrHl/VoLX w9VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780610433; x=1781215233; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lSNTVZmMtJ2WyQtW5QJZ1ec+mKOrTJa0bu5LITZjA2k=; b=bFSf++zI1WzHYK/FWI5XLLI7IQv4hlmgbSdNiw72STvQr//mf6++ITy9M6hFDjSy4X RwOXXxeOz7aLt312Pygk2N6DK8E9QT/03+1AyxvvcUX4GT5jY2xPJyP87urOB9kZVj5G JcglCXFoZVPFcXa2DD0stBgd4+iEKLCJfqmRI9Eckhlcf2v1mlzLH3J7RkM8PZ4GX+FX 42VmQ7/KYsPeO+gfEohYyy59IxwFf4AFAW09mZHsH5NQPtW96Y6UhbaLx9DbzeYvf+lF dgbphYhFj9wnvTUhqQY7POJZ08k/rExG2KC2kYpaIwFz/LRHLfWcx8RqJvat0Emq9tTl Keyw== X-Forwarded-Encrypted: i=1; AFNElJ/ljv2zJ/kIswYuS6xJhEdHXQHl8ndJNlzWJF2sdpe3x2NZ7MMSgGBj30dZyLxVzuAvppBVXZQQ+Leq@nongnu.org X-Gm-Message-State: AOJu0YzxZINLo8h5Eyzj3chxbCqefbQCmc8hJkotYbxK3ONYBvuj3QcX s5rxNCEbdzVFWNHdFSNP+8XX758P8EL5IceIxqnIqlP6/y4K05DSSMRzopvcfH2JRQyrPauBDqd uqrbvXMbpQKb5UfL4wAktCFGqntM6c5Ia+r6MXHU8xPzZyWt4BXrPsR0zjQ== X-Gm-Gg: Acq92OFbi8VyNvYfo19yJn/YcWc0oCKAB6pJDG/vltYzPCwPWcbjga/vlMvFxi+qH0Y qCsCKTqm/BRWglWpwmlVWP90dufU/UXN0hZmUwa4mHYYA2PocrOpcJMDVRO9aHwQBbd7XO6SGcB +xTO7SF/dlVRzeUpUXBJso0dLEvu1SOA6y0DLPmEXh1ODJkypay5Qhj+Ai5k7Z2duKiFJJxnb96 qQUT4wrIO5X07FldnL0gmkvg3mY0S8Gj9KNEKdPAjBj2rDzNjEwGePDaZOUmoyq1gWWeeHOYHRw IhrncT/GgMi9YW/gXbXtAhRsXE4RhEY9HuRqbyP8tvEgnlD7V6Tic97Jbo7gGmKaMdBRlSnrrHI 6OuL6F2B72+4ysSh/PP1UbtI1L7GHA0Mtv8GdDV+6JzXfWSdh6OvGAimfnBJodfA87s50 X-Received: by 2002:a05:6122:4b09:b0:575:39bc:c6d9 with SMTP id 71dfb90a1353d-5ac82c9a633mr140160e0c.3.1780610432891; Thu, 04 Jun 2026 15:00:32 -0700 (PDT) X-Received: by 2002:a05:6122:4b09:b0:575:39bc:c6d9 with SMTP id 71dfb90a1353d-5ac82c9a633mr140150e0c.3.1780610432400; Thu, 04 Jun 2026 15:00:32 -0700 (PDT) Received: from [192.168.68.106] ([177.170.117.62]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5a9752595a7sm3455217e0c.16.2026.06.04.15.00.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jun 2026 15:00:31 -0700 (PDT) Message-ID: Date: Thu, 4 Jun 2026 19:00:26 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 5/5] docs: add riscv-server-ref.rst To: Andrew Jones Cc: qemu-devel@nongnu.org, qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com, leif.lindholm@oss.qualcomm.com, Pierrick Bouvier , Palmer Dabbelt References: <20260604095244.3313259-1-daniel.barboza@oss.qualcomm.com> <20260604095244.3313259-6-daniel.barboza@oss.qualcomm.com> <6zbbuwhkns2v2nigvwsd2qpwp6pmtyayybrrar67xgma7tf5tk@gpif5wvll63p> From: Daniel Henrique Barboza Content-Language: en-US In-Reply-To: <6zbbuwhkns2v2nigvwsd2qpwp6pmtyayybrrar67xgma7tf5tk@gpif5wvll63p> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: q3UrZvwy5IdCAZAoyi_NaPe77rz8OHI_ X-Proofpoint-ORIG-GUID: q3UrZvwy5IdCAZAoyi_NaPe77rz8OHI_ X-Authority-Analysis: v=2.4 cv=a8cAM0SF c=1 sm=1 tr=0 ts=6a21f581 cx=c_pps a=wuOIiItHwq1biOnFUQQHKA==:117 a=gdiugJE53z4H+vvYeRBHqw==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=NEAV23lmAAAA:8 a=EUspDBNiAAAA:8 a=zyDIbBgIJnxIjrKH1lMA:9 a=QEXdDO2ut3YA:10 a=XD7yVLdPMpWraOa8Un9W:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjA0MDIxNSBTYWx0ZWRfX0pJQHVDWoK7m mIIYVlD9/YhjvUEz/r0vRd9i97lEuHQaiD2IbBEvcPJCznfJm+61b9B5ViBbwEJ6z5HRzay34/r Y8T8Qr4gwKMrgvWneJGvHSsK6QiR5jHkxtckVZ0BJBBjz5Cr9qXuj5eVc7nzUiaJT26VDC0DBOv OGCebbifQDsdUZxpWhA2eWuZMmpq7TxOuSn1XDpo4jFCVLsqHWFlA6NnD+m7mlpTtezCvICSGVz JvFSFeA/QHaOxbNVVHPdaKUWx4p7b7mZYYcIy4Fxda+k5iJt6kSRu04BFagGVzFAd4lQc30l3rW NBL8uT+AmhALGLV1kvS12ZQK77JPHKlPbbY90BnMVYEXWLDaVriupE8FXjcpLH8CxBEv6RyumET liJ0C/gxj9cMtIoNizX8BkqBDduq25jNpEAhXOFJd7BukzqVdIwtuEFgNGRriEloZkDbTrVh3kl /HYTeTdpcvd5O/loewA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-04_06,2026-05-28_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 phishscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606040215 Received-SPF: pass client-ip=205.220.180.131; envelope-from=daniel.barboza@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 6/4/2026 4:00 PM, Andrew Jones wrote: > On Thu, Jun 04, 2026 at 06:52:44AM -0300, Daniel Henrique Barboza wrote: >> Add documentation for the new riscv-server-ref board. >> >> Signed-off-by: Daniel Henrique Barboza >> --- >> docs/system/riscv/riscv-server-ref.rst | 52 ++++++++++++++++++++++++++ >> docs/system/target-riscv.rst | 1 + >> 2 files changed, 53 insertions(+) >> create mode 100644 docs/system/riscv/riscv-server-ref.rst >> >> diff --git a/docs/system/riscv/riscv-server-ref.rst b/docs/system/riscv/riscv-server-ref.rst >> new file mode 100644 >> index 0000000000..379b7ef76e >> --- /dev/null >> +++ b/docs/system/riscv/riscv-server-ref.rst >> @@ -0,0 +1,52 @@ >> +.. SPDX-License-Identifier: GPL-2.0-or-later >> + >> +RISC-V Server Platform Reference board (``riscv-server-ref``) >> +============================================================= >> + >> +The RISC-V Server Platform specification `spec`_ defines a standardized >> +set of hardware and software capabilities that portable system software, >> +such as OS and hypervisors, can rely on being present in a RISC-V server >> +platform. This machine aims to emulate this specification, providing >> +an environment for firmware/OS development and testing. >> + >> +`spec`_ is version 1.0 at the introduction of this board. New spec versions >> +might trigger a revision of the emulation itself, which will strive to always >> +match the latest version available. In case the emulation changes aren't >> +backwards compatible we'll introduce a versioning scheme, probably via > > Even in the case the changes are backwards compatible we'll introduce a > versioning scheme. Because... > >> +a machine property, to allow older SW to run with older spec versions. > > ...we aren't as worried about older SW running on something than we are > about new SW being tested on older machine models in order to allow OS > developers to ensure changes to the OS to support newer spec versions > don't regress support for older spec versions. > > (And I think we're currently leaning towards a global property instead of > a machine property in order to cover the cpu model too.) > >> + >> +The main features included in the riscv-server-ref board are: >> + >> +* IOMMU platform device (riscv-iommu-sys) >> +* AIA >> +* PCIe AHCI >> +* PCIe NIC >> +* No virtio mmio bus >> +* No fw_cfg device >> +* No ACPI table >> +* Minimal device tree nodes >> + >> +There are multiple ways of using this reference board, some of them being: >> + >> +* BIOS: u-boot-spl.bin; SD-CARD: ; NVME: >> +* BIOS: fw_dynamic.bin; KERNEL: u-boot.bin; NVME: >> +* BIOS: fw_dynamic.bin; KERNEL: EDK2.fd; NVME: >> +* BIOS: fw_dynamic.bin; KERNEL: ; INITRD: > > Maybe we need to point out that a firmware that generates ACPI tables and > supports EFI runtime services is required for a completely spec conforming > platform. I think that's only the 3rd bullet above. Fair enough. I'll remove bullets 1,2 and 4 and mention that we need a firmware that generates ACPI tables and supports EFI. > >> + >> +Here's an usage example with a recent (June 2026) ``Image`` and ``rootfs.ext2`` >> +files from buildroot: >> + >> +.. code-block:: bash >> + >> + qemu-system-riscv64 -M riscv-server-ref \ >> + -kernel ./buildroot/Image -append "rw rootwait root=/dev/vda" \ >> + -drive file=./buildroot/rootfs.ext2,format=raw,id=hd0,if=virtio \ >> + -nographic > > This example does not generate a server platform that conforms to the spec > since there are no ACPI tables and no EFI support for the OS/hypervisor. > Also, how is the disk configured? It should be a PCIe device. Since this is not the intended usage (bullet 3 from above) I'll remove this example since it'll just confuse users. We should document only the usage that leads to a spec compliant setup. Cheers, Daniel > > Thanks, > drew > > >> + >> +The images QEMU is using for selftests of the riscv-server-ref machine can >> +be found below: >> + >> +https://github.com/danielhb/qemu-machine-boot/tree/master/riscv/images/virt64/buildroot >> + >> + >> +.. _spec: https://github.com/riscv-non-isa/riscv-server-platform >> diff --git a/docs/system/target-riscv.rst b/docs/system/target-riscv.rst >> index afd86ca2ba..b2aeb39a8e 100644 >> --- a/docs/system/target-riscv.rst >> +++ b/docs/system/target-riscv.rst >> @@ -73,6 +73,7 @@ undocumented; you can get a complete list by running >> riscv/sifive_u >> riscv/virt >> riscv/xiangshan-kunminghu >> + riscv/riscv-server-ref >> >> RISC-V CPU firmware >> ------------------- >> -- >> 2.43.0 >>