From nobody Mon Nov 23 04:34:21 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792771846; cv=none; d=zohomail.com; s=zohoarc; b=UbajH9Bfgzb16YyizjKWuWWDtWyw8t/0HVmD9ATzYn/W8Z93V6eSgwYY3F7H/GfnZCBLyc0fX247yK7AmkFl5MIJpd8mF6YMqxMCRrjFoWNrfayYKM5tuzQOei8T6gw8vVIkIZ83XNtNiV25aZ4N+T26yoKW0l3os0a3N6X6EcY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792771846; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=W1uOu9Yvs0LHCsnnPQSnHDv3YzrhA3fkZ0uCqoasB/0=; b=STlZxLEf98jGHiv52SMogeHDslqSuxC7ZgwPOlK3kVf8mYxTlPFtKRn8KtNgswP5SRmjiDkxOhg5KLHhKYspSB21+9jzLDYiVYwaSilhZdUgoR/mZMYpQZFdjQrYA3CpQte0I4ijqo2DJ3RTn9xCyH7xB6OA2/LQfKVy2tc/dVY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792771846718870.8322129106801; Fri, 23 Oct 2026 09:10:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xKHq5-0000dS-DN; Fri, 23 Oct 2026 12:09:53 -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 1xKHq1-0000ct-NJ for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:50 -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 1xKHpj-0001Ts-FJ for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:35 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69NG3okw3811881 for ; Fri, 23 Oct 2026 16:09:23 GMT Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hgas880t8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 23 Oct 2026 16:09:22 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-91bc57d4d11so26626856d6.1 for ; Fri, 23 Oct 2026 09:09:22 -0700 (PDT) Received: from QCOM-UWl2o8bcGT.qualcomm.com ([152.234.125.162]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91c4524f226sm5063406d6.27.2026.10.23.09.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 09:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=W1uOu9Yvs0L HCsnnPQSnHDv3YzrhA3fkZ0uCqoasB/0=; b=TxzpJRS2w6CoVK8gD51rZrQauYm zywcuCYNedXpg8X8fIRHZIqdthPlrkyNHxe0jdzqVhGcfcuAEzN43BA14/0G9pq7 5CPuXd8++HrTq6gQqbblwiqWJzg9fAScPmLhYinG835ubtdxPymLYX04B+1aC5bm ykGDyGnflBO7bM3H02k/ihxUcwZgIEYgr/pUT8xdN9NpIEcRybAUaHt7YTurnCvM osx6jcLQ8HSs/2IjL95+bIhuw0UBRzRjNPDbIid65OuDCLua1upGKLm2/OcMAVt5 So6RovlU1VnVFvUcthNMiXIlzJ20Ve59cnjevvQOhkKuxR1EIgTlT1+mxvw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792771762; x=1793376562; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=W1uOu9Yvs0LHCsnnPQSnHDv3YzrhA3fkZ0uCqoasB/0=; b=gIdA2h00dhf632vHuRwOJp1U6iiwmdkOSWYW7OFWVKBo4sqNsFoqratDohQ1j8+kNO CHITuRLRrya1mMDK8NTatSagiIsbt2vhF0UkIifWx4Dx2RKD+b5VoTcsX5t4CTEld3/H Ba+WjtBNXK2nwvLVnKK15Q+0MlBcBiYU4gLhHMF+eptGupi8sXdDhxb4Mf58XIY4xp7k rDmgpF7PUT6Npj4SAhsrstoI7JCTP1tzocRTEqGxaJpO7onAXtfWCjUbZyWn7xALqUaP 2+6bi0bctyjevTRTZGV/1xmYABHPB+uLIlyDro22t9s4qLhlGbPEiiiyV15EID5FTp10 PPlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792771762; x=1793376562; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=W1uOu9Yvs0LHCsnnPQSnHDv3YzrhA3fkZ0uCqoasB/0=; b=PcXQRz6LTh3RuLR19CTfUjlaAw7HCV02gElUgprxztPJMdoh1KaOws5Igypk6Q2jme CbflSwTYjjxX4IdwtYcMNG5+stqmT2LtjlpDR4ITuD0dLd0eEp+/pi3O005wcO2kb2nL n4GySCUwCxU0FhdydeZmENnQ4Rw5rbRXdfju/395YFtguBL+vx4pBBWdmf2oNkVGGgLk 5xTVsmye4BtjDvOpV27t/xdARQfWtoKVd95lq4b3WQmtRewE+3GXLfsaSrqLYVBmq+7T YWhu3g27SwhP8shgUsOPJ8JyOnZGaTOmvpzE0t2nt3QsvrsaszIfwRio7KQ+IimoF0av 9pvg== X-Gm-Message-State: AFq9FYL21n9Ym7lPbHULBx4SHzODaEiFE9vuX8o+CpEP5SPgQvpeyfGB gwKs99VASi0JOvw1RAg/NqDOs1XVL7Jl30S2ZXMIsVe9lDC02m0YpLsqFuPP8VwMlTxufneelhH O106/yqSRHT2XbSinfxkzIcgqKl/Q5vGyWdZ0ziLqFrayb57aWQ5LmYWbbA5D3WWf1A== X-Gm-Gg: AYBFou0diIaAT6B55ZZONDf2t1krm2+kKWPM6Chy0Am14JPEvA/lFvF7ZP8Eymhs4nk 8PRnSQoLJPvzvURsqQifUB4cWIceqPwqZ1c52+E8XZcQUG942Lgion3S+F11DefeXsyp0PAOdsH 0OugYDYFpxQnPUK3jtG9G3C5NBNUmp5nRcG74irjer4pGFKxjJOeUIbrLwuBV01OxUdGANPYC4q kb2vXUdE86qIorglnOq5b1NoluERoxuFJBzy2HPeOFfasV8fSqsg7CPMK4xGG3b/0uZJuFJ5fZG gX+/qbE7hFfwx0CktYrwnP1dLuxIH29gbZ9GNCudgT67k1tHxSMhAJsvm04nvTjhajCYcu1FqNZ t+kks4rM0uKisMte/Zi0xQgOvSw9M6Fj3BO0GUA== X-Received: by 2002:a05:6214:29e6:b0:917:a615:3741 with SMTP id 6a1803df08f44-91c3a8a52femr40172966d6.32.1792771762399; Fri, 23 Oct 2026 09:09:22 -0700 (PDT) X-Received: by 2002:a05:6214:29e6:b0:917:a615:3741 with SMTP id 6a1803df08f44-91c3a8a52femr40172346d6.32.1792771761915; Fri, 23 Oct 2026 09:09:21 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu@processmission.com, Daniel Henrique Barboza , Palmer Dabbelt Subject: [PATCH 1/6] hw/riscv: do not realize the device in riscv_create_iommu_sys() Date: Fri, 23 Oct 2026 13:09:08 -0300 Message-ID: <20261023160913.24992-2-daniel.barboza@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> References: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIzMDA2MiBTYWx0ZWRfXyRaAYdq7LneB tLV9sh+Q0oAb84SATx/iGk1w1Lg6S1rxY9D0WWaxVybW7pbozBnHyLZGuw6GeEc9EPO/ptx8bLU zH2RhnYL2KRj0f73cAA2sOOB4xT9V0M= X-Authority-Analysis: v=2.4 cv=OPqyTiaB c=1 sm=1 tr=0 ts=6adb86b3 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=AgQEunjic7gIBKSbIeB6Ag==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=vAOAkzTg_3GT8N5SIgEA:9 a=iYH6xdkBrDN1Jqds4HTS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIzMDA2MiBTYWx0ZWRfX5sDEPfz06Jkh Lis+LCGY34bSsTCnxYoAtN99qGzibsy4EaLyxH1fAEij9su+kYXZcrn+sVYgq6Fv8CpTu/t9MFR W3X1qh9WhLAKebQycru/GBln07CPEpX6hC5P1X9Kyvkm0rZac3SlI6Ur6ULca1Yp7Oj7t/A8Rcf 0dxIErxDOeyJiKCKkYUwl3n8sSb2qH0cCLDmwJaxwpqJOKxGlUfUwrlbyvS6RyAoiPWcs7Guy2+ VWERWsO0VnIQiVbsE6hlxNCKh7JfidmD8w8GtY6f5SiDT1GJx3yZeg+mG3uhbK9z0dsVykYw4r9 dI/kls/Vy1RDfZEk0kfP+/pyykjixbZN4wvYVFEWElGxpF8/jBnYMOQM1hPBc+pwuvC13bPU0Ud M+gmM48/yr6aG/EWRa4l7SQz4J+QIKRt/7j9UixsQfg1UxYNZm9HuFlVrdWQ8rxbM4/At/dg52E 5rfCeBdvKTUPw23dTqA== X-Proofpoint-GUID: PLQQLW8kpY3e3zozlDafIt3Olgm-kYBt X-Proofpoint-ORIG-GUID: PLQQLW8kpY3e3zozlDafIt3Olgm-kYBt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-23_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 impostorscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610230062 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; 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-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792771848382158500 Content-Type: text/plain; charset="utf-8" The riscv-iommu-sys device inherits all properties from its associated riscv-iommu device via qdev_alias_all_properties() during sys_init(). We're also providing riscv_create_iommu_sys(), a helper to instantiate the device and avoid duplicating code between boards. In its current state the helper is realizing the device before returning it to the caller, prevents any additional setup of the device (we can't change device props after realize). Split the realization code from the helper and make the boards realize the device manually. It's a small inconvenience to pay to be able to config the iommu-sys device. Signed-off-by: Daniel Henrique Barboza --- hw/riscv/riscv-iommu-sys.c | 3 +-- hw/riscv/server_platform_ref.c | 7 +++++-- hw/riscv/virt.c | 9 +++++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/hw/riscv/riscv-iommu-sys.c b/hw/riscv/riscv-iommu-sys.c index 258c171efd..190ab0b646 100644 --- a/hw/riscv/riscv-iommu-sys.c +++ b/hw/riscv/riscv-iommu-sys.c @@ -217,6 +217,7 @@ static void riscv_iommu_sys_init(Object *obj) riscv_iommu_set_cap_igs(iommu, RISCV_IOMMU_CAP_IGS_BOTH); } =20 +/* Note: the returned iommu_sys device needs to be realized. */ DeviceState *riscv_create_iommu_sys(DeviceState *mmio_irqchip, hwaddr addr, int base_irq, bool is_32_bit) @@ -237,8 +238,6 @@ DeviceState *riscv_create_iommu_sys(DeviceState *mmio_i= rqchip, is_32_bit ? 34 : 56, &error_fatal); =20 - sysbus_realize_and_unref(SYS_BUS_DEVICE(iommu_sys), &error_fatal); - return iommu_sys; } =20 diff --git a/hw/riscv/server_platform_ref.c b/hw/riscv/server_platform_ref.c index 5f485b1c79..e9536515da 100644 --- a/hw/riscv/server_platform_ref.c +++ b/hw/riscv/server_platform_ref.c @@ -481,6 +481,7 @@ static void rvserver_ref_machine_init(MachineState *mac= hine) MemoryRegion *mask_rom =3D g_new(MemoryRegion, 1); MemoryRegion *reset_syscon_io =3D g_new(MemoryRegion, 1); DeviceState *mmio_irqchip, *pcie_irqchip; + DeviceState *iommu_sys; int i, base_hartid, hart_count; int socket_count =3D riscv_socket_count(machine); int imsic_bits; @@ -635,8 +636,10 @@ static void rvserver_ref_machine_init(MachineState *ma= chine) create_fdt(s, memmap); } =20 - riscv_create_iommu_sys(mmio_irqchip, s->memmap[RVSERVER_IOMMU_SYS].bas= e, - IOMMU_SYS_IRQ, false); + iommu_sys =3D riscv_create_iommu_sys(mmio_irqchip, + s->memmap[RVSERVER_IOMMU_SYS].base, + IOMMU_SYS_IRQ, false); + sysbus_realize_and_unref(SYS_BUS_DEVICE(iommu_sys), &error_fatal); =20 s->machine_done.notify =3D rvserver_ref_machine_done; qemu_add_machine_init_done_notifier(&s->machine_done); diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index d4b501802f..39381cb21d 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -940,8 +940,13 @@ static void virt_machine_init(MachineState *machine) } =20 if (virt_is_iommu_sys_enabled(s)) { - riscv_create_iommu_sys(mmio_irqchip, s->memmap[VIRT_IOMMU_SYS].bas= e, - IOMMU_SYS_IRQ, riscv_is_32bit(&s->soc[0])); + DeviceState *iommu_sys; + + iommu_sys =3D riscv_create_iommu_sys(mmio_irqchip, + s->memmap[VIRT_IOMMU_SYS].base, + IOMMU_SYS_IRQ, + riscv_is_32bit(&s->soc[0])); + sysbus_realize_and_unref(SYS_BUS_DEVICE(iommu_sys), &error_fatal); } =20 s->machine_done.notify =3D virt_machine_done; --=20 2.43.0 From nobody Mon Nov 23 04:34:21 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792771801; cv=none; d=zohomail.com; s=zohoarc; b=nnLncUdNRD0RvCbk1zgR8T98vTgMqDSTxZgiiq0ymx5tuU4IuWeHfXjsDvNUBwdpb2sE4tx/2CzhJOECtvpL/ZF+WXYgWhkDi78+K7Dtn6XhbEcwD9J4B9MKe9MVFHrD1DIa2J+HbaOT9lDJ2V8DzLZDD4PqjtI01PqPp8WVRPM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792771801; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=S8cjDPsH4rqo57RKzD8Jt0nRW6vxtfzZu90DOJ58YCA=; b=bFZvWpTkWn0F8gsOeg/UOGIibaQW7oAgP2enOeE1NZahmxFnONkJkyihhsocvorilXtAvsSYVANAZvEAMzBgMbE85FMYIzQIjcBwR1w1KVqo8KikQUbQz3FKDGad6O2RcX8BA/AfW3ftDwuDSU+0jCEc/ZSO3xVHK33qMBax20U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179277180143863.75882217778724; Fri, 23 Oct 2026 09:10:01 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xKHpq-0000b2-Jb; Fri, 23 Oct 2026 12:09:39 -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 1xKHpm-0000aD-Ae for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:35 -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 1xKHpf-0001U3-1B for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:29 -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 69NG2wqo3733915 for ; Fri, 23 Oct 2026 16:09:25 GMT Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hgarug0yb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 23 Oct 2026 16:09:25 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91b4bf686ceso33365806d6.3 for ; Fri, 23 Oct 2026 09:09:25 -0700 (PDT) Received: from QCOM-UWl2o8bcGT.qualcomm.com ([152.234.125.162]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91c4524f226sm5063406d6.27.2026.10.23.09.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 09:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=S8cjDPsH4rq o57RKzD8Jt0nRW6vxtfzZu90DOJ58YCA=; b=DQ+Q0nQ9wZhVotZcRf0vGBeqljD iZT2yaSmfbxpNmURoZ21CqKQT2KTQ0faZtDiO9ucHa9gq9X8C+VNKjQfM5wVwdXN BmAUuccJ0lIE+R07MY8RN3DOsjosKQqgiVCbPusDOypCopdss0sCrxaszO+TWA1j 8f/vISVE1kzwOvDzBG1SuEVOZN7o01zFx2RoIo0DqYnkrig8cSJHfEahwSe2Rs1P RHEcvcL8AxPg93yT/gUW/2nzMOsyqk56H5weaZi9oPQ2Z7db+Hr7QQMHc3Ff/+2+ gvzryqOAkXoY5YlISZDGf1ZYxxN5f2IdOISYxHrsqqM+ecn83DVtfJP7kAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792771765; x=1793376565; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=S8cjDPsH4rqo57RKzD8Jt0nRW6vxtfzZu90DOJ58YCA=; b=BH2bGic4yxUWgZJTs9s4JPFf+Xnu+LMBl31AS2/58ffYfHySNI+mGxuAry/DftR4V+ UvpX7XvajoSQ58HkjkD18BK+Q/xCxCIjmrnNP/8tbj6k2VFuZac0IpB3OsOGZg8IAdvg M2hGQFd1Hza5yBxdA3E395/qaZeDM5UcG+QYyMt2GjPsH15655j8K6sXdEhoBiY3C1wp oxUoS1H02h4BudwMtf3kaNf0DI3xUL38NLNy7t8ywGPyXmBa3aqw3POde5Odc/XRHKJ6 uDt+GHTPIfRi5gjuHCbT5BuQEzu8wlUryq3BT808uRvefcKG5OBMjjLT2D264k/iHIjF tJVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792771765; x=1793376565; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=S8cjDPsH4rqo57RKzD8Jt0nRW6vxtfzZu90DOJ58YCA=; b=vu7NUixTQJIOfvNAEKnxYIpvPqoca3RA4XtmbE4UsafNvXt22Q2DNUcdpCCCHjbWwf V12qiFPk7CAucIym5f2izYLfg7I5MGXaIwxSc6Dlw3TaIxH/UaXkLNo0n221lhMBJ5Dv zm2bfCgRDS8VM/wv707IYL9rAOt+rLYdg9aWdRlrITxEdyoFvBvpJSHvqo4SngPu5dXt CIMztMEachvG17UvulIjeM2KU6WwL98vZj16qYrKAh/Yx5FLKYhBtnicqoVISsSKo96a GYH6BhZ3/acKMODnJasAAxNP0XR51JzvEFndVArKrNSrrU+jOSUw9Hl6UPs2CFR3e/sH RU+Q== X-Gm-Message-State: AFq9FYK+ZV3xFQhr9M0w7PR234X+CQnShGTmdkD0x+GM25OWklXZyxDO fM7KG6h5yS8DouKuszIzVUF9VnkE+U32QPUfydUhogHXZoIBqANisooh7EDyZ/bjEKiqdrD1mu3 6eeWizrQt23avKRrsDopsKLA0cvr6Dj1CjqCdCfaJ0ccoPQ3d2UCDe3GjeT9qalWxPw== X-Gm-Gg: AYBFou0zacz7qBPFsmcEza2vvV5YkdnwYZd/YYzvP4/nEgIxQ+2yb4lmRNtxDU6mW/1 Mjfe5gD+dMnopq4exepbyHdGwYotQXOR/4kJmHB9wlk0r+mgGZR3ECwqA62fQiZ3cLnaajjKppi rgWwmSRnergSkBnl4BCy3TaMZs4O1cWfdXk7/BD/GVFGEzJSsc5n9z1fNVFwCBSaTNGEJG1IpY+ njFCdjV9yTaw2RZWuvO+Vr1zARbnKoQwTq1vAchIHRCMyEX2w3kBGQ7M07NMnH+HLxPtd8JY7Fu 8ECpiCGx+viDPoYy5p+TpWYKJpI16QJpr7NPHybgqEt+oloP5GxM/J9ccuLmtkv2pwwfQDvxDGn M2bUYJWrer4nhtLxCf6jweXslA1AiWeTd+lab9Q== X-Received: by 2002:a05:6214:5986:b0:919:8a63:22f with SMTP id 6a1803df08f44-91c3a9e1fa9mr39205136d6.15.1792771764929; Fri, 23 Oct 2026 09:09:24 -0700 (PDT) X-Received: by 2002:a05:6214:5986:b0:919:8a63:22f with SMTP id 6a1803df08f44-91c3a9e1fa9mr39204686d6.15.1792771764511; Fri, 23 Oct 2026 09:09:24 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu@processmission.com, Daniel Henrique Barboza , Palmer Dabbelt Subject: [PATCH 2/6] hw/riscv/server_platform_ref: set iommu hpm counters to 4 Date: Fri, 23 Oct 2026 13:09:09 -0300 Message-ID: <20261023160913.24992-3-daniel.barboza@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> References: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIzMDA2MiBTYWx0ZWRfX90/zQbHtcygn FpKLxFZvz3PuOL7A4bsP03aMjQOsrejFNEUk0FLH3brxQQ41HX8TU9mYzf8dRSOjKmIv5mOEd6z G6ym7cem784TAap8ViAgL2NATP2rSYg= X-Proofpoint-GUID: DgBnmiIJOTTZlvZrskkpyTNFc75xExFa X-Authority-Analysis: v=2.4 cv=SK7Xx+vH c=1 sm=1 tr=0 ts=6adb86b5 cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=AgQEunjic7gIBKSbIeB6Ag==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=HwFc7jivAAAA:8 a=EUspDBNiAAAA:8 a=YHBa8Q_7aVoFoIsRzr8A:9 a=1HOtulTD9v-eNWfpl4qZ:22 a=kr7TZk85JJIQSqC0cl8G:22 X-Proofpoint-ORIG-GUID: DgBnmiIJOTTZlvZrskkpyTNFc75xExFa X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIzMDA2MiBTYWx0ZWRfXwY78Ukp89Hkv SRHIihRkF30OM6wrkHvEFFYbacFP6gB+uWE1DW3sB+hBzkW2xRot1CbTlxMB6ajlHXIOqNbR7S4 0QHm4BTEiA4T6FX9RdwTS6o6PeROGcVITbt5YFK/iolsIRLultRcBNDv6ZrbNHMjxoaFu58332E JxhPSQRiEboyDpZoEnW4eVdeuA4h6b+eEoQCQFXDh/nHBHJ1tLG3KdFjcDhNd9YaNGIVv+EEeSO 7nZLEl2kuU4BVG2yAzNgQ+qdM4ciTFU4pySuNA2FfEVVfSJowbxGKab39iobT3RvbDJc5qPG6y5 nDLLmX2BMubmi8zJIRxRSBaPhaH34ZiJYMh2OqT+T5A2r61MY+GrxTvVgJC20UTI5kUbg3Keg+a dZxe2+O5e6i9dWHARS2oSpji6liQ/ymigUaptqKYYRkUteM9R/B1/8VVzArgDmTuSPHOWrTsqVH WohAX7++rkgJo6atCzg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-23_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610230062 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792771803779158500 Content-Type: text/plain; charset="utf-8" The riscv server soc requirements [1] dictates in rule "IOM_200" that the IOMMU must have at least 4 event counters. As it stands today we're creating an iommu-sys device with RISCV_IOMMU_IOCOUNT_NUM (31) counters. Following the design of setting just the minimal spec requirements, set hpm-counters to 4. [1] https://docs.riscv.org/reference/server-soc/v1.0/server_soc_requirement= s.html Signed-off-by: Daniel Henrique Barboza --- hw/riscv/server_platform_ref.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/riscv/server_platform_ref.c b/hw/riscv/server_platform_ref.c index e9536515da..ea24720a08 100644 --- a/hw/riscv/server_platform_ref.c +++ b/hw/riscv/server_platform_ref.c @@ -67,6 +67,7 @@ #define SYSCON_POWEROFF 0x2 =20 #define RVSERVER_PLATFORM_BUS_NUM_IRQS 8 +#define RVSERVER_IOMMU_HPM_COUNTERS 4 =20 #define TYPE_RISCV_SERVER_REF_MACHINE MACHINE_TYPE_NAME("riscv-server-ref") OBJECT_DECLARE_SIMPLE_TYPE(RISCVServerRefMachineState, RISCV_SERVER_REF_MA= CHINE) @@ -639,6 +640,9 @@ static void rvserver_ref_machine_init(MachineState *mac= hine) iommu_sys =3D riscv_create_iommu_sys(mmio_irqchip, s->memmap[RVSERVER_IOMMU_SYS].base, IOMMU_SYS_IRQ, false); + + object_property_set_int(OBJECT(iommu_sys), "hpm-counters", + RVSERVER_IOMMU_HPM_COUNTERS, &error_abort); sysbus_realize_and_unref(SYS_BUS_DEVICE(iommu_sys), &error_fatal); =20 s->machine_done.notify =3D rvserver_ref_machine_done; --=20 2.43.0 From nobody Mon Nov 23 04:34:21 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792771847; cv=none; d=zohomail.com; s=zohoarc; b=Pk/ZsFBxyUFCIrhp3lAW75mtp+s+EvGl3TsTu3uRyZ59tYRP08rIOzkCWjK75onRfJkLnLMCISWjN39j1+L6PfJ1C1VcL+oGfElnoSPQn7SJKZuoLg6eRSA7bObvA4V1+v12K/2/Kx1pHaaCET96a8C5cwZuJ4sioXVihV4cnDU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792771847; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=BzDWG84REuvH8wtFMpjxQ65QwD3R7Ke2GH79Im1dAFw=; b=H9CKqrihoGidRsTaUABEMjIrVxxSp6yMy7cRoxTIEfWiz9UH4Baz+aMnfEI0UNApWk6WcqTD7WehcpGa25hBct0anuyeCtLQr2r7GkoKD/Q6TjBLUSDUWcV5m9OmByLxmNguEQt1qkn4RQ6CU9MILpwHfI9ZV/vGJu3PRl2TONg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792771847141872.5373613365095; Fri, 23 Oct 2026 09:10:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xKHqZ-0000jm-Rq; Fri, 23 Oct 2026 12:10:27 -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 1xKHq6-0000dl-VQ for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:55 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xKHpq-0001UN-2n for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:52 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69NE67oF3019023 for ; Fri, 23 Oct 2026 16:09:30 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfsykbwew-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 23 Oct 2026 16:09:29 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f1f2fafeaso138801585a.2 for ; Fri, 23 Oct 2026 09:09:29 -0700 (PDT) Received: from QCOM-UWl2o8bcGT.qualcomm.com ([152.234.125.162]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91c4524f226sm5063406d6.27.2026.10.23.09.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 09:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=BzDWG84REuv H8wtFMpjxQ65QwD3R7Ke2GH79Im1dAFw=; b=laOeNrkgOZH/crIzfgdhobASh3D s2axKPEpb4xl6U7fKyfJWogmqvoJ7B439FYmNJqwkjLOsuMY5UtNAyxk6SOaqUgT FrlnhlAVgCSBfiUbcApmTi3PTDqBcUUsYkSqWXwMoSGruvAm/0dhk6i7KD3QZzbr vh4AZeIrLDN2c4ynK9dC9YqiXXJsj+9P8htunUIsK31k+L+jVCgh+Lm/QxVANkZN u0A82p+0PFSNkbyc8HzQY4xARAaoTQHsT74tseBnz+GLtUctAQI95uk40pRuL4bQ bYswDxilSuOXVTR7ZxNBDI1IbXBFdDMdBddySpOrHtNdxQi3XmAyX22x82w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792771769; x=1793376569; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=BzDWG84REuvH8wtFMpjxQ65QwD3R7Ke2GH79Im1dAFw=; b=WozmlTfvcyWEsKT7HfHhBoZxmQituXKeLKRpHvNcd+pfkRAQNnWRdJWn0ERqJg6MIy Z7AWfB9qSd0j734F7eJd2cvmkFpZUvoKNtYsOVc+NxkrulxajGjAbGIVAX28wF+aT8Zr fUK00D/+S1kWklca6rqvcGvHTzmRUVnYjglKB9BObL4OOUg3iIm49HQkQoYbqYe6OXcA 5ovaIFlF3iu719M6zshHM77RH1GXHi6S5liTIbpZwfC8zXB0BxWZnrI4a6kbGWQ3OQON VqaEmTxrP3p1x3Op9oy9eG0FK/HzPTv3M/8vH2/tb8S0V0kT9QkTWKqj6r7B1n5U3xKF dPGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792771769; x=1793376569; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=BzDWG84REuvH8wtFMpjxQ65QwD3R7Ke2GH79Im1dAFw=; b=Nu/EWvwRQHci4xr9KkObUuGDyy4RgAUeM5S3mujp4z0LaFAof4PygelPazUxu/Q2lJ 0nKiPCEYnXnMCm6ZNH3Cla3kGuwUGkw1UxRAiNM+ac5yVvluv0bWFxPhKbNA5DVZxg/S oOzk/9wCTR4KXHDjHefjuyEjSdZNF8AORY4x0aWCGTiTaEhmx4VPF94W8nBXEAMAZZG4 s6EsckaXUH2CYg/dEa2Kio+aq5quZcin+FEsxY7ccxD8M8XTISAtrwovlnWf3Yn2zciK 3t74Ohy3mNFfgOGDP0P1ty0XowL/QOT92rjaEx6vPpskYV63Fg488v39uTJqCQF3uakR g7Lg== X-Gm-Message-State: AFq9FYJpCnDo3AulrRcSkoqpzusUGEBqgYi3LKG7+ZjkGU2tSqj0rA7J xz8Li67p0qF5GZ8IH25U+4p/6Ijn0baIhM4zL0SpU06lSqg4Qx2GC9q9wfwg37OLnyE7ydTrhzE e2hfTKHPFocAT4ojaRhH2Oy22Xk7fZdlDRPbc3uRlYgyeAulmvUzo9IRPpOloY1vprg== X-Gm-Gg: AYBFou0dRWN8oFccpyMRNflLw3YZG1rMLbOkikLS+3yoTcp9Pca9vDIqiCT+faOf7tN ANWeMs9U3aqCuZ3PSktOa+uHwsYolfn7cN4lSzjceQ84NDnZyo31mlVYuFEwQv0Iwpshg0KseKW XeTsbW6TzOsAwsBSLWC/rDOGKODmC6Ac7SvAfH5bVOuUA7I8aIm+ZWde9Cmr5RMgflU6GKukqCx kHB03iSB5AGDDZIuYn18jorfmBVOIoIghi4B5AkErFXQNRatTvJmiFq8scVuH+TtRG0FZPrBT42 quMEEzkPGBD875sMx7Tj2AAL8QtbvcbvqPWm+Mv70TUhdqjJ3o5TEJ9b7WgC3+q3xv3qdIL8ZRQ Y+ndmhBwhQEUwT1aj0HC12XiEj8plLCelOUxn2A== X-Received: by 2002:a05:620a:8399:b0:93e:8614:bbe7 with SMTP id af79cd13be357-93f6f79c4a0mr472124185a.12.1792771768741; Fri, 23 Oct 2026 09:09:28 -0700 (PDT) X-Received: by 2002:a05:620a:8399:b0:93e:8614:bbe7 with SMTP id af79cd13be357-93f6f79c4a0mr472117085a.12.1792771768091; Fri, 23 Oct 2026 09:09:28 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu@processmission.com, Daniel Henrique Barboza , Palmer Dabbelt Subject: [PATCH 3/6] hw/riscv: make UART FDT helper consider baud rate Date: Fri, 23 Oct 2026 13:09:10 -0300 Message-ID: <20261023160913.24992-4-daniel.barboza@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> References: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfXxRFCylePB8rr He5TnLgj+vhp7LH4yMjmLWDvcBZUCMnlBnyzm+9Zq/EdxGgbjtvkGpPSk4WhNpup3okSI/tId4y MW5LTtU0ClLp4d1JMigUCGtlFibLBFPBSnW08oKLru4JNvuZgHPcU29PGHPBOzcrPEK9hjK9Gd/ +bvU3af11WzfHygKPgAHqpi17iNzPXF5Qrm6xiAkgUI//f/0Xju9uonyPCqSR7Bh8OjrJWroWzT fRNxXrdmkIZVqUPKPVazSAY6MrSd2UZdUA8bYtGNv115ZQYUHToSEiQQ4fXAQiCNuQOUejc33if txxFx2dRxpwpKybLxOEtrjuAjtX1zfiI8dRGJSM0iQq/p+JSwq9Tvz4Eo/Jc1VxRquFUZJ2wc1i zugFWt0U/4hPKkJdco9LESdheGqge6rnfzVVwIuyvajqIlvMnh7PeDJi4xVW4M7ICvzt+WBOLbU LHHyT/ZVgbxgwe3scmA== X-Proofpoint-ORIG-GUID: wRqL5jaf2esFo1kZdFf8lm4L4zPlvsDl X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfX7YXFUWoTM513 78irQmb9nhzSwe3TgHWYO4Dhs/ZOPWcaj6AjO4eGyqMGCj8O0KRJCVji43tnLYDQcCkMEVowYzw /zbbDdz7ICF8ujLfpYQr38U/lMi5ZDI= X-Proofpoint-GUID: wRqL5jaf2esFo1kZdFf8lm4L4zPlvsDl X-Authority-Analysis: v=2.4 cv=GLKdgeNK c=1 sm=1 tr=0 ts=6adb86b9 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=AgQEunjic7gIBKSbIeB6Ag==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=uxJGSlK6fkZaI5NcCCYA:9 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-23_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610230063 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=daniel.barboza@oss.qualcomm.com; helo=mx0a-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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792771848394158500 Content-Type: text/plain; charset="utf-8" riscv_create_fdt_uart() is defaulting to a 3.6864 Mhz clock, which Linux will interpret as a 230400 base baud serial. We need more flexibility to set a different baud rate for UART devices. Add an optional 'base_baud' parameter that allows callers to set a baud rate for the related device. We're keeping the existing default in case the caller does not care to provide a base baud. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- hw/riscv/fdt-common.c | 19 +++++++++++++++++-- hw/riscv/server_platform_ref.c | 1 + hw/riscv/virt.c | 4 ++-- include/hw/riscv/fdt-common.h | 1 + 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/hw/riscv/fdt-common.c b/hw/riscv/fdt-common.c index ce2dcb43b4..abb913faec 100644 --- a/hw/riscv/fdt-common.c +++ b/hw/riscv/fdt-common.c @@ -22,7 +22,11 @@ #include "hw/pci/pcie_host.h" #include "hw/riscv/aia.h" =20 -#define UART_STD_CLOCK_FREQ 3686400 /* 3.6864 MHz */ + /* + * This 3.6864 MHz default clock results in a base + * baud of 230400 symbols/second. + */ +#define UART_STD_CLOCK_FREQ 3686400 =20 void *riscv_create_board_device_tree(const char *model, const char *compat= ible, int *fdt_size) @@ -807,11 +811,14 @@ char *riscv_fdt_get_uart_nodename(hwaddr addr) return g_strdup_printf("/soc/serial@%"HWADDR_PRIx, addr); } =20 +/* If base_baud =3D 0 this function assumes a base baud of 230400. */ void riscv_create_fdt_uart(void *fdt, const MemMapEntry *uart_mem, int uart_irq, int aia_type, + int base_baud, uint32_t irq_phandle) { g_autofree char *name =3D riscv_fdt_get_uart_nodename(uart_mem->base); + uint64_t clock_freq =3D UART_STD_CLOCK_FREQ; =20 qemu_fdt_add_subnode(fdt, name); qemu_fdt_setprop_string(fdt, name, "compatible", "ns16550a"); @@ -819,7 +826,15 @@ void riscv_create_fdt_uart(void *fdt, const MemMapEntr= y *uart_mem, 2, uart_mem->base, 2, uart_mem->size); =20 - qemu_fdt_setprop_cell(fdt, name, "clock-frequency", UART_STD_CLOCK_FRE= Q); + if (base_baud !=3D 0) { + /* + * The base baud formula is base_baud =3D clock_freq / 16, + * ergo clock_freq =3D base_baud * 16. + */ + clock_freq =3D base_baud * 16; + } + + qemu_fdt_setprop_cell(fdt, name, "clock-frequency", clock_freq); qemu_fdt_setprop_cell(fdt, name, "interrupt-parent", irq_phandle); =20 if (aia_type =3D=3D AIA_TYPE_NONE) { diff --git a/hw/riscv/server_platform_ref.c b/hw/riscv/server_platform_ref.c index ea24720a08..3191615c02 100644 --- a/hw/riscv/server_platform_ref.c +++ b/hw/riscv/server_platform_ref.c @@ -315,6 +315,7 @@ static void finalize_fdt(RISCVServerRefMachineState *s) =20 riscv_create_fdt_uart(ms->fdt, &rvserver_ref_memmap[RVSERVER_UART0], RVSERVER_UART0_IRQ, AIA_TYPE_APLIC_IMSIC, + 0, irq_mmio_phandle); name =3D riscv_fdt_get_uart_nodename(rvserver_ref_memmap[RVSERVER_UART= 0].base); qemu_fdt_setprop_string(ms->fdt, "/chosen", "stdout-path", name); diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 39381cb21d..c4447d971b 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -385,11 +385,11 @@ static void create_fdt_uarts(RISCVVirtState *s, uint3= 2_t irq_mmio_phandle) =20 if (s->uart1_present) { riscv_create_fdt_uart(ms->fdt, &s->memmap[VIRT_UART1], - UART1_IRQ, s->aia_type, irq_mmio_phandle); + UART1_IRQ, 0, s->aia_type, irq_mmio_phandle); } =20 riscv_create_fdt_uart(ms->fdt, &s->memmap[VIRT_UART0], UART0_IRQ, - s->aia_type, irq_mmio_phandle); + s->aia_type, 0, irq_mmio_phandle); =20 name =3D riscv_fdt_get_uart_nodename(s->memmap[VIRT_UART0].base); qemu_fdt_setprop_string(ms->fdt, "/chosen", "stdout-path", name); diff --git a/include/hw/riscv/fdt-common.h b/include/hw/riscv/fdt-common.h index eb9db8278d..ee664983f4 100644 --- a/include/hw/riscv/fdt-common.h +++ b/include/hw/riscv/fdt-common.h @@ -132,6 +132,7 @@ void riscv_create_fdt_socket_aclint(void *fdt, ACLINTFd= tProps *props, char *riscv_fdt_get_uart_nodename(hwaddr addr); void riscv_create_fdt_uart(void *fdt, const MemMapEntry *uart_mem, int uart_irq, int aia_type, + int base_baud, uint32_t irq_phandle); void riscv_create_fdt_rtc(void *fdt, const MemMapEntry *rtc_mem, int rtc_irq, int aia_type, --=20 2.43.0 From nobody Mon Nov 23 04:34:21 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792771896; cv=none; d=zohomail.com; s=zohoarc; b=mrgRl/TCVbvW51ZU3d/QSdj/b0rm4gao/K6Qr4799eSV1TP4stglDW2617+ir16Pv1RJeza2YxBwot4W4y3sgNCsSwCAqvtkmkRgn4AM1WvK7kZiw5iSeWVwRMzgzsD1e9a5lH1alfo/4uVncgAuqllOlU6auZkK06OrjIji74Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792771896; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=9cxXdeYXoSj5qiwMX3CVbxaJApluvZXN6CyEkrkon6w=; b=MeJiKUo7fBWojRH1Tz2fpj5GxSet11VFPaHbcAHz4noKGtGIbXUsHioqbfxaMrrNr5HH4Y8ZQW6tUNrJtkkPo7jfhm5t/Z5KSL+9Pky8wqRnab/UhPT07SwUJQsG6LDD9AJ5/1jNr5Hpy79273M21FyZUaGz7k5YkuRlbK36Zbo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792771896864414.48406482636346; Fri, 23 Oct 2026 09:11:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xKHqr-0000nY-4l; Fri, 23 Oct 2026 12:10:42 -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 1xKHq7-0000ds-Of for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:59 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xKHq1-0001Uz-8W for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:53 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69NE5wob2109142 for ; Fri, 23 Oct 2026 16:09:32 GMT Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfqms4fgt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 23 Oct 2026 16:09:32 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-535131e4c25so23092011cf.3 for ; Fri, 23 Oct 2026 09:09:32 -0700 (PDT) Received: from QCOM-UWl2o8bcGT.qualcomm.com ([152.234.125.162]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91c4524f226sm5063406d6.27.2026.10.23.09.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 09:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=9cxXdeYXoSj 5qiwMX3CVbxaJApluvZXN6CyEkrkon6w=; b=T8Lrj/op7M2fd5oTuucQh6lLkLa q6Y5gz+T3nsdfaJMSJUc/X8+yIYIsww9Ote8gJ2Gsmsq1TVBt3D7A6gvv8egQIgT Rb9BHcFdS4rQE6nKqXxV7GiT/aDjrgb5W1gROgpxuEEe0dEFVdv2S/Co293aVTwT 75AtluH31q1mErY1pnXWAazp5fxAxvTn4fkZ/SaCYRAtLdXe+gNicP2YZrDyS0tT zKGy3r1mlaULzdzU5TN2RctbGltIt8B5gsl6pswuEe7kKa4Nae9R+TW2Hi2G/OsF RQvFPTSAEfj+6fT+9r9PW/g6y+8csk4nrFA0Rri97YZ30oSbG1SucmUJSdg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792771771; x=1793376571; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9cxXdeYXoSj5qiwMX3CVbxaJApluvZXN6CyEkrkon6w=; b=LwvOEHNVy4p/0wr564n+uXEIOu2hCDTYuuNdEu4SQ/UqNAhClO/9x523EhXAdgoxBB TmxN5u7Q6BNnaOYixE9vISyTAjhqJmNcQ2jmR5vxNZpPt9QB5BO2g6ouUtDihG621LaZ owlnVgT031XUOG4Y6UcxIJtBM+bVYdfbx2WNOnq/NZcdGY/oCBCgGx7K+H5hU39zpSjd s6lUt2lK/vplJFHeMPF+z8EGP0al+yoxPRTJ0dpKVzQ25dVPJOXmBXSAMN5yVL6I8ziH XKTH7F9E5qqLTn6+1JIuZ6en+RXQkC3OISej/24OKMemSs01SldVxMd7N5Nw5OmqTA6h vbTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792771771; x=1793376571; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=9cxXdeYXoSj5qiwMX3CVbxaJApluvZXN6CyEkrkon6w=; b=hbcyx/KRCr8NLr9TXltoJTGea3TEnx5b+hPpAxo2lUqZOxye+BRwdMZlaeWIgT/EfL 2FJaHKy9l9wD5ebI709q6SCHl/aZyLg7EQ2ZNXameernSgXjRrDECePjQkq4zogIkHt3 ZiLHlntIiZlKgfHy/qoCwcd/HlZkVnwQY9Hpuene7uiaGD5ojiBSbyAfF2/vHxuDs5nd vFCpYEX2WQf5VrHuR5rbcZ4E1HuCrAvZK2WXmwffJzp2PUp/P2huaPMm2Ry4jLwH081M pP9CyQ3vALxySDST4OazZ998EWmEzsQRAnCiqDzPCQqqPj8pxLqpIx6Y67lybggjRBB1 aU+A== X-Gm-Message-State: AFq9FYK7uKjByy9kNJKvRRZlpKc6v8yghJ9JKKqO2SRNAMAVhkiet705 HWFRvc8pCPMXcvdT91EFf667j0UrdMw0f+us2I9W8LFx1ggFNc3EA5/M2M0DAt6yXFgZmCVrKr+ 9I6Jom6pJ/Y4sDoxacLGs3ZDnOg5IdZ6nBzvbsdZEkc/iOIyIR/cnAMnUq1iBRdVwew== X-Gm-Gg: AYBFou0UkHeahAlyKedd5SJqhZQASATUaOdZ38zwOLy20BtRgMTUCpSpwH/QrCCnZW1 HDwuU43chxn8WmfXAPvnXSbbFz4O7UO/ZcqcyHmhryPZtTjraJAX756mMY4a2NSdNDc/0+VMV1u BM+flS/lAqOwfQgFKHbvHBAWcLxbt21pYzriBSRqAkRjBHNA/6DLYxy8f9fAd7PfpYPrM7CjrBJ ZTZlGfaXet0tUS/I8jSW+TbujiP7kQ/Y6SE4a9Y0kJO2CwXm1VLrD11XfkjFNYlDIe1s2PEMMd9 eNFD3OLn9/J6I3GD2IJnYh4R9XVIX4AcJQxC0MNrwc1ogYHFp6TFxz3VX6NblP22u7DOURGq1Hr YYfUx++tVAIGwCQO4w9k7E1xwuzn+1vb8eu81tg== X-Received: by 2002:a05:622a:2586:b0:536:4cf:4875 with SMTP id d75a77b69052e-536c2964993mr36232401cf.71.1792771771031; Fri, 23 Oct 2026 09:09:31 -0700 (PDT) X-Received: by 2002:a05:622a:2586:b0:536:4cf:4875 with SMTP id d75a77b69052e-536c2964993mr36231751cf.71.1792771770500; Fri, 23 Oct 2026 09:09:30 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu@processmission.com, Daniel Henrique Barboza , Palmer Dabbelt Subject: [PATCH 4/6] hw/riscv/server_platform_ref: fix UART baud rate Date: Fri, 23 Oct 2026 13:09:11 -0300 Message-ID: <20261023160913.24992-5-daniel.barboza@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> References: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfX1lS7WD1C8DoD hIer83c1LmT4bcNYSC6roULKRAz7tSNvE8TFhPatAgHxUGGuy31UHhWhhlRr74y0IWsodfaJL15 iQyGomwBLeZhvZ45ADLNo4gceV8XltjOFusKA0uoO7DmyfzdpV4+ZBE7PPJXahALH3EpynGu28P g4aZh+lVvlRC3ewhi5TRiG2ZS7PRTU0joxPOPwHZN3kgWaHiU71W/975i+AE4D6WVVvqT9sxJcW PVbEOcArzbxcC5vBo/h7WMY1xcCczm1LSo79F9WZxZPVZt9bVWe226Vh3KKxTapHoyKaM/iqn37 ihhCDSXj1oz/VRTztU4jMKR6UVOLmjYMIYd+1jUsKUToPRa7p7qdDYLoCAyVC2+mjOtcc8PXVrY kGqmcEF/bapiCpxtzbARt+Z4n+ssIcT05k7J4nuewNF5FRQQTpa1KBpBEhYbHP1sMcdCXV9VWzv HIG6MyjCVi8af/Iy2Gw== X-Proofpoint-GUID: XNueuQpxOYy2mBAn6DK_OeJqs487JHg2 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfX6MG//nHjld4a rzaYEM7BkmuM4EBdZUWNP3jHA95ZENaocQ01H5mPUn1Z6ORl3q1Gia6bcpZ/f7KMC+w8tmJG0uf LBCSGyP9XhMy9/WTQDLWLgwI5o7Clss= X-Authority-Analysis: v=2.4 cv=UdbE26SN c=1 sm=1 tr=0 ts=6adb86bc cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=AgQEunjic7gIBKSbIeB6Ag==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=HwFc7jivAAAA:8 a=EUspDBNiAAAA:8 a=HyuSmn1QhchWdNVMt-0A:9 a=a_PwQJl-kcHnX1M80qC6:22 a=kr7TZk85JJIQSqC0cl8G:22 X-Proofpoint-ORIG-GUID: XNueuQpxOYy2mBAn6DK_OeJqs487JHg2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-23_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 bulkscore=0 clxscore=1015 adultscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610230063 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=daniel.barboza@oss.qualcomm.com; helo=mx0a-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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792771899245158500 Content-Type: text/plain; charset="utf-8" The riscv-server 1.0 spec requires an UART with 115200 baud, per rule "HPER_020" described in [1]. At this moment we're doing two things: the FDT is being created using the default UART base baud of 230400, and the device itself is being created using a baud of 399193. This odd value was inherited from the RISC-V 'virt' machine when implementing the first interaction of the riscv-server-ref board. Linux doesn't seem to care: dmesg reports a base baud of 230400, a value derived from what we're writing in the DT, and the serial seems to work fine. Straight everything up by setting the required base baud of 115200 everywhere applicable. And for good measure let's also change the boot test to be sure that userpace is reading the intended serial base baud. [1] https://docs.riscv.org/reference/server-soc/v1.0/server_soc_requirement= s.html Fixes: c2fa4320803b ("hw/riscv: server platform reference machine") Signed-off-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- hw/riscv/server_platform_ref.c | 8 +++++--- tests/functional/riscv64/test_server_ref.py | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hw/riscv/server_platform_ref.c b/hw/riscv/server_platform_ref.c index 3191615c02..e86c37400d 100644 --- a/hw/riscv/server_platform_ref.c +++ b/hw/riscv/server_platform_ref.c @@ -68,6 +68,7 @@ =20 #define RVSERVER_PLATFORM_BUS_NUM_IRQS 8 #define RVSERVER_IOMMU_HPM_COUNTERS 4 +#define RVSERVER_UART_BASE_BAUD 115200 =20 #define TYPE_RISCV_SERVER_REF_MACHINE MACHINE_TYPE_NAME("riscv-server-ref") OBJECT_DECLARE_SIMPLE_TYPE(RISCVServerRefMachineState, RISCV_SERVER_REF_MA= CHINE) @@ -315,7 +316,7 @@ static void finalize_fdt(RISCVServerRefMachineState *s) =20 riscv_create_fdt_uart(ms->fdt, &rvserver_ref_memmap[RVSERVER_UART0], RVSERVER_UART0_IRQ, AIA_TYPE_APLIC_IMSIC, - 0, + RVSERVER_UART_BASE_BAUD, irq_mmio_phandle); name =3D riscv_fdt_get_uart_nodename(rvserver_ref_memmap[RVSERVER_UART= 0].base); qemu_fdt_setprop_string(ms->fdt, "/chosen", "stdout-path", name); @@ -614,8 +615,9 @@ static void rvserver_ref_machine_init(MachineState *mac= hine) RVSERVER_PLATFORM_BUS_= NUM_IRQS); =20 serial_mm_init(system_memory, memmap[RVSERVER_UART0].base, - 0, qdev_get_gpio_in(mmio_irqchip, RVSERVER_UART0_IRQ), 399193, - serial_hd(0), DEVICE_LITTLE_ENDIAN); + 0, qdev_get_gpio_in(mmio_irqchip, RVSERVER_UART0_IRQ), + RVSERVER_UART_BASE_BAUD, + serial_hd(0), DEVICE_LITTLE_ENDIAN); =20 sysbus_create_simple("goldfish_rtc", memmap[RVSERVER_RTC].base, qdev_get_gpio_in(mmio_irqchip, RVSERVER_RTC_IRQ)); diff --git a/tests/functional/riscv64/test_server_ref.py b/tests/functional= /riscv64/test_server_ref.py index ad29094dbe..fa7225ccc1 100755 --- a/tests/functional/riscv64/test_server_ref.py +++ b/tests/functional/riscv64/test_server_ref.py @@ -71,6 +71,9 @@ def do_test_boot_linux_test(self, tpmstate_dir=3DNone): wait_for_console_pattern(self, 'Linux version') wait_for_console_pattern(self, 'Machine model: RISC-V Server Platf= orm') =20 + # Check that we have the intended base baud for the serial + wait_for_console_pattern(self, 'base_baud =3D 115200') + # Test e1000e network card functionality wait_for_console_pattern(self, 'e1000e') wait_for_console_pattern(self, 'Network Connection') --=20 2.43.0 From nobody Mon Nov 23 04:34:21 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792771864; cv=none; d=zohomail.com; s=zohoarc; b=EK5cjHHYVZIkbzQvFbKvQG7TJZauF26Fs4BBUNY2V060yCekviEbRXGiagttIZ0V5kdIBLZQYh4QjlLTLYdyAK1mwZ80OOmnCQE1Y+cEJQzNFrZheA8/lD3KQWvd7DCbASIbi261aFcthTlfupTUMzwSNwUyo+B5JBXVgXJCb4U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792771864; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hKngGAPqb7HKNATxHsXTSIaJgaUH84fCv+sGCJ8OAw0=; b=nWNyP3MCX4Yz5SOWyhLw/+l41AWsIcADXBdWBLxToilj/TAhiH5qroIzVoAt3GeQp4R2L7xSvhp+HlkFhERZBo4jk3QDApIvij2Vn040jGS2Rd2ARgUHudklUxQVSE6aBsWEyqT17IcDGprr+P2Z9LDseXnSg8LQE7BQ80ywNOc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792771863996893.4776102203075; Fri, 23 Oct 2026 09:11:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xKHqg-0000l2-6L; Fri, 23 Oct 2026 12:10:36 -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 1xKHq7-0000dt-Od for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:59 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xKHq4-0001VE-7e for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:55 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69NE63L64064343 for ; Fri, 23 Oct 2026 16:09:35 GMT Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfqmrcfr4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 23 Oct 2026 16:09:35 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-9195c59ac8cso31309866d6.0 for ; Fri, 23 Oct 2026 09:09:35 -0700 (PDT) Received: from QCOM-UWl2o8bcGT.qualcomm.com ([152.234.125.162]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91c4524f226sm5063406d6.27.2026.10.23.09.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 09:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=hKngGAPqb7H KNATxHsXTSIaJgaUH84fCv+sGCJ8OAw0=; b=ZuHWLxABamoSbuiemRfaOcw+MrC 8z+ABgT9lEofOOwPNQhyqyJcmDY/vyyNTPlmGKaw+dhXkXdbX1B6NLzRAuhe73jS /BNekUH+xbL0OTsyDhn2pUSvPpHk5+m+pMOfd7XjoSGUcAO8oilNG1rXBiph1GOK ob2wSXPqAOzacHIETuCiluRsk3xk5JAlz4AqBEZ5Nv7gEAl56dhYfSuBc7+jqa9H AzoKlKK46aVwMVhTr84HPouDNP4sLuYTVxxyNpULiDz0mtswEUcgraR4GuypFSVw 8K+Acpk0GFmnO9ZTDD1/YgBrh66sebaeEA19AR/DbPzp7nRKkwZmbM9jaJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792771774; x=1793376574; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hKngGAPqb7HKNATxHsXTSIaJgaUH84fCv+sGCJ8OAw0=; b=kdEiDkzRH/rbZREOaRXWNmhF8IkirjPyx/wECjRrB/UMCn+Q9sqsyRTcLNbj46uPpD g5p0QNIxwsxoMQ++XfF9z7QaEHZy2Jemd2+zVj+DFtr+ZKIZdg4sBIw6NBfNyCDh+9OQ XLwtmyc504YlhF9lNOAkSM27MSQGibjZ4uwC2KtGXShP5XnwZQYMEV4dsIMOaJTrHSnN nLK371Wox+5ka+wAdVFtBt5R0t+f1eFPM0K4wNDKgd8UEuRJjZ/NHNDBsU6XNE4O58Uj 1ZWWJfaIaCF1sC1jMcjhVrYwkVnj7rJtyfKv9c8ITBYYef0DdkMrNHKkDsfjjEdbbtf9 mBIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792771774; x=1793376574; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=hKngGAPqb7HKNATxHsXTSIaJgaUH84fCv+sGCJ8OAw0=; b=UUvGkFg2oaF5UClzL4/n/jyRNEK+p4NhSlFnDthacELtO7TXeVj2QuYuoRPJtV97EH aKL4e735jcTNp11CPusC4mjsw9bJvYDh1zz9jVvPQeEmHBf12AJqvgtDMsSFkU54DcbX eqlLTTwizVRLD+poazJiGKXNO4rJNAb7tcFenG1RsqnipgcAw3QMw4ee+o1DPVLL62jS 4ujq4EzFWpYJGh/BBIjKSQEwkE8vX99LPDnAlDNJTs34vD64AxXfENoJU6kDV+ecoXZp B98IoOugD/MZOGifW8WjnBuL9P95eJ8hdRGJbnCn4lTyQrERLIJ1Jlr6JsuFEgzCd+bu mHBQ== X-Gm-Message-State: AFq9FYIIzq3XnSEgCuyolllGLxmgzvT4uv7DuQcLwtPDXe1lzWf/o0AI Ff8pA5YzvKPn/0jpYdCXzvHVAyhRfzwJI79NrP14UW9fOKCwIsHb5t89BIIR3ahkyOF+sbu8tu9 Db48kdp7oNXNdCPpmSi3NZZ4uvgcOoxBJ0KIMghNpTwbfNomG/FcSC4CFjabPiFtaDw== X-Gm-Gg: AYBFou2kxORdDvm1Bmm9THuOVsXzDPaTCTQ47XmAncnN3kptIb+vykj5kWJ67Ngscgx 7+RDzJ7wNa0uqGHlnMJj3mnyAUwhJYIfdTo21bsmy1YxjYkYW/HsGH9HTnVUA2M6+wve7xZWcea 5ZBbG2tSGQjrPzYbqxkqYZY/GHbAB5ggAvMFuxsPymuwHob7eo96BCOdp1XcNhanX5SilcQgeq7 0TT4eRLa6Ln4+06f0rDnJmnVWWYvGhTIaLS4xBrlj5XvJSabT9YpVf2WmNZD1dWvwRS9zAatxpt sy4XxwAn8UGlfOuTuSUiybua2mpZZvXS8RucRKnMKbgFppJm0glnZby9PYQXOuoimQ8fxhzemHp ps+LlvCnzr4xxZf0mx2ck2M74OuGkhsO+bfTCOw== X-Received: by 2002:a05:6214:3c8e:b0:91b:9061:b808 with SMTP id 6a1803df08f44-91c3a8bc7aamr38651176d6.21.1792771774529; Fri, 23 Oct 2026 09:09:34 -0700 (PDT) X-Received: by 2002:a05:6214:3c8e:b0:91b:9061:b808 with SMTP id 6a1803df08f44-91c3a8bc7aamr38650606d6.21.1792771774042; Fri, 23 Oct 2026 09:09:34 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu@processmission.com, Daniel Henrique Barboza , Palmer Dabbelt Subject: [PATCH 5/6] hw/riscv/virt.c: fix base baud in serial_mm_init() Date: Fri, 23 Oct 2026 13:09:12 -0300 Message-ID: <20261023160913.24992-6-daniel.barboza@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> References: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: uTXgE39T0Kiwv13Mw8EFUM63E8pWeTan X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfX5kwHwI0z3bNA FH5oJvOrR6dXpCAxiS/Zi5Pa11XJxRe/V9pfdEwgkfWejDzhTKGQzmvauIISwBNuMEXUahinpfu BDYzsohp1i8qLHarHc66iYeGP+7nlss= X-Authority-Analysis: v=2.4 cv=VNZIDNPX c=1 sm=1 tr=0 ts=6adb86bf cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==:117 a=AgQEunjic7gIBKSbIeB6Ag==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=YBD5noFLO0MiZe3rPCsA:9 a=OIgjcC2v60KrkQgK7BGD:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfX1nA/hZO5wyys tQLOBMc2gFsqMis+tAN3+q/mswvPpolKaiPJbT/HVapPHz6w+rd6l21rwZIgogOvErdMkhsC/kR bhaf/CH5RgukeGSaQ6FVj1R39e7nD6i5tr7lZHW8tgyzx0JVXwYNg4wIkNlq3bdVJI7HEGClzfr RCJBJCo7w+YHEoj04w4NAR1r6P8Ns97a66k7ZKZAP2Y/Daswx6ddv1dfH9ph9MMBi0PI+YWpBiz bqsL3qH1ggCtlTtHA9KjknJzOKU4Rc4miLHVXeFvKXgssCY7IvS4Ak7tI3fFRAcR45dRES2BqdQ A5ek37SCp2JGAr1320e/8VnPQv3A+9cf+nirTlyPfQ6ybxWim/Mby+21LANjphu1gW2FbmNjKL/ Eoh2/AQxAdj++A7DrQ2fIQAP4hYxGX8dLp4i4bA5d24YAC8T6I+488sJYalvPa70hqW6k0EzREa 4Bm9HhlVfk6cB+EKHcA== X-Proofpoint-ORIG-GUID: uTXgE39T0Kiwv13Mw8EFUM63E8pWeTan X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-23_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610230063 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=daniel.barboza@oss.qualcomm.com; helo=mx0a-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-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792771864752158500 Content-Type: text/plain; charset="utf-8" We've been using a base baud of 399193 to create the UART devices while, at the same time, reporting a clock frequency that represents a 230400 baud rate. This pattern dates back to the initial RISC-V port and so far seems to be doing okay. Linux thinks that we have a 230400 baud serials and nothing seems of. Or better yet: no one has complained about a potential bug in the UART devices since 2018. All this said, set the UARTs baud rate in serial_mm_init() to match what Linux has been seeing all this time. Fixes: 04331d0b56a0 ("RISC-V VirtIO Machine") Signed-off-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- hw/riscv/virt.c | 10 ++++++---- include/hw/riscv/virt.h | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index c4447d971b..03c17ce7d8 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -908,13 +908,15 @@ static void virt_machine_init(MachineState *machine) VIRT_PLATFORM_BUS_NUM_IRQS); =20 serial_mm_init(system_memory, s->memmap[VIRT_UART0].base, - 0, qdev_get_gpio_in(mmio_irqchip, UART0_IRQ), 399193, - serial_hd(0), DEVICE_LITTLE_ENDIAN); + 0, qdev_get_gpio_in(mmio_irqchip, UART0_IRQ), + RISCV_VIRT_UART_BASE_BAUD, + serial_hd(0), DEVICE_LITTLE_ENDIAN); =20 if (serial_hd(1)) { serial_mm_init(system_memory, s->memmap[VIRT_UART1].base, - 0, qdev_get_gpio_in(mmio_irqchip, UART1_IRQ), 399193, - serial_hd(1), DEVICE_LITTLE_ENDIAN); + 0, qdev_get_gpio_in(mmio_irqchip, UART1_IRQ), + RISCV_VIRT_UART_BASE_BAUD, + serial_hd(1), DEVICE_LITTLE_ENDIAN); s->uart1_present =3D true; } =20 diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h index e516898f9a..f66d2f3342 100644 --- a/include/hw/riscv/virt.h +++ b/include/hw/riscv/virt.h @@ -121,6 +121,8 @@ enum { #define VIRT_PLIC_SIZE(__num_context) \ (VIRT_PLIC_CONTEXT_BASE + (__num_context) * VIRT_PLIC_CONTEXT_STRIDE) =20 +#define RISCV_VIRT_UART_BASE_BAUD 230400 + bool virt_is_acpi_enabled(RISCVVirtState *s); bool virt_is_iommu_sys_enabled(RISCVVirtState *s); void virt_acpi_setup(RISCVVirtState *vms); --=20 2.43.0 From nobody Mon Nov 23 04:34:21 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792771879; cv=none; d=zohomail.com; s=zohoarc; b=iJ3Yf6kg+GoN2aQd9y1B6oX+x43rnGCoqCIp2tXFxnecSAgERhVO4JpTKAQuhxgu9giwOFqlQcAfCRwi1aies54fQEqdHCKrWpp6m99xD3dKmTOXJ18/7AondJp0Py4v/q7vuwK3rFDhFz7q4QwCy/GzNMwYxuvYwP28D+MYrG0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792771879; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=A89pYnehqG9Oa0zr2K6Nlg1zPjOZrHj4TGrxRdiRMKc=; b=JFg64zWlgv8YS6bnWlpmw5XTd+4nUssDYlHYPEujX1orcp1MWNmvr6XOUrxi8l2pu1JY3i2U9JiE0HlVQKNMco5WUxKqSS6iWUQF/xEbNUOp0ej8XjzWKeFMB0oM7JQxVpYuZ9BNHk7gjQnu4bOXbrGZ8o2kWqlu+4Jw15rx6NM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792771879873931.3729657537156; Fri, 23 Oct 2026 09:11:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xKHr0-00015i-0u; Fri, 23 Oct 2026 12:10:51 -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 1xKHq7-0000dw-On for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:59 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xKHq3-0001VZ-6N for qemu-devel@nongnu.org; Fri, 23 Oct 2026 12:09:54 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69NE5sh84072734 for ; Fri, 23 Oct 2026 16:09:38 GMT Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hg7bw0w2m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 23 Oct 2026 16:09:37 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-917a109c937so16109196d6.2 for ; Fri, 23 Oct 2026 09:09:37 -0700 (PDT) Received: from QCOM-UWl2o8bcGT.qualcomm.com ([152.234.125.162]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91c4524f226sm5063406d6.27.2026.10.23.09.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 09:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=A89pYnehqG9 Oa0zr2K6Nlg1zPjOZrHj4TGrxRdiRMKc=; b=e3nZ+3wsUPbBP+JHCPFp6it1/WG rfHuqWOxLe3Pa+EaUSts6OTngv+GQ4gRT89ZljbIZkmzmWuYFNy3TIvcq19JS+dK F274zU+fE2porLY+Bpma+8ZM87sOjnNii4fhi9wYKmE9jlhOyI2rlNfcZifsIOme YTg4GIS629IL3Sc1eSEM+X+72OLSURwLQaZhr5+O7eK/oJjUOcjSHxuzI9PFoQrT T213gAyeZ8bclshxclAeueOv6kTBzNpjdOzIrdb4weyecX82UPdB84ec137kaMF1 GZgKK0If24q/q/WPf4LOzqwUiAdmOGB3WkmbhKmvNGzo9c2i/ab+5lxonzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792771777; x=1793376577; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=A89pYnehqG9Oa0zr2K6Nlg1zPjOZrHj4TGrxRdiRMKc=; b=Ym5ohlTh17VUi0BcOE3eefvNV8mln1X4E5Yr4oK9iflc5/kPGCvPkmHcZfotnrTtIB Fk7AtJehyESCR5eJZr9Cw4fTwaof9iQCtM7m+BUOISoRH+3yVWddTJYgUyng0vKb9UHh 0VaopVwLozpZn92lknqb5tigIYkpwBDC1O5MO96YcQZZ3TjtDx5SodiVU8G99+MYJbxh d92gUqEnGWZgDgtypDgfOdcAC8ISDu3TrZ1T9t9CxmvTBnDwRFR/8p/LjRbqtfr1fKDq Sp53rARQwMaiJwV1Wf8i1DXYNbFKIv2CcNNuqeyDp069+VQv9AIcV9fvjDrWjJy0K1We Y2Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792771777; x=1793376577; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=A89pYnehqG9Oa0zr2K6Nlg1zPjOZrHj4TGrxRdiRMKc=; b=fjaeXopH6lb+qHtdF5eDpPKsYVvg8KobcV79thL2r+Dy1ffMDyotR1KHuroAZQV+jR 1wrPrTn4+MjyyGjvdVMmjwl93lmpJIVR2yKQvUWPBgZjMczy3E2BVJeVX0YF2zrwNmBX M53yx70yLQuXcW+ozE0jepawCsyteVp1AU3WCgxm0NUMWDjCNA00XlQqEXeXrfwPxfZZ bp7r86ve4Rjxx7dSyKJ31v0/n8m4UKxVysyhuS3CahansmUcOBOr1nWNm1bimPBt44si kL7eqt/LcPohOw4eZ5UJI+aZJuz3WHLZTEyLOPyIC7/v+BHC5ysDTJqWot75EPIsZmxE 9kYQ== X-Gm-Message-State: AFq9FYJ2XWKgQbKGVfQKMWaGKOPoq/UPLYo5f59wsqto1vKeaaIy0QeQ b2lGbeRX30krxJWDnAJps/q0GpzLJnSMoTRkhwLd4fqJizuQmJT0drEoBYXG+SSbyAXNSCqvlYx xx6fotrjclX/DnjBL9HcGL+L1t71USatAwHGz4OvDnJx2JUWUTTZ0XLHq+KNa/jQogA== X-Gm-Gg: AYBFou2KBNUV/xHOoB3kR77iK0xy5RkLvdfKGk254pUvLD2GpUq0etDtcmCsBL5Pow/ ePmkS9c0zd2CD6F3893ajRiEkYS1fOm37fXaRtXn1WHHqZll+v64DDkLgZ7DW7ewaWFKkK8pulB Kvn+rBLJlQGc+fzkhgbK9QBX91zT6W/Mdcd3uEjYxA1/FZd5w9B5kHD5ySyJfeoix5w+Tk+qnuF 4Cu90/Zyu8T1lbj5WIlOCenrTQzCbbEbL4N84xFtv8Lgvnema5jUG0Jl/621o0HF5+LMbk/Gqj8 +ju9xPMk7WlEf/bbSUzJ4pE+kvrJhuq+GWGHGXRpjU4cowgfJV2UT4HMSx5L0IZbZG/XwGE7zEk jWb7XNpNjENwuXFq/WP2MzvNj4mviwKtgG8mIfw== X-Received: by 2002:ad4:5aa9:0:b0:91b:9694:d6b7 with SMTP id 6a1803df08f44-91c3a870eaemr40014486d6.30.1792771776677; Fri, 23 Oct 2026 09:09:36 -0700 (PDT) X-Received: by 2002:ad4:5aa9:0:b0:91b:9694:d6b7 with SMTP id 6a1803df08f44-91c3a870eaemr40014026d6.30.1792771776207; Fri, 23 Oct 2026 09:09:36 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, alistair.francis@wdc.com, liwei1518@gmail.com, zhiwei_liu@linux.alibaba.com, chao.liu@processmission.com, Daniel Henrique Barboza Subject: [PATCH 6/6] MAINTAINERS: add contact for the RISC-V server-ref machine Date: Fri, 23 Oct 2026 13:09:13 -0300 Message-ID: <20261023160913.24992-7-daniel.barboza@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> References: <20261023160913.24992-1-daniel.barboza@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: yZGPL8hc4EI9dmeO3RgsWW0CH8RGCDwA X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfX4VppVKs+6OMo yDQu+SgYfre1i8qkGwZzQdYhrAS8gGDmcfNqQWS/b2bGNdV3swYMWwjaLAeItq6piE2Mwltw4OJ YrrKOXFa4ZjKvgpgAEd7XpURX/Ie5mU= X-Authority-Analysis: v=2.4 cv=QdTzLcbv c=1 sm=1 tr=0 ts=6adb86c1 cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==:117 a=AgQEunjic7gIBKSbIeB6Ag==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=69wJf7TsAAAA:8 a=MOatoMk4zhW8oBTF--8A:9 a=pJ04lnu7RYOZP9TFuWaZ:22 a=Fg1AiH1G6rFz08G2ETeA:22 X-Proofpoint-GUID: yZGPL8hc4EI9dmeO3RgsWW0CH8RGCDwA X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIzMDA2MyBTYWx0ZWRfX+B6OskoLNBmN iv5EolRhyJ0YArz3ECEDXqKuS6f2gi68ezAa1UovsJ55zbCgaWucXmnw345KKYHQMK2yaGVhX5G 2sz8boUnkMOD1Pe3fC0yC9Er4ED4z/ziyfYK9nKK8BusdOaLAM+ngF0ttm8KjtUTzwz3ca06NEO fRu/uSrrGLxNDMm7RT2ZJHnQbLQ/DTqDxeMT27kbv535Si+vJAiF++iDUvU5bSuSKtXR9jOvMYb KGdzNOnFOGRUuI65fhEnFfiFCndhdrqJfamNdIVDe6DaLZnkTD+eUKbCMmOM+E7FR+08thgxj4d CIdt4jPUlk2P6c+kGUARrEr96YhjoLJrYzm4neggKbqIbcBmaBKpCkST9IiKvV+SmlQYf5BdDmR ZZCuHIIvCC7a19Gx8B/MEzsx5YICkKDPvVOCwAbrfc7kc3lrwxDfLCbuIJyuv8CiYmIQsf5s/ah B1p/W7T/NhRc1jUIvrg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-23_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 spamscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 adultscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610230063 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=daniel.barboza@oss.qualcomm.com; helo=mx0a-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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792771880978158500 Content-Type: text/plain; charset="utf-8" Make it clearer that this is a board that is actively maintained. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis Reviewed-by: Chao Liu --- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d9209f043f..146bdb587b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1897,6 +1897,14 @@ F: include/hw/riscv/cv1800b.h F: tests/functional/riscv64/test_milkv_duo.py F: tests/qtest/milkv-duo-test.c =20 +RISC-V Server Reference Platform (riscv-server-ref) machines +M: Daniel Henrique Barboza +L: qemu-riscv@nongnu.org +S: Maintained +F: docs/system/riscv/riscv-server-ref.rst +F: hw/riscv/server_platform_ref.c +F: tests/functional/riscv64/test_server_ref.py + RX Machines ----------- rx-gdbsim --=20 2.43.0