Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lN3wE-0008Ag-AO for mharc-grub-devel@gnu.org; Thu, 18 Mar 2021 21:28:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lN3wA-0008AV-JL for grub-devel@gnu.org; Thu, 18 Mar 2021 21:28:28 -0400 Received: from gate.crashing.org ([63.228.1.57]:42708) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lN3w4-0004Iv-4H for grub-devel@gnu.org; Thu, 18 Mar 2021 21:28:24 -0400 Received: from ip6-localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 12J1RGRO019019; Thu, 18 Mar 2021 20:27:17 -0500 Message-ID: Subject: Re: [PATCH 0/5] serial: Add MMIO & SPCR support for AWS EC2 metal instances From: Benjamin Herrenschmidt To: The development of GNU GRUB Cc: Matthias Lange Date: Fri, 19 Mar 2021 12:27:15 +1100 In-Reply-To: <20210318190346.11570717@crass-HP-ZBook-15-G2> References: <20210318220728.495970-1-benh@kernel.crashing.org> <20210318190346.11570717@crass-HP-ZBook-15-G2> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: permerror client-ip=63.228.1.57; envelope-from=benh@kernel.crashing.org; helo=gate.crashing.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2021 01:28:28 -0000 On Thu, 2021-03-18 at 19:03 -0500, Glenn Washburn wrote: > > This was tested using SPCR on an actual c5.metal instance, and using > > explicit instanciation via serial -p mmioXXXXXXXX on a modified qemu > > hacked to create MMIO PCI serial ports. > > > When you say a modified qemu, was that a source level change? I'm > curious how hard it would be to add this test to the current GRUB make > check tests (many of which already use qemu). Of course, if they source > of qemu was modified, then its probably a deal breaker (until it could > be accepted upstream). Yes, I added an "mmio" option to pci-serial that makes register with the Amazon UART vid/did and use an MMIO BAR :-) It's a bit of a hack but I can try upstreaming it. > Also I haven't looked into it, but seems like it might not be hard to > add a separate test for the part using the SPCR table via qemu (perhaps > using the "-acpitable" arg). My experience with ACPI is extremely limited, I've never done such things as build tables etc... but I can certainly try to look into it as time permits. > Also, could you add to the documentation on the usage of these changes? I added some documentation to the "serial" command syntax change for MMIO. I didn't add anything about SPCR indeed, where do you suggest I add it ? Same spot ? > New functionality should in general come with new tests (when feasible) Yes, I understand, it's just that in this specific case it's rather hard ... :-) I'll see what I can do with qemu but the best case scenario would involve upstreaming something there and then depending on that change trickling down to be able to use it in the grub tests which would be ... tricky.... > and additions to the documentation. Right, I did a bit, I can look into adding more, let me know if there are other parts of the doc you wish me to update. Cheers, Ben.