Re: [PATCH v2] mtd: slram: use memremap() instead of ioremap()

2017-11-06 Thread Roy Franz
ping - is this suitable for 4.15? Thanks, Roy On Thu, Oct 19, 2017 at 3:55 PM, Roy Franz wrote: > Convert slram to use memremap() to map the memory it uses to back an MTD > device, as this is the proper interface for mapping memory. This change > enables normal memory to be used to ba

[PATCH v2] mtd: slram: use memremap() instead of ioremap()

2017-10-19 Thread Roy Franz
Convert slram to use memremap() to map the memory it uses to back an MTD device, as this is the proper interface for mapping memory. This change enables normal memory to be used to back an MTD device on arm64, as arm64 prevents ioremap() being used on normal memory. Signed-off-by: Roy Franz

Re: [PATCH] mdt: slram: use memremap() instead of ioremap()

2017-10-19 Thread Roy Franz
On Thu, Oct 19, 2017 at 8:37 AM, Christoph Hellwig wrote: > s/mdt/mtd/ in the subject? Yup, I'll repost a fixed version.

[PATCH] mdt: slram: use memremap() instead of ioremap()

2017-10-17 Thread Roy Franz
Convert slram to use memremap() to map the memory it uses to back an MTD device, as this is the proper interface for mapping memory. This change enables normal memory to be used to back an MTD device on arm64, as arm64 prevents ioremap() being used on normal memory. Signed-off-by: Roy Franz

Re: [RFC PATCH 3/8] firmware: arm_scmi: add common infrastructure and support for base protocol

2017-06-07 Thread Roy Franz
On Wed, Jun 7, 2017 at 9:10 AM, Sudeep Holla wrote: > The base protocol describes the properties of the implementation and > provide generic error management. The base protocol provides commands > to describe protocol version, discover implementation specific > attributes and vendor/sub-vendor ide

Re: [RFC PATCH 5/8] firmware: arm_scmi: add initial support for clock protocol

2017-06-07 Thread Roy Franz
On Wed, Jun 7, 2017 at 9:10 AM, Sudeep Holla wrote: > The clock protocol is intended for management of clocks. It is used to > enable or disable clocks, and to set and get the clock rates. This > protocol provides commands to describe the protocol version, discover > various implementation specifi

Re: [RFC PATCH 7/8] firmware: arm_scmi: add initial support for sensor protocol

2017-06-07 Thread Roy Franz
On Wed, Jun 7, 2017 at 9:10 AM, Sudeep Holla wrote: > The sensor protocol provides functions to manage platform sensors, and > provides the commands to describe the protocol version and the various > attribute flags. It also provides commands to discover various sensors > implemented and managed b

Re: [RFC PATCH 2/8] firmware: arm_scmi: add basic driver infrastructure for SCMI

2017-06-07 Thread Roy Franz
On Wed, Jun 7, 2017 at 9:10 AM, Sudeep Holla wrote: > The SCMI is intended to allow OSPM to manage various functions that are > provided by the hardware platform it is running on, including power and > performance functions. SCMI provides two levels of abstraction, protocols > and transports. Prot

Re: [PATCH v2] efi: Config options to assign versions in the PE-COFF header

2017-04-17 Thread Roy Franz (HPE)
On Thu, Apr 13, 2017 at 12:47 AM, Gary Lin wrote: > On Thu, Apr 13, 2017 at 08:26:04AM +0100, Ard Biesheuvel wrote: >> On 13 April 2017 at 04:58, Gary Lin wrote: >> > This commit adds the new config options to allow the user to modify the >> > following fields in the PE-COFF header. >> > >> > UIN

[tip:efi/core] efi/libstub: Fix allocation size calculations

2016-11-13 Thread tip-bot for Roy Franz
Commit-ID: 5b88a31c222c47cb8997021cc8a576927ba0e77f Gitweb: http://git.kernel.org/tip/5b88a31c222c47cb8997021cc8a576927ba0e77f Author: Roy Franz AuthorDate: Sat, 12 Nov 2016 21:32:29 + Committer: Ingo Molnar CommitDate: Sun, 13 Nov 2016 08:23:14 +0100 efi/libstub: Fix allocation

Re: [PATCH v5 0/1] ARM64: ACPI: Update documentation for latest specification version

2016-05-12 Thread Roy Franz (HPE)
If there are no further comments, can this be pulled in through > either the documentation or arm64 tree? > > Thanks. I've read through this - looks good to me. I think it provides useful guidance to reference as we work on getting good ACPI support provided by various pl

Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-20 Thread Roy Franz
t /dev/mem. Also patch adds > raw dmi table to simplify dmi table processing in user space, as > proposed by Jean Delvare. > > Signed-off-by: Ivan Khoronzhuk Tested-by: Roy Franz Tested with dmidecode w/patches to read tables from sysfs. The dmidecode patches are posted on dmi

Re: [Patch 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-16 Thread Roy Franz
On Wed, Apr 15, 2015 at 11:48 PM, Jean Delvare wrote: > Hi Roy, > > On Wed, 15 Apr 2015 17:54:51 -0700, Roy Franz wrote: >> On Tue, Apr 14, 2015 at 9:19 PM, Roy Franz wrote: >> > I have made modifications to dmidecode to support this interface, and it >> >

Re: [Patch 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-15 Thread Roy Franz
On Tue, Apr 14, 2015 at 9:19 PM, Roy Franz wrote: > On Fri, Apr 3, 2015 at 2:36 AM, Ivan.khoronzhuk > wrote: >> >> >> On 02.04.15 15:57, Ivan Khoronzhuk wrote: >>> >>> Some utils, like dmidecode and smbios, need to access SMBIOS entry >>>

Re: [PATCH v4 2/2] efi: an sysfs interface for user to update efi firmware

2015-04-15 Thread Roy Franz
On Wed, Apr 15, 2015 at 8:45 AM, Andy Lutomirski wrote: > On Apr 15, 2015 6:20 AM, "Greg Kroah-Hartman" > wrote: >> >> On Tue, Apr 14, 2015 at 11:52:48AM -0400, Andy Lutomirski wrote: >> > On Tue, Apr 14, 2015 at 10:09 AM, Greg Kroah-Hartman >> > wrote: >> > > On Tue, Apr 14, 2015 at 05:44:56PM

[PATCH] x86/efi: Store upper bits of command line buffer address in ext_cmd_line_ptr

2015-04-15 Thread Roy Franz
. Signed-off-by: Roy Franz --- This is a follow-up to "x86_64/efi: enforce 32 bit address for command line buffer", which had the wrong fix to the truncation of address. arch/x86/boot/compressed/eboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/boot/compressed/eboot.c

Re: [PATCH] x86_64/efi: enforce 32 bit address for command line buffer

2015-04-15 Thread Roy Franz
On Wed, Apr 15, 2015 at 6:18 AM, Matt Fleming wrote: > On Tue, 14 Apr, at 05:45:52PM, Roy Franz wrote: >> The boot_params structure has a 32 bit field for storing the address of >> the kernel command line. When the EFI stub allocates memory for the command >> line, it al

Re: [Patch 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-14 Thread Roy Franz
On Fri, Apr 3, 2015 at 2:36 AM, Ivan.khoronzhuk wrote: > > > On 02.04.15 15:57, Ivan Khoronzhuk wrote: >> >> Some utils, like dmidecode and smbios, need to access SMBIOS entry >> table area in order to get information like SMBIOS version, size, etc. >> Currently it's done via /dev/mem. But for sit

[PATCH] x86_64/efi: enforce 32 bit address for command line buffer

2015-04-14 Thread Roy Franz
e the stub code, so we don't need to handle the case of booting a 32 bit kernel on a 64 bit EFI platform. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compress

Re: fwupdate

2015-03-09 Thread Roy Franz
On Mon, Mar 9, 2015 at 2:23 PM, Borislav Petkov wrote: > + pjones. > > So reportedly, there is already a capsule-loading thing which doesn't > need the kernel at all: > > https://github.com/rhinstaller/fwupdate > > So why are we even wasting energy with this discussion here? > > -- > Regards/Gruss

Re: Re: [PATCH v2 3/3] efi: Capsule update with user helper interface

2015-03-06 Thread Roy Franz
On Fri, Mar 6, 2015 at 1:39 PM, Peter Jones wrote: > On Tue, Feb 24, 2015 at 12:49:09PM +, Kweh, Hock Leong wrote: >> Hi All, >> >> After some internal discussion and re-design prototyping & testing on >> this efi capsule interface kernel module, I would like to start a discussion >> here on t

Re: [PATCH v2 3/3] efi: Capsule update with user helper interface

2015-02-26 Thread Roy Franz
On Sun, Nov 2, 2014 at 7:07 PM, Kweh Hock Leong wrote: > From: "Kweh, Hock Leong" > > Introducing a kernel module to expose user helper interface for > user to upload capsule binaries. This module leverage the > request_firmware_nowait() to expose an interface to user. > > Example steps to load t

Re: [PATCHv2] efi: efi-stub: notify on DTB absence

2014-10-23 Thread Roy Franz
; > EFI stub: Booting Linux Kernel... > EFI stub: Using DTB from configuration table > > Signed-off-by: Mark Rutland > Acked-by: Leif Lindholm > Acked-by: Ard Biesheuvel > Cc: Mark Salter > Cc: Matt Fleming > Acked-by: Roy Franz > --- > drivers/firmware/efi/lib

Re: [PATCH] efi: efi-stub: notify on DTB absence

2014-10-20 Thread Roy Franz
, a positive acknowledgement is added when a user-specified DTB >> is in use: >> >> EFI stub: Booting Linux Kernel... >> EFI stub: Using DTB from command line > Acked-by: Roy Franz > Should we also include a positive acknowledgement of loader-provided > DTB? This c

Re: [PATCH 03/16] MAINTAINERS: Use the correct efi-stub location

2014-07-07 Thread Roy Franz
On Thu, Jul 3, 2014 at 3:07 PM, Joe Perches wrote: > commit 4171fe2f8a47 ("EFI stub documentation updates") moved > the file, update the pattern. > > Signed-off-by: Joe Perches > cc: Roy Franz > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(

Re: [PATCH] Add efi_early_call() macro

2014-03-26 Thread Roy Franz
On Wed, Mar 26, 2014 at 1:59 AM, Matt Fleming wrote: > On Tue, 25 Mar, at 03:40:30PM, Roy Franz wrote: >> Add the efi_early_call() macro to invoke functions in the efi_early >> structure. Using a macro for these invocations allows the arm32/arm64 >> architectures to define

Re: [PATCH v2 06/13] x86/efi: Build our own EFI services pointer table

2014-03-25 Thread Roy Franz
On Sat, Mar 22, 2014 at 1:16 PM, Roy Franz wrote: > On Sat, Mar 22, 2014 at 4:05 AM, Matt Fleming wrote: >> On Fri, 21 Mar, at 05:52:29PM, Roy Franz wrote: >>> >>> For both arm32 and arm64 the Linux and EFI calling conventions are the >>> same, so we are dir

[PATCH] Add efi_early_call() macro

2014-03-25 Thread Roy Franz
. Prior to the introduction of the efi_early structure the efi_call_physN macros were used on all architectures and allowed for this differentiation. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c |5 + drivers/firmware/efi/efi-stub-helper.c | 26

Re: [PATCH v2 06/13] x86/efi: Build our own EFI services pointer table

2014-03-22 Thread Roy Franz
On Sat, Mar 22, 2014 at 4:05 AM, Matt Fleming wrote: > On Fri, 21 Mar, at 05:52:29PM, Roy Franz wrote: >> >> For both arm32 and arm64 the Linux and EFI calling conventions are the >> same, so we are directly invoking the function pointers in the >> boot_services

Re: [PATCH v2 06/13] x86/efi: Build our own EFI services pointer table

2014-03-21 Thread Roy Franz
On Tue, Mar 4, 2014 at 5:14 AM, Matt Fleming wrote: > From: Matt Fleming > > It's not possible to dereference the EFI System table directly when > booting a 64-bit kernel on a 32-bit EFI firmware because the size of > pointers don't match. > > In preparation for supporting the above use case, bui

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 Lindh

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

2014-03-03 Thread Roy Franz
On Mon, Mar 3, 2014 at 6:08 AM, Matt Fleming wrote: > On Fri, 14 Feb, at 11:02:49AM, Roy Franz wrote: >> >> The get_dram_base() function is only used by arm/arm64, but >> there is nothing architecture specific about it, which is why I put it >> here to begin with.

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

2014-02-14 Thread Roy Franz
On Thu, Feb 13, 2014 at 3:26 AM, Matt Fleming wrote: > On Wed, 05 Feb, at 05:03:57PM, Leif Lindholm wrote: >> From: Roy Franz >> >> Add the get_dram_base() function and efi_call_physN() macros >> that are shared by arm/arm64. >> >> Signed-off-by: Roy

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

2014-01-14 Thread Roy Franz
On Tue, Jan 14, 2014 at 5:47 PM, Roy Franz wrote: > On Tue, Jan 14, 2014 at 1:05 AM, Ard Biesheuvel > wrote: >> On 10 January 2014 17:30, Roy Franz wrote: >>> This patch adds EFI stub support for the ARM Linux kernel. The EFI stub >>> operates similarly to the

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

2014-01-14 Thread Roy Franz
On Tue, Jan 14, 2014 at 1:05 AM, Ard Biesheuvel wrote: > On 10 January 2014 17:30, Roy Franz wrote: >> This patch adds EFI stub support for the ARM Linux kernel. The EFI stub >> operates similarly to the x86 stub: it is a shim between the EFI firmware >> and the normal zI

Re: [PATCH V6 3/8] Add helper function to get and convert EFI command line

2014-01-14 Thread Roy Franz
On Mon, Jan 13, 2014 at 7:04 AM, Matt Fleming wrote: > On Fri, 10 Jan, at 08:30:12AM, Roy Franz wrote: >> Add an EFI stub helper function to retrieve the EFI command line using >> the LOADED_IMAGE_PROTOCOL, and convert it to ASCII. This function will >> be shared by

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

2014-01-14 Thread Roy Franz
On Mon, Jan 13, 2014 at 7:07 AM, Matt Fleming wrote: > On Fri, 10 Jan, at 08:30:09AM, Roy Franz wrote: >> This patch series adds EFI stub support for the ARM architecture. The >> stub for ARM is implemented in a similar manner to x86 in that it is a >> shim layer betwe

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

2014-01-14 Thread Roy Franz
On Tue, Jan 14, 2014 at 11:29 AM, Rob Herring wrote: > On Fri, Jan 10, 2014 at 10:30 AM, Roy Franz wrote: >> This patch adds EFI stub support for the ARM Linux kernel. The EFI stub >> operates similarly to the x86 stub: it is a shim between the EFI firmware >> and the norm

Re: [PATCH 4/6] arm64: add EFI stub

2014-01-14 Thread Roy Franz
On Tue, Jan 14, 2014 at 6:44 AM, Mark Salter wrote: > On Mon, 2014-01-13 at 19:49 +0100, Arnd Bergmann wrote: >> On Friday 10 January 2014, Mark Salter wrote: >> > 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

[PATCH V6 3/8] Add helper function to get and convert EFI command line

2014-01-10 Thread Roy Franz
Add an EFI stub helper function to retrieve the EFI command line using the LOADED_IMAGE_PROTOCOL, and convert it to ASCII. This function will be shared by the various EFI stub implementations. Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c | 30

[PATCH V6 4/8] Add shared FDT related functions for ARM/ARM64

2014-01-10 Thread Roy Franz
-off-by: Roy Franz Acked-by: Grant Likely --- drivers/firmware/efi/fdt.c | 225 1 file changed, 225 insertions(+) create mode 100644 drivers/firmware/efi/fdt.c diff --git a/drivers/firmware/efi/fdt.c b/drivers/firmware/efi/fdt.c new file mode 100644

[PATCH V6 1/8] efi-stub.txt updates for ARM

2014-01-10 Thread 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 Acked-by: Grant Likely --- Documentation/efi-stub.txt | 27 --- 1 file changed, 20 insertions(+), 7

[PATCH V6 7/8] Disable stack protection for decompressor/stub

2014-01-10 Thread Roy Franz
-stack-protector. Signed-off-by: Roy Franz --- 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 c0c7fee..7974791 100644 --- a/arch/arm/boot/compressed/Makefile

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

2014-01-10 Thread Roy Franz
interface. Signed-off-by: Roy Franz Acked-by: Grant Likely --- arch/arm/boot/compressed/Makefile | 15 ++- arch/arm/boot/compressed/efi-header.S | 117 ++ arch/arm/boot/compressed/efi-stub.c | 214 + arch/arm/boot/compressed/efi-stub.h |

[PATCH V6 8/8] Add config EFI_STUB for ARM to Kconfig

2014-01-10 Thread Roy Franz
The previous patches have added the implementation of the EFI stub functionality to the kernel, so now the Kconfig support is added to enable it. Signed-off-by: Roy Franz --- arch/arm/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig

[PATCH V6 0/8] Add ARM EFI stub

2014-01-10 Thread Roy Franz
tree" in efi-stub.c * remove unnecessary zimage_size variable from relocate_kernel() * correct return types on EFI functions - should be efi_status_t, not int. Roy Franz (8): efi-stub.txt updates for ARM Add shared printk wrapper for consistent prefixing Add helper function to get and

[PATCH V6 5/8] Add strstr to compressed string.c for ARM.

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

[PATCH V6 2/8] Add shared printk wrapper for consistent prefixing

2014-01-10 Thread 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 --- drivers/firmware/efi/efi-stub-helper.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/firmware/efi

Re: [PATCH v3 1/3] Documentation: arm: add UEFI support documentation

2013-12-10 Thread Roy Franz
me patches; sure, if I'm not otherwise >> busy. >> >> Maybe the Linaro guys can recommend a platform (real or emulated) that >> would be best to test it on with the available UEFI? > > Roy Franz (cc'd) has got UEFI running under QEMU. A few modifications &g

Re: [PATCH V5 4/6] Add EFI stub for ARM

2013-12-05 Thread Roy Franz
On Thu, Dec 5, 2013 at 12:00 PM, Grant Likely wrote: > On Wed, 27 Nov 2013 15:31:53 -0800, Roy Franz wrote: >> This patch adds EFI stub support for the ARM Linux kernel. The EFI stub >> operates similarly to the x86 stub: it is a shim between the EFI firmware >> and th

Re: [PATCH V5 2/6] Add shared update_fdt() function for ARM/ARM64

2013-12-05 Thread Roy Franz
On Thu, Dec 5, 2013 at 11:24 AM, Grant Likely wrote: > On Wed, 27 Nov 2013 15:31:51 -0800, Roy Franz wrote: >> Both ARM and ARM64 stubs will update the device tree >> that they pass to the kernel. In both cases they >> primarily need to add the same UEFI related informatio

Re: [PATCH 1/3] arm64: add EFI stub

2013-12-03 Thread Roy Franz
On Tue, Dec 3, 2013 at 10:38 AM, Will Deacon wrote: > Hi Mark, Roy, > > On Fri, Nov 29, 2013 at 10:05:10PM +, Mark Salter wrote: >> 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 d

Re: [PATCH V5 2/6] Add shared update_fdt() function for ARM/ARM64

2013-12-02 Thread Roy Franz
On Mon, Dec 2, 2013 at 6:56 AM, Mark Salter wrote: > On Fri, 2013-11-29 at 11:30 +, Matt Fleming wrote: >> > /* >> >* Add an additional efi_memory_desc_t because we're doing an >> >* allocation which may be in a new descriptor region. >> > + * We allocate as EFI_RUNT

[PATCH V5 1/6] efi-stub.txt updates for ARM

2013-11-27 Thread 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 --- Documentation/efi-stub.txt | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) di

[PATCH V5 0/6] Add ARM EFI stub

2013-11-27 Thread Roy Franz
ons along with the initrd and new fdt allocations. * Added prefix to all prints, reduced number of prints, and reviewed all messages. * Change mixed usage of dtb/fdt to all be fdt or "device tree" in efi-stub.c * remove unnecessary zimage_size variable from relocate_kernel() * correct ret

[PATCH V5 2/6] Add shared update_fdt() function for ARM/ARM64

2013-11-27 Thread Roy Franz
allocation type for memory map to EFI_RUNTIME_SERVICES_DATA, since we are passing this buffer to the kernel, or immediately freeing it. Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c |9 ++- drivers/firmware/efi/fdt.c | 115

[PATCH V5 3/6] Add strstr to compressed string.c for ARM.

2013-11-27 Thread Roy Franz
The shared efi-stub-helper.c functions require a strstr implementation. Implementation copied from arch/x86/boot/string.c Signed-off-by: Roy Franz Reviewed-by: Grant Likely --- arch/arm/boot/compressed/string.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch

[PATCH V5 6/6] Add config EFI_STUB for ARM to Kconfig

2013-11-27 Thread Roy Franz
Signed-off-by: Roy Franz --- arch/arm/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index a1b4758..6601985 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1857,6 +1857,16 @@ config EFI This option is only useful

[PATCH V5 4/6] Add EFI stub for ARM

2013-11-27 Thread Roy Franz
interface. Signed-off-by: Roy Franz --- arch/arm/boot/compressed/Makefile | 15 +- arch/arm/boot/compressed/efi-header.S | 117 + arch/arm/boot/compressed/efi-stub.c | 291 + arch/arm/boot/compressed/efi-stub.h |5 + arch/arm/boot/compres

[PATCH V5 5/6] Disable stack protection for decompressor/stub

2013-11-27 Thread Roy Franz
-stack-protector. Signed-off-by: Roy Franz --- 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 c0c7fee..7974791 100644 --- a/arch/arm/boot/compressed/Makefile

[PATCH] Remove redundant and incorrect memset()

2013-10-04 Thread Roy Franz
: Roy Franz Acked-by: Mark Salter --- drivers/firmware/efi/efi-stub-helper.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/firmware/efi/efi-stub-helper.c b/drivers/firmware/efi/efi-stub-helper.c index cc0581d..b6bffbf 100644 --- a/drivers/firmware/efi/efi-stub-helper.c +++ b

Re: [PATCH 2/6] Add shared update_fdt() function for ARM/ARM64

2013-10-03 Thread Roy Franz
On Thu, Oct 3, 2013 at 7:27 AM, Matt Fleming wrote: > On Thu, 03 Oct, at 09:43:24AM, Mark Salter wrote: >> On Thu, 2013-10-03 at 10:52 +0100, Matt Fleming wrote: >> > > +#if defined(CONFIG_ARM) || defined(CONFIG_ARM64) >> > > +static efi_status_t update_fdt(efi_system_table_t *sys_table, void >>

[PATCH] Improve EFI stub command line conversion

2013-09-28 Thread Roy Franz
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 --- arch/arm/boot/compressed/efi-stub.c|2 +- arch/x86/boot/compressed/eboot.c |3 +- drivers/firmware/efi/efi-stub-helpe

[PATCH V2 ] Improve EFI stub command line conversion

2013-09-28 Thread Roy Franz
Improve the conversion of the UTF-16 EFI command line to UTF-8 for passing to the kernel. Depends on series: [PATCH V4 0/6] ADD ARM EFI stub Changes from V1: * Fix loop limit when processing UTF-16 EFI command line * Break out from series: [PATCH V5 00/18] ARM EFI stub common code * Now includes

[PATCH 5/6] Disable stack protection for decompressor/stub

2013-09-28 Thread Roy Franz
-stack-protector. Signed-off-by: Roy Franz --- 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 5fad8bd..551dbf9 100644 --- a/arch/arm/boot/compressed/Makefile +++ b

[PATCH 3/6] Add strstr to compressed string.c for ARM.

2013-09-28 Thread Roy Franz
The shared efi-stub-helper.c functions require a strstr implementation. Implementation copied from arch/x86/boot/string.c Signed-off-by: Roy Franz Reviewed-by: Grant Likely --- arch/arm/boot/compressed/string.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch

[PATCH 6/6] Add config EFI_STUB for ARM to Kconfig

2013-09-28 Thread Roy Franz
Signed-off-by: Roy Franz --- arch/arm/Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 43594d5..9c84429 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1805,6 +1805,17 @@ config UACCESS_WITH_MEMCPY However, if

[PATCH 1/6] efi-stub.txt updates for ARM

2013-09-28 Thread 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 --- Documentation/efi-stub.txt | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) di

[PATCH 2/6] Add shared update_fdt() function for ARM/ARM64

2013-09-28 Thread Roy Franz
Both ARM and ARM64 stubs will update the device tree that they pass to the kernel. In both cases they primarily need to add the same UEFI related information, so the function can be shared. Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c | 86

[PATCH 4/6] Add EFI stub for ARM

2013-09-28 Thread Roy Franz
interface. Signed-off-by: Roy Franz --- arch/arm/boot/compressed/Makefile | 15 +- arch/arm/boot/compressed/efi-header.S | 111 + arch/arm/boot/compressed/efi-stub.c | 288 + arch/arm/boot/compressed/efi-stub.h |5 + arch/arm/boot/compres

[PATCH V4 0/6] ADD ARM EFI stub

2013-09-28 Thread Roy Franz
y zimage_size variable from relocate_kernel() * correct return types on EFI functions - should be efi_status_t, not int. Changes since V1: * Updated head.S based on feedback from Dave Martin. ARM/THUMB switches now much cleaner. Roy Franz (6): efi-stub.txt updates for ARM Add shared updat

Re: [PATCH 10/18] Do proper conversion from UTF-16 to UTF-8

2013-09-25 Thread Roy Franz
On Wed, Sep 25, 2013 at 5:01 AM, Matt Fleming wrote: > On Sun, 22 Sep, at 05:24:28PM, H. Peter Anvin wrote: >> On 09/22/2013 04:07 PM, Roy Franz wrote: >> > On Sun, Sep 22, 2013 at 3:54 PM, H. Peter Anvin wrote: >> >> Sorry this version is broken and doesn&#

Re: [PATCH 10/18] Do proper conversion from UTF-16 to UTF-8

2013-09-22 Thread Roy Franz
patch, but I don't see an compilation problems. Thanks, Roy > > Roy Franz wrote: >>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 >&g

[PATCH 11/18] Rename __get_map() to efi_get_memory_map()

2013-09-22 Thread Roy Franz
Rename function in preparation for making it more flexible and sharing it. Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/firmware/efi/efi-stub-helper.c b/drivers/firmware/efi/efi

[PATCH 02/18] Add proper definitions for some EFI function pointers.

2013-09-22 Thread Roy Franz
. Also add some EFI types used by EFI functions. Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely --- arch/x86/boot/compressed/eboot.h |8 -- include/linux/efi.h | 50 ++ 2 files changed, 34 insertions(+), 24

[PATCH 03/18] Move common EFI stub code from x86 arch code to common location

2013-09-22 Thread Roy Franz
No code changes made, just moving functions and #define from x86 arch directory to common location. Code is shared using #include, similar to how decompression code is shared among architectures. Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely --- arch/x86/boot

[PATCH 04/18] Add system table pointer argument to shared functions.

2013-09-22 Thread Roy Franz
stub fixup its GOT, which is shared with the decompressor, simplifies the relocating of the zImage to a bootable address. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 38 +++-- drivers/firmware/efi/efi-stub-helper.c | 96 +--- 2

[PATCH 10/18] Do proper conversion from UTF-16 to UTF-8

2013-09-22 Thread Roy Franz
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 --- arch/x86/boot/compressed/eboot.c |3 +- drivers/firmware/efi/efi-stub-helper.c | 92 2 files c

[PATCH 08/18] Generalize relocate_kernel() for use by other architectures.

2013-09-22 Thread Roy Franz
kernel, and needs to allocate space for BSS. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 10 - drivers/firmware/efi/efi-stub-helper.c | 72 ++-- 2 files changed, 59 insertions(+), 23 deletions(-) diff --git a/arch/x86/boot/compressed

[PATCH 09/18] Move unicode to ASCII conversion to shared function.

2013-09-22 Thread Roy Franz
mmand line and device tree. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 43 --- drivers/firmware/efi/efi-stub-helper.c | 58 2 files changed, 64 insertions(+), 37 deletions(-) diff --git a/arch/x86/boot/compressed/eb

[PATCH 01/18] EFI stub documentation updates

2013-09-22 Thread Roy Franz
Move efi-stub.txt out of x86 directory and into common directory in preparation for adding ARM EFI stub support. Signed-off-by: Roy Franz --- Documentation/efi-stub.txt | 65 Documentation/x86/efi-stub.txt | 65

[PATCH 07/18] Move relocate_kernel() to shared file.

2013-09-22 Thread Roy Franz
The relocate_kernel() function will be generalized and used by all architectures, as they all have similar requirements. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 34 --- drivers/firmware/efi/efi-stub-helper.c | 35

[PATCH 05/18] Rename memory allocation/free functions

2013-09-22 Thread Roy Franz
Rename them to be more similar, as low_free() could be used to free memory allocated by both high_alloc() and low_alloc(). high_alloc() -> efi_high_alloc() low_alloc() -> efi_low_alloc() low_free() -> efi_free() Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Gra

[PATCH 15/18] Generalize handle_ramdisks() and rename to handle_cmdline_files().

2013-09-22 Thread Roy Franz
The handle_cmdline_files now takes the option to handle as a string, and returns the loaded data through parameters, rather than taking an x86 specific setup_header structure. For ARM, this will be used to load a device tree blob in addition to initrd images. Signed-off-by: Roy Franz Acked-by

[PATCH 13/18] use efi_get_memory_map() to get final map for x86

2013-09-22 Thread Roy Franz
Replace the open-coded memory map getting with the efi_get_memory_map() that is now general enough to use. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/arch/x86/boot/compressed/eboot.c

[PATCH 14/18] Allow efi_free() to be called with size of 0, and do nothing in that case.

2013-09-22 Thread Roy Franz
Make efi_free() safely callable with size of 0, similar to free() being callable with NULL pointers. Remove size checks that this makes redundant. This also avoids some size checks in the ARM EFI stub code that will be added as well. Signed-off-by: Roy Franz --- arch/x86/boot/compressed

[PATCH 16/18] Renames in handle_cmdline_files() to complete generalization.

2013-09-22 Thread Roy Franz
Rename variables to be not initrd specific, as now the function loads arbitrary files. This change is exclusively renames and comment changes to reflect the generalization. Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely --- drivers/firmware/efi/efi-stub-helper.c

[PATCH 18/18] resolve warnings found on ARM compile

2013-09-22 Thread Roy Franz
warnings from gcc: warning: label 'free_pool' defined but not used [-Wunused-label] warning: value computed is not used [-Wunused-value] Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 12/18] generalize efi_get_memory_map()

2013-09-22 Thread Roy Franz
Add arguments for returning the descriptor version and also the memory map key. The key is required for calling exit_boot_services(). Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a

[PATCH 17/18] Fix types in EFI calls to match EFI function definitions.

2013-09-22 Thread Roy Franz
native width as specified by the EFI_FILE_PROTOCOL read() function. Signed-off-by: Roy Franz --- drivers/firmware/efi/efi-stub-helper.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/firmware/efi/efi-stub-helper.c b/drivers/firmware/efi/efi-stub

[PATCH V5 00/18] ARM EFI stub common code

2013-09-22 Thread Roy Franz
zimage_size variable from relocate_kernel() * correct return types on EFI functions - should be efi_status_t, not int. Changes since V1: * Broke up changes to x86 and common code into more patches. 10 more patches in this series. H. Peter Anvin (1): Do proper conversion from UTF-16 to UTF-8 R

[PATCH 06/18] Enforce minimum alignment of 1 page on allocations.

2013-09-22 Thread Roy Franz
allocation attempts were made, none were guaranteed to be page aligned. Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely --- drivers/firmware/efi/efi-stub-helper.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/firmware/efi/efi-stub-helper.c

Re: [PATCH 09/17] Move unicode to ASCII conversion to shared function.

2013-09-21 Thread Roy Franz
On Fri, Sep 20, 2013 at 8:00 AM, H. Peter Anvin wrote: > On 09/20/2013 04:27 AM, Matt Fleming wrote: >> On Wed, 18 Sep, at 09:48:44PM, Roy Franz wrote: >>> Would it be acceptable to fix the naming/comments, and convert values >>> above 126 to '?' >>&g

Re: [PATCH 09/17] Move unicode to ASCII conversion to shared function.

2013-09-18 Thread Roy Franz
On Wed, Sep 18, 2013 at 8:44 PM, Adam Borowski wrote: > On Mon, Sep 16, 2013 at 09:11:25PM -0700, Roy Franz wrote: >> +/* Convert the unicode UEFI command line to ASCII to pass to kernel. >> + * Size of memory allocated return in *cmd_line_len. >> + * Returns NULL on erro

Re: [PATCH 08/17] Generalize relocate_kernel() for use by other architectures.

2013-09-18 Thread Roy Franz
On Wed, Sep 18, 2013 at 5:12 AM, Matt Fleming wrote: > On Mon, 16 Sep, at 09:11:24PM, Roy Franz wrote: >> Rename relocate_kernel() to efi_relocate_kernel(), and take >> parameters rather than x86 specific structure. Add max_addr >> argument as for ARM we have some addres

[PATCH 04/17] Add system table pointer argument to shared functions.

2013-09-16 Thread Roy Franz
stub fixup its GOT, which is shared with the decompressor, simplifies the relocating of the zImage to a bootable address. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 38 +++-- drivers/firmware/efi/efi-stub-helper.c | 96 +--- 2

[PATCH 03/17] Move common EFI stub code from x86 arch code to common location

2013-09-16 Thread Roy Franz
No code changes made, just moving functions and #define from x86 arch directory to common location. Code is shared using #include, similar to how decompression code is shared among architectures. Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Grant Likely --- arch/x86/boot

[PATCH 01/17] EFI stub documentation updates

2013-09-16 Thread Roy Franz
Move efi-stub.txt out of x86 directory and into common directory in preparation for adding ARM EFI stub support. Signed-off-by: Roy Franz --- Documentation/efi-stub.txt | 65 Documentation/x86/efi-stub.txt | 65

[PATCH 09/17] Move unicode to ASCII conversion to shared function.

2013-09-16 Thread Roy Franz
mmand line and device tree. Signed-off-by: Roy Franz --- arch/x86/boot/compressed/eboot.c | 43 --- drivers/firmware/efi/efi-stub-helper.c | 58 2 files changed, 64 insertions(+), 37 deletions(-) diff --git a/arch/x86/boot/compressed/eb

[PATCH 05/17] Rename memory allocation/free functions

2013-09-16 Thread Roy Franz
Rename them to be more similar, as low_free() could be used to free memory allocated by both high_alloc() and low_alloc(). high_alloc() -> efi_high_alloc() low_alloc() -> efi_low_alloc() low_free() -> efi_free() Signed-off-by: Roy Franz Acked-by: Mark Salter Reviewed-by: Gra

  1   2   >