Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Mark Salter
On Wed, 2014-03-19 at 16:01 +, Catalin Marinas wrote: > On Wed, Mar 19, 2014 at 03:13:18PM +, Mark Salter wrote: > > On Wed, 2014-03-19 at 10:57 +, Catalin Marinas wrote: > > > On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: > > > > On Tue, 2014-03-18 at 18:28 +,

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Catalin Marinas
On Wed, Mar 19, 2014 at 03:13:18PM +, Mark Salter wrote: > On Wed, 2014-03-19 at 10:57 +, Catalin Marinas wrote: > > On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: > > > On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: > > > > If UEFI doesn't handle the caches, the

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Mark Salter
On Wed, 2014-03-19 at 10:57 +, Catalin Marinas wrote: > On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: > > On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: > > > If UEFI doesn't handle the caches, the only thing left to EFI_STUB is to > > > flush by MVA. We don't need to

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: > On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: > > If UEFI doesn't handle the caches, the only thing left to EFI_STUB is to > > flush by MVA. We don't need to flush the whole DRAM (and I would even > > recommend it) but at

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 10:21:05PM +, Jason Gunthorpe wrote: > On Tue, Mar 18, 2014 at 02:48:30PM -0700, Roy Franz wrote: > > > > It isn't clear to me if UEFI does cache flushing at ExitBootServices > > > time, but even so, at least stack use will get cached between then and > > > the kernel

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 10:21:05PM +, Jason Gunthorpe wrote: On Tue, Mar 18, 2014 at 02:48:30PM -0700, Roy Franz wrote: It isn't clear to me if UEFI does cache flushing at ExitBootServices time, but even so, at least stack use will get cached between then and the kernel entry

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: If UEFI doesn't handle the caches, the only thing left to EFI_STUB is to flush by MVA. We don't need to flush the whole DRAM (and I would even recommend it) but at least

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Mark Salter
On Wed, 2014-03-19 at 10:57 +, Catalin Marinas wrote: On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: If UEFI doesn't handle the caches, the only thing left to EFI_STUB is to flush by MVA. We don't need to flush

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Catalin Marinas
On Wed, Mar 19, 2014 at 03:13:18PM +, Mark Salter wrote: On Wed, 2014-03-19 at 10:57 +, Catalin Marinas wrote: On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: If UEFI doesn't handle the caches, the only thing

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-19 Thread Mark Salter
On Wed, 2014-03-19 at 16:01 +, Catalin Marinas wrote: On Wed, Mar 19, 2014 at 03:13:18PM +, Mark Salter wrote: On Wed, 2014-03-19 at 10:57 +, Catalin Marinas wrote: On Tue, Mar 18, 2014 at 09:40:31PM +, Mark Salter wrote: On Tue, 2014-03-18 at 18:28 +, Catalin Marinas

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Jason Gunthorpe
On Tue, Mar 18, 2014 at 02:48:30PM -0700, Roy Franz wrote: > > It isn't clear to me if UEFI does cache flushing at ExitBootServices > > time, but even so, at least stack use will get cached between then and > > the kernel entry point. The stub could conceivably get its hands on the > > EFI memmap

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Roy Franz
On Tue, Mar 18, 2014 at 2:40 PM, Mark Salter wrote: > On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: >> On Tue, Mar 18, 2014 at 02:40:29PM +, Mark Salter wrote: >> > On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: >> > > On Thu, Mar 13, 2014 at 10:47:04PM +, Leif

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Mark Salter
On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: > On Tue, Mar 18, 2014 at 02:40:29PM +, Mark Salter wrote: > > On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: > > > On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: > > > > --- /dev/null > > > > +++

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 02:40:29PM +, Mark Salter wrote: > On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: > > On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: > > > --- /dev/null > > > +++ b/arch/arm64/kernel/efi-entry.S > > > @@ -0,0 +1,93 @@ > > > +/* > > > + * EFI

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Mark Salter
On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: > On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: > > --- /dev/null > > +++ b/arch/arm64/kernel/efi-entry.S > > @@ -0,0 +1,93 @@ > > +/* > > + * EFI entry point. > > + * > > + * Copyright (C) 2013 Red Hat, Inc. > > + *

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Catalin Marinas
On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: > --- /dev/null > +++ b/arch/arm64/kernel/efi-entry.S > @@ -0,0 +1,93 @@ > +/* > + * EFI entry point. > + * > + * Copyright (C) 2013 Red Hat, Inc. > + * Author: Mark Salter > + * > + * This program is free software; you can

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Catalin Marinas
On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: --- /dev/null +++ b/arch/arm64/kernel/efi-entry.S @@ -0,0 +1,93 @@ +/* + * EFI entry point. + * + * Copyright (C) 2013 Red Hat, Inc. + * Author: Mark Salter msal...@redhat.com + * + * This program is free software; you can

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Mark Salter
On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: --- /dev/null +++ b/arch/arm64/kernel/efi-entry.S @@ -0,0 +1,93 @@ +/* + * EFI entry point. + * + * Copyright (C) 2013 Red Hat, Inc. + * Author: Mark Salter

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Catalin Marinas
On Tue, Mar 18, 2014 at 02:40:29PM +, Mark Salter wrote: On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: --- /dev/null +++ b/arch/arm64/kernel/efi-entry.S @@ -0,0 +1,93 @@ +/* + * EFI entry point. + *

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Mark Salter
On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: On Tue, Mar 18, 2014 at 02:40:29PM +, Mark Salter wrote: On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: On Thu, Mar 13, 2014 at 10:47:04PM +, Leif Lindholm wrote: --- /dev/null +++

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Roy Franz
On Tue, Mar 18, 2014 at 2:40 PM, Mark Salter msal...@redhat.com wrote: On Tue, 2014-03-18 at 18:28 +, Catalin Marinas wrote: On Tue, Mar 18, 2014 at 02:40:29PM +, Mark Salter wrote: On Tue, 2014-03-18 at 12:09 +, Catalin Marinas wrote: On Thu, Mar 13, 2014 at 10:47:04PM +,

Re: [PATCH v2 11/15] arm64: add EFI stub

2014-03-18 Thread Jason Gunthorpe
On Tue, Mar 18, 2014 at 02:48:30PM -0700, Roy Franz wrote: It isn't clear to me if UEFI does cache flushing at ExitBootServices time, but even so, at least stack use will get cached between then and the kernel entry point. The stub could conceivably get its hands on the EFI memmap and

[PATCH v2 11/15] arm64: add EFI stub

2014-03-13 Thread Leif Lindholm
From: Mark Salter This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of the kernel Image. Support in the COFF header for signed images was provided by Ard Biesheuvel.

[PATCH v2 11/15] arm64: add EFI stub

2014-03-13 Thread Leif Lindholm
From: Mark Salter msal...@redhat.com This patch adds PE/COFF header fields to the start of the Image so that it appears as an EFI application to EFI firmware. An EFI stub is included to allow direct booting of the kernel Image. Support in the COFF header for signed images was provided by Ard