Re: [PATCH 1/3] powerpc/vdso: augment VDSO32 functions to support 64 bits build

2021-12-21 Thread Christophe Leroy
Le 21/12/2021 à 20:36, Segher Boessenkool a écrit : > On Tue, Dec 21, 2021 at 05:49:33PM +, Christophe Leroy wrote: >> diff --git a/arch/powerpc/kernel/vdso32/datapage.S >> b/arch/powerpc/kernel/vdso32/datapage.S >> index 65244416ab94..db8e167f0166 100644 >> --- a/arch/powerpc/kernel/vdso32/

Re: [PATCH 4/8] sched: powerpc: Remove unused TASK_SIZE_OF

2021-12-21 Thread Christophe Leroy
Le 22/12/2021 à 04:02, Guo Ren a écrit : > On Wed, Dec 22, 2021 at 2:43 AM Christophe Leroy > wrote: >> >> >> >> Le 21/12/2021 à 18:00, guo...@kernel.org a écrit : >>> From: Guo Ren >>> >>> This macro isn't used in Linux sched, now. Delete in >>> include/linux/sched.h and arch's include/asm. >>

Re: [PATCH 4/8] sched: powerpc: Remove unused TASK_SIZE_OF

2021-12-21 Thread Guo Ren
On Wed, Dec 22, 2021 at 2:43 AM Christophe Leroy wrote: > > > > Le 21/12/2021 à 18:00, guo...@kernel.org a écrit : > > From: Guo Ren > > > > This macro isn't used in Linux sched, now. Delete in > > include/linux/sched.h and arch's include/asm. > > > > Signed-off-by: Guo Ren > > --- > > arch/po

[powerpc:merge] BUILD SUCCESS 6963dbc89ab1337394f51957136084c8854b6e7f

2021-12-21 Thread kernel test robot
11220 i386 randconfig-a012-20211221 i386 randconfig-a011-20211221 i386 randconfig-a013-20211221 i386 randconfig-a014-20211221 i386 randconfig-a016-20211221 i386 randconfig-a015-20211221 x86_64 randconfig-a00

[powerpc:next-test] BUILD SUCCESS WITH WARNING 9c4c79c450672b18889a42e6b16a0254ed9721e0

2021-12-21 Thread kernel test robot
11220 i386 randconfig-a004-20211220 i386 randconfig-a002-20211220 i386 randconfig-a003-20211220 i386 randconfig-a005-20211220 i386 randconfig-a001-20211220 arc randconfig-r043-20211220 arc randconfig-r043-2021

[powerpc:next] BUILD SUCCESS 18678591846d668649fbd4f87b4a4c470818d386

2021-12-21 Thread kernel test robot
randconfig-a002-20211220 i386 randconfig-a003-20211220 i386 randconfig-a005-20211220 i386 randconfig-a001-20211220 arc randconfig-r043-20211220 arc randconfig-r043-20211221 riscvrandconfig-r042-20211221

[powerpc:fixes-test] BUILD SUCCESS 8d84fca4375e3c35dadc16b8c7eee6821b2a575c

2021-12-21 Thread kernel test robot
-a011-20211219 i386 randconfig-a016-20211219 i386 randconfig-a015-20211219 i386 randconfig-a014-20211219 i386 randconfig-a012-20211219 arc randconfig-r043-20211221 riscvrandconfig-r042-20211221 s390

Re: [PATCH] powerpc/cell/axon_msi: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-12-21 Thread Michael Ellerman
cgel@gmail.com writes: > From: Changcheng Deng > > Fix the following coccicheck warning: > ./arch/powerpc/platforms/cell/axon_msi.c: 456: 0-23: WARNING: fops_msic > should be defined with DEFINE_DEBUGFS_ATTRIBUTE > > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for > debugf

Re: [PATCH 1/3] powerpc/vdso: augment VDSO32 functions to support 64 bits build

2021-12-21 Thread Segher Boessenkool
On Tue, Dec 21, 2021 at 05:49:33PM +, Christophe Leroy wrote: > diff --git a/arch/powerpc/kernel/vdso32/datapage.S > b/arch/powerpc/kernel/vdso32/datapage.S > index 65244416ab94..db8e167f0166 100644 > --- a/arch/powerpc/kernel/vdso32/datapage.S > +++ b/arch/powerpc/kernel/vdso32/datapage.S > @

[Bug 215381] BUG: Unable to handle kernel data access on read at 0x6600cc00000004

2021-12-21 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215381 --- Comment #1 from Erhard F. (erhar...@mailbox.org) --- Created attachment 300107 --> https://bugzilla.kernel.org/attachment.cgi?id=300107&action=edit kernel .config (kernel 5.15.10, Talos II) -- You may reply to this email to add a comment.

[Bug 215381] New: BUG: Unable to handle kernel data access on read at 0x6600cc00000004

2021-12-21 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215381 Bug ID: 215381 Summary: BUG: Unable to handle kernel data access on read at 0x6600cc0004 Product: Platform Specific/Hardware Version: 2.5 Kernel Version: 5.15.10 Ha

Re: [PATCH 1/2] mm/cma: provide option to opt out from exposing pages on activation failure

2021-12-21 Thread David Hildenbrand
On 20.12.21 20:34, Hari Bathini wrote: > Commit 072355c1cf2d ("mm/cma: expose all pages to the buddy if > activation of an area fails") started exposing all pages to buddy > allocator on CMA activation failure. But there can be CMA users that > want to handle the reserved memory differently on CMA

Re: [PATCH 4/8] sched: powerpc: Remove unused TASK_SIZE_OF

2021-12-21 Thread Christophe Leroy
Le 21/12/2021 à 18:00, guo...@kernel.org a écrit : > From: Guo Ren > > This macro isn't used in Linux sched, now. Delete in > include/linux/sched.h and arch's include/asm. > > Signed-off-by: Guo Ren > --- > arch/powerpc/include/asm/task_size_64.h | 6 ++ > 1 file changed, 2 insertions(

Re: [PATCH 1/8] sched: Remove unused TASK_SIZE_OF

2021-12-21 Thread Arnd Bergmann
On Tue, Dec 21, 2021 at 6:00 PM wrote: > > From: Guo Ren > > This macro isn't used in Linux, now. Delete in include/linux/sched.h > and arch's include/asm. This would confuse people who are > implementing the COMPAT feature for architecture. > > Signed-off-by: Guo Ren It would help to list how

[PATCH 3/3] powerpc/vdso: Merge vdso64 and vdso32 into a single directory

2021-12-21 Thread Christophe Leroy
merge vdso64 into vdso32 and rename it vdso. Signed-off-by: Christophe Leroy --- arch/powerpc/Makefile | 4 +- arch/powerpc/kernel/Makefile | 6 +- .../kernel/{vdso64 => vdso}/.gitignore| 2 + arch/powerpc/kernel/{vdso32 => vdso}/Makefile | 35

[PATCH 2/3] powerpc/vdso: Rework VDSO32 makefile to add a prefix to object files

2021-12-21 Thread Christophe Leroy
In order to merge vdso32 and vdso64 build in following patch, rework Makefile is order to add -32 suffix to VDSO32 object files. Also change sigtramp.S to sigtramp32.S as VDSO64 sigtramp.S is too different to be squashed into VDSO32 sigtramp.S at the first place. gen_vdso_offsets.sh also becomes

[PATCH 1/3] powerpc/vdso: augment VDSO32 functions to support 64 bits build

2021-12-21 Thread Christophe Leroy
VDSO64 cacheflush.S datapage.S gettimeofday.S and vgettimeofday.c are very similar to their VDSO32 counterpart. VDSO32 counterpart is already more complete than the VDSO64 version as it supports both PPC32 vdso and 32 bits VDSO for PPC64. Use compat macros wherever necessary in PPC32 files so tha

[PATCH 8/8] sched: mips: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren --- arch/mips/include/asm/processor.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/process

[PATCH 7/8] sched: arm64: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren --- arch/arm64/include/asm/processor.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/proce

[PATCH 6/8] sched: parisc: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren --- arch/parisc/include/asm/processor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/parisc/include/asm/processor.h b/arch/pari

[PATCH 5/8] sched: s390: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren --- arch/s390/include/asm/processor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/s390/include/asm/processor.h b/arch/s390/inc

[PATCH 4/8] sched: powerpc: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren --- arch/powerpc/include/asm/task_size_64.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/task_size_64.h

[PATCH 3/8] sched: sparc: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren --- arch/sparc/include/asm/processor_64.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/sparc/include/asm/processor_64.h b/arch/sparc/include/asm/proc

[PATCH 2/8] sched: x86: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren --- arch/x86/include/asm/page_64_types.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_t

[PATCH 1/8] sched: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux, now. Delete in include/linux/sched.h and arch's include/asm. This would confuse people who are implementing the COMPAT feature for architecture. Signed-off-by: Guo Ren --- include/linux/sched.h | 4 1 file changed, 4 deletions(-) diff --git a

[PATCH 0/8] sched: Remove unused TASK_SIZE_OF

2021-12-21 Thread guoren
From: Guo Ren This macro isn't used in Linux, now. Delete in include/linux/sched.h and arch's include/asm. This would confuse people who are implementing the COMPAT feature for architecture. Guo Ren (8): sched: Remove unused TASK_SIZE_OF sched: x86: Remove unused TASK_SIZE_OF sched: sparc:

[PATCH] powerpc/cell/axon_msi: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-12-21 Thread cgel . zte
From: Changcheng Deng Fix the following coccicheck warning: ./arch/powerpc/platforms/cell/axon_msi.c: 456: 0-23: WARNING: fops_msic should be defined with DEFINE_DEBUGFS_ATTRIBUTE Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for debugfs files. Reported-by: Zeal Robot Signed

Re: [PATCH 13/17] kernel/cpu: add num_possible_cpus counter

2021-12-21 Thread Peter Zijlstra
On Sat, Dec 18, 2021 at 01:20:09PM -0800, Yury Norov wrote: > Similarly to the online cpus, the cpu_possible_mask is actively used > in the kernel. This patch adds a counter for possible cpus, so that > users that call num_possible_cpus() would know the result immediately, > instead of calling the

Re: [PATCH 14/17] kernel/cpu: add num_present_cpu counter

2021-12-21 Thread Peter Zijlstra
On Sat, Dec 18, 2021 at 01:20:10PM -0800, Yury Norov wrote: > +EXPORT_SYMBOL(set_cpu_present); NAK

Re: [PATCH 15/17] kernel/cpu: add num_active_cpu counter

2021-12-21 Thread Peter Zijlstra
On Sat, Dec 18, 2021 at 01:20:11PM -0800, Yury Norov wrote: > Similarly to the online cpus, the cpu_active_mask is actively used > in the kernel. This patch adds a counter for active cpus, so that > users that call num_active_cpus() would know the result immediately, > instead of calling the bitmap

Re: [PATCH] tpm: Fix kexec crash due to access to ops NULL pointer (powerpc)

2021-12-21 Thread Stefan Berger
On 12/21/21 09:01, Stefan Berger wrote: On 12/21/21 03:47, Jarkko Sakkinen wrote: On Sat, Dec 11, 2021 at 08:28:04PM -0500, Stefan Berger wrote: Fix the following crash on kexec by checking chip->ops for a NULL pointer in tpm_chip_start() and returning an error code if this is the case. BU

Re: [PATCH] tpm: Fix kexec crash due to access to ops NULL pointer (powerpc)

2021-12-21 Thread Stefan Berger
On 12/21/21 03:47, Jarkko Sakkinen wrote: On Sat, Dec 11, 2021 at 08:28:04PM -0500, Stefan Berger wrote: Fix the following crash on kexec by checking chip->ops for a NULL pointer in tpm_chip_start() and returning an error code if this is the case. BUG: Kernel NULL pointer dereference on read

[PATCH 1/3] powerpc/64s: Mask NIP before checking against SRR0

2021-12-21 Thread Michael Ellerman
When CONFIG_PPC_RFI_SRR_DEBUG=y we check that NIP and SRR0 match when returning from interrupts. This can trigger falsely if NIP has either of its two low bits set via sigreturn or ptrace, while SRR0 has its low two bits masked in hardware. As a quick fix make sure to mask the low bits before doin

[PATCH 2/3] powerpc/64s: Use EMIT_WARN_ENTRY for SRR debug warnings

2021-12-21 Thread Michael Ellerman
When CONFIG_PPC_RFI_SRR_DEBUG=y we check the SRR values before returning from interrupts. This is done in asm using EMIT_BUG_ENTRY, and passing BUGFLAG_WARNING. However that fails to create an exception table entry for the warning, and so do_program_check() fails the exception table search and pro

[PATCH 3/3] selftests/powerpc: Add a test of sigreturning to an unaligned address

2021-12-21 Thread Michael Ellerman
Add a test of sigreturning to an unaligned address (low two bits set). This should have no effect because the hardware will mask those bits. However it previously falsely triggered a warning when CONFIG_PPC_RFI_SRR_DEBUG=y. Signed-off-by: Michael Ellerman --- .../selftests/powerpc/signal/.gitign

Re: [PATCH v3 0/6] powerpc/64s: interrupt speedups

2021-12-21 Thread Michael Ellerman
On Thu, 23 Sep 2021 00:54:46 +1000, Nicholas Piggin wrote: > Here's a few stragglers. The first patch was submitted already but had > some bugs with unrecoverable exceptions on HPT (current->blah being > accessed before MSR[RI] was enabled). Those should be fixed now. > > The others are generally

Re: [PATCH] powerpc/pseries/vas: Don't print an error when VAS is unavailable

2021-12-21 Thread Michael Ellerman
On Fri, 26 Nov 2021 15:21:33 +1000, Nicholas Piggin wrote: > KVM does not support VAS so guests always print a useless error on boot > > vas: HCALL(398) error -2, query_type 0, result buffer 0x57f2000 > > Change this to only print the message if the error is not H_FUNCTION. > > > [...] App

Re: [PATCH] powerpc/pseries: use slab context cpumask allocation in CPU hotplug init

2021-12-21 Thread Michael Ellerman
On Fri, 5 Nov 2021 23:29:23 +1000, Nicholas Piggin wrote: > Slab is up at this point, using the bootmem allocator triggers a > warning. Switch to using the regular cpumask allocator. > > Applied to powerpc/next. [1/1] powerpc/pseries: use slab context cpumask allocation in CPU hotplug init

Re: [PATCH]selftests/powerpc: skip tests for unavailable mitigations.

2021-12-21 Thread Michael Ellerman
On Mon, 13 Dec 2021 22:12:23 +0530, Sachin Sant wrote: > Mitigation patching test iterates over a set of mitigations irrespective > of whether a certain mitigation is supported/available in the kernel. > This causes following messages on a kernel where some mitigations > are unavailable: > > Spa

Re: [PATCH 0/4] perf: Add new macros for mem_hops field

2021-12-21 Thread Michael Ellerman
On Mon, 6 Dec 2021 14:47:45 +0530, Kajol Jain wrote: > Patchset adds new macros for mem_hops field which can be > used to represent remote-node, socket and board level details. > > Currently the code had macro for HOPS_0, which corresponds > to data coming from another core but same node. > Add ne

Re: [PATCH] tpm: Fix kexec crash due to access to ops NULL pointer (powerpc)

2021-12-21 Thread Jarkko Sakkinen
On Sat, Dec 11, 2021 at 08:28:04PM -0500, Stefan Berger wrote: > Fix the following crash on kexec by checking chip->ops for a NULL pointer > in tpm_chip_start() and returning an error code if this is the case. > > BUG: Kernel NULL pointer dereference on read at 0x0060 > Faulting instruction ad

Re: [PATCH kernel v4] KVM: PPC: Merge powerpc's debugfs entry content into generic entry

2021-12-21 Thread Cédric Le Goater
- xive->dentry = debugfs_create_file(name, S_IRUGO, arch_debugfs_dir, + xive->dentry = debugfs_create_file("xive", S_IRUGO, xive->kvm->debugfs_dentry, xive, &xive_debug_fops); The KVM XIVE device implements a "xics-on-xive" interface, the X