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 D6658C43458 for ; Tue, 30 Jun 2026 21:20:13 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wefs1-0004d8-5G; Tue, 30 Jun 2026 17:19: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 1wefry-0004cb-BA; Tue, 30 Jun 2026 17:19:51 -0400 Received: from xmbghk7.mail.qq.com ([43.163.128.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wefrv-0000Fe-Pr; Tue, 30 Jun 2026 17:19:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1782854377; bh=C9JU5nYmpNBq44scWx9gShXAN2m+5opKU2KoGCuFvyk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=C3q0sUJtI4f6lWNvKiFQBRy2LiOhW32+GeF58gPg/j2tN0FuaYYAcjvIn489JTw85 T/DYNk+XHCR5gjdrAeM1kGwJrQM1TVvjQEqStDJ/akSDmin7ndRW78VK8j9Y6nCVn5 Or4L68qnbicQv8jrXZZO/fdzwIH9WZqtrfXHPyAo= Received: from [192.168.1.10] ([220.166.214.112]) by newxmesmtplogicsvrsza63-0.qq.com (NewEsmtp) with SMTP id 4E289658; Wed, 01 Jul 2026 05:19:34 +0800 X-QQ-mid: xmsmtpt1782854374tr4hy914i Message-ID: X-QQ-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+Q== X-QQ-XMRINFO: Nq+8W0+stu50tPAe92KXseR0ZZmBTk3gLg== X-OQ-MSGID: <8cbc0b95a652cd34f40979c94cd7c2df9ef9fc45.camel@qq.com> Subject: Re: [PATCH v1] riscv/virt: Add secondary UART From: Yanfeng Liu To: Peter Maydell Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, palmer@dabbelt.com, alistair.francis@wdc.com, liwei1518@gmail.com, daniel.barboza@oss.qualcomm.com, zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com Date: Wed, 01 Jul 2026 05:19:34 +0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2.1 MIME-Version: 1.0 Received-SPF: pass client-ip=43.163.128.43; envelope-from=yfliu2008@qq.com; helo=xmbghk7.mail.qq.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 Peter, thanks a lot for the comments, will send v2 later. Regards, Yanfeng On Mon, 2026-06-29 at 10:37 +0100, Peter Maydell wrote: > On Sun, 28 Jun 2026 at 08:06, Yanfeng Liu wrote: > >=20 > > This adds secondary UART device to RiscV virt board to simplify > > multi-core bare-metal development as Virtio needs comparably > > more work. > >=20 > > Signed-off-by: Yanfeng Liu > > --- >=20 > Just a note that for other architectures we have seen the > addition of an extra UART cause breakage for previously > working guests, usually because they took the approach of > "find the first UART node in the DTB" and/or because > different software at different levels of the stack was > looking for the UART in the DTB differently and so you > ended up with e.g. UEFI outputting on one UART and the > kernel on the other. A particular trap is that the order > of nodes in the final DTB ends up being the reverse of the > order in which they are added in the code in QEMU. >=20 > Compare commit 5d8a250f9068 (openrisc) and e7100972f2 (arm) > for descriptions of some of the things we've run into and > the measures we've taken as a result. It's possible that > not all of these will be relevant for riscv but it's quite > likely that some will. >=20 > thanks > -- PMM