Received: by 2002:a19:5205:0:0:0:0:0 with SMTP id m5csp46460lfb; Tue, 31 Aug 2021 19:35:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYVcero4nIIHGBmOPpq4yP1VA4s8YBe7Rg7C+9Rompdr986VMisJD27cQJoyES5/4m6ILT X-Received: by 2002:ab0:7158:: with SMTP id k24mr22172917uao.37.1630463741823; Tue, 31 Aug 2021 19:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630463741; cv=none; d=google.com; s=arc-20160816; b=CKuvc1H+ZuM0lVe9d4Z0eSk8NBfkX6QDnizEWYuNnToynhPcC55sPIjfjEk7NuWNP9 1bKBu91iysAFiFOwOk8mRSGvSNQsZL5ypEZAE4VJI3raj4GDc9EsT/C626Xt7LiqiT5q dcclUWXKj8duuMch0y8KyTnwuZUzNJ7qvBvGcBqKpnJSos9hq7GlR9viniXXXJr+5JwG gfkCnxIfrWobJO3RD5qxBBBy1PadhpN7OlREt6bc8xq3z8pFQb7uE5IxgcPlqZ4XpFtt iBbfwNeRz6RIP2o+93Iae087NxiC7tJd8Fc8tw6Hh1o8ZraKV2o1qedMo6FbcS0s3Pza 4XTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature:dkim-signature; bh=LyV4J0d7vciEnuqemN67Hut3I9e4RiMw98AR9CeuZ0E=; b=o6NhdH2KmrO/V8/XTJt6LKqlI582Lz9xf1QRBpS4/mSMZNUqfnxYA1i3Y6GWPrUx0j skmph2x3vv0IpSVLE7dFgFZ2ezSLXaHVAv8n3A/+ht7jysj/sR27ktwbETtPa9y/4soT FiTai6FZbiWa8hkOc0bprxInqn/b3ZBZqa04PX1avi6Np+Cwqvfily35+6r8m2+b/KUB Nwmi+6on3c4mfDuAJ3jJH1CfvRjnKDYHKJf7E2VPjektvzOXFJGyOUbZZf1gV8e/9cr3 DNdGjooTvnr/roybZFv4b2r50s6YYZhFGX3w5vDs5Ek/TTG94RJVVzDsSIMFXajhT8qY atvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@stwcx.xyz header.s=fm2 header.b=q9WZzDEb; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=SnoVnjAt; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a13si6986364vsl.19.2021.08.31.19.35.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Aug 2021 19:35:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-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; dkim=fail header.i=@stwcx.xyz header.s=fm2 header.b=q9WZzDEb; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=SnoVnjAt; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:51172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLG6H-0003GM-3K for alex.bennee@linaro.org; Tue, 31 Aug 2021 22:35:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLG1k-00070k-6D; Tue, 31 Aug 2021 22:31:00 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLG1d-0003ys-QV; Tue, 31 Aug 2021 22:30:59 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 50A8E5C0275; Tue, 31 Aug 2021 22:30:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 31 Aug 2021 22:30:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=LyV4J0d7vciEnuqemN67Hut3I9e 4RiMw98AR9CeuZ0E=; b=q9WZzDEbkR4TtxubH9CvyxvYG0IfXCU3ExvmBV793Cz rEFBKX/Ph4dKPmfnv3PN8oCuyAf1Te+eyeVmFRls8735/LEaNc/U8sb+IIJSgNcR i9tlt35zljNXWUENg4WFEF8Ryxwo9YJ/a7blJtXEpTDYH0uu4Nmg6+zr5D04pxGV DlzojhBPoxVO5W92UbHdcIq2ITz8jYRiOtJXnuZUHAgSEkioADoGbD7Y9cydIsqp TskTNR5lTze7yN/FyFqoCqEInDNbPGxhBVSYA/c1HEkTliCGeF7MvqOXuigJlRlf wh8VTWB0f+syW9cf8MM4yRCukvcaOOOmsFIDXDXuJ7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=LyV4J0 d7vciEnuqemN67Hut3I9e4RiMw98AR9CeuZ0E=; b=SnoVnjAtVV1OL7IsvHpoBf NjFuG1aFcrDVyJWjH+xvlwLYhebXPnjMkfsWox+YnKt41N7YVvUdBbbH2/vDAGD+ zVgeEL2s3tA6/dMZ7vC9mTCqwn6YZ+3p77T5ZRyd9GlQ9CX17roV6JL61Gp69gfv IFQ8TeMm+3mZSlhlQAJgtsgLqwcvrXJRfqmIchpIRn0/wItak2uFF4boO9z5hw3u eC95oONt8EtyRUKst3pXQ5/b6GM4gX+TvwhA3/KdTltynqgB1apRjYjfkAKKbyBk TRl7/e51HQUbnJZh010iUI3546T6XX5n2uE5H6HlJVSMag7UyKFvaxBLT8bSkWug == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvvddgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomheprfgrthhrihgtkhcuhghilhhl ihgrmhhsuceophgrthhrihgtkhesshhtfigtgidrgiihiieqnecuggftrfgrthhtvghrnh epgeehheefffegkeevhedthffgudfhgeefgfdthefhkedtleffveekgfeuffehtdeinecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgrthhrih gtkhesshhtfigtgidrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 Aug 2021 22:30:47 -0400 (EDT) Date: Tue, 31 Aug 2021 21:30:45 -0500 From: Patrick Williams To: pdel@fb.com Subject: Re: [PATCH 1/1] hw/arm/aspeed: Allow machine to set serial_hd(0) Message-ID: References: <20210831233140.2659116-1-pdel@fb.com> <20210831233140.2659116-2-pdel@fb.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="C6Lm7KwueyVOnR8v" Content-Disposition: inline In-Reply-To: <20210831233140.2659116-2-pdel@fb.com> Received-SPF: pass client-ip=66.111.4.27; envelope-from=patrick@stwcx.xyz; helo=out3-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 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, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@aj.id.au, f4bug@amsat.org, qemu-arm@nongnu.org, clg@kaod.org, qemu-devel@nongnu.org Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: TU3JKD/uQPrS --C6Lm7KwueyVOnR8v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 31, 2021 at 04:31:40PM -0700, pdel@fb.com wrote: > From: Peter Delevoryas >=20 > When you run QEMU with an Aspeed machine and a single serial device > using stdio like this: >=20 > qemu -machine ast2600-evb -drive ... -serial stdio >=20 > The guest OS can read and write to the UART5 registers at 0x1E784000 and > it will receive from stdin and write to stdout. The Aspeed SoC's have a > lot more UART's though (AST2500 has 5, AST2600 has 13) and depending on > the board design, may be using any of them as the serial console. (See > "stdout-path" in a DTS to check which one is chosen). >=20 > Most boards, including all of those currently defined in > hw/arm/aspeed.c, just use UART5, but some use UART1. This change adds > some flexibility for different boards without requiring users to change > their command-line invocation of QEMU. >=20 > I tested this doesn't break existing code by booting an AST2500 OpenBMC > image and an AST2600 OpenBMC image, each using UART5 as the console. >=20 > Then I tested switching the default to UART1 and booting an AST2600 > OpenBMC image that uses UART1, and that worked too. >=20 > Signed-off-by: Peter Delevoryas > --- > hw/arm/aspeed.c | 1 + > hw/arm/aspeed_ast2600.c | 11 +++++++---- > hw/arm/aspeed_soc.c | 9 ++++++--- > include/hw/arm/aspeed.h | 1 + > 4 files changed, 15 insertions(+), 7 deletions(-) >=20 Reviewed-by: Patrick Williams --=20 Patrick Williams --C6Lm7KwueyVOnR8v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEBGD9ii4LE9cNbqJBqwNHzC0AwRkFAmEu5dMACgkQqwNHzC0A wRn3kQ//ULzm12CH3hiEdGlHYWspj3kB6hcCB/1LIG81I2mx/GUClYF8RQ3qoJxy MI1l/DVfV5PnHZrPuHaulenlZWKaQyjDVCLbMjbzAUZSEtXiGq8+1vrdAfVMT3ef oQllpSl97eAVK97acerKZ63h7qjkAsuq07H3E6ij9po+DblVYhQisCAHwcl7lKVq EpWgbjvitLI7/ns1PziWcL0V6nrL1SNHQ6UCHFDfOSCa73LvAJ6nHSqmeH3KtMGi 5aCVT1aOO+6QbU3BZxlXgzNfIqFFnSxjdiT2OKqJ4C5XM+f1zZz3+5QR56Rpl58d RoL+RK6rTYK6z06MPArStnB7ZN82BCY9yPoGDYJybLczvi5PhPsKHj1hcYsGT1OO GfHtHBtS7CzVVyv8sdp8M1POK4BYzSFo/YNFG2t3IQ09lfORak06xn3ORPM3ybe1 ftli6J4DfpplEQD6MHAqdxEmSzi6+BszLezsoEQSIm8a1rfs7OARu3OcsbkSVVsF t/UdeU5x5YYbeKGSnWb9c2IQLOtbQgHH34qU5m0eFPrj4c86KCnsJ18lVkSdJDOZ fdv3rsfE1Zoy4ncu23077FKgSjHQ/u8oW032FTVb9akp6e3SR9VhY+vzMBAd84mf 5OzJdG8mkKwX9OYOLy7vZtqeWebYrTvzOxBnaOdaBlKYQ6VjkFQ= =ToJ2 -----END PGP SIGNATURE----- --C6Lm7KwueyVOnR8v--