From: Ian Campbell Subject: Re: [PATCH RFC 00/19] arm64 EFI stub Date: Thu, 10 Jul 2014 08:58:04 +0100 Message-ID: <1404979084.11981.12.camel@dagon.hellion.org.uk> References: <1403918735-30027-1-git-send-email-roy.franz@linaro.org> <1404301964.5562.32.camel@kazak.uk.xensource.com> <1404304265.5562.55.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir , tim , xen-devel , Stefano Stabellini , Jan Beulich , linaro-uefi , Fu Wei List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-09 at 11:24 -0700, Roy Franz wrote: > >> + if ( fdtfile->ptr ) > >> + fdt_size = fdt_totalsize(fdtfile->ptr); > >> + else > >> + { > >> + /* RFRANZ_TODO - missing fdt_create_empty_tree() in libfdt. */ > >> + return NULL; > >> + } > > > > > > I don't think we currently support booting with no FDT at all, and even > > in the ACPI world we would get one. So I think this would be an error. > > IOW no need to worry about it. > > > > I think that for the ACPI-only case, the EFI stub will be the one > responsible for creating the FDT for passing the UEFI/ACPI to the XEN > kernel. (I had overlooked the ACPI-only > case when considering the no-FDT case - for Linux we support this > since a kernel could be configured such that it needs nothing from the > FDT other than UEFI stuff, so we need to support it.) > So I think we will need this, but only for the ACPI-only case. I think you probably know better than I but I thought that the way the presence of ACPI was communicated to the kernel (whether via zImage or UEFI stub) was via entries in the FDT's /chosen/ node containing the address of the RSDP. Am I wrong about that? Or maybe I'm thinking about the UEFI services tables being referenced via /chosen/? Ian.