[PATCH] powerpc: Pass correct CPU reference to assembler

2022-12-15 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 -I./arch/powerpc/inclu

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

2022-12-15 Thread Hari Bathini
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 linux,drconf-usable-memory property" "Error setting up usable

Re: linux-next: manual merge of the tip tree with the powerpc-objtool tree

2022-12-15 Thread Stephen Rothwell
Hi all, On Thu, 24 Nov 2022 12:29:31 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the tip tree got a conflict in: > > tools/objtool/check.c > > between commit: > > efb11fdb3e1a ("objtool: Fix SEGFAULT") > > from the powerpc-objtool tree and commit: > > dbcdbdfdf137 (

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

2022-12-15 Thread Pali Rohár
Hello! On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile ... > @@ -166,11 +153,12 @@ CC_FLAGS_FTRACE += -mprofile-kernel > endif > endif > > -CFLAGS-$(CONFIG_TARGET_CPU_BOOL) += $(call > cc-option,-mcpu=$(CONFIG_TARGET_

Re: [PATCH] powerpc/64: Implement arch_within_stack_frames

2022-12-15 Thread Segher Boessenkool
On Thu, Dec 15, 2022 at 10:29:38AM -0600, Segher Boessenkool wrote: > The kernel does not do any of the more > problematic cases I think, but no promises (dynamic stack alignment, > recursive functions Before people get scared: I meant *nested* functions. With a static chain and all that :-) Se

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

2022-12-15 Thread Sean Anderson
On 12/15/22 11:12, Camelia Alexandra Groza wrote: >> -Original Message- >> From: Sean Anderson >> Sent: Thursday, November 3, 2022 23:29 >> To: David S . Miller ; net...@vger.kernel.org >> Cc: devicet...@vger.kernel.org; Michael Ellerman ; >> linux-ker...@vger.kernel.org; Rob Herring ; >>

Re: [PATCH] powerpc/64: Implement arch_within_stack_frames

2022-12-15 Thread Segher Boessenkool
On Thu, Dec 15, 2022 at 10:52:35AM +1000, Nicholas Piggin wrote: > On Thu Dec 15, 2022 at 10:17 AM AEST, Segher Boessenkool wrote: > > On Wed, Dec 14, 2022 at 09:39:25PM +1000, Nicholas Piggin wrote: > > > What about just copying x86's implementation including using > > > __builtin_frame_address(1/

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

2022-12-15 Thread Camelia Alexandra Groza
> -Original Message- > From: Sean Anderson > Sent: Thursday, November 3, 2022 23:29 > To: David S . Miller ; net...@vger.kernel.org > Cc: devicet...@vger.kernel.org; Michael Ellerman ; > linux-ker...@vger.kernel.org; Rob Herring ; > Christophe Leroy ; linuxppc- > d...@lists.ozlabs.org; Nic

[linux-next:master] BUILD REGRESSION 459c73db4069c27c1d4a0e20d055b837396364b8

2022-12-15 Thread kernel test robot
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: https://lore.kernel.org/oe-kbuild-all/202211242120.mzzvguln-...@intel.com https

Re: Mass-building defconfigs: many fail with assembler errors

2022-12-15 Thread Michael Ellerman
Jan-Benedict Glaw writes: > On Tue, 2022-12-13 14:49:20 +1100, Michael Ellerman > wrote: > [...] >> Both treeboot-akebono.c and treeboot-currituck.c are for 476 so should >> probably be built with -mcpu=476. eg: >> >> diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile >> index

[PATCH] powerpc/32: Curb objtool unannotated intra-function call warning

2022-12-15 Thread Sathvika Vasireddy
objtool throws the following warning: arch/powerpc/kexec/relocate_32.o: warning: objtool: .text+0x2bc: unannotated intra-function call Fix this warning by annotating intra-function call, using ANNOTATE_INTRA_FUNCTION_CALL macro, to indicate that the branch target is valid. Reported-by: kernel te

Re: Mass-building defconfigs: many fail with assembler errors

2022-12-15 Thread Jan-Benedict Glaw
On Wed, 2022-12-14 10:00:25 +0100, Jan-Benedict Glaw wrote: > On Tue, 2022-12-13 11:00:45 +0100, Jan-Benedict Glaw > wrote: > > On Mon, 2022-12-12 18:26:13 -0600, Segher Boessenkool > > wrote: > > > On Mon, Dec 12, 2022 at 10:51:17PM +0100, Jan-Benedict Glaw wrote: > > > > Compiler ICE

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

2022-12-15 Thread Sourabh Jain
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 linux,drconf-usable-memory property" "Error setting up usable-memory property for kdump kernel" This happens