[powerpc:fixes-test] BUILD SUCCESS a241780d5def95e1568c06bb3da0000a86b637db

2022-12-16 Thread kernel test robot
defconfig loongarch defconfig loongarch allnoconfig arc randconfig-r043-20221216 s390 randconfig-r044-20221216 riscvrandconfig-r042-20221216 i386

[powerpc:next-test] BUILD SUCCESS 980411a4d1bb925d28cd9e8d8301dc982ece788d

2022-12-16 Thread kernel test robot
randconfig-a004 mips allyesconfig i386 randconfig-a012 m68k allmodconfig riscvrandconfig-r042-20221216 i386 randconfig-a001 powerpc allmodconfig arc

[PATCH v2 6/7] powerpc: mm: add VM_IOREMAP flag to the vmalloc area

2022-12-16 Thread Baoquan He
Currently, for vmalloc areas with flag VM_IOREMAP set, except of the specific alignment clamping in __get_vm_area_node(), they will be 1) Shown as ioremap in /proc/vmallocinfo; 2) Ignored by /proc/kcore reading via vread() So for the io mapping in ioremap_phb() of ppc, we should set VM_IOREMAP

Re: [PATCH v4] of/fdt: Rework early_init_dt_scan_memory() to call directly

2022-12-16 Thread Andreas Rammhold
Hi, I've just debugged an issue that I traced down to this commit. My mt7621 based board relies on the soc_info.mem_detect function for memblock init which is never being called again with this patch being applied. The code in the original patch as well was on 6.0 doesn't allow any of the

Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Pali Rohár
On Friday 16 December 2022 09:35:50 Christophe Leroy wrote: > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index bf5f0a998273..528452ce80b4 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -201,18 +201,20 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables >

Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Pali Rohár
On Friday 16 December 2022 12:10:48 Segher Boessenkool wrote: > On Fri, Dec 16, 2022 at 05:57:46PM +, Christophe Leroy wrote: > > Le 16/12/2022 à 18:18, Segher Boessenkool a écrit : > > > On Fri, Dec 16, 2022 at 09:35:50AM +0100, Christophe Leroy wrote: > > >> Today we have CONFIG_TARGET_CPU

[PATCH 1/1] PCI: layerscape: Add EP mode support for ls1028a

2022-12-16 Thread Frank Li
From: Xiaowei Bao Add PCIe EP mode support for ls1028a. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- All other patches were already accepte by maintainer in https://lore.kernel.org/lkml/2022223457.10599-1-leoyang...@nxp.com/ But missed this one. Re-post.

Re: [linux-next:master] BUILD REGRESSION 459c73db4069c27c1d4a0e20d055b837396364b8

2022-12-16 Thread Vincent Mailhol
On Tue. 15 Dec. 2022 at 22:57, kernel test robot wrote: > tree/branch: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: 459c73db4069c27c1d4a0e20d055b837396364b8 Add linux-next > specific files for 20221215 > > Error/Warning reports: (...) >

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

2022-12-16 Thread Mike Kravetz
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 within zap_page range does not

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

2022-12-16 Thread Segher Boessenkool
On Fri, Dec 16, 2022 at 11:23:59PM +0100, Pali Rohár wrote: > > It appears the E500MC64 never made it outside of FSL, so it is best not > > to use it at all, imo. > > Yes, it really makes sense to not use e500mc64 flag. Maybe gcc > documentation could be updated to mention this fact? Thanks. I

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

2022-12-16 Thread Pali Rohár
On Friday 16 December 2022 13:15:43 Segher Boessenkool wrote: > > Anyway, do you know what is e500mc64 core? I was trying to find some > > information about it, but it looks like some unreleased freescale core > > which predates e5500 core. > > It looks that way yes. It was submitted at >

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

2022-12-16 Thread Segher Boessenkool
Hi! On Thu, Dec 15, 2022 at 09:42:02PM +0100, Pali Rohár wrote: > On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > > default "power8" if POWER8_CPU > > default "power9" if POWER9_CPU > > default "power10" if POWER10_CPU > > + default "e500mc64" if E5500_CPU > > Now

Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Segher Boessenkool
On Fri, Dec 16, 2022 at 05:57:46PM +, Christophe Leroy wrote: > Le 16/12/2022 à 18:18, Segher Boessenkool a écrit : > > On Fri, Dec 16, 2022 at 09:35:50AM +0100, Christophe Leroy wrote: > >> Today we have CONFIG_TARGET_CPU which provides the identification of the > >> expected CPU, it is used

Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2022-12-16 Thread Pali Rohár
PING? On Saturday 26 November 2022 17:23:45 Pali Rohár wrote: > PING? > > On Tuesday 01 November 2022 23:26:03 Pali Rohár wrote: > > Hello! Gentle reminder... > > > > On Sunday 09 October 2022 13:25:55 Pali Rohár wrote: > > > Hello! Any comments on this? It would be nice to take these two

Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Christophe Leroy
CC Joel for the -many subject. Le 16/12/2022 à 18:18, Segher Boessenkool a écrit : > Hi! > > On Fri, Dec 16, 2022 at 09:35:50AM +0100, Christophe Leroy wrote: >> The problem comes from the fact that CONFIG_PPC_E500MC is selected for >> both the e500mc (32 bits) and the e5500 (64 bits), and

[PATCH net v2] powerpc: dts: t208x: Disable 10G on MAC1 and MAC2

2022-12-16 Thread Sean Anderson
There aren't enough resources to run these ports at 10G speeds. Disable 10G for these ports, reverting to the previous speed. Fixes: 36926a7d70c2 ("powerpc: dts: t208x: Mark MAC1 and MAC2 as 10G") Reported-by: Camelia Alexandra Groza Signed-off-by: Sean Anderson --- Changes in v2: - Remove the

RE: [PATCH 1/1] PCI: layerscape: Add EP mode support for ls1028a

2022-12-16 Thread Roy Zang
> -Original Message- > From: Frank Li > Subject: [PATCH 1/1] PCI: layerscape: Add EP mode support for ls1028a > > From: Xiaowei Bao > > Add PCIe EP mode support for ls1028a. > > Signed-off-by: Xiaowei Bao > Signed-off-by: Hou Zhiqiang > --- > > All other patches were already

Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Segher Boessenkool
Hi! On Fri, Dec 16, 2022 at 09:35:50AM +0100, Christophe Leroy wrote: > The problem comes from the fact that CONFIG_PPC_E500MC is selected for > both the e500mc (32 bits) and the e5500 (64 bits), and therefore the > following makefile rule is wrong: > > cpu-as-$(CONFIG_PPC_E500MC)+= $(call

RE: [PATCH net-next] powerpc: dts: t208x: Disable 10G on MAC1 and MAC2

2022-12-16 Thread Camelia Alexandra Groza
> -Original Message- > From: Sean Anderson > Sent: Thursday, December 15, 2022 18:33 > To: Camelia Alexandra Groza > Cc: David S . Miller ; net...@vger.kernel.org; > devicet...@vger.kernel.org; Michael Ellerman ; > linux-ker...@vger.kernel.org; Rob Herring ; > Christophe Leroy ;

[linux-next:master] BUILD REGRESSION ca39c4daa6f7f770b1329ffb46f1e4a6bcc3f291

2022-12-16 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: ca39c4daa6f7f770b1329ffb46f1e4a6bcc3f291 Add linux-next specific files for 20221216 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202211180516.dtowileo-...@intel.com https

[PATCH] powerpc/code-patching: Fix oops with DEBUG_VM enabled

2022-12-16 Thread Michael Ellerman
Nathan reported that the new per-cpu mm patching oopses if DEBUG_VM is enabled: [ cut here ] kernel BUG at arch/powerpc/mm/pgtable.c:333! Oops: Exception in kernel mode, sig: 5 [#1] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA PowerNV Modules linked in:

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

2022-12-16 Thread Sourabh Jain
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 --- arch/powerpc/kexec/file_load_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 4/4] powerpc: Skip stack validation checking alternate stacks if they are not allocated

2022-12-16 Thread Nicholas Piggin
Stack validation in early boot can just bail out of checking alternate stacks if they are not validated yet. Checking against a NULL stack could cause NULLish pointer values to be considered valid. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/process.c | 11 +++ 1 file

[PATCH 3/4] powerpc/64: Move paca allocation to early_setup()

2022-12-16 Thread Nicholas Piggin
The early paca and boot cpuid dance is complicated and currently does not quite work as expected for boot cpuid != 0 cases. early_init_devtree() currently allocates the paca_ptrs and boot cpuid paca, but until that returns and early_setup() calls setup_paca(), this thread is currently still

[PATCH 2/4] powerpc/64: Fix task_cpu in early boot when booting non-zero cpuid

2022-12-16 Thread Nicholas Piggin
powerpc/64 can boot on a non-zero SMP processor id. Initially, the boot CPU is said to be "assumed to be 0" until early_init_devtree() discovers the id from the device tree. That is not a good description because the assumption can be wrong and that has to be handled, the better description is

[PATCH 1/4] powerpc/64s: Fix stress_hpt memblock alloc alignment

2022-12-16 Thread Nicholas Piggin
The stress_hpt memblock allocation did not pass in an alignment, which causes a stack dump in early boot (that I missed, oops). Fixes: 6b34a099faa1 ("powerpc/64s/hash: add stress_hpt kernel boot option to increase hash faults") Signed-off-by: Nicholas Piggin ---

[PATCH 0/4] powerpc: Misc early boot fixes

2022-12-16 Thread Nicholas Piggin
The first patch is a fix for a commit that's in powerpc next which is a pretty harmless dump_stack(). Except that we had some bugs with doing stack unwinding that early when the boot CPU is not zero so that ended up crashing badly. First patch should be relatively safe and solve that problem, but

[PATCH] [Backport for 4.14] perf script python: Remove explicit shebang from tests/attr.c

2022-12-16 Thread Christophe Leroy
From: Tony Jones [Upstream commit d72eadbc1d2866fc047edd4535ffb0298fe240be] tests/attr.c invokes attr.py via an explicit invocation of Python ($PYTHON) so there is therefore no need for an explicit shebang. Also most distros follow pep-0394 which recommends that /usr/bin/python refer only to

Re: [PATCH] powerpc/kexec_file: account hot-pluggable memory while estimating FDT size

2022-12-16 Thread Sourabh Jain
On 16/12/22 11:45, Hari Bathini wrote: On 15/12/22 2:08 pm, Sourabh Jain wrote: On Systems where online memory is lesser compared to max memory, the kexec_file_load system call may fail to load the kdump kernel with the below errors: "Failed to update fdt with

Re: [PATCH] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Christophe Leroy
Le 16/12/2022 à 09:38, Jan-Benedict Glaw a écrit : > On Fri, 2022-12-16 16:07:25 +0800, kernel test robot wrote: >> Hi Christophe, >> >> I love your patch! Yet something to improve: > > [...] > >> If you fix the issue, kindly add following tag where applicable >> | Reported-by: kernel test

Re: [PATCH] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Jan-Benedict Glaw
On Fri, 2022-12-16 16:07:25 +0800, kernel test robot wrote: > Hi Christophe, > > I love your patch! Yet something to improve: [...] > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > >Assembler

[PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 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

Re: [PATCH] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread kernel test robot
Hi Christophe, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on powerpc/fixes linus/master v6.1 next-20221216] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use