Re: [PATCH 17/21] mm: free_area_init: allow defining max_zone_pfn in descending order

2020-04-23 Thread Baoquan He
On 04/23/20 at 08:55am, Mike Rapoport wrote: > On Thu, Apr 23, 2020 at 10:57:20AM +0800, Baoquan He wrote: > > On 04/23/20 at 10:53am, Baoquan He wrote: > > > On 04/12/20 at 10:48pm, Mike Rapoport wrote: > > > > From: Mike Rapoport > > > > > > > > Some architectures (e.g. ARC) have the

[Bug 206695] kmemleak reports leaks in drivers/macintosh/windfarm

2020-04-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206695 Dennis Clarke (dcla...@blastwave.org) changed: What|Removed |Added CC|

[PATCH v3,0/5] misc: generic user level sram dynamic access support

2020-04-23 Thread Wang Wenhu
This series add a new misc module that act as an interface for user level applications to access SRAM memory dynamically. Freescale 85xx Cache-SRAM is exact an example. This is extremely helpful for the user level applications that require high performance memory accesses, such as some embedded

[PATCH v3, 5/5] powerpc: sysdev: support userspace access of fsl_85xx_sram

2020-04-23 Thread Wang Wenhu
New module which registers its memory allocation and free APIs to the sram_dynamic module, which would create a device of struct sram_device type to act as an interface for user level applications to access the backend hardware device, fsl_85xx_cache_sram, which is drived by the

Re: [PATCH v3 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-23 Thread Ravi Bangoria
Hi Christophe, @@ -101,14 +129,20 @@ static bool is_ptrace_bp(struct perf_event *bp)    */   void arch_unregister_hw_breakpoint(struct perf_event *bp)   { +    int i; + This declaration should be in the block using it.   /*    * If the breakpoint is unregistered between a

Re: [PATCH v3 13/16] powerpc/watchpoint: Prepare handler to handle more than one watcnhpoint

2020-04-23 Thread Christophe Leroy
Hi Ravi, Le 24/04/2020 à 05:32, Ravi Bangoria a écrit : Hi Christophe, @@ -101,14 +129,20 @@ static bool is_ptrace_bp(struct perf_event *bp)    */   void arch_unregister_hw_breakpoint(struct perf_event *bp)   { +    int i; + This declaration should be in the block using it.   /*   

[PATCH v3, 1/5] powerpc: sysdev: fix compile error for fsl_85xx_l2ctlr

2020-04-23 Thread Wang Wenhu
Include "linux/of_address.h" to fix the compile error for mpc85xx_l2ctlr_of_probe() when compiling fsl_85xx_cache_sram.c. CC arch/powerpc/sysdev/fsl_85xx_l2ctlr.o arch/powerpc/sysdev/fsl_85xx_l2ctlr.c: In function ‘mpc85xx_l2ctlr_of_probe’: arch/powerpc/sysdev/fsl_85xx_l2ctlr.c:90:11:

[PATCH v3, 2/5] powerpc: sysdev: fix compile error for fsl_85xx_cache_sram

2020-04-23 Thread Wang Wenhu
Include linux/io.h into fsl_85xx_cache_sram.c to fix the implicit-declaration compile error when building Cache-Sram. arch/powerpc/sysdev/fsl_85xx_cache_sram.c: In function ‘instantiate_cache_sram’: arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:26: error: implicit declaration of function

Re: [PATCH] lib/mpi: Fix building for powerpc with clang

2020-04-23 Thread Michael Ellerman
Nathan Chancellor writes: > On Tue, Apr 14, 2020 at 11:57:31PM +1000, Herbert Xu wrote: >> On Mon, Apr 13, 2020 at 12:50:42PM -0700, Nathan Chancellor wrote: >> > 0day reports over and over on an powerpc randconfig with clang: >> > >> > lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a

[PATCH v3 1/3] powerpc/rtas: Export rtas_error_rc

2020-04-23 Thread Sam Bobroff
Export rtas_error_rc() so that it can be used by other users of rtas_call() (which is already exported). Signed-off-by: Sam Bobroff --- v3 * New in this version. arch/powerpc/include/asm/rtas.h | 1 + arch/powerpc/kernel/rtas.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)

[PATCH v3 0/3] powerpc/eeh: Release EEH device state synchronously

2020-04-23 Thread Sam Bobroff
Hi everyone, Here are some fixes and cleanups that have come from other work but that I think stand on their own. Only one patch ("Release EEH device state synchronously", suggested by Oliver O'Halloran) is a significant change: it moves the cleanup of some EEH device data out of the (possibly

[PATCH v3 3/3] powerpc/eeh: Release EEH device state synchronously

2020-04-23 Thread Sam Bobroff
EEH device state is currently removed (by eeh_remove_device()) during the device release handler, which is invoked as the device's reference count drops to zero. This may take some time, or forever, as other threads may hold references. However, the PCI device state is released synchronously by

[PATCH v3 2/3] powerpc/eeh: fix pseries_eeh_configure_bridge()

2020-04-23 Thread Sam Bobroff
If a device is hot unplgged during EEH recovery, it's possible for the RTAS call to ibm,configure-pe in pseries_eeh_configure() to return parameter error (-3), however negative return values are not checked for and this leads to an infinite loop. Fix this by correctly bailing out on negative

[PATCH v3,4/5] misc: sram_dynamic for user level SRAM access

2020-04-23 Thread Wang Wenhu
A generic User-Kernel interface module that allows a misc device created when a backend SRAM hardware device driver registers its APIs to support file operations of ioctl and mmap for user space applications to allocate SRAM memory, mmap it to process address space and free it then after. It is

Re: [PATCH v3,5/5] powerpc: sysdev: support userspace access of fsl_85xx_sram

2020-04-23 Thread Christophe Leroy
Le 24/04/2020 à 04:45, Wang Wenhu a écrit : New module which registers its memory allocation and free APIs to the sram_dynamic module, which would create a device of struct sram_device type to act as an interface for user level applications to access the backend hardware device,

Re: [PATCH 3/3] powerpc/module_64: Use special stub for _mcount() with -mprofile-kernel

2020-04-23 Thread Qian Cai
> On Apr 21, 2020, at 1:35 PM, Naveen N. Rao > wrote: > > Since commit c55d7b5e64265f ("powerpc: Remove STRICT_KERNEL_RWX > incompatibility with RELOCATABLE"), powerpc kernels with > -mprofile-kernel can crash in certain scenarios with a trace like below: > >BUG: Unable to handle kernel

[PATCH v3, 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-23 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d

[Bug 199471] [Bisected][Regression] windfarm_pm* no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set

2020-04-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 --- Comment #23 from Michael Ellerman (mich...@ellerman.id.au) --- The memory leak is a separate issue, see bug #206695. Can anyone verify that bcf3588d8ed fixes the original issue? -- You are receiving this mail because: You are watching the

Re: [PATCH v3 12/16] powerpc/watchpoint: Use builtin ALIGN*() macros

2020-04-23 Thread Ravi Bangoria
Hi Christophe,   max_len = DAWR_MAX_LEN;   /* DAWR region can't cross 512 bytes boundary */ -    if ((start_addr >> 9) != (end_addr >> 9)) +    if ((start_addr >> 9) != ((end_addr - 1) >> 9)) What about: if (ALIGN(start_addr, SZ_512M) != ALIGN(end - 1, SZ_512M))

Re: [PATCH v3,4/5] misc: sram_dynamic for user level SRAM access

2020-04-23 Thread Christophe Leroy
Le 24/04/2020 à 04:45, Wang Wenhu a écrit : A generic User-Kernel interface module that allows a misc device created when a backend SRAM hardware device driver registers its APIs to support file operations of ioctl and mmap for user space applications to allocate SRAM memory, mmap it to

[PATCH v8 1/3] Self Save: Introducing Support for SPR Self Save

2020-04-23 Thread Pratik Rajesh Sampat
From: Prem Shanker Jha The commit is a merger of commits that makes the following changes: 1. Commit fixes some issues with code found during integration test - replacement of addi with xor instruction during self save API. - fixing instruction generation for MFMSR during self save -

Re: [PATCH 04/29] staging: media: ipu3: use vmap instead of reimplementing it

2020-04-23 Thread Sakari Ailus
On Tue, Apr 14, 2020 at 03:13:23PM +0200, Christoph Hellwig wrote: > Just use vmap instead of messing with vmalloc internals. > > Signed-off-by: Christoph Hellwig > Acked-by: Peter Zijlstra (Intel) Thanks! Acked-by: Sakari Ailus -- Sakari Ailus

[PATCH v8 2/3] API to verify the STOP API and image compatibility

2020-04-23 Thread Pratik Rajesh Sampat
From: Prem Shanker Jha Commit defines a new API primarily intended for OPAL to determine cpu register save API's compatibility with HOMER layout and self save restore. It can help OPAL determine if version of API integrated with OPAL is different from hostboot. Change-Id:

[PATCH v8 0/3] Support for Self Save API in OPAL

2020-04-23 Thread Pratik Rajesh Sampat
v7: https://lists.ozlabs.org/pipermail/skiboot/2020-April/016763.html Changelog v6 --> v7 1. Simplified approach. Instead of advertising support bitmask for each SPR, advertising support only for the presence of the new self-save API Complete design specification is detailed below in the

[PATCH v8 3/3] Self save API integration

2020-04-23 Thread Pratik Rajesh Sampat
The commit makes the self save API available outside the firmware by defining an OPAL wrapper. This wrapper has a similar interface to that of self restore and expects the cpu pir, SPR number, minus the value of that SPR to be passed in its paramters and returns OPAL_SUCCESS on success. It adds a

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Cornelia Huck
On Thu, 23 Apr 2020 11:01:43 +0800 Tianjia Zhang wrote: > On 2020/4/23 0:04, Cornelia Huck wrote: > > On Wed, 22 Apr 2020 17:58:04 +0200 > > Christian Borntraeger wrote: > > > >> On 22.04.20 15:45, Cornelia Huck wrote: > >>> On Wed, 22 Apr 2020 20:58:04 +0800 > >>> Tianjia Zhang wrote: >

[PATCH v8 0/1] powerpc/powernv: Introduce support and parsing for self-save API

2020-04-23 Thread Pratik Rajesh Sampat
v7: https://lkml.org/lkml/2020/4/16/247 Changelog v7 --> v8 Simplified kernel design. Introducing an approach which eliminates the need for having support and preference for SPRs that need to be saved. Instead a simple self-save property is advertised and if it exists then self-save is called

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Tianjia Zhang
On 2020/4/23 19:00, Christian Borntraeger wrote: On 23.04.20 12:58, Tianjia Zhang wrote: On 2020/4/23 18:39, Cornelia Huck wrote: On Thu, 23 Apr 2020 11:01:43 +0800 Tianjia Zhang wrote: On 2020/4/23 0:04, Cornelia Huck wrote: On Wed, 22 Apr 2020 17:58:04 +0200 Christian Borntraeger

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Christian Borntraeger
On 23.04.20 12:58, Tianjia Zhang wrote: > > > On 2020/4/23 18:39, Cornelia Huck wrote: >> On Thu, 23 Apr 2020 11:01:43 +0800 >> Tianjia Zhang wrote: >> >>> On 2020/4/23 0:04, Cornelia Huck wrote: On Wed, 22 Apr 2020 17:58:04 +0200 Christian Borntraeger wrote:    > On

Re: [musl] Powerpc Linux 'scv' system call ABI proposal take 2

2020-04-23 Thread Adhemerval Zanella
On 22/04/2020 23:36, Rich Felker wrote: > On Wed, Apr 22, 2020 at 04:18:36PM +1000, Nicholas Piggin wrote: >> Yeah I had a bit of a play around with musl (which is very nice code I >> must say). The powerpc64 syscall asm is missing ctr clobber by the way. >> Fortunately adding it doesn't

[Bug 206695] kmemleak reports leaks in drivers/macintosh/windfarm

2020-04-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206695 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|ASSIGNED|RESOLVED

Re: [PATCH v5 0/5] Track and expose idle PURR and SPURR ticks

2020-04-23 Thread Gautham R Shenoy
On Mon, Apr 20, 2020 at 03:46:35PM -0700, Tyrel Datwyler wrote: > On 4/7/20 1:47 AM, Gautham R. Shenoy wrote: > > From: "Gautham R. Shenoy" > > > > Hi, > > > > This is the fifth version of the patches to track and expose idle PURR > > and SPURR ticks. These patches are required by tools such as

[PATCH v8 1/1] powerpc/powernv: Introduce support and parsing for self-save API

2020-04-23 Thread Pratik Rajesh Sampat
This commit introduces and leverages the Self save API. The difference between self-save and self-restore is that the value to be saved for the SPR does not need to be passed to the call. Add the new Self Save OPAL API call in the list of OPAL calls. The device tree is parsed looking for the

Re: [PATCH v2 1/7] KVM: s390: clean up redundant 'kvm_run' parameters

2020-04-23 Thread Tianjia Zhang
On 2020/4/23 18:39, Cornelia Huck wrote: On Thu, 23 Apr 2020 11:01:43 +0800 Tianjia Zhang wrote: On 2020/4/23 0:04, Cornelia Huck wrote: On Wed, 22 Apr 2020 17:58:04 +0200 Christian Borntraeger wrote: On 22.04.20 15:45, Cornelia Huck wrote: On Wed, 22 Apr 2020 20:58:04 +0800

[Bug 206695] kmemleak reports leaks in drivers/macintosh/windfarm

2020-04-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206695 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug 199471] [Bisected][Regression] windfarm_pm* no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set

2020-04-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 Wolfram Sang (w...@the-dreams.de) changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[PATCH] drivers/macintosh: Fix memleak in windfarm_pm112 driver

2020-04-23 Thread Michael Ellerman
create_cpu_loop() calls smu_sat_get_sdb_partition() which does kmalloc() and returns the allocated buffer. In fact it's called twice, and neither buffer is freed. This results in a memory leak as reported by Erhard: unreferenced object 0xc0047081f840 (size 32): comm "kwindfarm", pid

Re: [PATCH 18/21] mm: rename free_area_init_node() to free_area_init_memoryless_node()

2020-04-23 Thread Mike Rapoport
On Thu, Apr 23, 2020 at 11:14:54AM +0800, Baoquan He wrote: > On 04/12/20 at 10:48pm, Mike Rapoport wrote: > > From: Mike Rapoport > > > > The free_area_init_node() is only used by x86 to initialize a memory-less > > nodes. > > Make its name reflect this and drop all the function parameters

[PATCH][next] ASoC: fsl_easrc: fix spelling mistake "prefitler" -> "prefilter"

2020-04-23 Thread Colin King
From: Colin Ian King There is a spelling mistake in a deb_dbg message, fix it. Signed-off-by: Colin Ian King --- sound/soc/fsl/fsl_easrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index 233f26ff885c..97658e1f4989

[PATCH 1/3] powerpc/kprobes: Use appropriate format specifier for printing kernel address

2020-04-23 Thread Naveen N. Rao
From: Balamuruhan S Change use of %p to %pK when printing address of the instruction slot so that the actual kernel address is visible for privileged users. Signed-off-by: Balamuruhan S Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/optprobes.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 3/3] powerpc/hw_bkpt: Update printk format specifiers for kernel addresses

2020-04-23 Thread Naveen N. Rao
Change prinkt format specifier from %lx to %pK to indicate kernel pointer, and to hide the addresses from unprivileged users. Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/hw_breakpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 1/3] powerpc: Properly return error code from do_patch_instruction()

2020-04-23 Thread Christophe Leroy
Le 23/04/2020 à 17:09, Naveen N. Rao a écrit : With STRICT_KERNEL_RWX, we are currently ignoring return value from __patch_instruction() in do_patch_instruction(), resulting in the error not being propagated back. Fix the same. Good patch. Be aware that there is ongoing work which tend to

Re: [PATCH v2 2/2] PCI/DPC: Allow Native DPC Host Bridges to use DPC

2020-04-23 Thread Derrick, Jonathan
Hi Sathyanarayanan, On Wed, 2020-04-22 at 15:50 -0700, Kuppuswamy, Sathyanarayanan wrote: > > On 4/20/20 2:37 PM, Jon Derrick wrote: > > The existing portdrv model prevents DPC services without either OS > > control (_OSC) granted to AER services, a Host Bridge requesting Native > > AER, or

Re: [musl] Powerpc Linux 'scv' system call ABI proposal take 2

2020-04-23 Thread Rich Felker
On Thu, Apr 23, 2020 at 09:13:57AM -0300, Adhemerval Zanella wrote: > > > On 22/04/2020 23:36, Rich Felker wrote: > > On Wed, Apr 22, 2020 at 04:18:36PM +1000, Nicholas Piggin wrote: > >> Yeah I had a bit of a play around with musl (which is very nice code I > >> must say). The powerpc64 syscall

Re: [musl] Powerpc Linux 'scv' system call ABI proposal take 2

2020-04-23 Thread Rich Felker
On Thu, Apr 23, 2020 at 01:35:01PM -0300, Adhemerval Zanella wrote: > > > On 23/04/2020 13:18, Rich Felker wrote: > > On Thu, Apr 23, 2020 at 09:13:57AM -0300, Adhemerval Zanella wrote: > >> > >> > >> On 22/04/2020 23:36, Rich Felker wrote: > >>> On Wed, Apr 22, 2020 at 04:18:36PM +1000,

Re: [musl] Powerpc Linux 'scv' system call ABI proposal take 2

2020-04-23 Thread Adhemerval Zanella
On 23/04/2020 13:43, Rich Felker wrote: > On Thu, Apr 23, 2020 at 01:35:01PM -0300, Adhemerval Zanella wrote: >> >> >> On 23/04/2020 13:18, Rich Felker wrote: >>> On Thu, Apr 23, 2020 at 09:13:57AM -0300, Adhemerval Zanella wrote: On 22/04/2020 23:36, Rich Felker wrote: > On

[PATCH 2/3] powerpc/ftrace: Simplify error checking when patching instructions

2020-04-23 Thread Naveen N. Rao
Introduce a macro PATCH_INSN() to simplify instruction patching, and to make the error messages more uniform and useful: - print an error message that includes the original return value - print the function name and line numbers, so that the offending location is clear - always return -EPERM,

[PATCH 1/3] powerpc: Properly return error code from do_patch_instruction()

2020-04-23 Thread Naveen N. Rao
With STRICT_KERNEL_RWX, we are currently ignoring return value from __patch_instruction() in do_patch_instruction(), resulting in the error not being propagated back. Fix the same. Fixes: 37bc3e5fd764f ("powerpc/lib/code-patching: Use alternate map for patch_instruction()") Signed-off-by: Naveen

[PATCH 2/3] powerpc/ftrace: Use appropriate format specifier for printing kernel addresses

2020-04-23 Thread Naveen N. Rao
Update use of printk format specifiers in ftrace code, so that addresses are made visible for privileged users, or always for pr_devel() code: - change %lx to use %px or %pK - change %p to %px or %pK - add %pS in certain places to show the symbol as well Signed-off-by: Balamuruhan S

Re: [PATCH 2/3] powerpc/ftrace: Simplify error checking when patching instructions

2020-04-23 Thread Christophe Leroy
Le 23/04/2020 à 17:09, Naveen N. Rao a écrit : Introduce a macro PATCH_INSN() to simplify instruction patching, and to make the error messages more uniform and useful: - print an error message that includes the original return value - print the function name and line numbers, so that the

Re: [PATCH] lib/mpi: Fix building for powerpc with clang

2020-04-23 Thread Nathan Chancellor
On Tue, Apr 14, 2020 at 11:57:31PM +1000, Herbert Xu wrote: > On Mon, Apr 13, 2020 at 12:50:42PM -0700, Nathan Chancellor wrote: > > 0day reports over and over on an powerpc randconfig with clang: > > > > lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a > > inline asm context

Re: [PATCH v2 1/2] PCI/AER: Allow Native AER Host Bridges to use AER

2020-04-23 Thread Derrick, Jonathan
Hi Sathyanarayanan, On Wed, 2020-04-22 at 15:48 -0700, Kuppuswamy, Sathyanarayanan wrote: > > On 4/20/20 2:37 PM, Jon Derrick wrote: > > Some platforms have a mix of ports whose capabilities can be negotiated > > by _OSC, and some ports which are not described by ACPI and instead > > managed by

[PATCH 0/3] powerpc: Use proper printk format specifiers

2020-04-23 Thread Naveen N. Rao
This series changes printk format specifiers from bare %p to %px/%pK in ftrace, kprobes and hw bkpts code. In addition, use of %lx is also changed over to conform to the recommended practice. This series applies on top of the below patch series:

Re: [PATCH 3/3] powerpc/kprobes: Check return value of patch_instruction()

2020-04-23 Thread Christophe Leroy
Le 23/04/2020 à 17:09, Naveen N. Rao a écrit : patch_instruction() can fail in some scenarios. Add appropriate error checking so that such failures are caught and logged, and suitable error code is returned. Fixes: d07df82c43be8 ("powerpc/kprobes: Move kprobes over to patch_instruction()")

Re: [musl] Powerpc Linux 'scv' system call ABI proposal take 2

2020-04-23 Thread Adhemerval Zanella
On 23/04/2020 13:18, Rich Felker wrote: > On Thu, Apr 23, 2020 at 09:13:57AM -0300, Adhemerval Zanella wrote: >> >> >> On 22/04/2020 23:36, Rich Felker wrote: >>> On Wed, Apr 22, 2020 at 04:18:36PM +1000, Nicholas Piggin wrote: Yeah I had a bit of a play around with musl (which is very

Re: [PATCH][next] ASoC: fsl_easrc: fix spelling mistake "prefitler" -> "prefilter"

2020-04-23 Thread Mark Brown
On Thu, 23 Apr 2020 09:39:22 +0100, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a deb_dbg message, fix it. > > Signed-off-by: Colin Ian King > --- > sound/soc/fsl/fsl_easrc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > [...] Applied to

[PATCH 0/3] powerpc: Enhance error handling with patch_instruction()

2020-04-23 Thread Naveen N. Rao
This patchset updates error handling with patch_instruction(). The first patch fixes an issue with do_patch_instruction() with STRICT_KERNEL_RWX wherein errors were not being returned back. The second and third patches update users of patch_instruction() in ftrace and kprobes code to properly

[PATCH 3/3] powerpc/kprobes: Check return value of patch_instruction()

2020-04-23 Thread Naveen N. Rao
patch_instruction() can fail in some scenarios. Add appropriate error checking so that such failures are caught and logged, and suitable error code is returned. Fixes: d07df82c43be8 ("powerpc/kprobes: Move kprobes over to patch_instruction()") Fixes: f3eca95638931 ("powerpc/kprobes/optprobes:

Re: [PATCH v8 3/3] Self save API integration

2020-04-23 Thread Gautham R Shenoy
On Thu, Apr 23, 2020 at 04:24:38PM +0530, Pratik Rajesh Sampat wrote: > The commit makes the self save API available outside the firmware by defining > an OPAL wrapper. > This wrapper has a similar interface to that of self restore and expects the > cpu pir, SPR number, minus the value of that SPR

Re: [musl] Powerpc Linux 'scv' system call ABI proposal take 2

2020-04-23 Thread Rich Felker
On Thu, Apr 23, 2020 at 02:15:58PM -0300, Adhemerval Zanella wrote: > > > On 23/04/2020 13:43, Rich Felker wrote: > > On Thu, Apr 23, 2020 at 01:35:01PM -0300, Adhemerval Zanella wrote: > >> > >> > >> On 23/04/2020 13:18, Rich Felker wrote: > >>> On Thu, Apr 23, 2020 at 09:13:57AM -0300,

Re: [PATCH v8 1/1] powerpc/powernv: Introduce support and parsing for self-save API

2020-04-23 Thread Gautham R Shenoy
On Thu, Apr 23, 2020 at 04:25:57PM +0530, Pratik Rajesh Sampat wrote: > This commit introduces and leverages the Self save API. The difference > between self-save and self-restore is that the value to be saved for the > SPR does not need to be passed to the call. > > Add the new Self Save OPAL

[powerpc:fixes-test] BUILD SUCCESS feb8e960d780e170e992a70491eec9dd68f4dbf2

2020-04-23 Thread kbuild test robot
generic-64bit_defconfig pariscgeneric-32bit_defconfig parisc allyesconfig parisc allmodconfig parisc randconfig-a001-20200423 alpharandconfig-a001-20200423 mips randconfig-a001