Patch "powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB" has been added to the 5.2-stable tree

2019-08-27 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB to the 5.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Re: [PATCH 2/4] powerpc/64s: remove support for kernel-mode syscalls

2019-08-27 Thread Christophe Leroy
Euh ... That's a duplicate of [PATCH 2/4] "powerpc/64: remove support for kernel-mode syscalls" ? Le 27/08/2019 à 05:30, Nicholas Piggin a écrit : There is support for the kernel to execute the 'sc 0' instruction and make a system call to itself. This is a relic that is unused in the tree,

Re: [PATCH 2/4] powerpc/64: remove support for kernel-mode syscalls

2019-08-27 Thread Christophe Leroy
Le 27/08/2019 à 05:30, Nicholas Piggin a écrit : There is support for the kernel to execute the 'sc 0' instruction and make a system call to itself. This is a relic that is unused in the tree, therefore untested. It's also highly questionable for modules to be doing this. I like it. I

Patch "powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB" has been added to the 4.19-stable tree

2019-08-27 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Patch "powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB" has been added to the 4.14-stable tree

2019-08-27 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the

Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory

2019-08-27 Thread Alastair D'Silva
On Tue, 2019-08-27 at 08:28 +0200, Michal Hocko wrote: > On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > It is possible for firmware to allocate memory ranges outside > > the range of physical memory that we support (MAX_PHYSMEM_BITS). > > Doesn't that count

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

2019-08-27 Thread Christophe Leroy
Le 27/08/2019 à 05:30, 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 a relatively simple test to see whether all GPRs should be

Re: [PATCH v3] powerpc/fadump: sysfs for fadump memory reservation

2019-08-27 Thread Hari Bathini
On 27/08/19 8:49 AM, Michael Ellerman wrote: > Hari Bathini writes: >> On 26/08/19 4:14 PM, Sourabh Jain wrote: >>> On 8/26/19 3:46 PM, Sourabh Jain wrote: On 8/26/19 3:29 PM, Hari Bathini wrote: > On 10/08/19 11:29 PM, Sourabh Jain wrote: >> Add a sys interface to allow querying

Re: [PATCH 1/4] powerpc: convert to copy_thread_tls

2019-08-27 Thread Christophe Leroy
Le 27/08/2019 à 05:30, Nicholas Piggin a écrit : Commit 3033f14ab78c3 ("clone: support passing tls argument via C rather than pt_regs magic") introduced the HAVE_COPY_THREAD_TLS option. Use it to avoid a subtle assumption about the argument ordering of clone type syscalls. Signed-off-by:

Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory

2019-08-27 Thread Michal Hocko
On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: > From: Alastair D'Silva > > It is possible for firmware to allocate memory ranges outside > the range of physical memory that we support (MAX_PHYSMEM_BITS). Doesn't that count as a FW bug? Do you have any evidence of that in the field? Just

Re: [PATCH v2] powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB

2019-08-27 Thread Greg Kroah-Hartman
On Mon, Aug 26, 2019 at 10:08:26PM +0200, Christophe Leroy wrote: > > > Le 26/08/2019 à 18:50, Greg Kroah-Hartman a écrit : > > On Wed, Aug 21, 2019 at 10:19:27AM +1000, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > The upstream commit: > > > 22e9c88d486a ("powerpc/64: reuse

Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory

2019-08-27 Thread David Hildenbrand
On 27.08.19 08:39, Alastair D'Silva wrote: > On Tue, 2019-08-27 at 08:28 +0200, Michal Hocko wrote: >> On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: >>> From: Alastair D'Silva >>> >>> It is possible for firmware to allocate memory ranges outside >>> the range of physical memory that we

Re: [PATCH] ASoC: imx-audmix: register the card on a proper dev

2019-08-27 Thread Daniel Baluta
On Tue, 2019-08-27 at 11:55 -0400, Shengjiu Wang wrote: > This platform device is registered from "fsl_audmix", which is > its parent device. If use pdev->dev.parent for the priv->card.dev, > the value set by dev_set_drvdata in parent device will be covered > by the value in child device. > >

Re: [PATCH 6/6] MIPS: document mixing "slightly different CCAs"

2019-08-27 Thread Paul Burton
Hi Christoph, On Mon, Aug 26, 2019 at 03:25:53PM +0200, Christoph Hellwig wrote: > Based on an email from Paul Burton, quoting section 4.8 "Cacheability and > Coherency Attributes and Access Types" of "MIPS Architecture Volume 1: > Introduction to the MIPS32 Architecture" (MD00080, revision

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

2019-08-27 Thread Segher Boessenkool
On Tue, Aug 27, 2019 at 01:30:09PM +1000, Nicholas Piggin wrote: > -435 nospu clone3 ppc_clone3 > +435 32 clone3 ppc_clone3 > sys_clone3 > +435 64 clone3 sys_clone3 > +435 nospu

Re: [RFC 0/3] New idle device-tree format and support for versioned stop state

2019-08-27 Thread Nicholas Piggin
Abhishek Goel's on August 23, 2019 5:09 pm: > Background > -- > > Previously if a older kernel runs on a newer firmware, it may enable > all available states irrespective of its capability of handling it. > Consider a case that some stop state has a bug, we end up disabling all >

Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory

2019-08-27 Thread Michal Hocko
On Tue 27-08-19 16:39:56, Alastair D'Silva wrote: > On Tue, 2019-08-27 at 08:28 +0200, Michal Hocko wrote: > > On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > It is possible for firmware to allocate memory ranges outside > > > the range of physical

[PATCH 1/2] powerpc: permanently include 8xx registers in reg.h

2019-08-27 Thread Christophe Leroy
Most 8xx registers have specific names, so just include reg_8xx.h all the time in reg.h in order to have them defined even when CONFIG_PPC_8xx is not selected. This will avoid the need for #ifdefs in C code. Guard SPRN_ICTRL in an #ifdef CONFIG_PPC_8xx as this register has same name but different

Re: [PATCH] powerpc: dump kernel log before carrying out fadump or kdump

2019-08-27 Thread Nicholas Piggin
Ganesh Goudar's on August 22, 2019 4:31 pm: > Die or panic path in system reset handler dumps kernel log to > nvram, since commit 4388c9b3a6ee ("powerpc: Do not send system > reset request through the oops path") system reset request is > not allowed to take die path if fadump or kdump is

Re: [PATCH v2] powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB

2019-08-27 Thread Greg Kroah-Hartman
On Wed, Aug 21, 2019 at 10:19:27AM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > The upstream commit: > 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") > has a similar effect, but since it is a rewrite of the assembler to C, is > too invasive for stable.

Re: [PATCH 1/3] powerpc/64: __ioremap_at clean up in the error case

2019-08-27 Thread Nicholas Piggin
Christophe Leroy's on August 20, 2019 5:44 pm: > Hi Nick, > > Le 10/06/2019 à 05:08, Nicholas Piggin a écrit : >> __ioremap_at error handling is wonky, it requires caller to clean up >> after it. Implement a helper that does the map and error cleanup and >> remove the requirement from the caller.

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

2019-08-27 Thread Nicholas Piggin
Christophe Leroy's on August 27, 2019 4:46 pm: > > > Le 27/08/2019 à 05:30, 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, >>

Re: [PATCH v2 6/6] mm/memory_hotplug: Pass nid instead of zone to __remove_pages()

2019-08-27 Thread Robin Murphy
On 26/08/2019 11:10, David Hildenbrand wrote: The zone parameter is no longer in use. Replace it with the nid, which we can now use the nid to limit the number of zones we have to process (vie for_each_zone_nid()). The function signature of __remove_pages() now looks much more similar to the one

[RESEND PATCH v5 13/31] powernv/fadump: reset metadata address during clean up

2019-08-27 Thread Hari Bathini
During kexec boot, metadata address needs to be reset to avoid running into errors interpreting stale metadata address, in case the kexec'ed kernel crashes before metadata address could be setup again. Signed-off-by: Hari Bathini --- * Added check in fadump_cleanup() function for whether FADump

[PATCH v3] powerpc/imc: Dont create debugfs files for cpu-less nodes

2019-08-27 Thread Madhavan Srinivasan
Commit <684d984038aa> ('powerpc/powernv: Add debugfs interface for imc-mode and imc') added debugfs interface for the nest imc pmu devices to support changing of different ucode modes. Primarily adding this capability for debug. But when doing so, the code did not consider the case of cpu-less

Re: [PATCH 2/4] powerpc/64s: remove support for kernel-mode syscalls

2019-08-27 Thread Nicholas Piggin
Christophe Leroy's on August 27, 2019 4:14 pm: > Euh ... That's a duplicate of [PATCH 2/4] "powerpc/64: remove support > for kernel-mode syscalls" ? Yeah sorry I changed the title and got myself confused. Thanks, Nick

Re: [PATCH v5 13/31] powernv/fadump: reset metadata address during clean up

2019-08-27 Thread Hari Bathini
On 20/08/19 5:35 PM, Hari Bathini wrote: > During kexec boot, metadata address needs to be reset to avoid running > into errors interpreting stale metadata address, in case the kexec'ed > kernel crashes before metadata address could be setup again. > > Signed-off-by: Hari Bathini > --- >

[PATCH 0/2] PowerPC-pSeries: Adjustments for dlpar_store()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 14:33:21 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an unnecessary kfree() call Delete an error message for a failed string duplication arch/powerpc/platforms/pseries/dlpar.c

Re: [PATCH 1/4] powerpc: convert to copy_thread_tls

2019-08-27 Thread Nicholas Piggin
Christophe Leroy's on August 27, 2019 4:07 pm: > > > Le 27/08/2019 à 05:30, Nicholas Piggin a écrit : >> Commit 3033f14ab78c3 ("clone: support passing tls argument via C rather >> than pt_regs magic") introduced the HAVE_COPY_THREAD_TLS option. Use it >> to avoid a subtle assumption about the

Re: [PATCH 2/4] powerpc/64: remove support for kernel-mode syscalls

2019-08-27 Thread Nicholas Piggin
Christophe Leroy's on August 27, 2019 4:13 pm: > > > Le 27/08/2019 à 05:30, Nicholas Piggin a écrit : >> There is support for the kernel to execute the 'sc 0' instruction and >> make a system call to itself. This is a relic that is unused in the >> tree, therefore untested. It's also highly

[PATCH 1/2] powerpc/pseries: Delete an unnecessary kfree() call in dlpar_store()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 13:34:02 +0200 A null pointer would be passed to a call of the function “kfree” immediately after a call of the function “kstrdup” failed at one place. Remove this superfluous function call. This issue was detected by using the Coccinelle software.

Re: [PATCH 2/4] powerpc/64: remove support for kernel-mode syscalls

2019-08-27 Thread Nicholas Piggin
Nicholas Piggin's on August 27, 2019 8:20 pm: > Christophe Leroy's on August 27, 2019 4:13 pm: >> >> >> Le 27/08/2019 à 05:30, Nicholas Piggin a écrit : >>> There is support for the kernel to execute the 'sc 0' instruction and >>> make a system call to itself. This is a relic that is unused in

powerpc asm-prototypes.h seems odd

2019-08-27 Thread Masahiro Yamada
Hi. Lots of powerpc files include , and powerpc is the only architecture that does this. exists to support modversion for asm. So, it is supposed to be parsed by genksysms, not to be included from other files. Right? $ git grep asm/asm-prototypes.h arch/arm64/include/asm/asm-prototypes.h:

Re: [powerpc]WARN : arch/powerpc/platforms/powernv/smp.c:160

2019-08-27 Thread Sachin Sant
> On 26-Aug-2019, at 3:42 PM, Sachin Sant wrote: > >> On 26-Aug-2019, at 8:59 AM, Michael Ellerman wrote: >> >> Sachin Sant writes: >>> linux-next is currently broken on POWER8 non virtualized. Kernel >>> fails to reach login prompt with following kernel warning >>> repeatedly shown during

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

2019-08-27 Thread Hari Bathini
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 > using the kernel sysfs interface. User can investigate the devicetree

[PATCH 2/2] powerpc/pseries: Delete an error message for a failed string duplication in dlpar_store()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 13:37:56 +0200 Omit an extra message for a memory allocation failure in this function. Signed-off-by: Markus Elfring --- arch/powerpc/platforms/pseries/dlpar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 1/2] powerpc/82xx: Delete an unnecessary of_node_put() call in pq2ads_pci_init_irq()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 08:44:20 +0200 A null pointer would be passed to a call of the function “of_node_put” immediately after a call of the function “of_find_compatible_node” failed at one place. Remove this superfluous function call. This issue was detected by using the

[PATCH 2/2] powerpc/82xx: Use common error handling code in pq2ads_pci_init_irq()

2019-08-27 Thread Markus Elfring
From: Markus Elfring Date: Tue, 27 Aug 2019 09:19:32 +0200 Adjust jump targets so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH 3/6] dma-mapping: remove arch_dma_mmap_pgprot

2019-08-27 Thread Paul Burton
Hi Christoph, On Mon, Aug 26, 2019 at 03:25:50PM +0200, Christoph Hellwig wrote: > arch_dma_mmap_pgprot is used for two things: > > 1) to override the "normal" uncached page attributes for mapping > memory coherent to devices that can't snoop the CPU caches > 2) to provide the special

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

2019-08-27 Thread Thomas Falcon
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 device state but is processed after the driver has been removed,

Re: [PATCH 08/10] dt-bindings: PCI: Add the pf-offset property

2019-08-27 Thread Rob Herring
On Thu, 15 Aug 2019 16:37:14 +0800, Xiaowei Bao wrote: > Add the pf-offset property for multiple PF. > > Signed-off-by: Xiaowei Bao > --- > Documentation/devicetree/bindings/pci/designware-pcie.txt | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Rob Herring

Re: [PATCH 2/2] powerpc: cleanup hw_irq.h

2019-08-27 Thread Nicholas Piggin
Christophe Leroy's on August 27, 2019 6:13 pm: > SET_MSR_EE() is just use in this file and doesn't provide > any added value compared to mtmsr(). Drop it. > > Add macros to use wrtee/wrteei insn. > > Replace #ifdefs by IS_ENABLED() > > Signed-off-by: Christophe Leroy > --- >

Re: [PATCH] perf arch powerpc: Sync powerpc syscall.tbl

2019-08-27 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 27, 2019 at 12:44:58PM +0530, Naveen N. Rao escreveu: > Copy over powerpc syscall.tbl to grab changes from the below commits: > commit cee3536d24a1 ("powerpc: Wire up clone3 syscall") > commit 1a271a68e030 ("arch: mark syscall number 435 reserved for clone3") > commit

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

2019-08-27 Thread Andrew Murray
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; > > shawn...@kernel.org; Leo Li ; kis...@ti.com; > >

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

2019-08-27 Thread Nicholas Piggin
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 need non-volatiles; and if it does need them, they can

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

2019-08-27 Thread Andrew Murray
On Fri, Aug 23, 2019 at 11:50:20PM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月23日 21:25 > > To: Xiaowei Bao > > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > > shawn...@kernel.org; Leo Li ; kis...@ti.com; > >

[PATCH v2 1/4] powerpc: convert to copy_thread_tls

2019-08-27 Thread Nicholas Piggin
Commit 3033f14ab78c3 ("clone: support passing tls argument via C rather than pt_regs magic") introduced the HAVE_COPY_THREAD_TLS option. Use it to avoid a subtle assumption about the argument ordering of clone type syscalls. Signed-off-by: Nicholas Piggin --- No change since v1.

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

2019-08-27 Thread Andrew Murray
On Mon, Aug 26, 2019 at 09:49:35AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月23日 22:28 > > To: Xiaowei Bao > > Cc: bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > > shawn...@kernel.org; Leo Li ; kis...@ti.com; > >

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

2019-08-27 Thread Nicholas Piggin
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 implement the bulk of the logic in C arch/powerpc/Kconfig

[PATCH v2 2/4] powerpc/64: remove support for kernel-mode syscalls

2019-08-27 Thread Nicholas Piggin
There is support for the kernel to execute the 'sc 0' instruction and make a system call to itself. This is a relic that is unused in the tree, therefore untested. It's also highly questionable for modules to be doing this. Signed-off-by: Nicholas Piggin --- No change since v1.

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

2019-08-27 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/syscall.h | 2 ++ arch/powerpc/kernel/Makefile | 15 --- arch/powerpc/kernel/entry_64.S | 2 ++

Re: [PATCH v2 04/10] dt-bindings: pci: layerscape-pci: add compatible strings for ls1088a and ls2088a

2019-08-27 Thread Rob Herring
On Thu, Aug 22, 2019 at 07:22:36PM +0800, Xiaowei Bao wrote: > Add compatible strings for ls1088a and ls2088a. > > Signed-off-by: Xiaowei Bao > --- > v2: > - No change. > > Documentation/devicetree/bindings/pci/layerscape-pci.txt | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) >

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

2019-08-27 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

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

2019-08-27 Thread Michal Suchánek
On Tue, 27 Aug 2019 22:21:08 +0200 Michal Suchanek wrote: > There are numerous references to 32bit functions in generic and 64bit > code so ifdef them out. > > Signed-off-by: Michal Suchanek > --- > arch/powerpc/include/asm/syscall.h | 2 ++ > arch/powerpc/kernel/Makefile | 15

Re: [PATCH v6 04/12] powerpc/fsl_booke/32: introduce create_tlb_entry() helper

2019-08-27 Thread Scott Wood
On Fri, Aug 09, 2019 at 06:07:52PM +0800, Jason Yan wrote: > Add a new helper create_tlb_entry() to create a tlb entry by the virtual > and physical address. This is a preparation to support boot kernel at a > randomized address. > > Signed-off-by: Jason Yan > Cc: Diana Craciun > Cc: Michael

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

2019-08-27 Thread Bjorn Helgaas
On Mon, Aug 26, 2019 at 11:51:43AM +0200, 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() > -

[PATCH 0/4] Disable compat cruft on ppc64le

2019-08-27 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

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

2019-08-27 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

Applied "ASoC: imx-audmix: register the card on a proper dev" to the asoc tree

2019-08-27 Thread Mark Brown
The patch ASoC: imx-audmix: register the card on a proper dev has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

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

2019-08-27 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

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

2019-08-27 Thread Nicholas Piggin
Vaibhav Jain's on August 28, 2019 1:23 am: > 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 v6 00/12] implement KASLR for powerpc/fsl_booke/32

2019-08-27 Thread Scott Wood
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 supported, what we need to do is >

Re: [PATCH] powerpc/configs: Disable /dev/port in skiroot defconfig

2019-08-27 Thread Michael Ellerman
On Thu, 2019-06-27 at 05:30:08 UTC, Daniel Axtens wrote: > While reviewing lockdown patches, I discovered that we still enable > /dev/port (CONFIG_DEVPORT) in skiroot. > > We don't need it. Deselect CONFIG_DEVPORT for skiroot. > > Signed-off-by: Daniel Axtens Applied to powerpc next, thanks.

Re: [PATCH] powerpc/selftests: Fix and enhance TM signal context tests

2019-08-27 Thread Michael Ellerman
On Wed, 2019-08-14 at 20:52:11 UTC, Gustavo Romero wrote: > Currently TM signal context tests for GPR, FPR, VMX, and VSX registers > print wrong register numbers (wrongly starting from register 0 instead of > the first register in the non-volatile subset). Besides it the output when > a mismatch

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

2019-08-27 Thread Shengjiu Wang
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 error Capture and Playback work in parallel in master mode, one substream stops,

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

2019-08-27 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月27日 21:25 > 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 v4 1/3] powerpc: rewrite LOAD_REG_IMMEDIATE() as an intelligent macro

2019-08-27 Thread Michael Ellerman
On Tue, 2019-08-20 at 14:34:12 UTC, Christophe Leroy wrote: > Today LOAD_REG_IMMEDIATE() is a basic #define which loads all > parts on a value into a register, including the parts that are NUL. > > This means always 2 instructions on PPC32 and always 5 instructions > on PPC64. And those

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

2019-08-27 Thread Scott Wood
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. Freescale Book-E > parts expect lowmem

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-08-27 Thread Michael Ellerman
On Sat, 2019-07-13 at 03:21:06 UTC, Masahiro Yamada wrote: > The KBUILD_ARFLAGS addition in arch/powerpc/Makefile has never worked > in a useful way because it is always overridden by the following code > in the top Makefile: > > # use the deterministic mode of AR if available >

Re: [PATCH v5] powerpc/64s: support nospectre_v2 cmdline option

2019-08-27 Thread Michael Ellerman
On Fri, 2019-05-24 at 02:46:48 UTC, "Christopher M. Riedl" wrote: > Add support for disabling the kernel implemented spectre v2 mitigation > (count cache flush on context switch) via the nospectre_v2 and > mitigations=off cmdline options. > > Suggested-by: Michael Ellerman > Signed-off-by:

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

2019-08-27 Thread Xiaowei Bao
> -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; > lorenzo.pieral...@arm.co; a...@arndb.de; gre...@linuxfoundation.org; M.h. > Lian ;

Re: [PATCH] powerpc/64: don't select ARCH_HAS_SCALED_CPUTIME on book3E

2019-08-27 Thread Michael Ellerman
On Thu, 2019-08-22 at 16:44:05 UTC, Christophe Leroy wrote: > Book3E doesn't have SPRN_SPURR/SPRN_PURR. > > Activating ARCH_HAS_SCALED_CPUTIME is just wasting CPU time. > > Signed-off-by: Christophe Leroy > Link: https://github.com/linuxppc/issues/issues/171 Applied to powerpc next, thanks.

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

2019-08-27 Thread Scott Wood
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, it's easy to forget when

Re: [PATCH v4 1/3] powerpc/spinlocks: Refactor SHARED_PROCESSOR

2019-08-27 Thread Michael Ellerman
On Tue, 2019-08-13 at 03:13:12 UTC, "Christopher M. Riedl" wrote: > Determining if a processor is in shared processor mode is not a constant > so don't hide it behind a #define. > > Signed-off-by: Christopher M. Riedl > Reviewed-by: Andrew Donnellan Series applied to powerpc next, thanks.

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

2019-08-27 Thread Scott Wood
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 randomized > > region, so we chose

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

2019-08-27 Thread 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 message log. Signed-off-by:

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

2019-08-27 Thread 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 --- arch/powerpc/platforms/powernv/opal-msglog.c | 61 ++-- 1 file changed,

Re: [PATCH 1/2] powerpc: Document xmon options

2019-08-27 Thread Michael Ellerman
On Wed, 2019-08-14 at 20:56:37 UTC, Gustavo Romero wrote: > Document all options currently supported by xmon debugger. > > Signed-off-by: Gustavo Romero Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6278f55ba5ed20f486ea2049da0cf9a9c1d9a5d5 cheers

Re: [PATCH v5 01/12] powerpc/64: Adjust order in pcibios_init()

2019-08-27 Thread Michael Ellerman
On Fri, 2019-08-16 at 04:48:05 UTC, Sam Bobroff wrote: > The pcibios_init() function for PowerPC 64 currently calls > pci_bus_add_devices() before pcibios_resource_survey(). This means > that at boot time, when the pcibios_bus_add_device() hooks are called > by pci_bus_add_devices(), device

Re: [PATCH v6 04/12] powerpc/fsl_booke/32: introduce create_tlb_entry() helper

2019-08-27 Thread Jason Yan
Hi Scott, Thanks for your reply. On 2019/8/28 6:07, Scott Wood wrote: On Fri, Aug 09, 2019 at 06:07:52PM +0800, Jason Yan wrote: Add a new helper create_tlb_entry() to create a tlb entry by the virtual and physical address. This is a preparation to support boot kernel at a randomized address.

[PATCH v5 0/2] Restrict xmon when kernel is locked down

2019-08-27 Thread Christopher M. Riedl
Xmon should be either fully or partially disabled depending on the kernel lockdown state. Put xmon into read-only mode for lockdown=integrity and completely disable xmon when lockdown=confidentiality. Since this can occur dynamically, there may be pre-existing, active breakpoints in xmon when

Re: [PATCH v2 01/12] powerpc: remove the ppc44x ocm.c file

2019-08-27 Thread Michael Ellerman
On Tue, 2019-08-20 at 14:07:09 UTC, Christophe Leroy wrote: > From: Christoph Hellwig > > The on chip memory allocator is entirely unused in the kernel tree. > > Signed-off-by: Christoph Hellwig > Acked-by: Christophe Leroy > Signed-off-by: Christophe Leroy Series applied to powerpc next,

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

2019-08-27 Thread Christophe Leroy
Le 28/08/2019 à 06:54, Scott Wood a écrit : 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

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

2019-08-27 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月27日 22:49 > To: Xiaowei Bao > Cc: christophe leroy ; mark.rutl...@arm.com; Roy > Zang ; lorenzo.pieral...@arm.co; a...@arndb.de; > devicet...@vger.kernel.org; gre...@linuxfoundation.org; > linuxppc-dev@lists.ozlabs.org;

[PATCH v5 2/2] powerpc/xmon: Restrict when kernel is locked down

2019-08-27 Thread Christopher M. Riedl
Xmon should be either fully or partially disabled depending on the kernel lockdown state. Put xmon into read-only mode for lockdown=integrity and prevent user entry into xmon when lockdown=confidentiality. Xmon checks the lockdown state on every attempted entry: (1) during early xmon'ing (2)

[PATCH v5 1/2] powerpc/xmon: Allow listing and clearing breakpoints in read-only mode

2019-08-27 Thread Christopher M. Riedl
Read-only mode should not prevent listing and clearing any active breakpoints. Signed-off-by: Christopher M. Riedl --- arch/powerpc/xmon/xmon.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index

Re: [PATCH] powerpc/kmcent2: update the ethernet devices' phy properties

2019-08-27 Thread Scott Wood
On Thu, 2019-08-08 at 23:09 +0200, Valentin Longchamp wrote: > Le mar. 30 juil. 2019 à 11:44, Madalin-cristian Bucur > a écrit : > > > > > -Original Message- > > > > > > > Le dim. 14 juil. 2019 à 22:05, Valentin Longchamp > > > > a écrit : > > > > > > > > > > Change all

Re: [PATCH] selftests/powerpc: Retry on host facility unavailable

2019-08-27 Thread Michael Ellerman
On Tue, 2019-08-20 at 22:54:11 UTC, Gustavo Romero wrote: > TM test tm-unavailable must take into account aborts due to host aborting > a transactin because of a facility unavailable exception, just like it > already does for aborts on reschedules (TM_CAUSE_KVM_RESCHED). > > Reported-by: Desnes

Re: [PATCH 2/2] powerpc: cleanup hw_irq.h

2019-08-27 Thread Segher Boessenkool
On Tue, Aug 27, 2019 at 07:36:35PM +0200, Christophe Leroy wrote: > Le 27/08/2019 à 19:29, Segher Boessenkool a écrit : > >On Tue, Aug 27, 2019 at 10:48:24PM +1000, Nicholas Piggin wrote: > >>Christophe Leroy's on August 27, 2019 6:13 pm: > >>>+#define wrtee(val)asm volatile("wrtee %0" : :

Re: [PATCH 2/2] powerpc: cleanup hw_irq.h

2019-08-27 Thread Christophe Leroy
Le 27/08/2019 à 20:26, Segher Boessenkool a écrit : On Tue, Aug 27, 2019 at 07:36:35PM +0200, Christophe Leroy wrote: Le 27/08/2019 à 19:29, Segher Boessenkool a écrit : On Tue, Aug 27, 2019 at 10:48:24PM +1000, Nicholas Piggin wrote: Christophe Leroy's on August 27, 2019 6:13 pm:

[PATCH v2 1/2] powerpc: permanently include 8xx registers in reg.h

2019-08-27 Thread Christophe Leroy
Most 8xx registers have specific names, so just include reg_8xx.h all the time in reg.h in order to have them defined even when CONFIG_PPC_8xx is not selected. This will avoid the need for #ifdefs in C code. Guard SPRN_ICTRL in an #ifdef CONFIG_PPC_8xx as this register has same name but different

[PATCH v2 2/2] powerpc: cleanup hw_irq.h

2019-08-27 Thread Christophe Leroy
SET_MSR_EE() is just use in this file and doesn't provide any added value compared to mtmsr(). Drop it. Add a wrtee() inline function to use wrtee/wrteei insn. Replace #ifdefs by IS_ENABLED() Signed-off-by: Christophe Leroy --- v2: Changed wrtee()/wrteei() to a single wrtee() inline which

Re: [PATCH 2/2] powerpc: cleanup hw_irq.h

2019-08-27 Thread Segher Boessenkool
On Tue, Aug 27, 2019 at 08:33:45PM +0200, Christophe Leroy wrote: > >So > > asm("add%I2 %0,%1,%2" : "=r"(dst) : "r"(src1), "ri"(src1)); > > "ri", not "n" as for wrtee ? "n" means a number. "i" means any constant integer. The difference is mostly that "n" does not allow relocations. This

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

2019-08-27 Thread Laurent Dufour
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 documenting the hcalls the doc-patch also

[PATCH 1/2] powerpc: permanently include 8xx registers in reg.h

2019-08-27 Thread Christophe Leroy
Most 8xx registers have specific names, so just include reg_8xx.h all the time in reg.h in order to have them defined even when CONFIG_PPC_8xx is not selected. This will avoid the need for #ifdefs in C code. Guard SPRN_ICTRL in an #ifdef CONFIG_PPC_8xx as this register has same name but different

Re: [PATCH 2/2] powerpc: cleanup hw_irq.h

2019-08-27 Thread Segher Boessenkool
On Tue, Aug 27, 2019 at 10:48:24PM +1000, Nicholas Piggin wrote: > Christophe Leroy's on August 27, 2019 6:13 pm: > > +#define wrtee(val) asm volatile("wrtee %0" : : "r" (val) : "memory") > > +#define wrteei(val)asm volatile("wrteei %0" : : "i" (val) : > > "memory") > > Can you implement

[PATCH 2/2] powerpc/hw_breakpoints: Rewrite 8xx breakpoints to allow any address range size.

2019-08-27 Thread Christophe Leroy
Unlike standard powerpc, Powerpc 8xx doesn't have SPRN_DABR, but it has a breakpoint support based on a set of comparators which allow more flexibility. Commit 4ad8622dc548 ("powerpc/8xx: Implement hw_breakpoint") implemented breakpoints by emulating the DABR behaviour. It did this by setting one

Re: [PATCH 2/2] powerpc: cleanup hw_irq.h

2019-08-27 Thread Christophe Leroy
Le 27/08/2019 à 19:29, Segher Boessenkool a écrit : On Tue, Aug 27, 2019 at 10:48:24PM +1000, Nicholas Piggin wrote: Christophe Leroy's on August 27, 2019 6:13 pm: +#define wrtee(val) asm volatile("wrtee %0" : : "r" (val) : "memory") +#define wrteei(val)asm volatile("wrteei %0" : :

[PATCH v1 1/2] PCI/AER: Use for_each_set_bit()

2019-08-27 Thread Andy Shevchenko
This simplifies and standardizes slot manipulation code by using for_each_set_bit() library function. Signed-off-by: Andy Shevchenko --- drivers/pci/pcie/aer.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/pci/pcie/aer.c

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

2019-08-27 Thread Andy Shevchenko
Kernel-doc validator complains: aer.c:207: warning: Function parameter or member 'str' not described in 'pcie_ecrc_get_policy' aer.c:1209: warning: Function parameter or member 'irq' not described in 'aer_isr' aer.c:1209: warning: Function parameter or member 'context' not described in

  1   2   >