Hi Leif,
I have made a new multiboot support patch V3.7, because Roy has updated the stub-xen support.
Compared with V3.6, I added the stub-kernel boot support:
provide device_handle data in loaded_image
provide file_path data in loaded_image(Do we need to provide it?)
*Please review this patch and provide some advice or suggestion. If it is fine for you, I will make a serial patch for upstream.*
Some pending changes:
(1)delete "grub_arm64_disable_caches_mmu" and the relevant code(misc.c and misc_irq.S)(If we don't want to support raw kernel anymore)
(2)grub coding style (I have checked the patch, but maybe I need to improve it in somewhere)
(3)integrate multiboot_fdt.c back to multiboot.c (will make a new patch/branch for it, but I think multiboot_fdt.c make multiboot.c more generic)
Notice: This patch bases on master branch of upstream grub
This patch can works with:
(1)Roy's repo(https://git.linaro.org/people/roy.franz/xen.git) tag: rfranz/efi-stub-v3 or his prebuild binary(http://people.linaro.org/~roy.franz/lava/xen/xen)
(2)master branch of upstream xen.(non-stub)
--
Best regards,
Fu Wei
Enterprise Server Engineer From Red Hat
LEG Team
Linaro.org | Open source software for ARM SoCs
Ph: +86 186 2020 4684 (mobile)
IRC: fuwei
Skype: tekkamanninja
Room 1512, Regus One Corporate Avenue,Level 15,
One Corporate Avenue,222 Hubin Road,Huangpu District,
Shanghai,China 200021
This patch series adds EFI boot support for arm64. A PE/COFF header is created
in head.S, as there is no toolchain support for PE/COFF on arm64. This also
has the advantage that the file is both an "Image" file and a PE/COFF
executable - the same binary can be loaded and run either way. The EFI 'stub'
code is a shim layer that serves as the loader for the XEN kernel in the EFI
environment. The stub loads the dom0 kernel and initrd if required, and adds
entries for them as well as for the EFI data structures into the device tree
passed to XEN. Once the device tree is constructed, EFI boot services are
exited, and the stub transfers control to the normal XEN entry point. The only
indication XEN has that it was loaded via the stub is that the device tree
contains EFI properties. This is all very similar to the arm/arm64 Linux
kernel EFI stubs.
I'm not really that happy with how the x86 build works, in particular the rule
I added to arch/x86/Makefile to build boot.init.o to fix parallel builds. Due
to the way the EFI build is done - building 2 executables at the same time with
different EFI code included in each, the normal common build infrastructure
doesn't work.
Changes since v2:
* Major refactor to use common EFI entry point and factor out arch specific
code, rather than factoring out the common code.
* Update entire libfdt to v1.4.0 to provide fdt_create_empty_tree()
Changes since v1:
* Added common/efi directory for shared EFI code, and arch/arm/efi for
arm-specfic code. Global build hacking of -fshort-wchar removed.
arm32, arm64, and x86 with/without EFI enabled toolchain all build.
The x86 build previously autodetected whether the EFI version should
be built or not based on toolchain support. I couldn't get this working
nicely with the common code, so for x86 I have the common code always
build, and the EFI autodection works as normal for building the EFI
version.
* Basic use of the EFI memory map instead of FDT based memory description.
More work needed to resolve differences between FDT description of
a small number of large memory banks with reserved regions, and EFI's
potentially long list of available regions, which can be long.
* More refactoring of common EFI code to not directly exit using blexit(),
as this broke the pre-linking targets. All shared code returns status,
and it is up to the caller to exit and clean up.
* Reduced the number of patches. Refactoring of x86 code first, then moving
all code to efi-shared.c in one patch.
* Fixed formatting/tab issues in new files, added Emacs footer.
* Fixed efi_get_memory_map to return NULL map pointer on error in addition
to failed status.
* Added comments in head.S regarding PE/COFF specification, and 1:1
mapping used by EFI code.
* Updated device tree bindings to use new multiboot bindings. Since the stub
is always built into XEN, we don't have to support older bindings.
Roy Franz (15):
move EFI boot code to common/efi
Move x86 specific funtions/variables to arch header
create arch functions to get and process EFI memory map.
Add architecture functions for pre/post ExitBootServices
Add efi_arch_cfg_file() to handle arch specific cfg file fields
Add efi_arch_handle_cmdline() for processing commandline
Move x86 specific video and disk probing code
Add efi_arch_memory() for arch specific memory setup
Add arch specific module handling to read_file()
Add SMBIOS and runtime services setup arch functions.
Add several misc. arch functions for EFI boot code.
Add efi_arch_use_config_file() function to control use of config file
add arm64 cache flushing code from linux v3.16
Update libfdt to v1.4.0
Add ARM EFI boot support
.gitignore | 2 +
xen/arch/arm/arm64/Makefile | 1 +
xen/arch/arm/arm64/cache.S | 100 ++
xen/arch/arm/arm64/head.S | 145 ++-
xen/arch/arm/xen.lds.S | 1 +
xen/arch/x86/Makefile | 15 +-
xen/arch/x86/efi/Makefile | 4 +-
xen/arch/x86/efi/boot.c | 1723 -----------------------------------
xen/arch/x86/efi/efi.h | 39 -
xen/arch/x86/efi/runtime.c | 2 +-
xen/common/Makefile | 1 +
xen/common/efi/Makefile | 17 +
xen/common/efi/boot.c | 823 +++++++++++++++++
xen/common/efi/check.c | 4 +
xen/common/efi/dummy.c | 1 +
xen/common/efi/efi.h | 39 +
xen/common/libfdt/Makefile.libfdt | 4 +-
xen/common/libfdt/fdt.c | 30 +-
xen/common/libfdt/fdt_empty_tree.c | 84 ++
xen/common/libfdt/fdt_ro.c | 7 +-
xen/common/libfdt/fdt_rw.c | 31 +-
xen/common/libfdt/fdt_sw.c | 4 +-
xen/common/libfdt/fdt_wip.c | 2 +-
xen/common/libfdt/version.lds | 6 +
xen/include/asm-arm/arm64/efibind.h | 216 +++++
xen/include/asm-arm/efi-boot.h | 602 ++++++++++++
xen/include/asm-arm/efi.h | 29 +
xen/include/asm-arm/efibind.h | 2 +
xen/include/asm-arm/setup.h | 2 +-
xen/include/asm-x86/efi-boot.h | 1064 +++++++++++++++++++++
xen/include/asm-x86/efi.h | 39 +
xen/include/xen/libfdt/fdt.h | 93 +-
xen/include/xen/libfdt/libfdt.h | 315 ++++++-
xen/include/xen/libfdt/libfdt_env.h | 4 +
34 files changed, 3627 insertions(+), 1824 deletions(-)
create mode 100644 xen/arch/arm/arm64/cache.S
delete mode 100644 xen/arch/x86/efi/boot.c
delete mode 100644 xen/arch/x86/efi/efi.h
create mode 100644 xen/common/efi/Makefile
create mode 100644 xen/common/efi/boot.c
create mode 100644 xen/common/efi/check.c
create mode 100644 xen/common/efi/dummy.c
create mode 100644 xen/common/efi/efi.h
create mode 100644 xen/common/libfdt/fdt_empty_tree.c
create mode 100644 xen/include/asm-arm/arm64/efibind.h
create mode 100644 xen/include/asm-arm/efi-boot.h
create mode 100644 xen/include/asm-arm/efi.h
create mode 100644 xen/include/asm-arm/efibind.h
create mode 100644 xen/include/asm-x86/efi-boot.h
create mode 100644 xen/include/asm-x86/efi.h
--
2.1.0.rc1
Hi Naresh,
I looked through the git logs, and didn't see any specific mention
of which revision of PSCI is currently
supported in the Linaro EDK2. I'm posting to the linaro-uefi list, as
someone on here should be familiar with
the PSCI status.
Roy
On Mon, Sep 8, 2014 at 11:36 AM, Naresh Bhat <naresh.bhat(a)linaro.org> wrote:
> Hi Roy,
>
> The ACPI patches supports only PSCI v0.2+ but the HARDWARE-Xen
> hypervisor does not have the support for PSCI 0.2+. Now before I
> start the porting activity I just want to clarify the following stuff
>
> 1. Does the UEFI (i.e. linaro-edk2 latest tag) support PSCI version 0.2+ ?
>
> My understanding is yes, it should be supported. The reason is that
> we have already tested the ACPI on different platforms with UEFI :)
> and we are using the same UEFI on Xen is't it ?
>
> Can you please double check and confirm the PSCI v0.2+ support in UEFI ?
>
> Thanks and Regards
> -Naresh