Re: [PATCH v2 3/4] efi/arm: map UEFI memory map earlier on boot

2018-07-04 Thread Ard Biesheuvel
On 4 July 2018 at 19:06, Will Deacon wrote: > Hi all, > > [Ard -- please can you look at the EFI parts of this patch] > > On Tue, Jun 19, 2018 at 03:44:23PM +0900, AKASHI Takahiro wrote: >> Since arm_enter_runtime_services() was modified to always create a virtual >> mapping of UEFI memory map in

Re: [PATCH v2 3/4] efi/arm: map UEFI memory map earlier on boot

2018-07-04 Thread Will Deacon
Hi all, [Ard -- please can you look at the EFI parts of this patch] On Tue, Jun 19, 2018 at 03:44:23PM +0900, AKASHI Takahiro wrote: > Since arm_enter_runtime_services() was modified to always create a virtual > mapping of UEFI memory map in the previous patch, it is now renamed to >

Re: panic kexec broken on ARM64?

2018-07-04 Thread Marc Zyngier
On Wed, 04 Jul 2018 15:08:38 +0100, Matthias Brugger wrote: > On 03/07/18 10:58, Marc Zyngier wrote: > > I've pushed 3 patches on a branch[1]. It is mostly untested, but it > > should allow the above RPi3 disaster to cope with kexec. > > > > M. > > > > [1]: > >

Re: panic kexec broken on ARM64?

2018-07-04 Thread Matthias Brugger
On 03/07/18 10:58, Marc Zyngier wrote: > On 03/07/18 08:01, takahiro.aka...@linaro.org wrote: >> Marc, James, >> >> I'd like to re-ignite the discussion. >> >> On Sun, Jun 10, 2018 at 01:24:17PM +0100, Marc Zyngier wrote: >>> On Wed, 06 Jun 2018 12:37:02 +0100, >>> James Morse wrote:

Re: panic kexec broken on ARM64?

2018-07-04 Thread James Morse
Hi Akashi, On 04/07/18 09:41, takahiro.aka...@linaro.org wrote: > On Tue, Jul 03, 2018 at 09:58:44AM +0100, Marc Zyngier wrote: >> On 03/07/18 08:01, takahiro.aka...@linaro.org wrote: >>> On Sun, Jun 10, 2018 at 01:24:17PM +0100, Marc Zyngier wrote: On Wed, 06 Jun 2018 12:37:02 +0100 James

[PATCH v6 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-07-04 Thread Baoquan He
reparent_resources() is duplicated in arch/microblaze/pci/pci-common.c and arch/powerpc/kernel/pci-common.c, so move it to kernel/resource.c so that it's shared. Signed-off-by: Baoquan He --- arch/microblaze/pci/pci-common.c | 37 -

[PATCH v6 3/4] resource: add walk_system_ram_res_rev()

2018-07-04 Thread Baoquan He
This function, being a variant of walk_system_ram_res() introduced in commit 8c86e70acead ("resource: provide new functions to walk through resources"), walks through a list of all the resources of System RAM in reversed order, i.e., from higher to lower. It will be used in kexec_file code.

[PATCH v6 4/4] kexec_file: Load kernel at top of system RAM if required

2018-07-04 Thread Baoquan He
For kexec_file loading, if kexec_buf.top_down is 'true', the memory which is used to load kernel/initrd/purgatory is supposed to be allocated from top to down. This is what we have been doing all along in the old kexec loading interface and the kexec loading is still default setting in some

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-07-04 Thread Baoquan He
On 07/03/18 at 11:57pm, Andy Shevchenko wrote: > On Tue, Jul 3, 2018 at 5:55 PM, Baoquan He wrote: > > On 06/12/18 at 05:24pm, Andy Shevchenko wrote: > >> On Tue, Jun 12, 2018 at 5:20 PM, Andy Shevchenko > >> wrote: > > >> > I briefly looked at the code and error codes we have, so, my proposal

[PATCH v6 2/4] resource: Use list_head to link sibling resource

2018-07-04 Thread Baoquan He
The struct resource uses singly linked list to link siblings, implemented by pointer operation. Replace it with list_head for better code readability. Based on this list_head replacement, it will be very easy to do reverse iteration on iomem_resource's sibling list in later patch. Besides, type

[PATCH v6 0/4] resource: Use list_head to link sibling resource

2018-07-04 Thread Baoquan He
This patchset is doing: 1) Replace struct resource's sibling list from singly linked list to list_head. Clearing out those pointer operation within singly linked list for better code readability. 2) Based on list_head replacement, add a new function walk_system_ram_res_rev() which can does

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-07-04 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 5:55 PM, Baoquan He wrote: > On 06/12/18 at 05:24pm, Andy Shevchenko wrote: >> On Tue, Jun 12, 2018 at 5:20 PM, Andy Shevchenko >> wrote: >> > I briefly looked at the code and error codes we have, so, my proposal >> > is one of the following >> >> > - use -ECANCELED (not

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-07-04 Thread Baoquan He
Hi Andy, On 06/12/18 at 05:24pm, Andy Shevchenko wrote: > On Tue, Jun 12, 2018 at 5:20 PM, Andy Shevchenko > wrote: > >> Hmm, I just copied it from arch/powerpc/kernel/pci-common.c. The > >> function interface expects an integer returned value, not sure what a > >> real error codes look like,

Re: [PATCH v5 4/8] firmware: add call to LSM hook before firmware sysfs fallback

2018-07-04 Thread kbuild test robot
Hi Mimi, I love your patch! Yet something to improve: [auto build test ERROR on integrity/next-integrity] [also build test ERROR on v4.18-rc3 next-20180702] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

makedumpfile-1.6.4: Add support for 5-level paging

2018-07-04 Thread Kazuhito Hagio
Hello, makedumpfile version 1.6.4 is released. Your comments/patches are welcome. I took over the maintainer role from Tachibana-san. Thank you so much for development and maintenance of makedumpfile for a long time! And I'm pleased to work on makedumpfile with everyone here. The maintainer

[PATCH 0/1] x86/purgatory: Fix Makefile bug

2018-07-04 Thread Philipp Rudo
Hi everybody, when i moved the purgatories sha256 implementation to common code, i forgot to add FORCE to the new Makefile target. This patch fixes it. Note: There is an equivalent bug in the s390 purgatory. The fix for that will go upstream via Martin. Thanks Philipp Philipp Rudo (1):

[PATCH 1/1] x86/purgatory: Add missing FORCE to Makefile target

2018-07-04 Thread Philipp Rudo
Without FORCE make does not detect changes only made to the command line options. So object files might not be re-built even when they should be. Fix this by adding FORCE where it is missing. Fixes: df6f2801f511 ("kernel/kexec_file.c: move purgatories sha256 to common code") Cc: # 4.17

Re: panic kexec broken on ARM64?

2018-07-04 Thread takahiro.aka...@linaro.org
On Tue, Jul 03, 2018 at 09:58:44AM +0100, Marc Zyngier wrote: > On 03/07/18 08:01, takahiro.aka...@linaro.org wrote: > > Marc, James, > > > > I'd like to re-ignite the discussion. > > > > On Sun, Jun 10, 2018 at 01:24:17PM +0100, Marc Zyngier wrote: > >> On Wed, 06 Jun 2018 12:37:02 +0100, > >>

Re: panic kexec broken on ARM64?

2018-07-04 Thread Marc Zyngier
On 04/07/18 09:41, takahiro.aka...@linaro.org wrote: > On Tue, Jul 03, 2018 at 09:58:44AM +0100, Marc Zyngier wrote: >> On 03/07/18 08:01, takahiro.aka...@linaro.org wrote: >>> Marc, James, >>> >>> I'd like to re-ignite the discussion. >>> >>> On Sun, Jun 10, 2018 at 01:24:17PM +0100, Marc Zyngier

Re: [PATCH] arm64: Fix calculation of page_offset in case we are running cases other than mem-usage

2018-07-04 Thread Bhupesh Sharma
On Wed, Jul 4, 2018 at 12:15 AM, Kazuhito Hagio wrote: > On 7/3/2018 1:23 AM, Bhupesh Sharma wrote: >> Hello Kazu-san, >> >> On Sat, Jun 30, 2018 at 3:18 AM, Bhupesh Sharma wrote: >>> Patch f49ca13e5eed5bbdc69e0fd5ef099cb46050cb3d added '--mem-usage' >>> support for arm64 architecture. >>> >>>