[PATCH v2 4/4] powerpc/numa: Remove late request for home node associativity

2019-08-28 Thread Srikar Dronamraju
With commit ("powerpc/numa: Early request for home node associativity"), commit 2ea626306810 ("powerpc/topology: Get topology for shared processors at boot") which was requesting home node associativity becomes redundant. Hence remove the late request for home node associativity. Signed-off-by:

[PATCH v2 2/4] powerpc/numa: Handle extra hcall_vphn error cases

2019-08-28 Thread Srikar Dronamraju
Currently code handles H_FUNCTION, H_SUCCESS, H_HARDWARE return codes. However hcall_vphn can return other return codes. Now it also handles H_PARAMETER return code. Also the rest return codes are handled under the default case. Signed-off-by: Srikar Dronamraju Cc: Michael Ellerman Cc:

[PATCH v2 3/4] powerpc/numa: Early request for home node associativity

2019-08-28 Thread Srikar Dronamraju
Currently the kernel detects if its running on a shared lpar platform and requests home node associativity before the scheduler sched_domains are setup. However between the time NUMA setup is initialized and the request for home node associativity, workqueue initializes its per node cpumask. The

[PATCH v2 0/4] Early node associativity

2019-08-28 Thread Srikar Dronamraju
Abdul reported a warning on a shared lpar. "WARNING: workqueue cpumask: online intersect > possible intersect". This is because per node workqueue possible mask is set very early in the boot process even before the system was querying the home node associativity. However per node workqueue online

[PATCH v2 1/4] powerpc/vphn: Check for error from hcall_vphn

2019-08-28 Thread Srikar Dronamraju
There is no value in unpacking associativity, if H_HOME_NODE_ASSOCIATIVITY hcall has returned an error. Signed-off-by: Srikar Dronamraju Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Nathan Lynch Cc: linuxppc-dev@lists.ozlabs.org Reported-by: Satheesh Rajendran Reported-by: Abdul Haleem ---

Re: [PATCH v2] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-28 Thread Hari Bathini
On 28/08/19 10:57 PM, Michal Suchanek wrote: > Currently it is not possible to distinguish the case when fadump is > supported by firmware and disabled in kernel and completely unsupported > using the kernel sysfs interface. User can investigate the devicetree > but it is more reasonable to

Re: [PATCH rebased] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-28 Thread Hari Bathini
On 28/08/19 10:37 PM, Michal Suchánek wrote: > On Tue, 27 Aug 2019 17:57:31 +0530 > Hari Bathini wrote: > [...] >> Also, get rid of the error message when fadump is >> not supported as it is already taken care of in fadump_reserve_mem() >> function. > > That should not be called in that

Re: [PATCH v2 07/10] PCI: layerscape: Modify the MSIX to the doorbell way

2019-08-28 Thread Kishon Vijay Abraham I
Gustavo, On 27/08/19 6:55 PM, Andrew Murray wrote: > On Sat, Aug 24, 2019 at 12:08:40AM +, Xiaowei Bao wrote: >> >> >>> -Original Message- >>> From: Andrew Murray >>> Sent: 2019年8月23日 21:58 >>> To: Xiaowei Bao >>> Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com;

Re: [PATCH v7 5/7] kvmppc: Radix changes for secure guest

2019-08-28 Thread Sukadev Bhattiprolu
> - After the guest becomes secure, when we handle a page fault of a page > belonging to SVM in HV, send that page to UV via UV_PAGE_IN. > - Whenever a page is unmapped on the HV side, inform UV via UV_PAGE_INVAL. > - Ensure all those routines that walk the secondary page tables of > the guest

Re: [PATCH v7 2/7] kvmppc: Shared pages support for secure guests

2019-08-28 Thread Sukadev Bhattiprolu
> A secure guest will share some of its pages with hypervisor (Eg. virtio > bounce buffers etc). Support sharing of pages between hypervisor and > ultravisor. > > Once a secure page is converted to shared page, the device page is > unmapped from the HV side page tables. > > Signed-off-by:

Re: [PATCH v7 1/7] kvmppc: Driver to manage pages of secure guest

2019-08-28 Thread Sukadev Bhattiprolu
Some minor comments/questions below. Overall, the patches look fine to me. > +#include > +#include > +#include > +#include > + > +static struct dev_pagemap kvmppc_devm_pgmap; > +static unsigned long *kvmppc_devm_pfn_bitmap; > +static DEFINE_SPINLOCK(kvmppc_devm_pfn_lock); Is this lock

Re: [PATCH v6 00/12] implement KASLR for powerpc/fsl_booke/32

2019-08-28 Thread Jason Yan
On 2019/8/28 12:59, Scott Wood wrote: On Tue, 2019-08-27 at 23:05 -0500, Scott Wood wrote: On Fri, 2019-08-09 at 18:07 +0800, Jason Yan wrote: Freescale Book-E parts expect lowmem to be mapped by fixed TLB entries(TLB1). The TLB1 entries are not suitable to map the kernel directly in a

RE: [PATCH v2 08/10] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-08-28 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月28日 17:01 > To: Xiaowei Bao > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.co; a...@arndb.de; gre...@linuxfoundation.org; M.h. > Lian ;

Re: [PATCH v6 00/12] implement KASLR for powerpc/fsl_booke/32

2019-08-28 Thread Jason Yan
On 2019/8/28 12:05, Scott Wood wrote: On Fri, 2019-08-09 at 18:07 +0800, Jason Yan wrote: This series implements KASLR for powerpc/fsl_booke/32, as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals. Since CONFIG_RELOCATABLE has already

Re: [PATCH] PCI: hotplug: Remove surplus return from a void function

2019-08-28 Thread Tyrel Datwyler
On 8/26/19 2:51 AM, Krzysztof Wilczynski wrote: > Remove unnecessary empty return statement at the end of a void > function in the following: > > - drivers/pci/hotplug/cpci_hotplug_core.c: cleanup_slots() > - drivers/pci/hotplug/cpqphp_core.c: pci_print_IRQ_route() > -

Re: [PATCH v1] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread Mimi Zohar
On Wed, 2019-08-28 at 20:38 -0300, Thiago Jung Bauermann wrote: > Hello Mimi, > > Mimi Zohar writes: > > > In addition to the PE/COFF and IMA xattr signatures, the kexec kernel > > image can be signed with an appended signature, using the same > > scripts/sign-file tool that is used to sign

Re: [PATCH 01/11] ftrace: move recordmcount tools to scripts/ftrace

2019-08-28 Thread Changbin Du
On Mon, Aug 26, 2019 at 06:44:44PM -0400, Steven Rostedt wrote: > On Sun, 25 Aug 2019 21:23:20 +0800 > Changbin Du wrote: > > > Move ftrace tools to its own directory. We will add another tool later. > > > > Cc: John F. Reiser > > Signed-off-by: Changbin Du > > --- > > scripts/.gitignore

Re: [PATCH v1] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread Thiago Jung Bauermann
Hello Mimi, Mimi Zohar writes: > In addition to the PE/COFF and IMA xattr signatures, the kexec kernel > image can be signed with an appended signature, using the same > scripts/sign-file tool that is used to sign kernel modules. > > This patch adds support for detecting a kernel image signed

Re: [PATCH net] ibmvnic: Do not process reset during or after device removal

2019-08-28 Thread David Miller
From: Thomas Falcon Date: Tue, 27 Aug 2019 11:10:04 -0500 > Currently, the ibmvnic driver will not schedule device resets > if the device is being removed, but does not check the device > state before the reset is actually processed. This leads to a race > where a reset is scheduled with a valid

Re: [PATCH v2 4/4] powerpc/64: system call implement the bulk of the logic in C

2019-08-28 Thread Nicholas Piggin
Michal Suchánek's on August 29, 2019 1:30 am: > On Tue, 27 Aug 2019 23:55:48 +1000 > Nicholas Piggin wrote: > >> System call entry and particularly exit code is beyond the limit of what >> is reasonable to implement in asm. >> >> This conversion moves all conditional branches out of the asm

Re: [PATCH v4 2/2] powerpc/powernv: Add ultravisor message log interface

2019-08-28 Thread Claudio Carvalho
On 8/28/19 10:05 AM, Michael Ellerman wrote: > From: Claudio Carvalho > > The ultravisor (UV) provides an in-memory console which follows the > OPAL in-memory console structure. > > This patch extends the OPAL msglog code to initialize the UV memory > console and provide the

Re: [PATCH v4 1/2] powerpc/powernv/opal-msglog: Refactor memcons code

2019-08-28 Thread Claudio Carvalho
On 8/28/19 10:05 AM, Michael Ellerman wrote: > From: Claudio Carvalho > > This patch refactors the code in opal-msglog that operates on the OPAL > memory console in order to make it cleaner and also allow the reuse of > the new memcons_* functions. Tested-by: Claudio Carvalho Thanks, Claudio

Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-28 Thread Spencer Baugh
Jeff Layton writes: > On Mon, 2019-08-26 at 19:50 +, sba...@catern.com wrote: >> Aleksa Sarai writes: >> > To this end, we introduce the openat2(2) syscall. It provides all of the >> > features of openat(2) through the @how->flags argument, but also >> > also provides a new @how->resolve

Re: [PATCH 1/4] fs: always build llseek.

2019-08-28 Thread Eric W. Biederman
Michal Suchanek writes: > 64bit !COMPAT does not build because the llseek syscall is in the > tables. Do I read this right you have a 128 bit offset to llseek on ppc64? Looking at the signature it does not appear to make sense to build this function on any 64bit platform. Perhaps the proper

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Nathan Chancellor
On Wed, Aug 28, 2019 at 11:01:14AM -0700, Nick Desaulniers wrote: > On Wed, Aug 28, 2019 at 10:53 AM Nathan Chancellor > wrote: > > > > On Wed, Aug 28, 2019 at 11:43:53PM +1000, Michael Ellerman wrote: > > > Nathan Chancellor writes: > > > > > > > Commit aea447141c7e ("powerpc: Disable

Re: [PATCH 1/4] fs: always build llseek.

2019-08-28 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Michal Suchanek writes: > >> 64bit !COMPAT does not build because the llseek syscall is in the >> tables. > > Do I read this right you have a 128 bit offset to llseek on ppc64? > > Looking at the signature it does not appear to make sense to

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Nathan Chancellor
On Wed, Aug 28, 2019 at 11:43:53PM +1000, Michael Ellerman wrote: > Nathan Chancellor writes: > > > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when > > setjmp is used") disabled -Wbuiltin-requires-header because of a warning > > about the setjmp and longjmp declarations. >

Re: [linux-next][BUG][driver/scsi/lpfc][c00f62e6] Kernel panics when booting next kernel on my Power 9 box

2019-08-28 Thread Abdul Haleem
On Wed, 2019-08-28 at 08:22 -0700, James Smart wrote: > On 8/27/2019 10:02 PM, Abdul Haleem wrote: > > Greetings, > > > > linux-next kernel 5.3.0-rc1 failed to boot with kernel Oops on Power 9 > > box > > > > I see a recent changes to lpfc code was from commit > > 10541f03 scsi: lpfc: Update

[PATCH v2] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-28 Thread Michal Suchanek
Currently it is not possible to distinguish the case when fadump is supported by firmware and disabled in kernel and completely unsupported using the kernel sysfs interface. User can investigate the devicetree but it is more reasonable to provide sysfs files in case we get some fadumpv2 in the

Re: [PATCH rebased] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-28 Thread Michal Suchánek
On Tue, 27 Aug 2019 17:57:31 +0530 Hari Bathini wrote: > Hi Michal, > > Thanks for the patch. > > On 20/08/19 11:42 PM, Michal Suchanek wrote: > > Currently it is not possible to distinguish the case when fadump is > > supported by firmware and disabled in kernel and completely unsupported >

Re: [PATCH v6 06/12] powerpc/fsl_booke/32: implement KASLR infrastructure

2019-08-28 Thread Scott Wood
On Wed, 2019-08-28 at 19:03 +0800, Jason Yan wrote: > > On 2019/8/28 12:54, Scott Wood wrote: > > On Fri, Aug 09, 2019 at 06:07:54PM +0800, Jason Yan wrote: > > > +/* > > > + * To see if we need to relocate the kernel to a random offset > > > + * void *dt_ptr - address of the device tree > > > +

[PATCH v3 4/4] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-08-28 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig

[PATCH v3 3/4] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-28 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c -

[PATCH v3 2/4] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-28 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140 deletions(-) diff --git

[PATCH v3 1/4] powerpc: make llseek 32bit-only.

2019-08-28 Thread Michal Suchanek
Fixes: aff850393200 ("powerpc: add system call table generation support") Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/syscalls/syscall.tbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl

[PATCH v3 0/4] Disable compat cruft on ppc64le v3

2019-08-28 Thread Michal Suchanek
Less code means less bugs so add a knob to skip the compat stuff. This is tested on ppc64le top of https://patchwork.ozlabs.org/cover/1153556/ Changes in v2: saner CONFIG_COMPAT ifdefs Changes in v3: - change llseek to 32bit instead of builing it unconditionally in fs - clanup the makefile

Re: [PATCH 1/4] fs: always build llseek.

2019-08-28 Thread Michal Suchánek
On Wed, 28 Aug 2019 08:15:52 -0700 Christoph Hellwig wrote: > On Tue, Aug 27, 2019 at 10:21:06PM +0200, Michal Suchanek wrote: > > 64bit !COMPAT does not build because the llseek syscall is in the tables. > > Well, this will bloat thinkgs like 64-bit RISC-V for no good reason. > Please

Re: [PATCH] ASoC: fsl_ssi: Fix clock control issue in master mode

2019-08-28 Thread Fabio Estevam
Hi Shengjiu, On Wed, Aug 28, 2019 at 2:21 AM Shengjiu Wang wrote: > > The test case is > arecord -Dhw:0 -d 10 -f S16_LE -r 48000 -c 2 temp.wav & > aplay -Dhw:0 -d 30 -f S16_LE -r 48000 -c 2 test.wav > > There will be error after end of arecord: > aplay: pcm_write:2051: write error: Input/output

Re: [PATCH RESEND v11 7/8] open: openat2(2) syscall

2019-08-28 Thread Jeff Layton
On Mon, 2019-08-26 at 19:50 +, sba...@catern.com wrote: > Aleksa Sarai writes: > > To this end, we introduce the openat2(2) syscall. It provides all of the > > features of openat(2) through the @how->flags argument, but also > > also provides a new @how->resolve argument which exposes

Re: [PATCH v1] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread Mimi Zohar
On Wed, 2019-08-28 at 09:53 -0600, shuah wrote: > On 8/28/19 9:14 AM, Mimi Zohar wrote: > > In addition to the PE/COFF and IMA xattr signatures, the kexec kernel > > image can be signed with an appended signature, using the same > > scripts/sign-file tool that is used to sign kernel modules. > >

Re: [PATCH v1] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread shuah
On 8/28/19 9:14 AM, Mimi Zohar wrote: In addition to the PE/COFF and IMA xattr signatures, the kexec kernel image can be signed with an appended signature, using the same scripts/sign-file tool that is used to sign kernel modules. This patch adds support for detecting a kernel image signed with

Re: [PATCH v2 4/4] powerpc/64: system call implement the bulk of the logic in C

2019-08-28 Thread Michal Suchánek
On Tue, 27 Aug 2019 23:55:48 +1000 Nicholas Piggin wrote: > System call entry and particularly exit code is beyond the limit of what > is reasonable to implement in asm. > > This conversion moves all conditional branches out of the asm code, > except for the case that all GPRs should be

Re: [linux-next][BUG][driver/scsi/lpfc][10541f] Kernel panics when booting next kernel on my Power 9 box

2019-08-28 Thread James Smart
On 8/27/2019 10:02 PM, Abdul Haleem wrote: Greetings, linux-next kernel 5.3.0-rc1 failed to boot with kernel Oops on Power 9 box I see a recent changes to lpfc code was from commit 10541f03 scsi: lpfc: Update lpfc version to 12.4.0.0 Recent boot logs: [..snip..] see

Re: [PATCH] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread Mimi Zohar
On Wed, 2019-08-28 at 08:45 -0600, shuah wrote: > Hi Mimi, > > On 8/28/19 6:39 AM, Mimi Zohar wrote: > > Detect and allow appended signatures. > > > > Can you please add a couple of more sentences on the feature > and what happens without it? I know this is a test for the > feature, however, it

Re: [PATCH 1/4] fs: always build llseek.

2019-08-28 Thread Christoph Hellwig
On Tue, Aug 27, 2019 at 10:21:06PM +0200, Michal Suchanek wrote: > 64bit !COMPAT does not build because the llseek syscall is in the tables. Well, this will bloat thinkgs like 64-bit RISC-V for no good reason. Please introduce a WANT_LSEEK like symbol that ppc64 can select instead.

[PATCH v1] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread Mimi Zohar
In addition to the PE/COFF and IMA xattr signatures, the kexec kernel image can be signed with an appended signature, using the same scripts/sign-file tool that is used to sign kernel modules. This patch adds support for detecting a kernel image signed with an appended signature and updates the

Re: [PATCH] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread shuah
Hi Mimi, On 8/28/19 6:39 AM, Mimi Zohar wrote: Detect and allow appended signatures. Can you please add a couple of more sentences on the feature and what happens without it? I know this is a test for the feature, however, it will be useful for users and testers to know more about this test

Re: [PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Michal Suchánek
On Wed, 28 Aug 2019 20:57:48 +1000 Nicholas Piggin wrote: > Michal Suchanek's on August 28, 2019 8:30 pm: > > With endian switch disabled by default the ppc64le compat supports > > ppc32le only which is something next to nobody has binaries for. > > > > Less code means less bugs so drop the

Re: [PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Michal Suchánek
On Wed, 28 Aug 2019 13:08:48 + Christophe Leroy wrote: > On 08/28/2019 10:30 AM, Michal Suchanek wrote: > > With endian switch disabled by default the ppc64le compat supports > > ppc32le only which is something next to nobody has binaries for. > > > > Less code means less bugs so drop the

Re: [PATCH v2 3/4] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-28 Thread Michal Suchánek
On Wed, 28 Aug 2019 14:49:16 +0200 Christophe Leroy wrote: > Le 28/08/2019 à 12:30, Michal Suchanek a écrit : > > There are numerous references to 32bit functions in generic and 64bit > > code so ifdef them out. > > As far as possible, avoid opting things out with ifdefs. Ref >

Re: [PATCH] powerpc: use the generic dma coherent remap allocator

2019-08-28 Thread Christoph Hellwig
On Wed, Aug 28, 2019 at 11:34:09PM +1000, Michael Ellerman wrote: > Christoph Hellwig writes: > > Michael, > > > > do oyu plan to pick this up? Otherwise I'd love to pick it up through > > the dma-mapping tree as that would avoid one trivial conflict with > > another pending patch. > > It

Re: [PATCH v2] powerpc/mm: Implement STRICT_MODULE_RWX

2019-08-28 Thread Christophe Leroy
Any plan to getting this applied soon ? Christophe Le 14/06/2019 à 07:50, Russell Currey a écrit : Strict module RWX is just like strict kernel RWX, but for modules - so loadable modules aren't marked both writable and executable at the same time. This is handled by the generic code in

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-08-28 Thread Michael Ellerman
Nathan Chancellor writes: > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when > setjmp is used") disabled -Wbuiltin-requires-header because of a warning > about the setjmp and longjmp declarations. > > r367387 in clang added another diagnostic around this, complaining that >

Re: [PATCH v12 00/11] Appended signatures support for IMA appraisal

2019-08-28 Thread Mimi Zohar
Hi Jordan, On Mon, 2019-08-26 at 15:46 -0700, Jordan Hand wrote: > On 6/27/19 7:19 PM, Thiago Jung Bauermann wrote: > > On the OpenPOWER platform, secure boot and trusted boot are being > > implemented using IMA for taking measurements and verifying signatures. > > Since the kernel image on Power

[PATCH] powerpc/reg: use ASM_FTR_IFSET() instead of opencoding fixup.

2019-08-28 Thread Christophe Leroy
mftb() includes a feature fixup for CELL ppc. Use ASM_FTR_IFSET() macro instead of opencoding the setup of the fixup sections. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/reg.h | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git

[PATCH] powerpc/booke: Spelling s/date/data/

2019-08-28 Thread Geert Uytterhoeven
Caching dates is never a good idea ;-) Fixes: e7affb1dba0e9068 ("powerpc/cache: add cache flush operation for various e500") Signed-off-by: Geert Uytterhoeven --- arch/powerpc/kernel/cpu_setup_fsl_booke.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] powerpc: use the generic dma coherent remap allocator

2019-08-28 Thread Michael Ellerman
Christoph Hellwig writes: > Michael, > > do oyu plan to pick this up? Otherwise I'd love to pick it up through > the dma-mapping tree as that would avoid one trivial conflict with > another pending patch. It conflicts a bit with the ioremap changes I already have in next. And it would be good

Re: [DOC][PATCH] powerpc: Provide initial documentation for PAPR hcalls

2019-08-28 Thread Michael Ellerman
Laurent Dufour writes: > Le 27/08/2019 à 17:23, Vaibhav Jain a écrit : >> This doc patch provides an initial description of the hcall op-codes >> that are used by Linux kernel running as a guest (LPAR) on top of >> PowerVM or any other sPAPR compliant hyper-visor (e.g qemu). >> >> Apart from

Re: [PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Christophe Leroy
On 08/28/2019 10:30 AM, Michal Suchanek wrote: With endian switch disabled by default the ppc64le compat supports ppc32le only which is something next to nobody has binaries for. Less code means less bugs so drop the compat stuff. I am not particularly sure about the best way to resolve the

[PATCH v4 2/2] powerpc/powernv: Add ultravisor message log interface

2019-08-28 Thread Michael Ellerman
From: Claudio Carvalho The ultravisor (UV) provides an in-memory console which follows the OPAL in-memory console structure. This patch extends the OPAL msglog code to initialize the UV memory console and provide the "/sys/firmware/ultravisor/msglog" interface for userspace to view the UV

[PATCH v4 1/2] powerpc/powernv/opal-msglog: Refactor memcons code

2019-08-28 Thread Michael Ellerman
From: Claudio Carvalho This patch refactors the code in opal-msglog that operates on the OPAL memory console in order to make it cleaner and also allow the reuse of the new memcons_* functions. Signed-off-by: Claudio Carvalho Signed-off-by: Michael Ellerman --- v4: mpe: Rename

Re: [PATCH v6 00/12] implement KASLR for powerpc/fsl_booke/32

2019-08-28 Thread Michael Ellerman
Scott Wood writes: > On Tue, 2019-08-27 at 11:33 +1000, Michael Ellerman wrote: >> Jason Yan writes: >> > A polite ping :) >> > >> > What else should I do now? >> >> That's a good question. >> >> Scott, are you still maintaining FSL bits, > > Sort of... now that it's become very low volume,

Re: [PATCH] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread Petr Vorel
Hi Mimi, > Detect and allow appended signatures. > Signed-off-by: Mimi Zohar Reviewed-by: Petr Vorel Kind regards, Petr

Re: [PATCH v2 3/4] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-28 Thread Christophe Leroy
Le 28/08/2019 à 12:30, Michal Suchanek a écrit : There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. As far as possible, avoid opting things out with ifdefs. Ref

[PATCH] sefltest/ima: support appended signatures (modsig)

2019-08-28 Thread Mimi Zohar
Detect and allow appended signatures. Signed-off-by: Mimi Zohar --- .../selftests/kexec/test_kexec_file_load.sh| 38 +++--- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/kexec/test_kexec_file_load.sh

Re: [PATCH] powerpc/64: interrupt return in C

2019-08-28 Thread Nicholas Piggin
Christophe Leroy's on August 28, 2019 7:28 pm: > > > Le 28/08/2019 à 11:06, Nicholas Piggin a écrit : >> This is a work in progress that goes on top of the syscalls in C patch. >> It's not quite complete, 64e low level exit is not taken care of, and >> the new return is hacked into the existing

Re: [PATCH v6 06/12] powerpc/fsl_booke/32: implement KASLR infrastructure

2019-08-28 Thread Jason Yan
On 2019/8/28 12:54, Scott Wood wrote: On Fri, Aug 09, 2019 at 06:07:54PM +0800, Jason Yan wrote: This patch add support to boot kernel from places other than KERNELBASE. Since CONFIG_RELOCATABLE has already supported, what we need to do is map or copy kernel to a proper place and relocate.

Re: [PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Nicholas Piggin
Michal Suchanek's on August 28, 2019 8:30 pm: > With endian switch disabled by default the ppc64le compat supports > ppc32le only which is something next to nobody has binaries for. > > Less code means less bugs so drop the compat stuff. Interesting patches, thanks for looking into it. I don't

[PATCH v2 4/4] powerpc/64: Disable COMPAT if littleendian.

2019-08-28 Thread Michal Suchanek
ppc32le was never really a thing. Endian swap is already disabled by default so this 32bit support is kind of useless on ppc64le. Signed-off-by: Michal Suchanek --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig

[PATCH v2 3/4] powerpc/64: make buildable without CONFIG_COMPAT

2019-08-28 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c -

[PATCH v2 2/4] powerpc: move common register copy functions from signal_32.c to signal.c

2019-08-28 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions(+), 140 deletions(-) diff --git

[PATCH v2 1/4] fs: always build llseek.

2019-08-28 Thread Michal Suchanek
64bit !COMPAT does not build because the llseek syscall is in the tables. Signed-off-by: Michal Suchanek --- fs/read_write.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index 5bbf587f5bc1..9db56931eb26 100644 --- a/fs/read_write.c +++ b/fs/read_write.c

[PATCH v2 0/4] Disable compat cruft on ppc64le v2

2019-08-28 Thread Michal Suchanek
With endian switch disabled by default the ppc64le compat supports ppc32le only which is something next to nobody has binaries for. Less code means less bugs so drop the compat stuff. I am not particularly sure about the best way to resolve the llseek situation. I don't see anything in the

Re: [PATCH v1 2/2] PCI/AER: Update parameter descriptions to satisfy kernel-doc validator

2019-08-28 Thread Andy Shevchenko
On Tue, Aug 27, 2019 at 10:06:54AM -0700, Kuppuswamy Sathyanarayanan wrote: > > On 8/27/19 8:18 AM, Andy Shevchenko wrote: > > Kernel-doc validator complains: > > > > aer.c:207: warning: Function parameter or member 'str' not described in > > 'pcie_ecrc_get_policy' > > aer.c:1209: warning:

Re: [DOC][PATCH v2] powerpc: Provide initial documentation for PAPR hcalls

2019-08-28 Thread Nicholas Piggin
Vaibhav Jain's on August 28, 2019 6:27 pm: > This doc patch provides an initial description of the hcall op-codes > that are used by Linux kernel running as a guest (LPAR) on top of > PowerVM or any other sPAPR compliant hyper-visor (e.g qemu). > > Apart from documenting the hcalls the doc-patch

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-28 Thread Christophe Leroy
Le 28/08/2019 à 11:49, Nicholas Piggin a écrit : Christophe Leroy's on August 28, 2019 7:06 pm: Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : Accounted for some feedback. Nicholas Piggin (4): powerpc: convert to copy_thread_tls powerpc/64: remove support for kernel-mode

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-28 Thread Nicholas Piggin
Christophe Leroy's on August 28, 2019 7:06 pm: > > > Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : >> Accounted for some feedback. >> >> Nicholas Piggin (4): >>powerpc: convert to copy_thread_tls >>powerpc/64: remove support for kernel-mode syscalls >>powerpc/64: system call

Re: [PATCH v2 4/4] powerpc/64: system call implement the bulk of the logic in C

2019-08-28 Thread Nicholas Piggin
Christophe Leroy's on August 28, 2019 4:51 pm: > > > Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : >> -#include >> +#include >> +#include >> + >> +static inline void kuap_check_amr(void) >> +{ >> +#ifdef CONFIG_PPC_KUAP_DEBUG >> +if (mmu_has_feature(MMU_FTR_RADIX_KUAP)) > > Better: >

Re: [PATCH v2 3/4] powerpc/64: system call remove non-volatile GPR save optimisation

2019-08-28 Thread Nicholas Piggin
Christophe Leroy's on August 28, 2019 7:02 pm: > > > Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : >> powerpc has an optimisation where interrupts avoid saving the >> non-volatile (or callee saved) registers to the interrupt stack frame if >> they are not required. >> >> Two problems with

Re: [PATCH] powerpc/64: interrupt return in C

2019-08-28 Thread Christophe Leroy
Le 28/08/2019 à 11:06, Nicholas Piggin a écrit : This is a work in progress that goes on top of the syscalls in C patch. It's not quite complete, 64e low level exit is not taken care of, and the new return is hacked into the existing interrupt handlers pretty quickly (e.g., full gprs handling

Re: [RFC V2 0/1] mm/debug: Add tests for architecture exported page table helpers

2019-08-28 Thread Anshuman Khandual
On 08/26/2019 06:43 PM, Matthew Wilcox wrote: > On Mon, Aug 26, 2019 at 08:07:13AM +0530, Anshuman Khandual wrote: >> On 08/09/2019 07:22 PM, Matthew Wilcox wrote: >>> On Fri, Aug 09, 2019 at 04:05:07PM +0530, Anshuman Khandual wrote: On 08/09/2019 03:46 PM, Matthew Wilcox wrote: > On

Re: [PATCH v2] powerpc/powernv: Add ultravisor message log interface

2019-08-28 Thread Vaidyanathan Srinivasan
* Claudio Carvalho [2019-08-24 23:19:19]: > > On 8/23/19 9:48 AM, Michael Ellerman wrote: > > Hi Claudio, > > Hi Michael, > > > > > Claudio Carvalho writes: > >> Ultravisor (UV) provides an in-memory console which follows the OPAL > >> in-memory console structure. > >> > >> This patch

[PATCH] powerpc/64: interrupt return in C

2019-08-28 Thread Nicholas Piggin
This is a work in progress that goes on top of the syscalls in C patch. It's not quite complete, 64e low level exit is not taken care of, and the new return is hacked into the existing interrupt handlers pretty quickly (e.g., full gprs handling is still ugly and could be cleaned), but that code

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-28 Thread Christophe Leroy
Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : Accounted for some feedback. Nicholas Piggin (4): powerpc: convert to copy_thread_tls powerpc/64: remove support for kernel-mode syscalls powerpc/64: system call remove non-volatile GPR save optimisation powerpc/64: system call

Re: [PATCH v2 3/4] powerpc/64: system call remove non-volatile GPR save optimisation

2019-08-28 Thread Christophe Leroy
Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : powerpc has an optimisation where interrupts avoid saving the non-volatile (or callee saved) registers to the interrupt stack frame if they are not required. Two problems with this are that an interrupt does not always know whether it will

Re: [PATCH v2 08/10] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-08-28 Thread Andrew Murray
On Wed, Aug 28, 2019 at 04:29:32AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月27日 21:34 > > To: Xiaowei Bao > > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > > shawn...@kernel.org; Leo Li ; kis...@ti.com; > >

Re: [DOC][PATCH v2] powerpc: Provide initial documentation for PAPR hcalls

2019-08-28 Thread Laurent Dufour
Le 28/08/2019 à 10:27, Vaibhav Jain a écrit : This doc patch provides an initial description of the hcall op-codes that are used by Linux kernel running as a guest (LPAR) on top of PowerVM or any other sPAPR compliant hyper-visor (e.g qemu). Apart from documenting the hcalls the doc-patch also

[DOC][PATCH v2] powerpc: Provide initial documentation for PAPR hcalls

2019-08-28 Thread Vaibhav Jain
This doc patch provides an initial description of the hcall op-codes that are used by Linux kernel running as a guest (LPAR) on top of PowerVM or any other sPAPR compliant hyper-visor (e.g qemu). Apart from documenting the hcalls the doc-patch also provides a rudimentary overview of how hcall

RE: [PATCH v2 01/10] PCI: designware-ep: Add multiple PFs support for DWC

2019-08-28 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月27日 21:11 > To: Xiaowei Bao > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.co; a...@arndb.de; gre...@linuxfoundation.org; M.h. > Lian ;

Re: [PATCH v2 4/4] powerpc/64: system call implement the bulk of the logic in C

2019-08-28 Thread Christophe Leroy
Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : System call entry and particularly exit code is beyond the limit of what is reasonable to implement in asm. This conversion moves all conditional branches out of the asm code, except for the case that all GPRs should be restored at exit. Null

Re: [PATCH v3 3/3] Powerpc64/Watchpoint: Rewrite ptrace-hwbreak.c selftest

2019-08-28 Thread Christophe Leroy
Le 10/07/2019 à 06:54, Ravi Bangoria a écrit : ptrace-hwbreak.c selftest is logically broken. On powerpc, when watchpoint is created with ptrace, signals are generated before executing the instruction and user has to manually singlestep the instruction with watchpoint disabled, which selftest

Re: [PATCH] powerpc: use the generic dma coherent remap allocator

2019-08-28 Thread Christoph Hellwig
Michael, do oyu plan to pick this up? Otherwise I'd love to pick it up through the dma-mapping tree as that would avoid one trivial conflict with another pending patch.

[PATCH] powerpc: Replace GPL boilerplate with SPDX identifiers

2019-08-28 Thread Thomas Huth
The FSF does not reside in "675 Mass Ave, Cambridge" anymore... let's simply use proper SPDX identifiers instead. Signed-off-by: Thomas Huth --- arch/powerpc/include/uapi/asm/spu_info.h | 14 -- arch/powerpc/kernel/eeh_driver.c | 18 +-