Re: [PATCH v26 3/7] arm64: kdump: add kdump support

2016-09-22 Thread Matthias Brugger
On 09/07/2016 06:29 AM, AKASHI Takahiro wrote: On crash dump kernel, all the information about primary kernel's system memory (core image) is available in elf core header. The primary kernel will set aside this header with reserve_elfcorehdr() at boot time and inform crash dump kernel of its lo

Re: [PATCH v26 6/7] arm64: kdump: update a kernel doc

2016-09-26 Thread Matthias Brugger
On 16/09/16 18:08, James Morse wrote: Hi Akashi, On 07/09/16 05:29, AKASHI Takahiro wrote: This patch adds arch specific descriptions about kdump usage on arm64 to kdump.txt. diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump/kdump.txt @@ -249,6 +249,13 @@ Dump-capture ker

Re: [PATCH v6 0/3] arm64 kexec-tools patches

2016-09-28 Thread Matthias Brugger
On 21/09/16 20:14, Geoff Levand wrote: This series adds the core support for kexec re-boot on ARM64. I also tested on seattle. Tested-By: Matthias Brugger Linux kernel support for ARM64 kexec reboot has been merged in v4.8-rc1 with the expectation that it will be included in the v4.8

Re: [PATCH v3 2/8] kexec: generalize and rename get_kernel_stext_sym()

2016-10-06 Thread Matthias Brugger
On 09/07/2016 06:33 AM, AKASHI Takahiro wrote: From: Pratyush Anand get_kernel_stext_sym() has been defined for both arm and i386. Other architecture might need some other kernel symbol address. Therefore rewrite this function as generic function to get any kernel symbol address. More over, ka

Re: [PATCH 0/2] arm64 kexec-tools fixups

2016-10-11 Thread Matthias Brugger
10-10 14:15:21 -0700) Geoff Levand (2): arm64: Cleanup kexec Makefile arm64: Add missing kexec dist files kexec/arch/arm64/Makefile | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) Reviewed-by: Matthias Brugger _

[PATCH] arm64: Fix initrd requierements

2016-12-07 Thread Matthias Brugger
The initrd doesn't need to be aligend to 1 GB, which breaks kexec for system with RAM <= 1 GB. Instead the memory size between the kernel start rounded down to 1 GB and the end of the initrd rounded up to 1 GB can't be bigger then 32 GB. Signed-off-by: Matthias Brugger --- kex

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: H

Re: [v2 0/5] arm64: allow to reserve memory for normal kexec kernel

2019-07-10 Thread Matthias Brugger
On 09/07/2019 20:20, Pavel Tatashin wrote: > Changelog > v1 - v2 > - No changes to patches, addressed suggestion from James Morse > to add "arm64" tag to cover letter. > - Improved cover letter information based on discussion. > > Currently, it is only allowed to reserve mem

Re: [PATCH v4 04/17] arm64: hibernate: use get_safe_page directly

2019-09-10 Thread Matthias Brugger
done in other local functions in this file to simplify function > prototype. > > Removing this function pointer makes it easier to refactor the code later. > > Signed-off-by: Pavel Tatashin Reviewed-by: Matthias Brugger > --- > arch/arm64/kernel/hibernate.c | 17 +++-

Re: [PATCH v4 05/17] arm64: hibernate: remove gotos in create_safe_exec_page

2019-09-10 Thread Matthias Brugger
On 09/09/2019 20:12, Pavel Tatashin wrote: > Usually, gotos are used to handle cleanup after exception, but > in case of create_safe_exec_page there are no clean-ups. So, > simply return the errors directly. > While at it, how about also cleaning up swsusp_arch_resume() which has the same issu

Re: [PATCH v4 10/17] arm64: trans_pgd: make trans_pgd_map_page generic

2019-09-10 Thread Matthias Brugger
unsigned long dst_addr, >phys_addr_t *phys_dst_addr) > { > + struct trans_pgd_info trans_info = { > + .trans_alloc_page = hibernate_page_alloc, > + .trans_alloc_arg= (void *)GFP_ATOMIC, > + }; Ne

Re: [PATCH] efi: arm64: Introduce /sys/firmware/efi/memreserve to tell the persistent pages

2019-11-29 Thread Matthias Brugger
On 25/11/2019 19:49, Masayoshi Mizuma wrote: > From: Masayoshi Mizuma > > kexec reboot stops in early boot sequence because efi_config_parse_tables() > refers garbage data. We can see the log with memblock=debug kernel option: > > efi: ACPI 2.0=0x9821790014 PROP=0x8757f5c0 SMBIOS 3.0=0x9

Re: [PATCH] arm64: Add purgatory printing

2020-09-18 Thread Matthias Brugger
Hi Geoff, On 18/09/2020 04:04, Geoff Levand wrote: Hi Matthias, On 9/17/20 12:38 PM, matthias@kernel.org wrote: Add option to allow purgatory printing on arm64 hardware by passing the console name which should be used. +static uint64_t find_purgatory_sink(const char *console) +{ +

Re: [PATCH] arm64: Add purgatory printing

2020-09-18 Thread Matthias Brugger
On 18/09/2020 07:16, Bhupesh SHARMA wrote: Hi Matthias, Thanks for the patch. Some nitpicks inline: On Fri, Sep 18, 2020 at 1:09 AM wrote: From: Matthias Brugger Add option to allow purgatory printing on arm64 hardware by passing the console name which should be used. Based on a patch

Re: [PATCH v3] arm64: Add purgatory printing

2020-09-30 Thread Matthias Brugger
On 30/09/2020 17:20, Geoff Levand wrote: Hi, On 9/30/20 3:36 AM, matthias@kernel.org wrote: --- a/kexec/arch/arm64/include/arch/options.h +++ b/kexec/arch/arm64/include/arch/options.h +static uint64_t find_purgatory_sink(const char *console) +{ + int fd, ret; + char device[2

Re: [PATCH v4] arm64: Add purgatory printing

2020-10-16 Thread Matthias Brugger
Hi, On 02/10/2020 20:34, Bhupesh Sharma wrote: Hello Matthias, Thanks for the updated revision. On Fri, Oct 2, 2020 at 7:13 PM wrote: From: Matthias Brugger Add option to allow purgatory printing on arm64 hardware by passing the console name which should be used. Based on a patch by