[PATCH v3 2/2] powerpc/powernv: Re-enable imc trace-mode in kernel

2020-02-27 Thread Anju T Sudhakar
commit <249fad734a25> ""powerpc/perf: Disable trace_imc pmu" disables IMC(In-Memory Collection) trace-mode in kernel, since frequent mode switching between accumulation mode and trace mode via the spr LDBAR in the hardware can trigger a checkstop(system crash). Patch to re-enable imc-trace mode

[PATCH v3 1/2] powerpc/perf: Implement a global lock to avoid races between trace, core and thread imc events.

2020-02-27 Thread Anju T Sudhakar
IMC(In-memory Collection Counters) does performance monitoring in two different modes, i.e accumulation mode(core-imc and thread-imc events), and trace mode(trace-imc events). A cpu thread can either be in accumulation-mode or trace-mode at a time and this is done via the LDBAR register in POWER

Re: [PATCH v3 25/27] powerpc/powernv/pmem: Expose the serial number in sysfs

2020-02-27 Thread Greg Kroah-Hartman
On Fri, Feb 28, 2020 at 05:25:31PM +1100, Andrew Donnellan wrote: > On 21/2/20 2:27 pm, Alastair D'Silva wrote: > > +int ocxlpmem_sysfs_add(struct ocxlpmem *ocxlpmem) > > +{ > > + int i, rc; > > + > > + for (i = 0; i < ARRAY_SIZE(attrs); i++) { > > + rc = device_create_file(>dev,

Re: [PATCH v3 2/4] ASoC: fsl_asrc: Move common definition to fsl_asrc_common

2020-02-27 Thread Shengjiu Wang
On Fri, Feb 28, 2020 at 2:41 AM Nicolin Chen wrote: > > On Thu, Feb 27, 2020 at 10:41:56AM +0800, Shengjiu Wang wrote: > > There is a new ASRC included in i.MX serial platform, there > > are some common definition can be shared with each other. > > So move the common definition to a separate

Re: [PATCH v3 1/4] ASoC: fsl_asrc: Change asrc_width to asrc_format

2020-02-27 Thread Shengjiu Wang
On Fri, Feb 28, 2020 at 2:40 PM Nicolin Chen wrote: > > On Fri, Feb 28, 2020 at 10:54:02AM +0800, Shengjiu Wang wrote: > > Hi > > > > On Fri, Feb 28, 2020 at 1:45 AM Nicolin Chen wrote: > > > > > > On Thu, Feb 27, 2020 at 01:10:19PM +0800, Shengjiu Wang wrote: > > > > On Thu, Feb 27, 2020 at

Re: [PATCH 3/3] pseries/scm: buffer pmem's bound addr in dt for kexec kernel

2020-02-27 Thread Christophe Leroy
Le 28/02/2020 à 06:53, Pingfan Liu a écrit : At present, plpar_hcall(H_SCM_BIND_MEM, ...) takes a very long time, so if dumping to fsdax, it will take a very long time. Take a closer look, during the papr_scm initialization, the only configuration is through drc_pmem_bind()->

[PATCH] powerpc/perf: Use SIER_USER_MASK while updating SPRN_SIER for EBB events

2020-02-27 Thread Athira Rajeev
commit 330a1eb7775b ("powerpc/perf: Core EBB support for 64-bit book3s") defines user mask for SIER. But this is not used in ebb_switch_out while saving SPR's. Patch fixes this by updating SPRN_SIER with the user mask. Fixes: 330a1eb7775b ("powerpc/perf: Core EBB support for 64-bit book3s")

Re: [PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Christophe Leroy
Le 28/02/2020 à 06:53, Pingfan Liu a écrit : Since new_property() is used in several calling sites, splitting it out for reusing. To ease the review, although the split out part has coding style issue, keeping it untouched and fixed in next patch. The moved function fits in one screen. I

Re: [PATCH v3 0/6] implement KASLR for powerpc/fsl_booke/64

2020-02-27 Thread Jason Yan
在 2020/2/28 13:53, Scott Wood 写道: On Wed, 2020-02-26 at 16:18 +0800, Jason Yan wrote: Hi Daniel, 在 2020/2/26 15:16, Daniel Axtens 写道: Hi Jason, This is a try to implement KASLR for Freescale BookE64 which is based on my earlier implementation for Freescale BookE32:

Re: [PATCH v3 1/4] ASoC: fsl_asrc: Change asrc_width to asrc_format

2020-02-27 Thread Nicolin Chen
On Fri, Feb 28, 2020 at 10:54:02AM +0800, Shengjiu Wang wrote: > Hi > > On Fri, Feb 28, 2020 at 1:45 AM Nicolin Chen wrote: > > > > On Thu, Feb 27, 2020 at 01:10:19PM +0800, Shengjiu Wang wrote: > > > On Thu, Feb 27, 2020 at 11:43 AM Nicolin Chen > > > wrote: > > > > > > > > On Thu, Feb 27,

Re: [PATCH v3 0/6] implement KASLR for powerpc/fsl_booke/64

2020-02-27 Thread Scott Wood
On Wed, 2020-02-26 at 16:18 +0800, Jason Yan wrote: > Hi Daniel, > > 在 2020/2/26 15:16, Daniel Axtens 写道: > > Hi Jason, > > > > > This is a try to implement KASLR for Freescale BookE64 which is based on > > > my earlier implementation for Freescale BookE32: > > >

Re: [PATCH v3 25/27] powerpc/powernv/pmem: Expose the serial number in sysfs

2020-02-27 Thread Andrew Donnellan
On 21/2/20 2:27 pm, Alastair D'Silva wrote: +int ocxlpmem_sysfs_add(struct ocxlpmem *ocxlpmem) +{ + int i, rc; + + for (i = 0; i < ARRAY_SIZE(attrs); i++) { + rc = device_create_file(>dev, [i]); + if (rc) { + for (; --i >= 0;) +

Re: [PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Pingfan Liu
On Fri, Feb 28, 2020 at 2:03 PM Andrew Donnellan wrote: > > On 28/2/20 4:53 pm, Pingfan Liu wrote: > > Since new_property() is used in several calling sites, splitting it out for > > reusing. > > > > To ease the review, although the split out part has coding style issue, > > keeping it untouched

Re: [PATCH v3 22/27] powerpc/powernv/pmem: Implement the heartbeat command

2020-02-27 Thread Andrew Donnellan
On 21/2/20 2:27 pm, Alastair D'Silva wrote: From: Alastair D'Silva The heartbeat admin command is a simple admin command that exercises the communication mechanisms within the controller. This patch issues a heartbeat command to the card during init to ensure we can communicate with the

Re: [PATCH v3 21/27] powerpc/powernv/pmem: Add an IOCTL to request controller health & perf data

2020-02-27 Thread Andrew Donnellan
On 21/2/20 2:27 pm, Alastair D'Silva wrote: From: Alastair D'Silva When health & performance data is requested from the controller, it responds with an error log containing the requested information. This patch allows the request to me issued via an IOCTL. A better explanation would be good

[PATCH 1/1] powerpc/kernel: Enables memory hot-remove after reboot on pseries guests

2020-02-27 Thread Leonardo Bras
While providing guests, it's desirable to resize it's memory on demand. By now, it's possible to do so by creating a guest with a small base memory, hot-plugging all the rest, and using 'movable_node' kernel command-line parameter, which puts all hot-plugged memory in ZONE_MOVABLE, allowing it to

Re: [PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Andrew Donnellan
On 28/2/20 4:53 pm, Pingfan Liu wrote: Since new_property() is used in several calling sites, splitting it out for reusing. To ease the review, although the split out part has coding style issue, keeping it untouched and fixed in next patch. Signed-off-by: Pingfan Liu To:

[PATCH 3/3] pseries/scm: buffer pmem's bound addr in dt for kexec kernel

2020-02-27 Thread Pingfan Liu
At present, plpar_hcall(H_SCM_BIND_MEM, ...) takes a very long time, so if dumping to fsdax, it will take a very long time. Take a closer look, during the papr_scm initialization, the only configuration is through drc_pmem_bind()-> plpar_hcall(H_SCM_BIND_MEM, ...), which helps to set up the bound

[PATCH 2/3] powerpc/of: coding style cleanup

2020-02-27 Thread Pingfan Liu
Signed-off-by: Pingfan Liu To: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Hari Bathini Cc: Aneesh Kumar K.V Cc: Oliver O'Halloran Cc: Dan Williams Cc: ke...@lists.infradead.org --- arch/powerpc/kernel/of_property.c | 8 +--- 1

[PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Pingfan Liu
Since new_property() is used in several calling sites, splitting it out for reusing. To ease the review, although the split out part has coding style issue, keeping it untouched and fixed in next patch. Signed-off-by: Pingfan Liu To: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt Cc:

Re: [PATCH v3 11/14] powerpc/kprobes: Support kprobes on prefixed instructions

2020-02-27 Thread Nicholas Piggin
Jordan Niethe's on February 28, 2020 1:23 pm: > On Fri, Feb 28, 2020 at 12:48 PM Nicholas Piggin wrote: >> >> Jordan Niethe's on February 27, 2020 10:58 am: >> > On Wed, Feb 26, 2020 at 6:18 PM Nicholas Piggin wrote: >> >> >> >> Jordan Niethe's on February 26, 2020 2:07 pm: >> >> > @@ -136,11

Re: [PATCH v3 01/14] powerpc: Enable Prefixed Instructions

2020-02-27 Thread Nicholas Piggin
Jordan Niethe's on February 28, 2020 12:52 pm: > On Wed, Feb 26, 2020 at 5:50 PM Nicholas Piggin wrote: >> >> Jordan Niethe's on February 26, 2020 2:07 pm: >> > From: Alistair Popple >> > >> > Prefix instructions have their own FSCR bit which needs to enabled via >> > a CPU feature. The kernel

Re: [PATCH v4 06/13] powerpc/ptrace: split out ALTIVEC related functions.

2020-02-27 Thread kbuild test robot
Hi Christophe, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.6-rc3 next-20200227] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base

Re: [PATCH v4 13/13] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2020-02-27 Thread Russell Currey
This was my fault, I should really test changes like these before they go live. Apologies for the confusion caused -- Russell Currey rus...@russell.cc On Fri, Feb 28, 2020, at 2:59 PM, Andrew Donnellan wrote: > On 28/2/20 9:16 am, Michael Ellerman wrote: > > Christophe Leroy writes: > >>

Re: [PATCH v4 13/13] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2020-02-27 Thread Andrew Donnellan
On 28/2/20 9:16 am, Michael Ellerman wrote: Christophe Leroy writes: Russel, Le 27/02/2020 à 12:49, Christophe Leroy a écrit : ptrace_triggered() is declared in asm/hw_breakpoint.h and only needed when CONFIG_HW_BREAKPOINT is set, so move it into hw_breakpoint.c My series v4 is definitely

Re: [PATCH v3 11/14] powerpc/kprobes: Support kprobes on prefixed instructions

2020-02-27 Thread Jordan Niethe
On Fri, Feb 28, 2020 at 12:48 PM Nicholas Piggin wrote: > > Jordan Niethe's on February 27, 2020 10:58 am: > > On Wed, Feb 26, 2020 at 6:18 PM Nicholas Piggin wrote: > >> > >> Jordan Niethe's on February 26, 2020 2:07 pm: > >> > @@ -136,11 +148,14 @@ int arch_prepare_kprobe(struct kprobe *p) >

[PATCH 2/2] powerpc/powernv: Wire up OPAL address lookups

2020-02-27 Thread Nicholas Piggin
Use ARCH_HAS_ADDRESS_LOOKUP to look up the opal symbol table. This allows crashes and xmon debugging to print firmware symbols. Oops: System Reset, sig: 6 [#1] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA PowerNV Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Not tainted

[PATCH 1/2] kallsyms: architecture specific symbol lookups

2020-02-27 Thread Nicholas Piggin
Provide CONFIG_ARCH_HAS_ADDRESS_LOOKUP which allows architectures to do their own symbol/address lookup if kernel and module lookups miss. powerpc will use this to deal with firmware symbols. Signed-off-by: Nicholas Piggin --- include/linux/kallsyms.h | 20

[PATCH] Add OPAL_GET_SYMBOL / OPAL_LOOKUP_SYMBOL

2020-02-27 Thread Nicholas Piggin
These calls can be used by Linux to annotate BUG addresses with symbols, look up symbol addresses in xmon, etc. This is preferable over having Linux parse the OPAL symbol map itself, because OPAL's parsing code already exists for its own symbol printing, and it can support other code regions than

Re: [PATCH v3 1/4] ASoC: fsl_asrc: Change asrc_width to asrc_format

2020-02-27 Thread Shengjiu Wang
Hi On Fri, Feb 28, 2020 at 1:45 AM Nicolin Chen wrote: > > On Thu, Feb 27, 2020 at 01:10:19PM +0800, Shengjiu Wang wrote: > > On Thu, Feb 27, 2020 at 11:43 AM Nicolin Chen > > wrote: > > > > > > On Thu, Feb 27, 2020 at 10:41:55AM +0800, Shengjiu Wang wrote: > > > > asrc_format is more

Re: [PATCH v3 01/14] powerpc: Enable Prefixed Instructions

2020-02-27 Thread Jordan Niethe
On Wed, Feb 26, 2020 at 5:50 PM Nicholas Piggin wrote: > > Jordan Niethe's on February 26, 2020 2:07 pm: > > From: Alistair Popple > > > > Prefix instructions have their own FSCR bit which needs to enabled via > > a CPU feature. The kernel will save the FSCR for problem state but it > > needs to

Re: [PATCH v3 07/14] powerpc/traps: Check for prefixed instructions in facility_unavailable_exception()

2020-02-27 Thread Nicholas Piggin
Jordan Niethe's on February 27, 2020 9:52 am: > On Wed, Feb 26, 2020 at 5:53 PM Nicholas Piggin wrote: >> >> Jordan Niethe's on February 26, 2020 2:07 pm: >> > If prefixed instructions are made unavailable by the [H]FSCR, attempting >> > to use them will cause a facility unavailable exception.

Re: [PATCH v3 11/14] powerpc/kprobes: Support kprobes on prefixed instructions

2020-02-27 Thread Nicholas Piggin
Nicholas Piggin's on February 28, 2020 11:47 am: > Jordan Niethe's on February 27, 2020 10:58 am: >> On Wed, Feb 26, 2020 at 6:18 PM Nicholas Piggin wrote: >> + >> +#define DEREF_PPC_INST_PTR(ptr)\ >> +({\ >> +ppc_inst __inst;\ >> +

Re: [PATCH v3 11/14] powerpc/kprobes: Support kprobes on prefixed instructions

2020-02-27 Thread Nicholas Piggin
Jordan Niethe's on February 27, 2020 10:58 am: > On Wed, Feb 26, 2020 at 6:18 PM Nicholas Piggin wrote: >> >> Jordan Niethe's on February 26, 2020 2:07 pm: >> > @@ -136,11 +148,14 @@ int arch_prepare_kprobe(struct kprobe *p) >> > } >> > >> > if (!ret) { >> > -

Re: [PATCH v3 09/14] powerpc/xmon: Add initial support for prefixed instructions

2020-02-27 Thread Nicholas Piggin
Jordan Niethe's on February 28, 2020 10:37 am: > On Thu, Feb 27, 2020 at 6:14 PM Christophe Leroy > wrote: >> >> >> >> Le 27/02/2020 à 01:11, Jordan Niethe a écrit : >> > On Wed, Feb 26, 2020 at 6:10 PM Nicholas Piggin wrote: >> >> >> >> Jordan Niethe's on February 26, 2020 2:07 pm: >> >>> A

Re: [PATCH v3 10/27] powerpc: Add driver for OpenCAPI Persistent Memory

2020-02-27 Thread Alastair D'Silva
On Thu, 2020-02-27 at 21:44 +0100, Frederic Barrat wrote: > > Le 21/02/2020 à 04:27, Alastair D'Silva a écrit : > > From: Alastair D'Silva > > > > This driver exposes LPC memory on OpenCAPI pmem cards > > as an NVDIMM, allowing the existing nvram infrastructure > > to be used. > > > >

Re: [PATCH v3 09/14] powerpc/xmon: Add initial support for prefixed instructions

2020-02-27 Thread Jordan Niethe
On Thu, Feb 27, 2020 at 6:14 PM Christophe Leroy wrote: > > > > Le 27/02/2020 à 01:11, Jordan Niethe a écrit : > > On Wed, Feb 26, 2020 at 6:10 PM Nicholas Piggin wrote: > >> > >> Jordan Niethe's on February 26, 2020 2:07 pm: > >>> A prefixed instruction is composed of a word prefix and a word

[PATCH v5 11/13] powerpc/ptrace: create ptrace_get_debugreg()

2020-02-27 Thread Christophe Leroy
Create ptrace_get_debugreg() to handle PTRACE_GET_DEBUGREG and reduce ifdef mess Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace-adv.c | 9 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 2 ++ arch/powerpc/kernel/ptrace/ptrace-noadv.c | 13 +

[PATCH v5 12/13] powerpc/ptrace: create ppc_gethwdinfo()

2020-02-27 Thread Christophe Leroy
Create ippc_gethwdinfo() to handle PPC_PTRACE_GETHWDBGINFO and reduce ifdef mess Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace-adv.c | 15 +++ arch/powerpc/kernel/ptrace/ptrace-decl.h | 1 + arch/powerpc/kernel/ptrace/ptrace-noadv.c | 20 ++

Re: [PATCH] selftests: pidfd: Add pidfd_fdinfo_test in .gitignore

2020-02-27 Thread Christian Brauner
On February 28, 2020 1:00:08 AM GMT+01:00, Christophe Leroy wrote: >The commit identified below added pidfd_fdinfo_test >but failed to add it to .gitignore > >Fixes: 2def297ec7fb ("pidfd: add tests for NSpid info in fdinfo") >Cc: sta...@vger.kernel.org >Signed-off-by: Christophe Leroy >--- >

[PATCH v5 09/13] powerpc/ptrace: move register viewing functions out of ptrace.c

2020-02-27 Thread Christophe Leroy
Create a dedicated ptrace-view.c file. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 +- arch/powerpc/kernel/ptrace/ptrace-decl.h | 43 + arch/powerpc/kernel/ptrace/ptrace-view.c | 904 + arch/powerpc/kernel/ptrace/ptrace.c | 966

[PATCH v5 06/13] powerpc/ptrace: split out ALTIVEC related functions.

2020-02-27 Thread Christophe Leroy
Move CONFIG_ALTIVEC functions out of ptrace.c, into ptrace-altivec.c Signed-off-by: Christophe Leroy --- v4: add missing ptrace_decl.h v5: that's ptrace-decl.h in fact --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-altivec.c | 128

[PATCH v5 10/13] powerpc/ptrace: split out ADV_DEBUG_REGS related functions.

2020-02-27 Thread Christophe Leroy
Move ADV_DEBUG_REGS functions out of ptrace.c, into ptrace-adv.c and ptrace-noadv.c Signed-off-by: Christophe Leroy --- v4: Leave hw_breakpoint.h for ptrace.c --- arch/powerpc/kernel/ptrace/Makefile | 4 + arch/powerpc/kernel/ptrace/ptrace-adv.c | 468

[PATCH v5 07/13] powerpc/ptrace: split out SPE related functions.

2020-02-27 Thread Christophe Leroy
Move CONFIG_SPE functions out of ptrace.c, into ptrace-spe.c Signed-off-by: Christophe Leroy --- v5: Added ptrace-decl.h --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 9 arch/powerpc/kernel/ptrace/ptrace-spe.c | 68

[PATCH v5 08/13] powerpc/ptrace: split out TRANSACTIONAL_MEM related functions.

2020-02-27 Thread Christophe Leroy
Move TRANSACTIONAL_MEM functions out of ptrace.c, into ptrace-tm.c Signed-off-by: Christophe Leroy --- v4: leave asm-prototypes.h --- arch/powerpc/kernel/ptrace/Makefile | 1 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 89 +++ arch/powerpc/kernel/ptrace/ptrace-tm.c | 851

[PATCH v5 03/13] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2020-02-27 Thread Christophe Leroy
Drop a bunch of #ifdefs CONFIG_PPC64 that are not vital. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ptrace.h | 2 ++ arch/powerpc/kernel/ptrace/ptrace.c | 18 +++--- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git

[PATCH v5 13/13] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2020-02-27 Thread Christophe Leroy
ptrace_triggered() is declared in asm/hw_breakpoint.h and only needed when CONFIG_HW_BREAKPOINT is set, so move it into hw_breakpoint.c Signed-off-by: Christophe Leroy --- v4: removing inclusing of hw_breakpoint.h now. Previously it was done too early. --- arch/powerpc/kernel/hw_breakpoint.c |

[PATCH v5 05/13] powerpc/ptrace: split out VSX related functions.

2020-02-27 Thread Christophe Leroy
Move CONFIG_VSX functions out of ptrace.c, into ptrace-vsx.c and ptrace-novsx.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/Makefile | 4 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 26 arch/powerpc/kernel/ptrace/ptrace-novsx.c | 57 +++

[PATCH v5 02/13] powerpc/ptrace: remove unused header includes

2020-02-27 Thread Christophe Leroy
Remove unused header includes in ptrace.c and ptrace32.c Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace.c | 19 ++- arch/powerpc/kernel/ptrace/ptrace32.c | 11 --- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git

[PATCH v5 00/13] Reduce ifdef mess in ptrace

2020-02-27 Thread Christophe Leroy
The purpose of this series is to reduce the amount of #ifdefs in ptrace.c Link: https://github.com/linuxppc/issues/issues/128 v5: - Big mistake fixed in ptrace-altivec.c (included ptrace-decl.h as ptrace_decl.h does not exist) - Added ptrace-decl.h in ptrace-spe.c - Kisskb is happy at the

[PATCH v5 04/13] powerpc/ptrace: drop PARAMETER_SAVE_AREA_OFFSET

2020-02-27 Thread Christophe Leroy
PARAMETER_SAVE_AREA_OFFSET is not used, drop it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/powerpc/kernel/ptrace/ptrace.c b/arch/powerpc/kernel/ptrace/ptrace.c index 3dd94c296ac7..22826c942eae

[PATCH v5 01/13] powerpc: move ptrace into a subdirectory.

2020-02-27 Thread Christophe Leroy
In order to allow splitting of ptrace depending on the different CONFIG_ options, create a subdirectory dedicated to ptrace and move ptrace.c and ptrace32.c into it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/Makefile| 7 +++ arch/powerpc/kernel/ptrace/Makefile

[PATCH] selftests: powerpc: Add tlbie_test in .gitignore

2020-02-27 Thread Christophe Leroy
The commit identified below added tlbie_test but forgot to add it in .gitignore. Fixes: 93cad5f78995 ("selftests/powerpc: Add test case for tlbie vs mtpidr ordering issue") Cc: sta...@vger.kernel.org Signed-off-by: Christophe Leroy --- tools/testing/selftests/powerpc/mm/.gitignore | 1 + 1

[PATCH] selftests: pidfd: Add pidfd_fdinfo_test in .gitignore

2020-02-27 Thread Christophe Leroy
The commit identified below added pidfd_fdinfo_test but failed to add it to .gitignore Fixes: 2def297ec7fb ("pidfd: add tests for NSpid info in fdinfo") Cc: sta...@vger.kernel.org Signed-off-by: Christophe Leroy --- tools/testing/selftests/pidfd/.gitignore | 1 + 1 file changed, 1 insertion(+)

RE: [PATCH v3 14/27] powerpc/powernv/pmem: Add support for Admin commands

2020-02-27 Thread Alastair D'Silva
On Thu, 2020-02-27 at 09:01 -0800, Dan Williams wrote: > On Thu, Feb 20, 2020 at 7:28 PM Alastair D'Silva < > alast...@au1.ibm.com> wrote: > > From: Alastair D'Silva > > > > This patch requests the metadata required to issue admin commands, > > as well > > as some helper functions to construct

Re: [PATCH v3 15/27] powerpc/powernv/pmem: Add support for near storage commands

2020-02-27 Thread Alastair D'Silva
On Thu, 2020-02-27 at 19:30 +1100, Andrew Donnellan wrote: > On 21/2/20 2:27 pm, Alastair D'Silva wrote:> +int > ns_response_handled(const struct ocxlpmem *ocxlpmem) > > +{ > > + return ocxl_global_mmio_set64(ocxlpmem->ocxl_afu, > > GLOBAL_MMIO_CHIC, > > +

Re: [PATCH v3 14/27] powerpc/powernv/pmem: Add support for Admin commands

2020-02-27 Thread Alastair D'Silva
On Thu, 2020-02-27 at 19:27 +1100, Andrew Donnellan wrote: > On 27/2/20 7:22 pm, Andrew Donnellan wrote: > > > +int admin_command_request(struct ocxlpmem *ocxlpmem, u8 op_code) > > > +{ > > > +u64 val; > > > +int rc = ocxl_global_mmio_read64(ocxlpmem->ocxl_afu, > > > GLOBAL_MMIO_CHI, > >

Re: [PATCH v3 14/27] powerpc/powernv/pmem: Add support for Admin commands

2020-02-27 Thread Alastair D'Silva
On Thu, 2020-02-27 at 19:22 +1100, Andrew Donnellan wrote: > On 21/2/20 2:27 pm, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > This patch requests the metadata required to issue admin commands, > > as well > > as some helper functions to construct and check the completion of > > the

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

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206695 --- Comment #2 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287691 --> https://bugzilla.kernel.org/attachment.cgi?id=287691=edit kernel .config (kernel 5.6-rc3, PowerMac G5 11,2) -- You are receiving this mail because: You are

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

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206695 --- Comment #1 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287689 --> https://bugzilla.kernel.org/attachment.cgi?id=287689=edit dmesg (kernel 5.6-rc3, PowerMac G5 11,2) -- You are receiving this mail because: You are watching

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

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206695 Bug ID: 206695 Summary: kmemleak reports leaks in drivers/macintosh/windfarm Product: Platform Specific/Hardware Version: 2.5 Kernel Version: 5.6-rc3 Hardware: PPC-64 OS:

[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #7 from Erhard F. (erhar...@mailbox.org) --- (In reply to mpe from comment #6) > Can you attach the /sys/kernel/debug/kmemleak output please. > > cheers I already did: "kmemleak output (kernel 5.6-rc3, PowerMac G5 11,2) (91.35 KB,

Re: [PATCH v4 13/13] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2020-02-27 Thread Michael Ellerman
Christophe Leroy writes: > Russel, > > Le 27/02/2020 à 12:49, Christophe Leroy a écrit : >> ptrace_triggered() is declared in asm/hw_breakpoint.h and >> only needed when CONFIG_HW_BREAKPOINT is set, so move it >> into hw_breakpoint.c > > My series v4 is definitely buggy (I included ptrace_decl.h

[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #6 from m...@ellerman.id.au --- bugzilla-dae...@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=206203 > > --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- > Created attachment 287671 > -->

Re: [Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c

2020-02-27 Thread Michael Ellerman
bugzilla-dae...@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=206203 > > --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- > Created attachment 287671 > --> https://bugzilla.kernel.org/attachment.cgi?id=287671=edit > kmemleak output (kernel 5.6-rc3, PowerMac G5

[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #5 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287675 --> https://bugzilla.kernel.org/attachment.cgi?id=287675=edit kernel .config (kernel 5.6-rc3, PowerMac G5 11,2) -- You are receiving this mail because: You are

[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #4 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287673 --> https://bugzilla.kernel.org/attachment.cgi?id=287673=edit dmesg (kernel 5.6-rc3, PowerMac G5 11,2) -- You are receiving this mail because: You are watching

[Bug 206203] kmemleak reports various leaks in drivers/of/unittest.c

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206203 --- Comment #3 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287671 --> https://bugzilla.kernel.org/attachment.cgi?id=287671=edit kmemleak output (kernel 5.6-rc3, PowerMac G5 11,2) Same on a PowerMac G5 11,2 (kernel 5.6-rc3).

Re: [PATCH v3 10/27] powerpc: Add driver for OpenCAPI Persistent Memory

2020-02-27 Thread Frederic Barrat
Le 21/02/2020 à 04:27, Alastair D'Silva a écrit : From: Alastair D'Silva This driver exposes LPC memory on OpenCAPI pmem cards as an NVDIMM, allowing the existing nvram infrastructure to be used. Namespace metadata is stored on the media itself, so scm_reserve_metadata() maps 1 section's

Re: [PATCH] ima: add a new CONFIG for loading arch-specific policies

2020-02-27 Thread Mimi Zohar
On Wed, 2020-02-26 at 15:36 -0500, Mimi Zohar wrote: > On Wed, 2020-02-26 at 11:21 -0800, Lakshmi Ramasubramanian wrote: > > Hi Nayna, > > > > > + > > > +config IMA_SECURE_AND_OR_TRUSTED_BOOT > > > + bool > > > + depends on IMA > > > + depends on IMA_ARCH_POLICY > > > + default n > > > + help > >

Re: [PATCH v3 2/4] ASoC: fsl_asrc: Move common definition to fsl_asrc_common

2020-02-27 Thread Nicolin Chen
On Thu, Feb 27, 2020 at 10:41:56AM +0800, Shengjiu Wang wrote: > There is a new ASRC included in i.MX serial platform, there > are some common definition can be shared with each other. > So move the common definition to a separate header file. > > And add fsl_asrc_pair_internal and

Re: [5.6.0-rc2-next-20200218/powerpc] Boot failure on POWER9

2020-02-27 Thread Michal Hocko
slab allocator bebcause node_to_mem_node(0) for memory less node resolves to the memory less node http://lkml.kernel.org/r/dd450314-d428-6776-af07-f92c04c7b...@suse.cz. The original report is http://lkml.kernel.org/r/3381cd91-ab3d-4773-ba04-e7a072a63...@linux.vnet.ibm.com > > >

Re: [PATCH v3 0/7] Allow setting caching mode in arch_add_memory() for P2PDMA

2020-02-27 Thread Dan Williams
On Thu, Feb 27, 2020 at 10:03 AM Jason Gunthorpe wrote: > > On Thu, Feb 27, 2020 at 09:55:04AM -0800, Dan Williams wrote: > > On Thu, Feb 27, 2020 at 9:43 AM Jason Gunthorpe wrote: > > > > > > On Thu, Feb 27, 2020 at 10:21:50AM -0700, Logan Gunthorpe wrote: > > > > > > > > > > > > On 2020-02-27

Re: [PATCH v3 0/7] Allow setting caching mode in arch_add_memory() for P2PDMA

2020-02-27 Thread Jason Gunthorpe
On Thu, Feb 27, 2020 at 09:55:04AM -0800, Dan Williams wrote: > On Thu, Feb 27, 2020 at 9:43 AM Jason Gunthorpe wrote: > > > > On Thu, Feb 27, 2020 at 10:21:50AM -0700, Logan Gunthorpe wrote: > > > > > > > > > On 2020-02-27 10:17 a.m., Jason Gunthorpe wrote: > > > >> Instead of this, this series

Re: [PATCH v3 0/7] Allow setting caching mode in arch_add_memory() for P2PDMA

2020-02-27 Thread Dan Williams
On Thu, Feb 27, 2020 at 9:43 AM Jason Gunthorpe wrote: > > On Thu, Feb 27, 2020 at 10:21:50AM -0700, Logan Gunthorpe wrote: > > > > > > On 2020-02-27 10:17 a.m., Jason Gunthorpe wrote: > > >> Instead of this, this series proposes a change to arch_add_memory() > > >> to take the pgprot required by

Re: [PATCH v3 0/7] Allow setting caching mode in arch_add_memory() for P2PDMA

2020-02-27 Thread Logan Gunthorpe
On 2020-02-27 10:43 a.m., Jason Gunthorpe wrote: > Hm, AFAIK WC memory is not compatible with the spinlocks/mutexs/etc in > Linux, so while it is true the memory has no side effects, there would > be surprising concurrency risks if anything in the kernel tried to > write to it. > > Not

Re: [PATCH v3 0/7] Allow setting caching mode in arch_add_memory() for P2PDMA

2020-02-27 Thread Logan Gunthorpe
On 2020-02-27 10:17 a.m., Jason Gunthorpe wrote: >> Instead of this, this series proposes a change to arch_add_memory() >> to take the pgprot required by the mapping which allows us to >> explicitly set pagetable entries for P2PDMA memory to WC. > > Is there a particular reason why WC was

Re: [PATCH v3 1/4] ASoC: fsl_asrc: Change asrc_width to asrc_format

2020-02-27 Thread Nicolin Chen
On Thu, Feb 27, 2020 at 01:10:19PM +0800, Shengjiu Wang wrote: > On Thu, Feb 27, 2020 at 11:43 AM Nicolin Chen wrote: > > > > On Thu, Feb 27, 2020 at 10:41:55AM +0800, Shengjiu Wang wrote: > > > asrc_format is more inteligent variable, which is align > > > with the alsa definition

Re: [PATCH v3 0/7] Allow setting caching mode in arch_add_memory() for P2PDMA

2020-02-27 Thread Jason Gunthorpe
On Thu, Feb 27, 2020 at 10:21:50AM -0700, Logan Gunthorpe wrote: > > > On 2020-02-27 10:17 a.m., Jason Gunthorpe wrote: > >> Instead of this, this series proposes a change to arch_add_memory() > >> to take the pgprot required by the mapping which allows us to > >> explicitly set pagetable

Re: [PATCH v3 0/7] Allow setting caching mode in arch_add_memory() for P2PDMA

2020-02-27 Thread Jason Gunthorpe
On Fri, Feb 21, 2020 at 11:24:56AM -0700, Logan Gunthorpe wrote: > Hi, > > This is v3 of the patchset which cleans up a number of minor issues > from the feedback of v2 and rebases onto v5.6-rc2. Additional feedback > is welcome. > > Thanks, > > Logan > > -- > > Changes in v3: > * Rebased

Re: [PATCH v4 13/13] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2020-02-27 Thread Christophe Leroy
Russel, Le 27/02/2020 à 12:49, Christophe Leroy a écrit : ptrace_triggered() is declared in asm/hw_breakpoint.h and only needed when CONFIG_HW_BREAKPOINT is set, so move it into hw_breakpoint.c My series v4 is definitely buggy (I included ptrace_decl.h instead instead of ptrace-decl.h), how

Re: [PATCH] selftests/vm: Fix map_hugetlb length used for testing read and write

2020-02-27 Thread Christophe Leroy
Shuah, Le 06/02/2020 à 09:42, Christophe Leroy a écrit : Commit fa7b9a805c79 ("tools/selftest/vm: allow choosing mem size and page size in map_hugetlb") added the possibility to change the size of memory mapped for the test, but left the read and write test using the default value. This is

Re: [PATCH v3 15/27] powerpc/powernv/pmem: Add support for near storage commands

2020-02-27 Thread Dan Williams
On Thu, Feb 20, 2020 at 7:28 PM Alastair D'Silva wrote: > > From: Alastair D'Silva > > Similar to the previous patch, this adds support for near storage commands. Similar comment as the last patch. This changelog does not give the reviewer any frame of reference to review the patch.

Re: [PATCH v3 14/27] powerpc/powernv/pmem: Add support for Admin commands

2020-02-27 Thread Dan Williams
On Thu, Feb 20, 2020 at 7:28 PM Alastair D'Silva wrote: > > From: Alastair D'Silva > > This patch requests the metadata required to issue admin commands, as well > as some helper functions to construct and check the completion of the > commands. What are the admin commands? Any pointer to a

Re: [PATCH] selftest/lkdtm: Use local .gitignore

2020-02-27 Thread Christophe Leroy
Le 27/02/2020 à 17:45, Shuah Khan a écrit : On 2/27/20 9:17 AM, Kees Cook wrote: On Thu, Feb 27, 2020 at 02:07:10PM +, Christophe Leroy wrote: Commit 68ca0fd272da ("selftest/lkdtm: Don't pollute 'git status'") introduced patterns for git to ignore files generated in

Re: [PATCH] selftest/lkdtm: Use local .gitignore

2020-02-27 Thread Shuah Khan
On 2/27/20 9:17 AM, Kees Cook wrote: On Thu, Feb 27, 2020 at 02:07:10PM +, Christophe Leroy wrote: Commit 68ca0fd272da ("selftest/lkdtm: Don't pollute 'git status'") introduced patterns for git to ignore files generated in tools/testing/selftests/lkdtm/ Use local .gitignore file instead of

Re: [PATCH] selftest/lkdtm: Use local .gitignore

2020-02-27 Thread Kees Cook
On Thu, Feb 27, 2020 at 02:07:10PM +, Christophe Leroy wrote: > Commit 68ca0fd272da ("selftest/lkdtm: Don't pollute 'git status'") > introduced patterns for git to ignore files generated in > tools/testing/selftests/lkdtm/ > > Use local .gitignore file instead of using the root one. > >

Re: [5.6.0-rc2-next-20200218/powerpc] Boot failure on POWER9

2020-02-27 Thread Vlastimil Babka
I would have expected. That seems to confirm my suspicion that the arch code doesn't set up the memoryless node 0 properly. > [0.005270] CPU: 12 PID: 0 Comm: swapper/12 Not tainted > 5.6.0-rc3-next-20200227-autotest+ #6 > [0.005271] Call Trace: > [0.005272] [c008b37dfe80

[Bug 206669] Little-endian kernel crashing on POWER8 on heavy big-endian PowerKVM load

2020-02-27 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=206669 --- Comment #7 from John Paul Adrian Glaubitz (glaub...@physik.fu-berlin.de) --- I have set /sys/kernel/debug/tracing/tracing_on to "0" and /sys/kernel/debug/tracing/free_buffer to "1" and it seems I can no longer reproduce the issue. I will

Re: [5.6.0-rc2-next-20200218/powerpc] Boot failure on POWER9

2020-02-27 Thread Sachin Sant
have also attached boot log with a kernel that include about change. I see the following o/p during boot: [0.005269] set_numa_mem 1 -> 1 [0.005270] CPU: 12 PID: 0 Comm: swapper/12 Not tainted 5.6.0-rc3-next-20200227-autotest+ #6 [0.005271] Call Trace: [0.005272] [c

Re: [PATCH, v2] powerpc: fix hardware PMU exception bug on PowerVM compatibility mode systems

2020-02-27 Thread Leonardo Bras
On Thu, 2020-02-27 at 10:47 -0300, Desnes A. Nunes do Rosario wrote: > PowerVM systems running compatibility mode on a few Power8 revisions are > still vulnerable to the hardware defect that loses PMU exceptions arriving > prior to a context switch. > > The software fix for this issue is enabled

[PATCH] selftest/lkdtm: Use local .gitignore

2020-02-27 Thread Christophe Leroy
Commit 68ca0fd272da ("selftest/lkdtm: Don't pollute 'git status'") introduced patterns for git to ignore files generated in tools/testing/selftests/lkdtm/ Use local .gitignore file instead of using the root one. Fixes: 68ca0fd272da ("selftest/lkdtm: Don't pollute 'git status'") Signed-off-by:

[PATCH, v2] powerpc: fix hardware PMU exception bug on PowerVM compatibility mode systems

2020-02-27 Thread Desnes A. Nunes do Rosario
PowerVM systems running compatibility mode on a few Power8 revisions are still vulnerable to the hardware defect that loses PMU exceptions arriving prior to a context switch. The software fix for this issue is enabled through the CPU_FTR_PMAO_BUG cpu_feature bit, nevertheless this bit also needs

Re: [PATCH] powerpc: fix hardware PMU exception bug on PowerVM compatibility mode systems

2020-02-27 Thread Desnes Augusto Nunes do Rosario
Hello Leonardo, On 2/15/20 2:39 AM, Leonardo Bras wrote: Hello Desnes, thanks for the patch. "Desnes A. Nunes do Rosario" writes: PowerVM systems running compatibility mode on a few Power8 revisions are still vulnerable to the hardware defect that loses PMU exceptions arriving prior to a

Re: [PATCH] powerpc/watchpoint: Don't call dar_within_range() for Book3S

2020-02-27 Thread Michael Ellerman
On Sat, 2020-02-22 at 08:20:49 UTC, Ravi Bangoria wrote: > DAR is set to the first byte of overlap between actual access and > watched range at DSI on Book3S processor. But actual access range > might or might not be within user asked range. So for Book3S, it > must not call dar_within_range(). >

Re: [PATCH] powerpc: Include .BTF section

2020-02-27 Thread Michael Ellerman
On Thu, 2020-02-20 at 11:31:32 UTC, "Naveen N. Rao" wrote: > Selecting CONFIG_DEBUG_INFO_BTF results in the below warning from ld: > ld: warning: orphan section `.BTF' from `.btf.vmlinux.bin.o' being placed > in section `.BTF' > > Include .BTF section in vmlinux explicitly to fix the same. >

Re: [5.6.0-rc2-next-20200218/powerpc] Boot failure on POWER9

2020-02-27 Thread Michal Hocko
On Wed 26-02-20 23:29:24, Vlastimil Babka wrote: > On 2/26/20 10:45 PM, Vlastimil Babka wrote: > > > > > > if (node == NUMA_NO_NODE) > > page = alloc_pages(flags, order); > > else > > page = __alloc_pages_node(node, flags, order); > > > > So yeah looks like SLUB's kmalloc_node() is

Re: [5.6.0-rc2-next-20200218/powerpc] Boot failure on POWER9

2020-02-27 Thread Michal Hocko
On Wed 26-02-20 22:45:52, Vlastimil Babka wrote: > On 2/26/20 7:41 PM, Michal Hocko wrote: > > On Wed 26-02-20 18:25:28, Cristopher Lameter wrote: > >> On Mon, 24 Feb 2020, Michal Hocko wrote: > >> > >>> Hmm, nasty. Is there any reason why kmalloc_node behaves differently > >>> from the page

[PATCH v4 13/13] powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c

2020-02-27 Thread Christophe Leroy
ptrace_triggered() is declared in asm/hw_breakpoint.h and only needed when CONFIG_HW_BREAKPOINT is set, so move it into hw_breakpoint.c Signed-off-by: Christophe Leroy --- v4: removing inclusing of hw_breakpoint.h now. Previously it was done too early. --- arch/powerpc/kernel/hw_breakpoint.c |

[PATCH v4 12/13] powerpc/ptrace: create ppc_gethwdinfo()

2020-02-27 Thread Christophe Leroy
Create ippc_gethwdinfo() to handle PPC_PTRACE_GETHWDBGINFO and reduce ifdef mess Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/ptrace/ptrace-adv.c | 15 +++ arch/powerpc/kernel/ptrace/ptrace-decl.h | 1 + arch/powerpc/kernel/ptrace/ptrace-noadv.c | 20 ++

  1   2   >