Received: from eggs.gnu.org ([2001:4830:134:3::10]:55287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNMVL-0001ye-Ho for qemu-devel@nongnu.org; Thu, 06 Aug 2015 10:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNMVH-0007Tr-Cp for qemu-devel@nongnu.org; Thu, 06 Aug 2015 10:50:47 -0400 Received: from smtp.andrew.cmu.edu ([128.2.157.37]:33625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNMVG-0007TA-JD for qemu-devel@nongnu.org; Thu, 06 Aug 2015 10:50:43 -0400 Date: Thu, 6 Aug 2015 10:49:56 -0400 From: "Gabriel L. Somlo" Message-ID: <20150806144956.GA7299@GLSMBP.INI.CMU.EDU> References: <1438818474-31373-1-git-send-email-somlo@cmu.edu> <1438818474-31373-3-git-send-email-somlo@cmu.edu> <55C32571.5000103@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 2/2] fw_cfg: document MMIO registers for arm, sun4*, and ppc/mac_* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Gabriel Somlo , Laszlo Ersek , QEMU Developers , Gerd Hoffmann On Thu, Aug 06, 2015 at 02:15:11PM +0100, Peter Maydell wrote: > On 6 August 2015 at 10:14, Laszlo Ersek wrote: > > On 08/06/15 01:47, Gabriel L. Somlo wrote: > > >> +=== arm Register Locations === > >> + > >> +Selector Register MMIO addr: 0x9020008 (16-bit, big-endian) > >> +Data Register MMIO addr: 0x9020000 (64-bit) > > > > Suggestions: > > - maybe mention that this is specific to the "virt" machtype > > - mention that the exact location comes from the DTB, > > and hint at "Documentation/devicetree/bindings/arm/fw-cfg.txt" in the > > kernel tree > > - for the data register, rather than just "(64-bit)", consider saying > > "(64-bit, endianless, string-preserving)" > > We shouldn't be documenting the specific locations at all -- > the guest *must* look at the DTB or ACPI table to find the > device. I see how that may work on x86 (acpi) or arm (dtb). But would either of those also work for sun4 and ppc/mac ? Do we even care ? ;) Thanks, --Gabriel