From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP7Ws-0000Hz-Jx for qemu-devel@nongnu.org; Wed, 13 Dec 2017 08:56:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eP7Wr-00040B-RR for qemu-devel@nongnu.org; Wed, 13 Dec 2017 08:56:58 -0500 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]:40232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eP7Wr-0003zu-Lz for qemu-devel@nongnu.org; Wed, 13 Dec 2017 08:56:57 -0500 Received: by mail-oi0-x243.google.com with SMTP id w125so1579921oie.7 for ; Wed, 13 Dec 2017 05:56:57 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1512745328-5109-1-git-send-email-peter.maydell@linaro.org> <1512745328-5109-4-git-send-email-peter.maydell@linaro.org> <5A2F6ED9.5030605@huawei.com> From: Peter Maydell Date: Wed, 13 Dec 2017 13:56:36 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH 3/3] hw/arm/virt-acpi-build: Add second UART to ACPI tables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: Shannon Zhao , qemu-arm , QEMU Developers , "Jason A . Donenfeld" , Drew Jones , Andrea Bolognani , Ard Biesheuvel On 12 December 2017 at 11:06, Laszlo Ersek wrote: > BTW, has anyone tested this with the ArmVirtQemu firmware? As far as I > can see from the firmware code, the firmware will use the PL011 whose > description comes first in the DTB (and ignore the other PL011), in an > fdt_next_node() traversal. Is that OK for the intended use case? I have now tested this, and annoyingly UEFI and the kernel seem to disagree about enumeration order. That is, if QEMU creates them in the code in the order 0x09050000 (uart 2), 0x09000000 (uart 1), then they appear in the dtb with uart 1 first, and the kernel enumerates them as ttyAMA0 being uart 1 and ttyAMA1 being uart 2, but UEFI outputs to uart 2... thanks -- PMM