Re: [PATCH] powerpc/kexec_file: print error string on usable memory property update failure

2022-12-20 Thread Sourabh Jain
On 19/12/22 14:16, Hari Bathini wrote: On 16/12/22 5:57 pm, Sourabh Jain wrote: Print the FDT error description along with the error message if failed to set the "linux,drconf-usable-memory" property in the kdump kernel's FDT. Signed-off-by: Sourabh Jain LGTM Acked-by: Hari Bathini

Re: [RFC PATCH] mm: remove zap_page_range and change callers to use zap_vma_page_range

2022-12-20 Thread Michael Ellerman
Mike Kravetz writes: > zap_page_range was originally designed to unmap pages within an address > range that could span multiple vmas. While working on [1], it was > discovered that all callers of zap_page_range pass a range entirely within > a single vma. In addition, the mmu notification call

Re: [PATCH v1 5/5] powerpc/epapr: Don't use wrteei on non booke

2022-12-20 Thread Pali Rohár
On Monday 19 December 2022 19:46:00 Christophe Leroy wrote: > wrteei is only for booke. Use the standard mfmsr/ori/mtmsr > when non booke. > > Reported-by: Jan-Benedict Glaw > Signed-off-by: Christophe Leroy > --- > Not sure this is needed at all, the commit that introduced the code says it >

Re: [PATCH v1 4/5] powerpc: Remove cpu-as-y completely

2022-12-20 Thread Pali Rohár
On Monday 19 December 2022 19:45:59 Christophe Leroy wrote: > cpu-as-y is there to force assembler building options. > But there is no need for that. Gcc is passed the necessary > options and it automatically pass the appropriate option to > GAS. > > GCC is given -maltivec when relevant, so no

Re: [PATCH v1 3/5] powerpc/64: Replace -mcpu=e500mc64 by -mcpu=e5500

2022-12-20 Thread Pali Rohár
On Monday 19 December 2022 19:45:58 Christophe Leroy wrote: > E500MC64 is a processor pre-dating E5500 that has never been > commercialised. Use -mcpu=e5500 for E5500 core. > > More details at https://gcc.gnu.org/PR108149 > > Signed-off-by: Christophe Leroy Acked-by: Pali Rohár > --- >

Re: [PATCH v1 2/5] powerpc: Pass correct CPU reference to assembler

2022-12-20 Thread Pali Rohár
On Monday 19 December 2022 19:45:57 Christophe Leroy wrote: > Jan-Benedict reported issue with building ppc64e_defconfig > with mainline GCC work: > > powerpc64-linux-gcc -Wp,-MMD,arch/powerpc/kernel/vdso/.gettimeofday-64.o.d > -nostdinc -I./arch/powerpc/include

Re: [PATCH v1 1/5] powerpc/64: Set default CPU in Kconfig

2022-12-20 Thread Pali Rohár
On Monday 19 December 2022 19:45:56 Christophe Leroy wrote: > Since 0069f3d14e7a ("powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC"), the > only possible BOOK3E/64 are E500, so no need of a default CPU over the > E5500. > > When the user selects book3e, they must have an e500 compatible > compiler,

Re: [PATCH v12 0/6] implement getrandom() in vDSO

2022-12-20 Thread Eric Biggers
On Tue, Dec 20, 2022 at 05:17:52PM +, Christophe Leroy wrote: > Hi Jason, > > Le 12/12/2022 à 19:53, Jason A. Donenfeld a écrit : > > Changes v11->v12: > > > > - In order to avoid mlock()ing pages, and the related rlimit and fork > >inheritance issues there, Introduce

Re: [RFC PATCH] mm: remove zap_page_range and change callers to use zap_vma_page_range

2022-12-20 Thread Peter Xu
On Fri, Dec 16, 2022 at 11:20:12AM -0800, Mike Kravetz wrote: > zap_page_range was originally designed to unmap pages within an address > range that could span multiple vmas. While working on [1], it was > discovered that all callers of zap_page_range pass a range entirely within > a single vma.

Re: [PATCH v12 0/6] implement getrandom() in vDSO

2022-12-20 Thread Christophe Leroy
Hi Jason, Le 12/12/2022 à 19:53, Jason A. Donenfeld a écrit : > Changes v11->v12: > > - In order to avoid mlock()ing pages, and the related rlimit and fork >inheritance issues there, Introduce VM_DROPPABLE to prevent swapping >while meeting the cache-like requirements of

Re: [PATCH] tools/objtool: tolerate STT_NOTYPE symbols at end of section

2022-12-20 Thread Christophe Leroy
Le 20/12/2022 à 11:13, Nicholas Piggin a écrit : > Hand-written asm often contains non-function symbols in executable > sections. _end symbols for finding the size of instruction blocks > for runtime processing is one such usage. > > optprobe_template_end is one example that causes the warning:

[linux-next:master] BUILD REGRESSION e45fb347b630ee76482fe938ba76cf8eab811290

2022-12-20 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: e45fb347b630ee76482fe938ba76cf8eab811290 Add linux-next specific files for 20221220 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202211242120.mzzvguln-...@intel.com https

[PATCH] tools/objtool: tolerate STT_NOTYPE symbols at end of section

2022-12-20 Thread Nicholas Piggin
Hand-written asm often contains non-function symbols in executable sections. _end symbols for finding the size of instruction blocks for runtime processing is one such usage. optprobe_template_end is one example that causes the warning: objtool: optprobe_template_end(): can't find starting

[PATCH v1 1/5] powerpc/64: Set default CPU in Kconfig

2022-12-20 Thread Christophe Leroy
Since 0069f3d14e7a ("powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC"), the only possible BOOK3E/64 are E500, so no need of a default CPU over the E5500. When the user selects book3e, they must have an e500 compatible compiler, and it won't work anymore with the default -mcpu=power64, see commit

[PATCH v1 2/5] powerpc: Pass correct CPU reference to assembler

2022-12-20 Thread Christophe Leroy
Jan-Benedict reported issue with building ppc64e_defconfig with mainline GCC work: powerpc64-linux-gcc -Wp,-MMD,arch/powerpc/kernel/vdso/.gettimeofday-64.o.d -nostdinc -I./arch/powerpc/include -I./arch/powerpc/include/generated -I./include -I./arch/powerpc/include/uapi

[PATCH v1 4/5] powerpc: Remove cpu-as-y completely

2022-12-20 Thread Christophe Leroy
cpu-as-y is there to force assembler building options. But there is no need for that. Gcc is passed the necessary options and it automatically pass the appropriate option to GAS. GCC is given -maltivec when relevant, so no need for -Wa,-maltivec in addition And -Wa,-many is wrong as it will hide

[PATCH v1 5/5] powerpc/epapr: Don't use wrteei on non booke

2022-12-20 Thread Christophe Leroy
wrteei is only for booke. Use the standard mfmsr/ori/mtmsr when non booke. Reported-by: Jan-Benedict Glaw Signed-off-by: Christophe Leroy --- Not sure this is needed at all, the commit that introduced the code says it is for e500, but there's no such limitation in Kconfig. Maybe we should

[PATCH v1 3/5] powerpc/64: Replace -mcpu=e500mc64 by -mcpu=e5500

2022-12-20 Thread Christophe Leroy
E500MC64 is a processor pre-dating E5500 that has never been commercialised. Use -mcpu=e5500 for E5500 core. More details at https://gcc.gnu.org/PR108149 Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git