[PATCH 1/2] Documentation: arm: early_ioremap

2013-06-25 Thread Leif Lindholm
This patch provides documentation of the early_ioremap() functionality, including its implementation and usage instructions. Signed-off-by: Leif Lindholm --- Documentation/arm/00-INDEX |2 ++ Documentation/arm/early_ioremap.txt | 12 2 files changed, 14 insertions

[PATCH 1/4] Documentation: arm: [U]EFI runtime services

2013-06-25 Thread Leif Lindholm
This patch provides documentation of the [U]EFI runtime services and configuration features. Signed-off-by: Leif Lindholm --- Documentation/arm/00-INDEX |3 +++ Documentation/arm/uefi.txt | 39 +++ 2 files changed, 42 insertions(+) create mode 100644

[PATCH 3/4] arm: Add [U]EFI runtime services support

2013-06-25 Thread Leif Lindholm
This patch implements basic support for UEFI runtime services in the ARM architecture - a requirement for using efibootmgr to read and update the system boot configuration. It also locates any presented SMBIOS configuration table and stores it for potential later use by DMI. Signed-off-by: Leif

[PATCH 4/4] init: efi: arm: enable (U)EFI runtime services on arm

2013-06-25 Thread Leif Lindholm
Since the efi_set_virtual_address_map call has strict init ordering requirements, add an explicit hook in the required place. Signed-off-by: Leif Lindholm --- init/main.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/init/main.c b/init/main.c index 9484f4b..c61706e 100644

[PATCH 0/4] arm: [U]EFI runtime services support

2013-06-25 Thread Leif Lindholm
services on ARM platforms, as well as the basic underlying EFI support. It also defines a mechanism by which the required information is passed from the bootloader to the kernel via FDT entries. This patchset depends on the previously submitted early_ioremap() patchset. Leif Lindholm (4

[PATCH 2/4] x86: efi: break efi_lookup_mapped_addr out to generic code

2013-06-25 Thread Leif Lindholm
efi_lookup_mapped_addr is a handy helper function for translating a physical address to the corresponding virtual one by scanning through memmap.map. This patch breaks it out into a new file for use elsewhere. Signed-off-by: Leif Lindholm --- arch/x86/platform/efi/efi.c | 28

Re: [PATCH 1/4] Documentation: arm: [U]EFI runtime services

2013-06-26 Thread Leif Lindholm
On Wed, Jun 26, 2013 at 02:20:23PM +0100, Grant Likely wrote: > On Wed, Jun 26, 2013 at 12:42 AM, Stephen Warren > wrote: > > the properties) should be part of a file in > > Documentation/devicetree/bindings/ (arm/uefi.txt?). > > > > What node are these properties expected to be contained

Re: [PATCH 1/4] Documentation: arm: [U]EFI runtime services

2013-06-26 Thread Leif Lindholm
On Wed, Jun 26, 2013 at 02:13:39PM +0100, Grant Likely wrote: > > diff --git a/Documentation/arm/uefi.txt b/Documentation/arm/uefi.txt > > +It (early) parses the FDT for the following parameters: > > Need to state which node these properties can be found in. I recommend /chosen Will do. > I

Re: [PATCH 2/4] x86: efi: break efi_lookup_mapped_addr out to generic code

2013-06-26 Thread Leif Lindholm
On Wed, Jun 26, 2013 at 02:32:17PM +0100, Matt Fleming wrote: > On Tue, 25 Jun, at 07:11:01PM, Leif Lindholm wrote: > > efi_lookup_mapped_addr is a handy helper function for translating > > a physical address to the corresponding virtual one by scanning > > through memmap.map

Re: [PATCH 3/4] arm: Add [U]EFI runtime services support

2013-06-26 Thread Leif Lindholm
o locates any presented SMBIOS configuration table and stores it > > for potential later use by DMI. > > > > Signed-off-by: Leif Lindholm > > --- > > arch/arm/Kconfig | 15 ++ > > arch/arm/include/asm/efi.h | 22 +++ > > ar

Re: [PATCH 0/2] arm: add early_ioremap() support

2013-06-26 Thread Leif Lindholm
On Wed, Jun 26, 2013 at 08:52:09PM +0200, Arnd Bergmann wrote: > I made a similar suggestion to extending the use of fixmap recently, see > "Re: SCU registers mapping for CA9/CA5 cores". Russell pointed out that > fixmap is intentionally limited to just kmap_atomic uses at the moment > and

Re: [PATCH 1/4] Documentation: arm: [U]EFI runtime services

2013-06-26 Thread Leif Lindholm
On Wed, Jun 26, 2013 at 12:32:30PM -0600, Stephen Warren wrote: > >> What about ARMv8? Is the intention to have a separate definition for the > >> UEFI bindings on ARMv8, so that compatibility isn't an issue? What if a > >> future version of UEFI allows LPAE usage? > > > > It is unlikely that

Re: [PATCH 0/2] arm: add early_ioremap() support

2013-06-26 Thread Leif Lindholm
On Wed, Jun 26, 2013 at 11:23:50PM +0200, Arnd Bergmann wrote: > > Is this an issue here, since (unlike x86) this early_ioremap only works > > before paging_init()? > > The main problem is that the total fixmap size is only around 900kb, > and we want to reserve at least 64kb per cpu for

Re: [PATCH 0/2] arm: add early_ioremap() support

2013-06-26 Thread Leif Lindholm
On Thu, Jun 27, 2013 at 12:13:55AM +0200, Arnd Bergmann wrote: > > Sorry, I still don't get it. Are you saying that kmap_atomic is > > available before kmap_init() (in paging_init())? > > > > If not, all of my mappings are discarded (well, abandoned to be more > > correct), so I don't see how it

Re: [PATCH 1/4] Documentation: arm: [U]EFI runtime services

2013-06-27 Thread Leif Lindholm
On Thu, Jun 27, 2013 at 02:32:19AM +0100, Matthew Garrett wrote: > On Wed, Jun 26, 2013 at 07:38:19AM -0700, James Bottomley wrote: > > The fixed virtual address scheme currently being looked at for x86_64 to > > make SetVirtualAddressMap() kexec invariant doesn't work on 32 bit > > because the

Re: [PATCH 0/2] arm: add early_ioremap() support

2013-06-27 Thread Leif Lindholm
On Thu, Jun 27, 2013 at 10:47:21AM +0200, Arnd Bergmann wrote: > > No, the purpose is just like for x86 - do early parsing of things like > > the UEFI system and configuration tables, DMI and ACPI, in order to > > populate global structs and stuff. > > But are those tables actually in MMIO

[PATCH v4 0/5] arm: add UEFI runtime services support

2014-01-11 Thread Leif Lindholm
d RESERVED (but don't map them). - Rename 'efi' -> 'uefi' within this new port (leaving core code as is). Leif Lindholm (5): arm: break part of __soft_restart out into separate function arm: add new asm macro update_sctlr Documentation: arm: add UEFI support documentation arm: Add [U]EFI run

[PATCH v4 3/5] Documentation: arm: add UEFI support documentation

2014-01-11 Thread Leif Lindholm
This patch provides documentation of the [U]EFI runtime service and configuration features for the arm architecture. Cc: Rob Landley Cc: linux-...@vger.kernel.org Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- Documentation/arm/00-INDEX |3 +++ Documentation/arm/uefi.txt | 61

[PATCH v4 4/5] arm: Add [U]EFI runtime services support

2014-01-11 Thread Leif Lindholm
This patch implements basic support for UEFI runtime services in the ARM architecture - a requirement for using efibootmgr to read and update the system boot configuration. It uses the generic configuration table scanning to populate ACPI and SMBIOS pointers. Signed-off-by: Leif Lindholm

[PATCH v4 5/5] init: efi: arm: enable (U)EFI runtime services on arm

2014-01-11 Thread Leif Lindholm
Since the efi_set_virtual_address_map call has strict init ordering requirements, add an explicit hook in the required place. Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- init/main.c |4 1 file changed, 4 insertions(+) diff --git a/init/main.c b/init/main.c index febc511

[PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-01-11 Thread Leif Lindholm
A new macro for setting/clearing bits in the SCTLR. Signed-off-by: Leif Lindholm Suggested-by: Will Deacon --- arch/arm/include/asm/assembler.h | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h index 5c22851

[PATCH v4 1/5] arm: break part of __soft_restart out into separate function

2014-01-11 Thread Leif Lindholm
Certain operations can be considered mandatory for any piece of code preparing to switch off the MMU. Break this out into separate function dmap_prepare(). Signed-off-by: Leif Lindholm Suggested-by: Will Deacon --- arch/arm/include/asm/idmap.h |1 + arch/arm/kernel/process.c| 12

Re: [PATCH v4 5/5] init: efi: arm: enable (U)EFI runtime services on arm

2014-01-13 Thread Leif Lindholm
On Mon, Jan 13, 2014 at 07:29:06PM +0100, Arnd Bergmann wrote: > On Saturday 11 January 2014, Leif Lindholm wrote: > > diff --git a/init/main.c b/init/main.c > > index febc511..1331829 100644 > > --- a/init/main.c > > +++ b/init/main.c > > @@ -905,6 +905,

Re: [PATCH v4 4/5] arm: Add [U]EFI runtime services support

2014-01-13 Thread Leif Lindholm
On Mon, Jan 13, 2014 at 07:43:09PM +0100, Arnd Bergmann wrote: > > This patch implements basic support for UEFI runtime services in the > > ARM architecture - a requirement for using efibootmgr to read and update > > the system boot configuration. > > > > It uses the generic configuration table

Re: [PATCH v4 4/5] arm: Add [U]EFI runtime services support

2014-01-14 Thread Leif Lindholm
On Tue, Jan 14, 2014 at 07:52:32AM +0100, Arnd Bergmann wrote: > > > > It uses the generic configuration table scanning to populate ACPI and > > > > SMBIOS pointers. > > > > > > As far as I'm concerned there are no plans to have ACPI support on ARM32, > > > so I wonder what the code to populate

Re: [PATCH v4 4/5] arm: Add [U]EFI runtime services support

2014-01-14 Thread Leif Lindholm
On 14 January 2014 13:26, Arnd Bergmann wrote: >> > > Are you suggesting that I should #ifndef ARM in common code, or that I >> > > should neglect to document what the common code will do with data it is >> > > given by UEFI? >> > >> > It would probably be good to document the fact that it won't

Re: [PATCH V6 6/8] Add EFI stub for ARM

2014-01-15 Thread Leif Lindholm
On Tue, Jan 14, 2014 at 06:16:58PM -0800, Roy Franz wrote: > >>> + .align 3 > >>> +pe_header: > >>> + .ascii "PE" > >>> + .short 0 > >>> + > >>> +coff_header: > >>> + .short 0x01c2 @ ARM or Thumb > >> > >> Could you explain why you are using 0x1c2

Re: [PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-02-03 Thread Leif Lindholm
On Mon, Feb 03, 2014 at 10:34:15AM +, Will Deacon wrote: > On Thu, Jan 30, 2014 at 01:12:47PM +0000, Leif Lindholm wrote: > > Oh, that's neat - thanks! > > > > Well, given that, I can think of two less horrible options: > > 1) > > .macro u

Re: [PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-02-03 Thread Leif Lindholm
On Mon, Feb 03, 2014 at 04:00:51PM +, Will Deacon wrote: > > > > With the two call sites in uefi_phys.S as: > > > > > > > > ldr r5, =(CR_M) > > > > update_sctlrr12, , r5 > > > > and > > > > ldr r4, =(CR_I | CR_C | CR_M) > > > > update_sctlrr12,

Re: [PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-02-03 Thread Leif Lindholm
On Mon, Feb 03, 2014 at 04:57:18PM +, Will Deacon wrote: > > mov[tw]: why? > > Then we end up battling different available immediate fields in A32/T32 > > instruction sets and v5/v6/v7 architecture versions. > > I was making the assumption that UEFI was going to be v7 only... is this not >

Re: [PATCHv2 2/2] arm: Get rid of meminfo

2014-02-05 Thread Leif Lindholm
> > Signed-off-by: Laura Abbott On VExpress TC2: Tested-by: Leif Lindholm (Applies also to 1/2, of course.) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.ke

[PATCH 20/22] Improve cmdline conversion

2014-02-05 Thread Leif Lindholm
From: "H. Peter Anvin" Improve the conversion of the UTF-16 EFI command line to UTF-8 for passing to the kernel. Signed-off-by: Roy Franz Signed-off-by: H. Peter Anvin Signed-off-by: Leif Lindholm --- arch/x86/boot/compressed/eboot.c |3 +- drivers/firmware/efi/

[PATCH 21/22] arm: efistub: ignore dtb= when UEFI SecureBoot is enabled

2014-02-05 Thread Leif Lindholm
From: Ard Biesheuvel Loading unauthenticated FDT blobs directly from storage is a security hazard, so this should only be allowed when running with UEFI Secure Boot disabled. Signed-off-by: Ard Biesheuvel Signed-off-by: Leif Lindholm --- drivers/firmware/efi/arm-stub.c|4

[PATCH 19/22] arm64: add EFI runtime services

2014-02-05 Thread Leif Lindholm
From: Mark Salter This patch adds EFI runtime support for arm64. The runtime support allows the kernel to access various EFI runtime services provided by EFI firmware. Things like reboot, real time clock, EFI boot variables, and others. Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm

[PATCH 22/22] arm: update boot/compressed/.gitignore

2014-02-05 Thread Leif Lindholm
Add bswapsdi2.S, fdt_empty_tree.c and fdt_sw.c to ignore list. Signed-off-by: Leif Lindholm --- arch/arm/boot/compressed/.gitignore |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/compressed/.gitignore b/arch/arm/boot/compressed/.gitignore index 47279aa..cc3487e 100644

[PATCH 15/22] lib: add fdt_empty_tree.c

2014-02-05 Thread Leif Lindholm
From: Mark Salter CONFIG_LIBFDT support does not include fdt_empty_tree.c which is needed by arm64 EFI stub. Add it to libfdt_files. Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm --- lib/Makefile |3 ++- lib/fdt_empty_tree.c |2 ++ 2 files changed, 4 insertions

[PATCH 16/22] arm64: Add function to create identity mappings

2014-02-05 Thread Leif Lindholm
for UEFI. This patch adds a create_id_mapping() function which reuses the core code of the existing create_mapping(). Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm --- arch/arm64/include/asm/mmu.h |2 ++ arch/arm64/mm/mmu.c | 66 ++ 2

[PATCH 10/22] Add EFI stub for ARM

2014-02-05 Thread Leif Lindholm
s not used by the zImage interface. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- arch/arm/Kconfig | 11 +++ arch/arm/boot/compressed/Makefile | 17 - arch/arm/boot/compressed/efi-header.S | 117 arc

[PATCH 18/22] doc: arm64: add description of EFI stub support

2014-02-05 Thread Leif Lindholm
From: Mark Salter Add explanation of arm64 EFI stub and kernel image header changes needed to masquerade as a PE/COFF application. Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm Acked-by: Grant Likely CC: linux-...@vger.kernel.org CC: Rob Landley --- Documentation/arm64

[PATCH 17/22] arm64: add EFI stub

2014-02-05 Thread Leif Lindholm
-off-by: Ard Biesheuvel Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm --- arch/arm64/Kconfig| 10 arch/arm64/kernel/Makefile|3 ++ arch/arm64/kernel/efi-entry.S | 93 ++ arch/arm64/kernel/efi-stub.c | 67

[PATCH 12/22] Documentation: arm: add UEFI support documentation

2014-02-05 Thread Leif Lindholm
This patch provides documentation of the [U]EFI runtime service and configuration features for the arm architecture. Changes since v1/v2: - Complete rewrite. - New FDT bindings. Cc: Rob Landley Cc: linux-...@vger.kernel.org Signed-off-by: Leif Lindholm Signed-off-by: Leif Lindholm Acked

[PATCH 08/22] Add strstr to compressed string.c for ARM.

2014-02-05 Thread Leif Lindholm
copied from the arch/x86/boot/string.c file used by the x86 decompressor. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm Reviewed-by: Grant Likely --- arch/arm/boot/compressed/string.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/compressed

[PATCH 06/22] Add helper functions used by arm/arm64

2014-02-05 Thread Leif Lindholm
From: Roy Franz Add the get_dram_base() function and efi_call_physN() macros that are shared by arm/arm64. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm --- drivers/firmware/efi/efi-stub-helper.c | 63 +--- 1 file changed, 50 insertions(+), 13 deletions

[PATCH 13/22] arm: Add [U]EFI runtime services support

2014-02-05 Thread Leif Lindholm
bindings. - Preserve regions marked RESERVED (but don't map them). - Rename 'efi' -> 'uefi' within this new port (leaving core code as is). Signed-off-by: Leif Lindholm Reviewed-by: Grant Likely --- arch/arm/Kconfig| 16 ++ arch/arm/include/asm/uefi.h | 28 +++ arch/arm/ker

[PATCH 09/22] Add shared arm/arm64 EFI stub

2014-02-05 Thread Leif Lindholm
From: Roy Franz This patch adds the EFI stub entry point that is shared by the arm/arm64 architectures. Each arch will implement the handle_kernel_image() function that handles the arch specific load address and boot protocol requirements. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm

[PATCH 04/22] efi-stub.txt updates for ARM

2014-02-05 Thread Leif Lindholm
From: Roy Franz Update efi-stub.txt documentation to be more general and not x86 specific. Add ARM only "dtb=" command line option description. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- Documentation/efi-stub.txt | 27

[PATCH 05/22] Add shared printk wrapper for consistent prefixing

2014-02-05 Thread Leif Lindholm
From: Roy Franz Add a wrapper for printk to standardize the prefix for informational and error messages from the EFI stub. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm --- drivers/firmware/efi/efi-stub-helper.c | 25 ++--- 1 file changed, 14 insertions(+), 11

[PATCH 01/22] arm: break part of __soft_restart out into separate function

2014-02-05 Thread Leif Lindholm
Certain operations can be considered mandatory for any piece of code preparing to switch off the MMU. Break this out into separate function idmap_prepare(). Signed-off-by: Leif Lindholm Suggested-by: Will Deacon Acked-by: Will Deacon --- arch/arm/include/asm/idmap.h |1 + arch/arm/kernel

[PATCH 00/22] arm/arm64: UEFI stubs + runtime services

2014-02-05 Thread Leif Lindholm
: ignore dtb= when UEFI SecureBoot is enabled H. Peter Anvin (1): Improve cmdline conversion Leif Lindholm (6): arm: break part of __soft_restart out into separate function arm: add new asm macro update_sctlr Documentation: arm: add UEFI support documentation arm: Add [U]EFI runtime

[PATCH 03/22] efi: add helper function to get UEFI params from FDT

2014-02-05 Thread Leif Lindholm
-by: Mark Salter Signed-off-by: Leif Lindholm --- drivers/firmware/efi/Kconfig |7 drivers/firmware/efi/efi.c | 79 ++ include/linux/efi.h |9 + 3 files changed, 95 insertions(+) diff --git a/drivers/firmware/efi/Kconfig b

[PATCH 02/22] arm: add new asm macro update_sctlr

2014-02-05 Thread Leif Lindholm
A new macro for setting/clearing bits in the SCTLR. Signed-off-by: Leif Lindholm Suggested-by: Will Deacon Cc: Will Deacon --- arch/arm/include/asm/assembler.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm

[PATCH 11/22] Disable stack protection for decompressor/stub

2014-02-05 Thread Leif Lindholm
is also built with -fno-stack-protector. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm --- arch/arm/boot/compressed/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 1415411..5fc32ae

[PATCH 14/22] init: efi: arm: enable (U)EFI runtime services on arm

2014-02-05 Thread Leif Lindholm
Since the efi_set_virtual_address_map call has strict init ordering requirements, add an explicit hook in the required place. Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- init/main.c |4 1 file changed, 4 insertions(+) diff --git a/init/main.c b/init/main.c index 2fd9cef

[PATCH 07/22] Add shared FDT related functions for ARM/ARM64

2014-02-05 Thread Leif Lindholm
-helper.c. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- drivers/firmware/efi/fdt.c | 247 include/linux/efi.h|3 + 2 files changed, 250 insertions(+) create mode 100644 drivers/firmware/efi/fdt.c diff

Re: [PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-01-29 Thread Leif Lindholm
On Wed, Jan 22, 2014 at 11:20:55AM +, Will Deacon wrote: > > +#ifdef CONFIG_CPU_CP15 > > +/* Macro for setting/clearing bits in sctlr */ > > + .macro update_sctlr, set:req, clear:req, tmp:req, tmp2:req > > + mrc p15, 0, \tmp, c1, c0, 0 > > + ldr \tmp2, =\set > > + orr \tmp,

Re: [PATCH v4 2/5] arm: add new asm macro update_sctlr

2014-01-30 Thread Leif Lindholm
On Wed, Jan 29, 2014 at 03:58:44PM -0500, Mark Salter wrote: > > (i.e. conditionalise on whether an optional parameter was provided), > > so my attempt of refactoring actually ends up using an additional > > register: > > > > Register parameters are just strings, so how about this: > >

Re: [PATCH v3 2/3] arm: Add [U]EFI runtime services support

2013-12-06 Thread Leif Lindholm
Hi Arnd, Thank you for your comments. On Fri, Dec 06, 2013 at 02:59:48AM +0100, Arnd Bergmann wrote: > On Thursday 28 November 2013, Leif Lindholm wrote: > > @@ -898,6 +900,10 @@ void __init setup_arch(char **cmdline_p) > > sanity_check_meminfo(); > > arm_

Re: [PATCH 3/3] arm64: add EFI runtime services

2013-12-09 Thread Leif Lindholm
Apologies for late feedback. On Fri, Nov 29, 2013 at 05:05:12PM -0500, Mark Salter wrote: > diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c > new file mode 100644 > index 000..1bad8a7 > --- /dev/null > +++ b/arch/arm64/kernel/efi.c > @@ -0,0 +1,507 @@ > +/* > + * Extensible

[PATCH] arm64: Add flush_cache_vmap call in __early_set_fixmap

2014-06-06 Thread Leif Lindholm
__early_set_fixmap does not do any synchronization when called to set a fixmap entry. Add call to flush_vmap_cache(). Tested on hardware. Signed-off-by: Leif Lindholm Tested-by: Graeme Gregory Cc: Steve Capper --- arch/arm64/mm/ioremap.c |5 +++-- 1 file changed, 3 insertions(+), 2

Re: [PATCH] arm64: Add flush_cache_vmap call in __early_set_fixmap

2014-06-06 Thread Leif Lindholm
On Fri, Jun 06, 2014 at 10:37:29AM -0400, Mark Salter wrote: > On Fri, 2014-06-06 at 11:29 +0100, Leif Lindholm wrote: > > __early_set_fixmap does not do any synchronization when called to set a > > fixmap entry. Add call to flush_vmap_cache(). > > > > Tested on ha

Re: [PATCH] arm64: Add flush_cache_vmap call in __early_set_fixmap

2014-06-09 Thread Leif Lindholm
On Mon, Jun 09, 2014 at 12:03:56PM +0100, Catalin Marinas wrote: > > > > > __early_set_fixmap does not do any synchronization when called to set > > > > > a > > > > > fixmap entry. Add call to flush_vmap_cache(). > > Did you hit a problem or it was just for safety? This fixes an abort when

[PATCH 0/5] Non-ARM-specific EFI patches needed for ARM ports

2014-04-04 Thread Leif Lindholm
This is the set of patches from the arm/arm64 UEFI support that are not in fact architecture specific. This set depends on other EFI patches already in linux-next. H. Peter Anvin (1): efi: x86: Improve cmdline conversion Leif Lindholm (1): efi: efi-stub-helper cleanup Mark Salter (1): efi

[PATCH 3/5] efi: x86: Improve cmdline conversion

2014-04-04 Thread Leif Lindholm
From: "H. Peter Anvin" Improve the conversion of the UTF-16 EFI command line to UTF-8 for passing to the kernel. Signed-off-by: Roy Franz Signed-off-by: H. Peter Anvin Signed-off-by: Leif Lindholm --- arch/x86/boot/compressed/eboot.c |3 +- drivers/firmware/efi/efi-stu

[PATCH 4/5] efi: Add shared printk wrapper for consistent prefixing

2014-04-04 Thread Leif Lindholm
From: Roy Franz Add a wrapper for printk to standardize the prefix for informational and error messages from the EFI stub. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm --- drivers/firmware/efi/efi-stub-helper.c | 13 - 1 file changed, 8 insertions(+), 5 deletions

[PATCH 5/5] efi: Add get_dram_base() helper function

2014-04-04 Thread Leif Lindholm
From: Roy Franz Add the get_dram_base() function, shared by arm/arm64. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm --- drivers/firmware/efi/efi-stub-helper.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/firmware/efi/efi-stub-helper.c

[PATCH 2/5] efi: create memory map iteration helper

2014-04-04 Thread Leif Lindholm
-off-by: Mark Salter Signed-off-by: Leif Lindholm --- include/linux/efi.h |6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/efi.h b/include/linux/efi.h index 6c100ff..82d0abb 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -863,6 +863,12 @@ extern int

[PATCH 1/5] efi: efi-stub-helper cleanup

2014-04-04 Thread Leif Lindholm
not always pick this up. Initialize to NULL to remove the resulting warning. Signed-off-by: Leif Lindholm --- drivers/firmware/efi/efi-stub-helper.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/firmware/efi/efi-stub-helper.c b/drivers/firmware

[PATCH v3 07/10] doc: arm64: add description of EFI stub support

2014-04-04 Thread Leif Lindholm
From: Mark Salter Add explanation of arm64 EFI stub and kernel image header changes needed to masquerade as a PE/COFF application. Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm Acked-by: Grant Likely CC: linux-...@vger.kernel.org CC: Rob Landley --- Documentation/arm64

[PATCH v3 10/10] efi/arm64: ignore dtb= when UEFI SecureBoot is enabled

2014-04-04 Thread Leif Lindholm
From: Ard Biesheuvel Loading unauthenticated FDT blobs directly from storage is a security hazard, so this should only be allowed when running with UEFI Secure Boot disabled. Signed-off-by: Ard Biesheuvel Signed-off-by: Leif Lindholm Cc: Catalin Marinas Cc: Matt Fleming --- drivers

[PATCH v3 08/10] arm64: add EFI runtime services

2014-04-04 Thread Leif Lindholm
From: Mark Salter This patch adds EFI runtime support for arm64. The runtime support allows the kernel to access various EFI runtime services provided by EFI firmware. Things like reboot, real time clock, EFI boot variables, and others. Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm

[PATCH v3 06/10] arm64: efi: add EFI stub

2014-04-04 Thread Leif Lindholm
-off-by: Ard Biesheuvel Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm Cc: Catalin Marinas Cc: Matt Fleming --- arch/arm64/Kconfig | 14 +++ arch/arm64/kernel/Makefile |3 + arch/arm64/kernel/efi-entry.S | 100 arch/arm64/kernel/efi-stub.c

[PATCH v3 09/10] doc: arm: add UEFI support documentation

2014-04-04 Thread Leif Lindholm
This patch provides documentation of the [U]EFI runtime service and configuration features for the arm architecture. Cc: Rob Landley Cc: linux-...@vger.kernel.org Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- Documentation/arm/00-INDEX |2 ++ Documentation/arm/uefi.txt | 64

[PATCH v3 00/10] arm64: UEFI support

2014-04-04 Thread Leif Lindholm
they are interdependent. - EFI_DEVICE_TREE_GUID renamed DEVICE_TREE_GUID. - Minor cleanups. Ard Biesheuvel (1): efi/arm64: ignore dtb= when UEFI SecureBoot is enabled Leif Lindholm (1): doc: arm: add UEFI support documentation Mark Salter (6): lib: add fdt_empty_tree.c efi: add helper function to get

[PATCH v3 05/10] efi: Add shared FDT related functions for ARM/ARM64

2014-04-04 Thread Leif Lindholm
-helper.c. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm Acked-by: Grant Likely Cc: Matt Fleming --- drivers/firmware/efi/fdt.c | 269 include/linux/efi.h|3 + 2 files changed, 272 insertions(+) create mode 100644 drivers

[PATCH v3 04/10] arm64: Add function to create identity mappings

2014-04-04 Thread Leif Lindholm
for UEFI. This patch adds a create_id_mapping() function which reuses the core code of the existing create_mapping(). Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm Cc: Catalin Marinas --- arch/arm64/include/asm/mmu.h |2 ++ arch/arm64/mm/mmu.c | 65

[PATCH v3 01/10] lib: add fdt_empty_tree.c

2014-04-04 Thread Leif Lindholm
From: Mark Salter CONFIG_LIBFDT support does not include fdt_empty_tree.c which is needed by arm64 EFI stub. Add it to libfdt_files. Signed-off-by: Mark Salter Signed-off-by: Leif Lindholm Cc: Andrew Morton --- lib/Makefile |3 ++- lib/fdt_empty_tree.c |2 ++ 2 files changed

[PATCH v3 03/10] efi: add helper function to get UEFI params from FDT

2014-04-04 Thread Leif Lindholm
-by: Mark Salter Signed-off-by: Leif Lindholm Cc: Matt Fleming --- drivers/firmware/efi/Kconfig |7 drivers/firmware/efi/efi.c | 79 ++ include/linux/efi.h |9 + 3 files changed, 95 insertions(+) diff --git a/drivers/firmware

[PATCH v3 02/10] doc: efi-stub.txt updates for ARM

2014-04-04 Thread Leif Lindholm
From: Roy Franz Update efi-stub.txt documentation to be more general and not x86 specific. Add ARM only "dtb=" command line option description. Signed-off-by: Roy Franz Signed-off-by: Leif Lindholm Acked-by: Grant Likely --- Documentation/efi-stub.txt | 27

[PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-17 Thread Leif Lindholm
-kernel@vger.kernel.org Cc: Mark Rutland Leif Lindholm (3): arm: dts: add device_type="memory" for ste-ccu8540 mips: dts: add device_type="memory" where missing of: Handle memory@0 node on PPC32 only arch/arm/boot/dts/ste-ccu8540.dts |1 + arch/mips/lantiq/dts/eas

[PATCH 1/3] arm: dts: add device_type="memory" for ste-ccu8540

2014-04-17 Thread Leif Lindholm
The current .dts for ste-ccu8540 lacks a 'device_type = "memory"' for its memory node, relying on an old ppc quirk in order to discover its memory. Add this, to permit that quirk to be made ppc only. Signed-off-by: Leif Lindholm Cc: linux-arm-ker...@lists.infradead.org C

[PATCH 2/3] mips: dts: add device_type="memory" where missing

2014-04-17 Thread Leif Lindholm
A few platforms lack a 'device_type = "memory"' for their memory nodes, relying on an old ppc quirk in order to discover its memory. Add this, to permit that quirk to be made ppc only. Signed-off-by: Leif Lindholm Cc: linux-m...@linux-mips.org Cc: devicet...@vger.kernel.org Cc: John C

[PATCH 3/3] of: Handle memory@0 node on PPC32 only

2014-04-17 Thread Leif Lindholm
In order to deal with an firmware bug on a specific ppc32 platform (longtrail), early_init_dt_scan_memory() looks for a node called memory@0 on all platforms. Restrict this quirk to ppc32 kernels only. Signed-off-by: Leif Lindholm Cc: linuxppc-...@lists.ozlabs.org Cc: Grant Likely Cc: Mark

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Leif Lindholm
On Thu, Apr 17, 2014 at 07:43:13PM -0500, Rob Herring wrote: > On Thu, Apr 17, 2014 at 12:41 PM, Leif Lindholm > wrote: > > drivers/of/fdt.c contains a workaround for a missing memory type > > entry on longtrail firmware. Make that quirk PPC32 only, and while > > at it

Re: [PATCH 3/3] of: Handle memory@0 node on PPC32 only

2014-04-18 Thread Leif Lindholm
Hi Geert, On Fri, Apr 18, 2014 at 10:04:15AM +0200, Geert Uytterhoeven wrote: > On Thu, Apr 17, 2014 at 7:42 PM, Leif Lindholm > wrote: > > In order to deal with an firmware bug on a specific ppc32 platform > > (longtrail), early_init_dt_scan_memory() looks for a node called &

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Leif Lindholm
On Fri, Apr 18, 2014 at 10:37:58AM -0500, Rob Herring wrote: > >> But why do you need this? > > > > Apart from the current code permitting recreating a 15+ year old > > firmware bug into completely new platform ports? > > I would prefer to see a "WARN_ON(!IS_ENABLED(CONFIG_PPC32));" added here.

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-18 Thread Leif Lindholm
On Fri, Apr 18, 2014 at 04:28:17PM -0500, Rob Herring wrote: > >> > Apart from the current code permitting recreating a 15+ year old > >> > firmware bug into completely new platform ports? > >> > >> I would prefer to see a "WARN_ON(!IS_ENABLED(CONFIG_PPC32));" added here. > > > > In addition to,

Re: [PATCH 0/3] of: dts: enable memory@0 quirk for PPC32 only

2014-04-22 Thread Leif Lindholm
On Tue, Apr 22, 2014 at 02:08:29PM +0100, Grant Likely wrote: > > I would prefer to see a "WARN_ON(!IS_ENABLED(CONFIG_PPC32));" added here. > > I completely agree. OK. So do we keep this around on unaffected architectures in perpetuity? Or can there be some cut-off date when the majority of

Re: [GIT PULL] EFI urgent fix

2014-06-20 Thread Leif Lindholm
On Fri, Jun 20, 2014 at 10:28:48AM +0100, Catalin Marinas wrote: > On Fri, Jun 20, 2014 at 10:00:08AM +0100, Matt Fleming wrote: > > Please pull the following compiler warning fix. Sorry, I've been pretty > > slow in getting this pull request sent. Multiple people have reported > > hitting it and

Re: [GIT PULL] EFI urgent fix

2014-06-20 Thread Leif Lindholm
On Fri, Jun 20, 2014 at 02:49:38PM +0100, Matt Fleming wrote: > On Fri, 20 Jun, at 02:39:19PM, Leif Lindholm wrote: > > > > I did post an alternative patch for one half of this a week before > > anyone else, but that one seems to have been ignored, even by gmane: > > h

Re: [PATCH 1/2] UEFI arm64: add noefi boot param

2014-08-06 Thread Leif Lindholm
On Wed, Aug 06, 2014 at 04:38:25PM +0800, Dave Young wrote: > > Adding a noefi boot param like in X86 to disable efi runtime services support. > > This will be useful for debugging uefi problems. Also it will be useful > for later kexec/kdump work. Kexec on uefi support in X86 depends on a fixed

Re: [PATCH 1/2] UEFI arm64: add noefi boot param

2014-08-06 Thread Leif Lindholm
On Wed, Aug 06, 2014 at 02:20:21PM +0100, Matt Fleming wrote: > > Since this is really turning an x86-specific feature into a generic > > one, could it be moved to core code? > > Maybe an efi.mask, reusing the efi_enabled defines, with an > > efi_disabled macro? > > Why the new efi_disabled()

Re: [PATCH 1/2] UEFI arm64: add noefi boot param

2014-08-06 Thread Leif Lindholm
On Wed, Aug 06, 2014 at 03:18:14PM +0100, Matt Fleming wrote: > On Wed, 06 Aug, at 04:10:45PM, Ard Biesheuvel wrote: > > > > Shouldn't we clear the bit here if we failed to enable runtime > > services for some reason? Other code may test the bit assuming that it > > signifies that runtime

Re: [PATCH 1/8] arm: use generic fixmap.h

2014-08-07 Thread Leif Lindholm
LK(ITCM_OFFSET, (unsigned long) itcm_end), > #endif > - MLK(FIXADDR_START, FIXADDR_TOP), > + MLK(FIXADDR_START, FIXADDR_END), > MLM(VMALLOC_START, VMALLOC_END), > MLM(PAGE_OFFSET, (unsigned long)high_me

Re: [PATCH v11 2/4] ACPI: parse SPCR and enable matching console

2017-09-11 Thread Leif Lindholm
I'm afraid Aleksey is no longer assigned to Linaro (you will probably have seen a bounce). On Mon, Sep 11, 2017 at 11:11:49AM +0200, Andreas Schwab wrote: > On Sep 27 2016, Aleksey Makarov wrote: > > > 'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port > > Console Redirection

Re: [PATCH v11 2/4] ACPI: parse SPCR and enable matching console

2017-09-11 Thread Leif Lindholm
On Mon, Sep 11, 2017 at 02:28:20PM +0200, Andreas Schwab wrote: > On Sep 11 2017, Graeme Gregory wrote: > > > Considering the SPCR table in question seems mildly insane, you could > > always unload the SPCR in grub. > > How do you "unload the SPCR"? But in any case, console= should always >

Re: [PATCH] firmware: bluefield: add boot control driver

2017-10-10 Thread Leif Lindholm
On Tue, Oct 10, 2017 at 11:23:32AM +0100, Mark Rutland wrote: > On Tue, Oct 10, 2017 at 11:15:39AM +0100, Sudeep Holla wrote: > > (+Mark, Grant) > > > > On 09/10/17 18:16, Chris Metcalf wrote: > > > The Mellanox BlueField SoC firmware supports a safe upgrade mode as > > > part of the flow where

Re: [PATCH 2/4] efi/libstub: detect panel-id

2019-07-03 Thread Leif Lindholm
On Tue, Jul 02, 2019 at 03:48:48PM -0700, Rob Clark wrote: > > > There is one kernel, and there > > > are N distro's, so debugging a users "I don't get a screen at boot" > > > problem because their distro missed some shim patch really just > > > doesn't seem like a headache I want to have. > > > >

Re: [PATCH v3 2/3] of: add optional options parameter to? of_find_node_by_path()

2014-11-28 Thread Leif Lindholm
On Fri, Nov 28, 2014 at 03:25:12PM +, Grant Likely wrote: > On Fri, 28 Nov 2014 11:34:28 + > , Leif Lindholm > wrote: > > On Fri, Nov 28, 2014 at 12:44:03AM +, Grant Likely wrote: > > > > + separator = strchr(path, ':'); > >

[RFC] fs: make efivarfs a pseudo filesystem, built by default with EFI

2014-12-18 Thread Leif Lindholm
variables, over the legacy efivars interface, also build it by default as a module if CONFIG_EFI. Signed-off-by: Leif Lindholm --- fs/Kconfig | 2 +- fs/efivarfs/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/Kconfig b/fs/Kconfig index 664991a..a6bb

Re: [GIT PULL] x86 fixes

2014-09-23 Thread Leif Lindholm
ur build and we > probably want to do something like unconditionally select > CONFIG_EFI_ARM_STUB when CONFIG_EFI_STUB=y. For arm64: Tested-by: Leif Lindholm > --- > > From 8054c405f0acc8ecb74b7e29675a1e6894afedb0 Mon Sep 17 00:00:00 2001 > From: Matt Fleming > Date: Tue,

<    1   2   3   4   5   >