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
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
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.
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
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
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
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
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
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
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
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
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
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
>> >
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
>>>
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
.
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
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
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
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
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
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
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
;
> 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
, 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
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(
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
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
. 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
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
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
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
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.
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
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
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
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
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
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
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
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
-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
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
-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
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
: 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
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
>>
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
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
-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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 183 matches
Mail list logo