[GIT PULL] Please pull powerpc/linux.git powerpc-6.8-2 tag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Linus, Please pull powerpc fixes for 6.8: The following changes since commit d2441d3e8c0c076d0a2e705fa235c76869a85140: MAINTAINERS: powerpc: Add Aneesh & Naveen (2023-12-13 22:35:57 +1100) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git tags/powerpc-6.8-2 for you to fetch changes up to 18f14afe281648e31ed35c9ad2fcb724c4838ad9: powerpc/64s: Increase default stack size to 32KB (2024-01-19 00:10:14 +0530) - -- powerpc fixes for 6.8 #2 - 18f14afe2816 powerpc/64s: Increase default stack size to 32KB BY: Michael Ellerman Thanks to: Michael Ellerman - -- Michael Ellerman (1): powerpc/64s: Increase default stack size to 32KB arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) -BEGIN PGP SIGNATURE- iHUEARYKAB0WIQTYs9CDOrDQRwKRmtrJvCLnGrjHVgUCZayyTgAKCRDJvCLnGrjH VlgzAQDkYdg1/DjYNR4Ie/i4MdlYj2cA4s4kTR1x25QHHb6t7AD/URA8U20cMSla etAHTJ3/Y/B/C/nL4GsC2uC5nYZ+bgo= =WIHK -END PGP SIGNATURE-
Re: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs
On 01/20/24 at 08:13pm, kernel test robot wrote: > Hi Baoquan, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on linus/master] > [cannot apply to tip/x86/core arm64/for-next/core powerpc/next powerpc/fixes > v6.7 next-20240119] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: > https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/kexec-split-crashkernel-reservation-code-out-from-crash_core-c/20240119-225820 > base: linus/master > patch link: > https://lore.kernel.org/r/20240119145241.769622-12-bhe%40redhat.com > patch subject: [PATCH v2 11/14] arm, crash: wrap crash dumping code into > crash related ifdefs > config: arm-randconfig-001-20240120 > (https://download.01.org/0day-ci/archive/20240120/202401202057.apg08eh8-...@intel.com/config) > compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project > d92ce344bf641e6bb025b41b3f1a77dd25e2b3e9) > reproduce (this is a W=1 build): > (https://download.01.org/0day-ci/archive/20240120/202401202057.apg08eh8-...@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version > of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: > https://lore.kernel.org/oe-kbuild-all/202401202057.apg08eh8-...@intel.com/ Thanks for reporting this, I can reproduce it. In the provided config, it has: # CONFIG_MMU is not set and all kexec/kdump related config items are unset. The if (!IS_ENABLED(CONFIG_CRASH_RESERVE)) checking will cause funciton reserve_crashkernel() is compiled, but not built in. With CONFIG_MMU=no, SECTION_SIZE is undefined on arm. So fix it by wrapping up reserve_crashkernel() inside CONFIG_CRASH_RESERVE ifdeffery scope. >From d580b65f6aa042233e228aab45609c3de88ab29e Mon Sep 17 00:00:00 2001 From: Baoquan He Date: Mon, 15 Jan 2024 22:32:19 -0500 Subject: [PATCH] arm, crash: wrap crash dumping code into crash related ifdefs Content-type: text/plain Now crash codes under kernel/ folder has been split out from kexec code, crash dumping can be separated from kexec reboot in config items on arm with some adjustments. Here use CONFIG_CRASH_RESERVE ifdef to replace CONFIG_KEXEC ifdef. Signed-off-by: Baoquan He --- arch/arm/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index ff2299ce1ad7..7b33b157fca0 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -979,7 +979,7 @@ static int __init init_machine_late(void) } late_initcall(init_machine_late); -#ifdef CONFIG_KEXEC +#ifdef CONFIG_CRASH_RESERVE /* * The crash region must be aligned to 128MB to avoid * zImage relocating below the reserved region. @@ -1066,7 +1066,7 @@ static void __init reserve_crashkernel(void) } #else static inline void reserve_crashkernel(void) {} -#endif /* CONFIG_KEXEC */ +#endif /* CONFIG_CRASH_RESERVE*/ void __init hyp_mode_check(void) { -- 2.41.0
Re: [PATCH 1/1] arch/mm/fault: fix major fault accounting when retrying under per-VMA lock
On Sat, Jan 20, 2024 at 09:09:47PM +, patchwork-bot+linux-ri...@kernel.org wrote: > Hello: > > This patch was applied to riscv/linux.git (fixes) > by Andrew Morton : > > On Tue, 26 Dec 2023 13:46:10 -0800 you wrote: > > A test [1] in Android test suite started failing after [2] was merged. > > It turns out that after handling a major fault under per-VMA lock, the > > process major fault counter does not register that fault as major. > > Before [2] read faults would be done under mmap_lock, in which case > > FAULT_FLAG_TRIED flag is set before retrying. That in turn causes > > mm_account_fault() to account the fault as major once retry completes. > > With per-VMA locks we often retry because a fault can't be handled > > without locking the whole mm using mmap_lock. Therefore such retries > > do not set FAULT_FLAG_TRIED flag. This logic does not work after [2] > > because we can now handle read major faults under per-VMA lock and > > upon retry the fact there was a major fault gets lost. Fix this by > > setting FAULT_FLAG_TRIED after retrying under per-VMA lock if > > VM_FAULT_MAJOR was returned. Ideally we would use an additional > > VM_FAULT bit to indicate the reason for the retry (could not handle > > under per-VMA lock vs other reason) but this simpler solution seems > > to work, so keeping it simple. > > > > [...] > > Here is the summary with links: > - [1/1] arch/mm/fault: fix major fault accounting when retrying under > per-VMA lock > https://git.kernel.org/riscv/c/46e714c729c8 > > You are awesome, thank you! Now that 32-bit ARM has support for the per-VMA lock, does that also need to be patched? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Re: [PATCH v4 0/7] kexec_file: print out debugging message if required
Hello: This series was applied to riscv/linux.git (fixes) by Andrew Morton : On Wed, 13 Dec 2023 13:57:40 +0800 you wrote: > Currently, specifying '-d' on kexec command will print a lot of debugging > informationabout kexec/kdump loading with kexec_load interface. > > However, kexec_file_load prints nothing even though '-d' is specified. > It's very inconvenient to debug or analyze the kexec/kdump loading when > something wrong happened with kexec/kdump itself or develper want to > check the kexec/kdump loading. > > [...] Here is the summary with links: - [v4,1/7] kexec_file: add kexec_file flag to control debug printing (no matching commit) - [v4,2/7] kexec_file: print out debugging message if required (no matching commit) - [v4,3/7] kexec_file, x86: print out debugging message if required (no matching commit) - [v4,4/7] kexec_file, arm64: print out debugging message if required (no matching commit) - [v4,5/7] kexec_file, ricv: print out debugging message if required https://git.kernel.org/riscv/c/eb7622d908a0 - [v4,6/7] kexec_file, power: print out debugging message if required (no matching commit) - [v4,7/7] kexec_file, parisc: print out debugging message if required (no matching commit) You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH v2 1/2] resource: add walk_system_ram_res_rev()
Hello: This patch was applied to riscv/linux.git (fixes) by Andrew Morton : On Wed, 15 Nov 2023 21:00:27 +0800 you wrote: > 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 to load kernel, initrd etc when > preparing kexec reboot. > > [...] Here is the summary with links: - [v2,1/2] resource: add walk_system_ram_res_rev() https://git.kernel.org/riscv/c/7acf164b259d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH 0/2] kexec_file: Load kernel at top of system RAM if required
Hello: This series was applied to riscv/linux.git (fixes) by Andrew Morton : On Tue, 14 Nov 2023 17:16:56 +0800 you wrote: > Justification: > == > Kexec_load interface has been doing top down searching and loading > kernel/initrd/purgtory etc to prepare for kexec reboot. In that way, > the benefits are that it avoids to consume and fragment limited low > memory which satisfy DMA buffer allocation and big chunk of continuous > memory during system init; and avoids to stir with BIOS/FW reserved > or occupied areas, or corner case handling/work around/quirk occupied > areas when doing system init. By the way, the top-down searching and > loading of kexec-ed kernel is done in user space utility code. > > [...] Here is the summary with links: - [1/2] resource: add walk_system_ram_res_rev() (no matching commit) - [2/2] kexec_file: Load kernel at top of system RAM if required https://git.kernel.org/riscv/c/b3ba234171cd You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH v6 0/5] RISC-V SBI debug console extension support
Hello: This series was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Fri, 19 Jan 2024 17:04:44 +0530 you wrote: > The SBI v2.0 specification is now frozen. The SBI v2.0 specification defines > SBI debug console (DBCN) extension which replaces the legacy SBI v0.1 > functions sbi_console_putchar() and sbi_console_getchar(). > (Refer v2.0-rc5 at https://github.com/riscv-non-isa/riscv-sbi-doc/releases) > > This series adds support for SBI debug console (DBCN) extension in > Linux RISC-V. > > [...] Here is the summary with links: - [v6,1/5] RISC-V: Add stubs for sbi_console_putchar/getchar() https://git.kernel.org/riscv/c/f503b167b660 - [v6,2/5] RISC-V: Add SBI debug console helper routines (no matching commit) - [v6,3/5] tty/serial: Add RISC-V SBI debug console based earlycon https://git.kernel.org/riscv/c/c77bf3607a0f - [v6,4/5] tty: Add SBI debug console support to HVC SBI driver (no matching commit) - [v6,5/5] RISC-V: Enable SBI based earlycon support https://git.kernel.org/riscv/c/50942ad6ddb5 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH 1/1] arch/mm/fault: fix major fault accounting when retrying under per-VMA lock
Hello: This patch was applied to riscv/linux.git (fixes) by Andrew Morton : On Tue, 26 Dec 2023 13:46:10 -0800 you wrote: > A test [1] in Android test suite started failing after [2] was merged. > It turns out that after handling a major fault under per-VMA lock, the > process major fault counter does not register that fault as major. > Before [2] read faults would be done under mmap_lock, in which case > FAULT_FLAG_TRIED flag is set before retrying. That in turn causes > mm_account_fault() to account the fault as major once retry completes. > With per-VMA locks we often retry because a fault can't be handled > without locking the whole mm using mmap_lock. Therefore such retries > do not set FAULT_FLAG_TRIED flag. This logic does not work after [2] > because we can now handle read major faults under per-VMA lock and > upon retry the fact there was a major fault gets lost. Fix this by > setting FAULT_FLAG_TRIED after retrying under per-VMA lock if > VM_FAULT_MAJOR was returned. Ideally we would use an additional > VM_FAULT bit to indicate the reason for the retry (could not handle > under per-VMA lock vs other reason) but this simpler solution seems > to work, so keeping it simple. > > [...] Here is the summary with links: - [1/1] arch/mm/fault: fix major fault accounting when retrying under per-VMA lock https://git.kernel.org/riscv/c/46e714c729c8 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Re: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs
Hi Baoquan, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [cannot apply to tip/x86/core arm64/for-next/core powerpc/next powerpc/fixes v6.7 next-20240119] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/kexec-split-crashkernel-reservation-code-out-from-crash_core-c/20240119-225820 base: linus/master patch link: https://lore.kernel.org/r/20240119145241.769622-12-bhe%40redhat.com patch subject: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240120/202401202159.9a6w0aoh-...@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401202159.9a6w0aoh-...@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401202159.9a6w0aoh-...@intel.com/ All errors (new ones prefixed by >>): arch/arm/kernel/setup.c: In function 'reserve_crashkernel': >> arch/arm/kernel/setup.c:1036:63: error: 'SECTION_SIZE' undeclared (first use >> in this function); did you mean 'SECTIONS_SHIFT'? 1036 | start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, | ^~~~ | SECTIONS_SHIFT arch/arm/kernel/setup.c:1036:63: note: each undeclared identifier is reported only once for each function it appears in In file included from arch/arm/include/asm/efi.h:12, from arch/arm/kernel/setup.c:37: arch/arm/include/asm/fixmap.h: At top level: arch/arm/include/asm/fixmap.h:39:35: warning: '__end_of_fixed_addresses' defined but not used [-Wunused-const-variable=] 39 | static const enum fixed_addresses __end_of_fixed_addresses = | ^~~~ vim +1036 arch/arm/kernel/setup.c 3c57fb43c8fcbe Mika Westerberg 2010-05-10 995 3c57fb43c8fcbe Mika Westerberg 2010-05-10 996 /** 3c57fb43c8fcbe Mika Westerberg 2010-05-10 997 * reserve_crashkernel() - reserves memory are for crash kernel 3c57fb43c8fcbe Mika Westerberg 2010-05-10 998 * 3c57fb43c8fcbe Mika Westerberg 2010-05-10 999 * This function reserves memory area given in "crashkernel=" kernel command 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1000 * line parameter. The memory reserved is used by a dump capture kernel when 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1001 * primary kernel is crashing. 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1002 */ 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1003 static void __init reserve_crashkernel(void) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1004 { 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1005 unsigned long long crash_size, crash_base; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1006 unsigned long long total_mem; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1007 int ret; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1008 8f460484669cba Baoquan He 2024-01-19 1009 if (!IS_ENABLED(CONFIG_CRASH_RESERVE)) 8f460484669cba Baoquan He 2024-01-19 1010 return; 8f460484669cba Baoquan He 2024-01-19 1011 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1012 total_mem = get_total_mem(); 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1013 ret = parse_crashkernel(boot_command_line, total_mem, a9e1a3d84e4a0e Baoquan He 2023-09-14 1014 _size, _base, a9e1a3d84e4a0e Baoquan He 2023-09-14 1015 NULL, NULL); 9d17f337230642 Austin Kim 2022-04-01 1016 /* invalid value specified or crashkernel=0 */ 9d17f337230642 Austin Kim 2022-04-01 1017 if (ret || !crash_size) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1018 return; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1019 61603016e2122b Russell King2016-03-14 1020 if (crash_base <= 0) { d0506a2395eb07 Russell King2016-04-01 1021 unsigned long long crash_max = idmap_to_phys((u32)~0); 67556d7a851c20 Russell King2017-07-19 1022 unsigned long long lowmem_max = __pa(high_memory - 1) + 1; 67556d7a851c20 Russell King2017-07-19 1023 if (crash_max > lowmem_max) 67556d7a851c20 Russell King2017-07-19 1024 crash_max = lowmem_max; a7259df7670240 Mike Rapoport 2021
Re: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs
Hi Baoquan, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [cannot apply to tip/x86/core arm64/for-next/core powerpc/next powerpc/fixes v6.7 next-20240119] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/kexec-split-crashkernel-reservation-code-out-from-crash_core-c/20240119-225820 base: linus/master patch link: https://lore.kernel.org/r/20240119145241.769622-12-bhe%40redhat.com patch subject: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs config: arm-randconfig-001-20240120 (https://download.01.org/0day-ci/archive/20240120/202401202057.apg08eh8-...@intel.com/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project d92ce344bf641e6bb025b41b3f1a77dd25e2b3e9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401202057.apg08eh8-...@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401202057.apg08eh8-...@intel.com/ All errors (new ones prefixed by >>): >> arch/arm/kernel/setup.c:1036:49: error: use of undeclared identifier >> 'SECTION_SIZE' 1036 | start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, | ^ 1 error generated. vim +/SECTION_SIZE +1036 arch/arm/kernel/setup.c 3c57fb43c8fcbe Mika Westerberg 2010-05-10 995 3c57fb43c8fcbe Mika Westerberg 2010-05-10 996 /** 3c57fb43c8fcbe Mika Westerberg 2010-05-10 997 * reserve_crashkernel() - reserves memory are for crash kernel 3c57fb43c8fcbe Mika Westerberg 2010-05-10 998 * 3c57fb43c8fcbe Mika Westerberg 2010-05-10 999 * This function reserves memory area given in "crashkernel=" kernel command 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1000 * line parameter. The memory reserved is used by a dump capture kernel when 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1001 * primary kernel is crashing. 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1002 */ 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1003 static void __init reserve_crashkernel(void) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1004 { 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1005 unsigned long long crash_size, crash_base; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1006 unsigned long long total_mem; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1007 int ret; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1008 8f460484669cba Baoquan He 2024-01-19 1009 if (!IS_ENABLED(CONFIG_CRASH_RESERVE)) 8f460484669cba Baoquan He 2024-01-19 1010 return; 8f460484669cba Baoquan He 2024-01-19 1011 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1012 total_mem = get_total_mem(); 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1013 ret = parse_crashkernel(boot_command_line, total_mem, a9e1a3d84e4a0e Baoquan He 2023-09-14 1014 _size, _base, a9e1a3d84e4a0e Baoquan He 2023-09-14 1015 NULL, NULL); 9d17f337230642 Austin Kim 2022-04-01 1016 /* invalid value specified or crashkernel=0 */ 9d17f337230642 Austin Kim 2022-04-01 1017 if (ret || !crash_size) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1018 return; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1019 61603016e2122b Russell King2016-03-14 1020 if (crash_base <= 0) { d0506a2395eb07 Russell King2016-04-01 1021 unsigned long long crash_max = idmap_to_phys((u32)~0); 67556d7a851c20 Russell King2017-07-19 1022 unsigned long long lowmem_max = __pa(high_memory - 1) + 1; 67556d7a851c20 Russell King2017-07-19 1023 if (crash_max > lowmem_max) 67556d7a851c20 Russell King2017-07-19 1024 crash_max = lowmem_max; a7259df7670240 Mike Rapoport 2021-09-02 1025 a7259df7670240 Mike Rapoport 2021-09-02 1026 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, a7259df7670240 Mike Rapoport 2021-09-02 1027 CRASH_ALIGN, crash_max); 61603016e2122b Russell King2016-03-14 1028 if (!crash_base) { 61603016e2122b Russell King2016-03-14 1029 pr_err("crashkernel reservation failed - No suitable area found.\n"); 61603016e2122b Russell King2016-03-14 1030 return; 61603016e2122b Russell King2016-03-14 1031