Re: [PATCH 2/6] powerpc: Provide syscall wrapper

2022-06-15 Thread Rohan McLure
> Le 01/06/2022 à 10:29, Christophe Leroy a écrit : >> Le 01/06/2022 à 07:48, Rohan McLure a écrit : >>> [Vous ne recevez pas souvent de courriers de la part de >>> rmcl...@linux.ibm.com. Découvrez pourquoi cela peut être important à >>> l'adresse https://aka.ms/LearnAboutSenderIdentification.]

Re: [PATCH] kexec: replace crash_mem_range with range

2022-06-15 Thread Li Chen
Hi Baoquan, On Wed, 15 Jun 2022 19:03:53 -0700 Baoquan He wrote > On 06/14/22 at 10:04pm, Li Chen wrote: > > From: Li Chen > > > > We already have struct range, so just use it. > > Looks good, have you tested it? No, I don't have ppc machine, just pass compile on x86.

Re: [PATCH] kexec: replace crash_mem_range with range

2022-06-15 Thread Baoquan He
On 06/14/22 at 10:04pm, Li Chen wrote: > From: Li Chen > > We already have struct range, so just use it. Looks good, have you tested it? > > Signed-off-by: Li Chen > --- > arch/powerpc/kexec/file_load_64.c | 2 +- > arch/powerpc/kexec/ranges.c | 8 > include/linux/kexec.h

Re: [PATCH] kprobes: Enable tracing for mololithic kernel images

2022-06-15 Thread jar...@kernel.org
et>, "ebied...@xmission.com" , "aneesh.ku...@linux.ibm.com" , "Edgecombe, Rick P" , "bris...@redhat.com" , "wangkefeng.w...@huawei.com" , "ker...@esmil.dk" , "jniet...@gmail.com" , "paul.walms...@sifive.com" , "a...@kernel.org" , "w...@kernel.org" , "masahi...@kernel.org" , "Sakkinen,

Re: [PATCH] kprobes: Enable tracing for mololithic kernel images

2022-06-15 Thread Jarkko Sakkinen
r...@esmil.dk>, Jordan Niethe , Atish Patra , Alexei Starovoitov , Will Deacon , Masahiro Yamada , Jarkko Sakkinen , Sami Tolvanen , "Naveen N. Rao" , Marco Elver , Kees Cook , Steven Rostedt , Nathan Chancellor , Mark Brown , Borislav Petkov , Alexander Egorenkov , Thomas Bogendoerfer ,

[PATCH] arch: powerpc: platforms: 512x: Add missing of_node_put()

2022-06-15 Thread Liang He
In mpc5121_clk_init(), of_find_compatible_node() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: Liang He --- arch/powerpc/platforms/512x/clock-commonclk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] powerpc: Enable execve syscall exit tracepoint

2022-06-15 Thread Sumit Dubey2
Tested-by: Sumit Dubey2 mailto:sumit.dub...@ibm.com>>

[PATCH] arch: powerpc: platforms: 85xx: Add missing of_node_put in sgy_cts1000.c

2022-06-15 Thread Liang He
Signed-off-by: Liang He --- arch/powerpc/platforms/85xx/sgy_cts1000.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/platforms/85xx/sgy_cts1000.c b/arch/powerpc/platforms/85xx/sgy_cts1000.c index 98ae64075193..2a45b30852b2 100644 ---

Re: [PATCH] kprobes: Enable tracing for mololithic kernel images

2022-06-15 Thread h...@lst.de
luxnic.net" , "ebied...@xmission.com" , "aneesh.ku...@linux.ibm.com" , "Edgecombe, Rick P" , "bris...@redhat.com" , "wangkefeng.w...@huawei.com" , "ker...@esmil.dk" , "jniet...@gmail.com" , "paul.walms...@sifive.com" , "a...@kernel.org" , "w...@kernel.org" , "masahi...@kernel.org" ,

Re: [PATCH 23/36] arm64,smp: Remove trace_.*_rcuidle() usage

2022-06-15 Thread Marc Zyngier
ry.no...@gmail.com, ulli.kr...@googlemail.com, vgu...@kernel.org, linux-...@vger.kernel.org, mon...@monstr.eu, rost...@goodmis.org, r...@vger.kernel.org, b...@alien8.de, bc...@quicinc.com, tsbog...@alpha.franken.de, linux-par...@vger.kernel.org, sudeep.ho...@arm.com, shawn...@kernel.org,

Re: [PATCH 34.5/36] cpuidle,omap4: Push RCU-idle into omap4_enter_lowpower()

2022-06-15 Thread Tony Lindgren
linux.intel.com, Arnd Bergmann , ulli.kr...@googlemail.com, vgu...@kernel.org, linux-...@vger.kernel.org, j...@joshtriplett.org, rost...@goodmis.org, r...@vger.kernel.org, b...@alien8.de, bc...@quicinc.com, tsbog...@alpha.franken.de, linux-par...@vger.kernel.org, sudeep.ho...@arm.com,

[PATCH] kexec: replace crash_mem_range with range

2022-06-15 Thread Li Chen
From: Li Chen We already have struct range, so just use it. Signed-off-by: Li Chen --- arch/powerpc/kexec/file_load_64.c | 2 +- arch/powerpc/kexec/ranges.c | 8 include/linux/kexec.h | 7 ++- kernel/kexec_file.c | 2 +- 4 files changed, 8

Re: [PATCH 16/36] rcu: Fix rcu_idle_exit()

2022-06-15 Thread Paul E. McKenney
, Arnd Bergmann , ulli.kr...@googlemail.com, vgu...@kernel.org, linux-...@vger.kernel.org, j...@joshtriplett.org, rost...@goodmis.org, r...@vger.kernel.org, b...@alien8.de, bc...@quicinc.com, tsbog...@alpha.franken.de, linux-par...@vger.kernel.org, sudeep.ho...@arm.com, shawn...@kernel.org,

Re: [PATCH 34.5/36] cpuidle,omap4: Push RCU-idle into omap4_enter_lowpower()

2022-06-15 Thread Peter Zijlstra
rndb.de>, ulli.kr...@googlemail.com, vgu...@kernel.org, linux-...@vger.kernel.org, j...@joshtriplett.org, rost...@goodmis.org, r...@vger.kernel.org, b...@alien8.de, bc...@quicinc.com, tsbog...@alpha.franken.de, linux-par...@vger.kernel.org, sudeep.ho...@arm.com, shawn...@kernel.org,

Re: [PATCH v2 0/4] pseries-wdt: initial support for H_WATCHDOG-based watchdog timers

2022-06-15 Thread Daniel Henrique Barboza
Hi, I tried this series out with mainline QEMU built with Alexey's patch [1] and I wasn't able to get it to work. I'm using a simple QEMU command line booting a fedora36 guest in a Power9 boston host: sudo ./qemu-system-ppc64 \ -M

[PATCH] powerpc: Merge hardirq stack and softirq stack

2022-06-15 Thread Christophe Leroy
__do_IRQ() doesn't switch on hardirq stack if we are on softirq stack. do_softirq() bail out early without doing anything when already in an interrupt. invoke_softirq() is on task_stack when it calls do_softirq_own_stack(). So there are neither situation where we switch from hardirq stack to

Re: [RFC PATCH v2 0/7] objtool: Enable and implement --mcount option on powerpc

2022-06-15 Thread Christophe Leroy
Le 25/05/2022 à 20:12, Sathvika Vasireddy a écrit : > > On 25/05/22 23:09, Christophe Leroy wrote: >> Hi Sathvika, >> >> Le 25/05/2022 à 12:14, Sathvika Vasireddy a écrit : >>> Hi Christophe, >>> >>> On 24/05/22 18:47, Christophe Leroy wrote: This draft series adds PPC32 support to

Re: [PATCH] arch/*: Disable softirq stacks on PREEMPT_RT.

2022-06-15 Thread Arnd Bergmann
On Wed, Jun 15, 2022 at 8:57 AM Christoph Hellwig wrote: > > On Tue, Jun 14, 2022 at 08:18:14PM +0200, Sebastian Andrzej Siewior wrote: > > Disable the unused softirqs stacks on PREEMPT_RT to safe some memory and > > s/safe/save/ Applied to the asm-generic tree with the above fixup, thanks!

Re: [PATCH 24/30] panic: Refactor the panic path

2022-06-15 Thread Guilherme G. Piccoli
Perfect Petr, thanks for your feedback! I'll be out for some weeks, but after that what I'm doing is to split the series in 2 parts: (a) The general fixes, which should be reviewed by subsystem maintainers and even merged individually by them. (b) The proper panic refactor, which includes the

Re: [PATCH 2/6] powerpc: Provide syscall wrapper

2022-06-15 Thread Arnd Bergmann
On Wed, Jun 15, 2022 at 3:47 AM Rohan McLure wrote: > > On 3 Jun 2022, at 7:04 pm, Arnd Bergmann wrote: > > On Wed, Jun 1, 2022 at 7:48 AM Rohan McLure wrote: > > What is the benefit of having a separate set of macros for this? I think > > that > > adds more complexity than it saves in the

Re: [PATCH] arch/*: Disable softirq stacks on PREEMPT_RT.

2022-06-15 Thread Christoph Hellwig
On Tue, Jun 14, 2022 at 08:18:14PM +0200, Sebastian Andrzej Siewior wrote: > Disable the unused softirqs stacks on PREEMPT_RT to safe some memory and s/safe/save/

Re: [PATCHv2 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

2022-06-15 Thread Christophe Leroy
Le 15/06/2022 à 07:57, Wang Wenhu a écrit : > Freescale mpc85xx l2-cache could be optionally configured as SRAM partly > or fully. Users can make use of it as a block of independent memory that > offers special usage, such as for debuging or other critical status info > storage, which keeps

Re: [PATCHv2 1/2] mm: eliminate ifdef of HAVE_IOREMAP_PROT in .c files

2022-06-15 Thread Christoph Hellwig
Did you verify that all architectures actually provide a ioremap_prot prototype? The header situation for ioremap* is a mess unfortunately.

Re: [PATCHv2 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

2022-06-15 Thread Christophe Leroy
Le 15/06/2022 à 07:57, Wang Wenhu a écrit : > Freescale mpc85xx l2-cache could be optionally configured as SRAM partly > or fully. Users can make use of it as a block of independent memory that > offers special usage, such as for debuging or other critical status info > storage, which keeps

Re: [PATCHv2 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

2022-06-15 Thread Christoph Hellwig
As pointed out last time: uio is the wrong interface to expose sram, and any kind of ioremap is the wrong way to map it.

Re: 回复: [PATCH 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

2022-06-15 Thread Christophe Leroy
Le 14/06/2022 à 08:09, Wenhu Wang a écrit : >>> + >>> +static const struct vm_operations_struct uio_cache_sram_vm_ops = { >>> +#ifdef CONFIG_HAVE_IOREMAP_PROT >> >> Same here. >> > > I tried to eliminate it in mainline > See: [PATCH v2] mm: eliminate ifdef of HAVE_IOREMAP_PROT in .c files >

[PATCHv2 2/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver implementation

2022-06-15 Thread Wang Wenhu
Freescale mpc85xx l2-cache could be optionally configured as SRAM partly or fully. Users can make use of it as a block of independent memory that offers special usage, such as for debuging or other critical status info storage, which keeps consistently even when the whole system crashed.

[PATCHv2 1/2] mm: eliminate ifdef of HAVE_IOREMAP_PROT in .c files

2022-06-15 Thread Wang Wenhu
It is recommended in the "Conditional Compilation" chapter of kernel coding-style documentation that preprocessor conditionals should not be used in .c files wherever possible. As for the macro CONFIG_HAVE_IOREMAP_PROT, now it's a proper chance to eliminate it in .c files which are referencers.

[PATCHv2 0/2] uio:powerpc:mpc85xx: l2-cache-sram uio driver

2022-06-15 Thread Wang Wenhu
This series try to push an uio driver which works on freescale mpc85xx to configure its l2-cache-sram as a block of SRAM and enable user level application access of the SRAM. 1/2: For coding-style consideration of macro CONFIG_HAVE_IOREMAP_PORT; 2/2: Implementation of the uio driver. This is the