Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-19 Thread Matt Fleming
On Mon, 19 Sep, at 10:48:12AM, Waiman Long wrote: > > With this patch applied, I am able to successfully boot both the 16-socket > 12-TB and 8-socket 6TB configurations without problem. > > Tested-by: Waiman Long Could you please show your dmesg after booting with efi=debug? The part I'm

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-19 Thread Matt Fleming
On Sun, 18 Sep, at 11:09:08PM, Waiman Long wrote: > On 09/14/2016 03:19 PM, Linus Torvalds wrote: > >On Wed, Sep 14, 2016 at 12:14 PM, Waiman Long wrote: > >>In the stack backtrace above, the kernel hadn't even reached SMP boot after > >>about 50s. That was extremely slow. I

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-19 Thread Matt Fleming
On Sun, 18 Sep, at 11:09:08PM, Waiman Long wrote: > On 09/14/2016 03:19 PM, Linus Torvalds wrote: > >On Wed, Sep 14, 2016 at 12:14 PM, Waiman Long wrote: > >>In the stack backtrace above, the kernel hadn't even reached SMP boot after > >>about 50s. That was extremely slow. I tried the 4.7.3

Re: Cannot load linux after recent efi-related changes

2016-09-19 Thread Matt Fleming
On Mon, 19 Sep, at 02:36:36PM, Mike Krinkin wrote: > On Mon, Sep 19, 2016 at 12:14:24PM +0100, Matt Fleming wrote: > > On Sun, 18 Sep, at 04:14:45AM, Mike Krinkin wrote: > > > > > > diff --git a/drivers/firmware/efi/memmap.c b/drivers/firmware/efi/memmap.c > >

Re: Cannot load linux after recent efi-related changes

2016-09-19 Thread Matt Fleming
On Mon, 19 Sep, at 02:36:36PM, Mike Krinkin wrote: > On Mon, Sep 19, 2016 at 12:14:24PM +0100, Matt Fleming wrote: > > On Sun, 18 Sep, at 04:14:45AM, Mike Krinkin wrote: > > > > > > diff --git a/drivers/firmware/efi/memmap.c b/drivers/firmware/efi/memmap.c > >

Re: Cannot load linux after recent efi-related changes

2016-09-19 Thread Matt Fleming
This bug was also reported in this thread, https://lkml.kernel.org/r/1474005912.3930.10.ca...@gmail.com Could you try this patch? >8 >From 7e750e3289a44fe3ad693bde45aea1ad8577dd2a Mon Sep 17 00:00:00 2001 From: Matt Fleming <m...@codeblueprint.co.uk> Date: Fri, 16 Sep 2016 15:12:47

Re: Cannot load linux after recent efi-related changes

2016-09-19 Thread Matt Fleming
This bug was also reported in this thread, https://lkml.kernel.org/r/1474005912.3930.10.ca...@gmail.com Could you try this patch? >8 >From 7e750e3289a44fe3ad693bde45aea1ad8577dd2a Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Fri, 16 Sep 2016 15:12:47 +0100 Subject: [PATCH] x86/efi: R

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-19 Thread Matt Fleming
0.00] MIKE efi_memmap_install(0x9d640, 51); Brilliant. This is what I've got queued up. Thanks everyone. 8< >From 7e750e3289a44fe3ad693bde45aea1ad8577dd2a Mon Sep 17 00:00:00 2001 From: Matt Fleming <m...@codeblueprint.co.uk> Date: Fri, 16 Sep 2016 15:12:47 +0100 Subje

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-19 Thread Matt Fleming
0.00] MIKE efi_memmap_install(0x9d640, 51); Brilliant. This is what I've got queued up. Thanks everyone. 8< >From 7e750e3289a44fe3ad693bde45aea1ad8577dd2a Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Fri, 16 Sep 2016 15:12:47 +0100 Subject: [PATCH] x86/efi: Round

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-19 Thread Matt Fleming
On Sun, 18 Sep, at 11:09:08PM, Waiman Long wrote: > > I have finally finished bisecting the problem. I was wrong in saying that > the 4.7.3 kernel had no problem. It did have. There were some slight > differences between the 4.8 and 4.7 kernel config files that I used. After > some further

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-19 Thread Matt Fleming
On Sun, 18 Sep, at 11:09:08PM, Waiman Long wrote: > > I have finally finished bisecting the problem. I was wrong in saying that > the 4.7.3 kernel had no problem. It did have. There were some slight > differences between the 4.8 and 4.7 kernel config files that I used. After > some further

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-17 Thread Matt Fleming
On Fri, 16 Sep, at 06:34:55PM, Mike Galbraith wrote: > On Fri, 2016-09-16 at 15:30 +0100, Matt Fleming wrote: > > On Fri, 16 Sep, at 12:00:59PM, Mike Galbraith wrote: > > > > > > Ok, here's the whole thing just in case. Hope it's not too big. > > > &g

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-17 Thread Matt Fleming
On Fri, 16 Sep, at 06:34:55PM, Mike Galbraith wrote: > On Fri, 2016-09-16 at 15:30 +0100, Matt Fleming wrote: > > On Fri, 16 Sep, at 12:00:59PM, Mike Galbraith wrote: > > > > > > Ok, here's the whole thing just in case. Hope it's not too big. > > > &g

[tip:perf/urgent] perf/x86/amd: Make HW_CACHE_REFERENCES and HW_CACHE_MISSES measure L2

2016-09-16 Thread tip-bot for Matt Fleming
Commit-ID: 080fe0b790ad438fc1b61621dac37c1964ce7f35 Gitweb: http://git.kernel.org/tip/080fe0b790ad438fc1b61621dac37c1964ce7f35 Author: Matt Fleming <m...@codeblueprint.co.uk> AuthorDate: Wed, 24 Aug 2016 14:12:08 +0100 Committer: Ingo Molnar <mi...@kernel.org> CommitDate:

[tip:perf/urgent] perf/x86/amd: Make HW_CACHE_REFERENCES and HW_CACHE_MISSES measure L2

2016-09-16 Thread tip-bot for Matt Fleming
Commit-ID: 080fe0b790ad438fc1b61621dac37c1964ce7f35 Gitweb: http://git.kernel.org/tip/080fe0b790ad438fc1b61621dac37c1964ce7f35 Author: Matt Fleming AuthorDate: Wed, 24 Aug 2016 14:12:08 +0100 Committer: Ingo Molnar CommitDate: Fri, 16 Sep 2016 16:19:49 +0200 perf/x86/amd: Make

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-16 Thread Matt Fleming
at no point in the efi_mem_reserve() call path do we round up to the nearest page size even though the EFI memory map only deals with EFI_PAGE_SIZE regions. Could you try this patch? >8 >From a24b3865808355c461f8490670266162eabf Mon Sep 17 00:00:00 2001 From: Matt Fleming <m...@code

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-16 Thread Matt Fleming
at no point in the efi_mem_reserve() call path do we round up to the nearest page size even though the EFI memory map only deals with EFI_PAGE_SIZE regions. Could you try this patch? >8 >From a24b3865808355c461f8490670266162eabf Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Fri, 16

Re: [PATCH v2] perf/x86/amd: Make HW_CACHE_REFERENCES and HW_CACHE_MISSES measure L2

2016-09-16 Thread Matt Fleming
On Thu, 25 Aug, at 05:35:14AM, Borislav Petkov wrote: > (dropping stable@ from CC) > > On Wed, Aug 24, 2016 at 08:27:06PM +0200, Peter Zijlstra wrote: > > They're not meant to be comparable between machines. I wouldn't even > > compare the LLC numbers between two different Intel parts. > > > >

Re: [PATCH v2] perf/x86/amd: Make HW_CACHE_REFERENCES and HW_CACHE_MISSES measure L2

2016-09-16 Thread Matt Fleming
On Thu, 25 Aug, at 05:35:14AM, Borislav Petkov wrote: > (dropping stable@ from CC) > > On Wed, Aug 24, 2016 at 08:27:06PM +0200, Peter Zijlstra wrote: > > They're not meant to be comparable between machines. I wouldn't even > > compare the LLC numbers between two different Intel parts. > > > >

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-16 Thread Matt Fleming
On Fri, 16 Sep, at 08:05:12AM, Mike Galbraith wrote: > Hi Matt, > > My workstation started instant rebooting with tip. I bisected it to.. > >efi/esrt: Use efi_mem_reserve() and avoid a kmalloc() > > ..but seems it's really $subject, as box works fine with the below. > > --- >

Re: [tip regression] efi: Allow drivers to reserve boot services forever == toxic

2016-09-16 Thread Matt Fleming
On Fri, 16 Sep, at 08:05:12AM, Mike Galbraith wrote: > Hi Matt, > > My workstation started instant rebooting with tip. I bisected it to.. > >efi/esrt: Use efi_mem_reserve() and avoid a kmalloc() > > ..but seems it's really $subject, as box works fine with the below. > > --- >

Re: [RFC PATCH v2 11/20] mm: Access BOOT related data in the clear

2016-09-15 Thread Matt Fleming
On Wed, 14 Sep, at 09:20:44AM, Tom Lendacky wrote: > On 09/12/2016 11:55 AM, Andy Lutomirski wrote: > > On Aug 22, 2016 6:53 PM, "Tom Lendacky" wrote: > >> > >> BOOT data (such as EFI related data) is not encyrpted when the system is > >> booted and needs to be accessed

Re: [RFC PATCH v2 11/20] mm: Access BOOT related data in the clear

2016-09-15 Thread Matt Fleming
On Wed, 14 Sep, at 09:20:44AM, Tom Lendacky wrote: > On 09/12/2016 11:55 AM, Andy Lutomirski wrote: > > On Aug 22, 2016 6:53 PM, "Tom Lendacky" wrote: > >> > >> BOOT data (such as EFI related data) is not encyrpted when the system is > >> booted and needs to be accessed as non-encrypted. Add

KVM patches applied in weird order in -stable

2016-09-13 Thread Matt Fleming
Folks, While hunting down a performance issue involving KVM I was surprised to see "native_set_debugreg()" as the first entry in `perf top`. Digging deeper, it looks as though the following patches were applied in the wrong order in -stable. This is the order as they appear in Linus' tree, [0]

KVM patches applied in weird order in -stable

2016-09-13 Thread Matt Fleming
Folks, While hunting down a performance issue involving KVM I was surprised to see "native_set_debugreg()" as the first entry in `perf top`. Digging deeper, it looks as though the following patches were applied in the wrong order in -stable. This is the order as they appear in Linus' tree, [0]

Re: [PATCH v2 0/4] Apple device properties

2016-09-13 Thread Matt Fleming
On Wed, 07 Sep, at 12:49:18PM, Lukas Wunner wrote: > Retrieve device properties from EFI on Macs before ExitBootServices is > called and assign them to devices (patch [3/4]). The devices that > properties pertain to are encoded as EFI Device Paths, so add a parser > for these (patch [2/4]). As a

Re: [PATCH v2 0/4] Apple device properties

2016-09-13 Thread Matt Fleming
On Wed, 07 Sep, at 12:49:18PM, Lukas Wunner wrote: > Retrieve device properties from EFI on Macs before ExitBootServices is > called and assign them to devices (patch [3/4]). The devices that > properties pertain to are encoded as EFI Device Paths, so add a parser > for these (patch [2/4]). As a

Re: [PATCH] arm64/efi: efi_init error handling fix

2016-09-13 Thread Matt Fleming
On Wed, 07 Sep, at 07:15:48PM, Yisheng Xie wrote: > > > On 2016/9/5 21:57, Matt Fleming wrote: > > On Fri, 02 Sep, at 11:26:18AM, Will Deacon wrote: > >> On Fri, Sep 02, 2016 at 06:18:39PM +0800, Xie Yisheng wrote: > >>> From: Yisheng Xie <xieyishe...@huawe

Re: [PATCH] arm64/efi: efi_init error handling fix

2016-09-13 Thread Matt Fleming
On Wed, 07 Sep, at 07:15:48PM, Yisheng Xie wrote: > > > On 2016/9/5 21:57, Matt Fleming wrote: > > On Fri, 02 Sep, at 11:26:18AM, Will Deacon wrote: > >> On Fri, Sep 02, 2016 at 06:18:39PM +0800, Xie Yisheng wrote: > >>> From: Yisheng Xie > >>> &g

Re: [GIT PULL 00/29] EFI changes for v4.9

2016-09-12 Thread Matt Fleming
On Fri, 09 Sep, at 04:18:22PM, Matt Fleming wrote: > Folks, please queue up the following patches for v4.9. There's more > work on refactoring EFI code to be architecture independent and the > largest number of patches is spent cleaning up the EFI memory map code > and allowing dr

Re: [GIT PULL 00/29] EFI changes for v4.9

2016-09-12 Thread Matt Fleming
On Fri, 09 Sep, at 04:18:22PM, Matt Fleming wrote: > Folks, please queue up the following patches for v4.9. There's more > work on refactoring EFI code to be architecture independent and the > largest number of patches is spent cleaning up the EFI memory map code > and allowing dr

[PATCH 04/29] efi: Add efi_memmap_init_late() for permanent EFI memmap

2016-09-09 Thread Matt Fleming
iesheuvel <ard.biesheu...@linaro.org> [arm] Acked-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Peter Jones <pjo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Signed-o

[PATCH 02/29] x86/efi: Consolidate region mapping logic

2016-09-09 Thread Matt Fleming
<ard.biesheu...@linaro.org> [arm] Acked-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- arch/x86/platform/efi/efi.c| 50 -- arch/x86/platform/efi/efi_64.c | 20 - 2 files

[GIT PULL 00/29] EFI changes for v4.9

2016-09-09 Thread Matt Fleming
boot services (2016-09-09 16:08:57 +0100) * Refactor the EFI memory map code into architecture neutral files and allow drivers to permanently reserve EFI boot services regions on x86, as well as ARM/arm64 - Matt Fleming

[PATCH 03/29] efi: Refactor efi_memmap_init_early() into arch-neutral code

2016-09-09 Thread Matt Fleming
[arm] Acked-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Peter Jones <pjo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk&

[PATCH 04/29] efi: Add efi_memmap_init_late() for permanent EFI memmap

2016-09-09 Thread Matt Fleming
Ard Biesheuvel Cc: Leif Lindholm Cc: Peter Jones Cc: Borislav Petkov Cc: Mark Rutland Signed-off-by: Matt Fleming --- arch/x86/platform/efi/efi.c| 44 arch/x86/platform/efi/quirks.c | 2 - drivers/firmware/efi/arm-runtime.c | 4 +- drivers/firmware/efi/ef

[PATCH 02/29] x86/efi: Consolidate region mapping logic

2016-09-09 Thread Matt Fleming
() and refactor the test for which regions should be mapped into a should_map_region() function. Generously sprinkle comments to clarify the different cases. Acked-by: Borislav Petkov Tested-by: Dave Young [kexec/kdump] Tested-by: Ard Biesheuvel [arm] Acked-by: Ard Biesheuvel Signed-off-by: Matt

[GIT PULL 00/29] EFI changes for v4.9

2016-09-09 Thread Matt Fleming
boot services (2016-09-09 16:08:57 +0100) * Refactor the EFI memory map code into architecture neutral files and allow drivers to permanently reserve EFI boot services regions on x86, as well as ARM/arm64 - Matt Fleming

[PATCH 03/29] efi: Refactor efi_memmap_init_early() into arch-neutral code

2016-09-09 Thread Matt Fleming
Jones Cc: Borislav Petkov Cc: Mark Rutland Signed-off-by: Matt Fleming --- arch/x86/include/asm/efi.h | 1 - arch/x86/platform/efi/efi.c| 66 ++ arch/x86/platform/efi/quirks.c | 4 +-- drivers/firmware/efi/arm-init.c| 17

[PATCH 07/29] efi: Add efi_memmap_install() for installing new EFI memory maps

2016-09-09 Thread Matt Fleming
ndholm <leif.lindh...@linaro.org> Cc: Peter Jones <pjo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Taku Izumi <izumi.t...@jp.fujitsu.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/f

[PATCH 07/29] efi: Add efi_memmap_install() for installing new EFI memory maps

2016-09-09 Thread Matt Fleming
() abstracts the details of how the new memory map should be mapped and the existing one unmapped. Tested-by: Dave Young [kexec/kdump] Tested-by: Ard Biesheuvel [arm] Acked-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Peter Jones Cc: Borislav Petkov Cc: Mark Rutland Cc: Taku Izumi Signed-off-by: Matt

[PATCH 16/29] efi: Replace runtime services spinlock with semaphore

2016-09-09 Thread Matt Fleming
<leif.lindh...@linaro.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Sylvain Chouleur <sylvain.choul...@gmail.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/efi.c | 3 ++ drivers/firmware/efi/runtime-wrappers.c | 81

[PATCH 08/29] efi: Allow drivers to reserve boot services forever

2016-09-09 Thread Matt Fleming
d Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Peter Jones <pjo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.

[PATCH 12/29] efi/esrt: Use memremap not ioremap to access ESRT table in memory

2016-09-09 Thread Matt Fleming
d Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Mark Rutland <mark.rutl...@arm.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/esrt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -

[PATCH 14/29] efi: Use a file local lock for efivars

2016-09-09 Thread Matt Fleming
ylvain Chouleur <sylvain.choul...@gmail.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/vars.c | 83 + include/linux/efi.h | 6 2 files changed, 47 insertions(+), 42 deletions(-) diff --git a/drivers/

[PATCH 05/29] efi/fake_mem: Refactor main two code chunks into functions

2016-09-09 Thread Matt Fleming
orislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Taku Izumi <izumi.t...@jp.fujitsu.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/fake_mem.c | 229 +++- 1 file changed, 13

[PATCH 10/29] efi/esrt: Use efi_mem_reserve() and avoid a kmalloc()

2016-09-09 Thread Matt Fleming
/kdump] Tested-by: Ard Biesheuvel <ard.biesheu...@linaro.org> [arm] Acked-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Peter Jones <pjo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl.

[PATCH 19/29] lib/ucs2_string: Speed up ucs2_utf8size()

2016-09-09 Thread Matt Fleming
From: Lukas Wunner <lu...@wunner.de> No need to calculate the string length on every loop iteration. Signed-off-by: Lukas Wunner <lu...@wunner.de> Cc: Peter Jones <pjo...@redhat.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- lib/ucs2_string.c | 2 +- 1 f

[PATCH 21/29] fs/efivarfs: Fix double kfree() in error path

2016-09-09 Thread Matt Fleming
-by: Julia Lawall <julia.law...@lip6.fr> Acked-by: Julia Lawall <julia.law...@lip6.fr> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Sylvain Chouleur <sylvain.choul...@gmail.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- fs/efivarfs/super.c | 6 ++

[PATCH 13/29] efi/arm*: esrt: Add missing call to efi_esrt_init()

2016-09-09 Thread Matt Fleming
d.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Peter Jones <pjo...@redhat.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/arm-init.c | 1 + 1 file changed, 1 insertion(+

[PATCH 16/29] efi: Replace runtime services spinlock with semaphore

2016-09-09 Thread Matt Fleming
down_trylock() in the nonblocking case. We don't use a mutex here because the mutex_trylock() function must not be called from interrupt context, whereas the down_trylock() can. Signed-off-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Mark Rutland Cc: Sylvain Chouleur Signed-off-by: Matt Fleming

[PATCH 08/29] efi: Allow drivers to reserve boot services forever

2016-09-09 Thread Matt Fleming
Petkov Cc: Mark Rutland Signed-off-by: Matt Fleming --- arch/x86/platform/efi/quirks.c | 121 + drivers/firmware/efi/efi.c | 30 ++ include/linux/efi.h| 1 + 3 files changed, 141 insertions(+), 11 deletions(-) diff --git a/arch

[PATCH 12/29] efi/esrt: Use memremap not ioremap to access ESRT table in memory

2016-09-09 Thread Matt Fleming
-by: Matt Fleming --- drivers/firmware/efi/esrt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efi/esrt.c b/drivers/firmware/efi/esrt.c index b93cd11f9bcc..14914074f716 100644 --- a/drivers/firmware/efi/esrt.c +++ b/drivers/firmware/efi/esrt.c @@ -16,6

[PATCH 14/29] efi: Use a file local lock for efivars

2016-09-09 Thread Matt Fleming
having in-progress call. Signed-off-by: Sylvain Chouleur Signed-off-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Mark Rutland Cc: Sylvain Chouleur Signed-off-by: Matt Fleming --- drivers/firmware/efi/vars.c | 83 + include/linux/efi.h | 6 2

[PATCH 05/29] efi/fake_mem: Refactor main two code chunks into functions

2016-09-09 Thread Matt Fleming
functions later. Tested-by: Dave Young [kexec/kdump] Tested-by: Ard Biesheuvel [arm] Acked-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Peter Jones Cc: Borislav Petkov Cc: Mark Rutland Cc: Taku Izumi Signed-off-by: Matt Fleming --- drivers/firmware/efi/fake_mem.c | 229

[PATCH 10/29] efi/esrt: Use efi_mem_reserve() and avoid a kmalloc()

2016-09-09 Thread Matt Fleming
Biesheuvel [arm] Acked-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Peter Jones Cc: Borislav Petkov Cc: Mark Rutland Signed-off-by: Matt Fleming --- drivers/firmware/efi/esrt.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/firmware/efi/esrt.c b

[PATCH 19/29] lib/ucs2_string: Speed up ucs2_utf8size()

2016-09-09 Thread Matt Fleming
From: Lukas Wunner No need to calculate the string length on every loop iteration. Signed-off-by: Lukas Wunner Cc: Peter Jones Signed-off-by: Matt Fleming --- lib/ucs2_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ucs2_string.c b/lib/ucs2_string.c index

[PATCH 21/29] fs/efivarfs: Fix double kfree() in error path

2016-09-09 Thread Matt Fleming
-by: Julia Lawall Acked-by: Julia Lawall Cc: Ard Biesheuvel Cc: Sylvain Chouleur Signed-off-by: Matt Fleming --- fs/efivarfs/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c index 01e3d6e53944..d7a7c53803c1 100644 --- a/f

[PATCH 13/29] efi/arm*: esrt: Add missing call to efi_esrt_init()

2016-09-09 Thread Matt Fleming
: Peter Jones Signed-off-by: Matt Fleming --- drivers/firmware/efi/arm-init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/efi/arm-init.c b/drivers/firmware/efi/arm-init.c index 5a2df3fefccc..e0a511d4074f 100644 --- a/drivers/firmware/efi/arm-init.c +++ b/drivers/firmware

[PATCH 22/29] x86/efi: Remove unused find_bits() function

2016-09-09 Thread Matt Fleming
From: Lukas Wunner <lu...@wunner.de> Left behind by commit fc37206427ce ("efi/libstub: Move Graphics Output Protocol handling to generic code"). Signed-off-by: Lukas Wunner <lu...@wunner.de> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Signed-off-by: Matt Flemi

[PATCH 22/29] x86/efi: Remove unused find_bits() function

2016-09-09 Thread Matt Fleming
From: Lukas Wunner Left behind by commit fc37206427ce ("efi/libstub: Move Graphics Output Protocol handling to generic code"). Signed-off-by: Lukas Wunner Cc: Ard Biesheuvel Signed-off-by: Matt Fleming --- arch/x86/boot/compressed/eboot.c | 23 --- 1 file c

[PATCH 25/29] efi: Add efi_test driver for exporting UEFI runtime service interfaces

2016-09-09 Thread Matt Fleming
-by: Ivan Hu <ivan...@canonical.com> Cc: joeyli <j...@suse.com> Cc: Ricardo Neri <ricardo.neri-calde...@linux.intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- MAINTAINERS

[PATCH 25/29] efi: Add efi_test driver for exporting UEFI runtime service interfaces

2016-09-09 Thread Matt Fleming
li Cc: Ricardo Neri Cc: Ard Biesheuvel Signed-off-by: Matt Fleming --- MAINTAINERS | 7 + drivers/firmware/efi/Kconfig | 17 + drivers/firmware/efi/Makefile| 1 + drivers/firmware/efi/test/Makefile | 1 + drivers/firmware/efi/test/efi_test.c

[PATCH 15/29] efi: Don't use spinlocks for efi vars

2016-09-09 Thread Matt Fleming
Signed-off-by: Sylvain Chouleur <sylvain.choul...@intel.com> Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Sylvain Chouleur <sylvain.choul...@gmail.com> Signed-off-by: Ma

[PATCH 20/29] x86/efi: Map in physical addresses in efi_map_region_fixed

2016-09-09 Thread Matt Fleming
.@sgi.com> Cc: Mike Travis <tra...@sgi.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Ingo Molnar <mi...@redhat.com> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Dave Young <dyo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Signed-off-by: Matt

[PATCH 27/29] x86/efi: Use kmalloc_array() in efi_call_phys_prolog()

2016-09-09 Thread Matt Fleming
t;pbonz...@redhat.com> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Ingo Molnar <mi...@kernel.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Julia Lawall <julia.law...@lip6.fr> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- arch/x86/platform/efi/

[PATCH 18/29] firmware-gsmi: Delete an unnecessary check before the function call "dma_pool_destroy"

2016-09-09 Thread Matt Fleming
<elfr...@users.sourceforge.net> Cc: Greg KH <gre...@linuxfoundation.org> Cc: Julia Lawall <julia.law...@lip6.fr> Cc: Mike Waychison <mi...@google.com> Cc: Michel Lespinasse <wal...@google.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmwar

[PATCH 27/29] x86/efi: Use kmalloc_array() in efi_call_phys_prolog()

2016-09-09 Thread Matt Fleming
a Lawall Signed-off-by: Matt Fleming --- arch/x86/platform/efi/efi_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c index e1ca71259468..d65cdadaa6b6 100644 --- a/arch/x86/platform/efi/efi_64.c +++ b/arch/x86/p

[PATCH 18/29] firmware-gsmi: Delete an unnecessary check before the function call "dma_pool_destroy"

2016-09-09 Thread Matt Fleming
Waychison Cc: Michel Lespinasse Signed-off-by: Matt Fleming --- drivers/firmware/google/gsmi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/firmware/google/gsmi.c b/drivers/firmware/google/gsmi.c index f1ab05ea56bb..c46387160976 100644 --- a/drivers/firmware/google

[PATCH 15/29] efi: Don't use spinlocks for efi vars

2016-09-09 Thread Matt Fleming
Signed-off-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Mark Rutland Cc: Sylvain Chouleur Signed-off-by: Matt Fleming --- drivers/firmware/efi/efi-pstore.c | 36 +++--- drivers/firmware/efi/efivars.c| 22 -- drivers/firmware/efi/vars.c | 137

[PATCH 20/29] x86/efi: Map in physical addresses in efi_map_region_fixed

2016-09-09 Thread Matt Fleming
uot; Cc: Dave Young Cc: Borislav Petkov Signed-off-by: Matt Fleming --- arch/x86/platform/efi/efi_64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c index 45434ea345e9..e1ca71259468 100644 --- a/arch/x86/platform/efi/efi

[PATCH 23/29] efi/arm64: Add debugfs node to dump UEFI runtime page tables

2016-09-09 Thread Matt Fleming
rg> Acked-by: Mark Rutland <mark.rutl...@arm.com> Cc: Leif Lindholm <leif.lindh...@linaro.org> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/arm-runtime.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/firmwar

[PATCH 28/29] x86/efi: Optimize away setup_gop32/64 if unused

2016-09-09 Thread Matt Fleming
fore, 1299 after CONFIG_X86_64 && !CONFIG_EFI_MIXED:2201 before, 1406 after CONFIG_X86_64 && CONFIG_EFI_MIXED:2201 before and after Signed-off-by: Lukas Wunner <lu...@wunner.de> Reviewed-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Signed-off-by: Matt Flem

[PATCH 28/29] x86/efi: Optimize away setup_gop32/64 if unused

2016-09-09 Thread Matt Fleming
FIG_X86_64 && !CONFIG_EFI_MIXED:2201 before, 1406 after CONFIG_X86_64 && CONFIG_EFI_MIXED:2201 before and after Signed-off-by: Lukas Wunner Reviewed-by: Ard Biesheuvel Signed-off-by: Matt Fleming --- arch/x86/include/asm/efi.h | 13 +++-- 1 file changed, 11 insertion

[PATCH 23/29] efi/arm64: Add debugfs node to dump UEFI runtime page tables

2016-09-09 Thread Matt Fleming
From: Ard Biesheuvel Register the debugfs node 'efi_page_tables' to allow the UEFI runtime page tables to be inspected. Note that ARM does not have 'asm/ptdump.h' [yet] so for now, this is arm64 only. Signed-off-by: Ard Biesheuvel Acked-by: Mark Rutland Cc: Leif Lindholm Signed-off-by: Matt

[PATCH 29/29] x86/efi: Allow invocation of arbitrary boot services

2016-09-09 Thread Matt Fleming
&& CONFIG_EFI_MIXED:7670 before, 8319 after Signed-off-by: Lukas Wunner <lu...@wunner.de> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- arch/x86/boot/compressed/eboot.c | 13 + arch/x86/boot/compressed/head_32.S | 6 +++--- arch/x86/boot/compressed/he

[PATCH 17/29] x86/efi: Initialize status to ensure garbage is not returned on small size

2016-09-09 Thread Matt Fleming
_uga64. Signed-off-by: Colin Ian King <colin.k...@canonical.com> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Ingo Molnar <mi...@kernel.org> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- arch/x86/boot/

[PATCH 29/29] x86/efi: Allow invocation of arbitrary boot services

2016-09-09 Thread Matt Fleming
XED:7670 before, 8319 after Signed-off-by: Lukas Wunner Signed-off-by: Matt Fleming --- arch/x86/boot/compressed/eboot.c | 13 + arch/x86/boot/compressed/head_32.S | 6 +++--- arch/x86/boot/compressed/head_64.S | 8 arch/x86/include/asm/efi.h | 15 +

[PATCH 17/29] x86/efi: Initialize status to ensure garbage is not returned on small size

2016-09-09 Thread Matt Fleming
King Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Matt Fleming --- arch/x86/boot/compressed/eboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index ff

[PATCH 09/29] efi/runtime-map: Use efi.memmap directly instead of a copy

2016-09-09 Thread Matt Fleming
linaro.org> Cc: Peter Jones <pjo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- arch/x86/platform/efi/efi.c| 40 ---

[PATCH 11/29] x86/efi-bgrt: Use efi_mem_reserve() to avoid copying image data

2016-09-09 Thread Matt Fleming
o.org> Cc: Peter Jones <pjo...@redhat.com> Cc: Borislav Petkov <b...@alien8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Josh Boyer <jwbo...@fedoraproject.org> Cc: Andy Lutomirski <l...@amacapital.net> Cc: Môshe van der Sterre <m...@moshe.nl> Signed-off-by: Matt

[PATCH 01/29] x86/efi: Test for EFI_MEMMAP functionality when iterating EFI memmap

2016-09-09 Thread Matt Fleming
aku Izumi <izumi.t...@jp.fujitsu.com> Cc: Tony Luck <tony.l...@intel.com> Cc: Xishi Qiu <qiuxi...@huawei.com> Cc: Kamezawa Hiroyuki <kamezawa.hir...@jp.fujitsu.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- arch/x86/kernel/setup.c | 17 +++

[PATCH 06/29] efi: Split out EFI memory map functions into new file

2016-09-09 Thread Matt Fleming
8.de> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Taku Izumi <izumi.t...@jp.fujitsu.com> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/Makefile | 2 +- drivers/firmware/efi/efi.c | 129 --- drivers/firmware/efi/fake_m

[PATCH 24/29] x86/efi: Defer efi_esrt_init until after memblock_x86_fill

2016-09-09 Thread Matt Fleming
ioned conditions is right after memblock_x86_fill, grouped with other EFI-related functions. Reported-by: Scott Lawson <scott.law...@intel.com> Signed-off-by: Ricardo Neri <ricardo.neri-calde...@linux.intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Peter Jones <p

[PATCH 26/29] efi/arm64: Treat regions with WT/WC set but WB cleared as memory

2016-09-09 Thread Matt Fleming
d from the x86 implementation) Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org> Reviewed-by: Leif Lindholm <leif.lindh...@linaro.org> Tested-by: James Morse <james.mo...@arm.com> Reviewed-by: James Morse <james.mo...@arm.com> Signed-off-by: Matt Fleming <m...@

[PATCH 09/29] efi/runtime-map: Use efi.memmap directly instead of a copy

2016-09-09 Thread Matt Fleming
services across kexec reboot so that the ESRT and BGRT drivers will now work. Tested-by: Dave Young [kexec/kdump] Tested-by: Ard Biesheuvel [arm] Acked-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Peter Jones Cc: Borislav Petkov Cc: Mark Rutland Signed-off-by: Matt Fleming --- arch/x86/platform/efi

[PATCH 11/29] x86/efi-bgrt: Use efi_mem_reserve() to avoid copying image data

2016-09-09 Thread Matt Fleming
reboot. Reviewed-by: Josh Triplett Tested-by: Dave Young [kexec/kdump] Tested-by: Ard Biesheuvel [arm] Acked-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Peter Jones Cc: Borislav Petkov Cc: Mark Rutland Cc: Josh Boyer Cc: Andy Lutomirski Cc: Môshe van der Sterre Signed-off-by: Matt Fleming

[PATCH 01/29] x86/efi: Test for EFI_MEMMAP functionality when iterating EFI memmap

2016-09-09 Thread Matt Fleming
, merge everything under one if() conditional, and remove the now superfluous check from efi_fake_memmap(). Tested-by: Dave Young [kexec/kdump] Tested-by: Ard Biesheuvel [arm] Acked-by: Ard Biesheuvel Cc: Taku Izumi Cc: Tony Luck Cc: Xishi Qiu Cc: Kamezawa Hiroyuki Signed-off-by: Matt Fleming

[PATCH 06/29] efi: Split out EFI memory map functions into new file

2016-09-09 Thread Matt Fleming
Young [kexec/kdump] Tested-by: Ard Biesheuvel [arm] Acked-by: Ard Biesheuvel Cc: Leif Lindholm Cc: Peter Jones Cc: Borislav Petkov Cc: Mark Rutland Cc: Taku Izumi Signed-off-by: Matt Fleming --- drivers/firmware/efi/Makefile | 2 +- drivers/firmware/efi/efi.c | 129

[PATCH 24/29] x86/efi: Defer efi_esrt_init until after memblock_x86_fill

2016-09-09 Thread Matt Fleming
l, grouped with other EFI-related functions. Reported-by: Scott Lawson Signed-off-by: Ricardo Neri Cc: Ard Biesheuvel Cc: Peter Jones Signed-off-by: Matt Fleming --- arch/x86/kernel/setup.c | 1 + arch/x86/platform/efi/efi.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --

[PATCH 26/29] efi/arm64: Treat regions with WT/WC set but WB cleared as memory

2016-09-09 Thread Matt Fleming
-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm Tested-by: James Morse Reviewed-by: James Morse Signed-off-by: Matt Fleming --- drivers/firmware/efi/arm-init.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/firmware/efi/arm

[GIT PULL v2 0/6] EFI urgent fixes

2016-09-05 Thread Matt Fleming
Folks, this is v2 of this pull request. Ingo's comments have been addressed and new patches have been spun. Also now rebased against v4.8-rc5. Please pull the following urgent fixes, which prevent an infinite loop on Xen, a boot failure on Qualcomm platforms and a data type bug in the fdt code.

[PATCH 4/6] efi/libstub: Introduce ExitBootServices helper

2016-09-05 Thread Matt Fleming
> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ingo Molnar <mi...@kernel.org> Cc: <sta...@vger.kernel.org> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- drivers/firmware/efi/libstub/efi-stub-helper.c | 73 ++ include/linux/efi.h

[GIT PULL v2 0/6] EFI urgent fixes

2016-09-05 Thread Matt Fleming
Folks, this is v2 of this pull request. Ingo's comments have been addressed and new patches have been spun. Also now rebased against v4.8-rc5. Please pull the following urgent fixes, which prevent an infinite loop on Xen, a boot failure on Qualcomm platforms and a data type bug in the fdt code.

[PATCH 4/6] efi/libstub: Introduce ExitBootServices helper

2016-09-05 Thread Matt Fleming
n the case of EFI_INVALID_PARAMETER from ExitBootServices and can be universally used across all stub implementations. Signed-off-by: Jeffrey Hugo Cc: Ard Biesheuvel Cc: Mark Rutland Cc: Leif Lindholm Cc: Ingo Molnar Cc: Signed-off-by: Matt Fleming --- drivers/firmware/efi/libstub/efi-stub-hel

[PATCH 2/6] efi: Fix handling error value in fdt_find_uefi_params

2016-09-05 Thread Matt Fleming
> Cc: Ingo Molnar <mi...@kernel.org> Cc: Thomas Gleixner <t...@linutronix.de> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Shawn Lin <shawn@rock-chips.com> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: <sta...@vger.kernel.org> Signed-off-by: Matt Fleming <

[PATCH 2/6] efi: Fix handling error value in fdt_find_uefi_params

2016-09-05 Thread Matt Fleming
has been detected using semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci Signed-off-by: Andrzej Hajda Cc: Bartlomiej Zolnierkiewicz Cc: Marek Szyprowski Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Shawn Lin Cc: Mark Rutland Cc: Signed-of

[PATCH 1/6] efi: Make for_each_efi_memory_desc_in_map() cope with running on Xen

2016-09-05 Thread Matt Fleming
..@suse.com> [ Guard the loop with a NULL check instead of pointer underflow ] Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- include/linux/efi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/efi.h b/include/linux/efi.h index 7f5a58225385..2

[PATCH 3/6] efi/libstub: Allocate headspace in efi_get_memory_map()

2016-09-05 Thread Matt Fleming
> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ingo Molnar <mi...@kernel.org> Cc: <sta...@vger.kernel.org> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk> --- arc

[PATCH 5/6] efi/libstub: Use efi_exit_boot_services() in FDT

2016-09-05 Thread Matt Fleming
d Biesheuvel <ard.biesheu...@linaro.org> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: Leif Lindholm <leif.lindh...@linaro.org> Cc: Ingo Molnar <mi...@kernel.org> Cc: <sta...@vger.kernel.org> Signed-off-by: Matt Fleming <m...@codeblueprint.co.uk&

<    1   2   3   4   5   6   7   8   9   10   >