Re: [RFC PATCH v2 5/5] powerpc/syscalls: Allow none instead of sys_ni_syscall

2019-01-17 Thread Firoz Khan
Hi Arnd, On Wed, 16 Jan 2019 at 19:23, Arnd Bergmann wrote: > > On Wed, Jan 16, 2019 at 2:27 PM Michael Ellerman wrote: > > @@ -24,28 +24,28 @@ > > 14 common mknod sys_mknod > > 15 common chmod sys_chmod > > 16 common lchown

Re: [RFC PATCH v2 2/5] powerpc/syscalls: Remove unused offset parameter

2019-01-17 Thread Firoz Khan
Hi Michael, On Wed, 16 Jan 2019 at 18:57, Michael Ellerman wrote: > > We never pass a value for offset, nor do we need to, so remove the > offset logic. The idea behind all these effort is to come up with a common script for alpha, ia64, m68k, microblaze, mips, parisc, powerpc, sh, sparc and

Re: [RFC PATCH 4/5] powerpc/syscalls: Allow none instead of sys_ni_syscall

2019-01-17 Thread Firoz Khan
Hi Michael, On Mon, 14 Jan 2019 at 17:06, Michael Ellerman wrote: > > sys_ni_syscall is the "not-implemented" syscall syscall, which just > returns -ENOSYS. > > But unless you know that it's not obvious what it does, and even if > you do know what it means it doesn't stand out that well from

[PATCH] powerpc/powernv: Force an freset if IODA reset fails

2019-01-17 Thread Oliver O'Halloran
The IODA reset can fail in cases where the PHB has encounted a fatal error during early boot. Typically this is due a malfunctioning device directly below the root complex, but can occur for other reasons. This patch fixes the problem by forcing a reset of the PHB if we get an error back from

Re: [PATCH 0/3] powerpc: some header search path cleanups

2019-01-17 Thread Masahiro Yamada
Hi Michael, On Fri, Jan 11, 2019 at 2:20 PM Masahiro Yamada wrote: > > I am trying to get rid of crappy magic from Kbuild core makefiles. > > Before that, I want to drop as many useless paths as possible. > Actually, many Makefiles are adding around pointless options. > > This series cleans

Re: G5 Quad hangs early on 4.20.2 / 5.0-rc2+

2019-01-17 Thread Paul Mackerras
On Tue, Jan 15, 2019 at 11:49:45PM +0100, Tobias Ulmer wrote: > Hi, > > both the latest stable 4.20.2 and 5.0 rc2+ hang early on the G5 Quad. Interesting, I just built v4.20 with g5_defconfig for my quad and it booted just fine. I'll try Linus' latest. It could be config-related; could you

[PATCH] hugetlb: allow to free gigantic pages regardless of the configuration

2019-01-17 Thread Alexandre Ghiti
From: Alexandre Ghiti On systems without CMA or (MEMORY_ISOLATION && COMPACTION) activated but that support gigantic pages, boottime reserved gigantic pages can not be freed at all. This patchs simply enables the possibility to hand back those pages to memory allocator. This commit then renames

Re: G5 Quad hangs early on 4.20.2 / 5.0-rc2+

2019-01-17 Thread Tobias Ulmer
On Fri, Jan 18, 2019 at 09:32:07AM +1100, Benjamin Herrenschmidt wrote: > On Thu, 2019-01-17 at 10:42 +0100, Tobias Ulmer wrote: > > On Wed, Jan 16, 2019 at 12:15:14PM +1100, Benjamin Herrenschmidt wrote: > > > On Tue, 2019-01-15 at 23:49 +0100, Tobias Ulmer wrote: > > > > Hi, > > > > > > > >

Re: G5 Quad hangs early on 4.20.2 / 5.0-rc2+

2019-01-17 Thread Benjamin Herrenschmidt
On Thu, 2019-01-17 at 10:42 +0100, Tobias Ulmer wrote: > On Wed, Jan 16, 2019 at 12:15:14PM +1100, Benjamin Herrenschmidt wrote: > > On Tue, 2019-01-15 at 23:49 +0100, Tobias Ulmer wrote: > > > Hi, > > > > > > both the latest stable 4.20.2 and 5.0 rc2+ hang early on the G5 Quad. > > > > > >

Re: [PATCH v3 0/4] Add NXP AUDMIX device and machine drivers

2019-01-17 Thread Nicolin Chen
On Thu, Jan 17, 2019 at 02:22:18PM -0800, Nicolin Chen wrote: > On Thu, Jan 17, 2019 at 12:46:25PM +, Viorel Suman wrote: > > The patchset adds NXP Audio Mixer (AUDMIX) device and machine > > drivers and related DT bindings documentation. > > > > Changes since V2: > > 1. Moved "dais" node

Re: [PATCH v3 0/4] Add NXP AUDMIX device and machine drivers

2019-01-17 Thread Nicolin Chen
On Thu, Jan 17, 2019 at 12:46:25PM +, Viorel Suman wrote: > The patchset adds NXP Audio Mixer (AUDMIX) device and machine > drivers and related DT bindings documentation. > > Changes since V2: > 1. Moved "dais" node from machine driver DTS node to device driver DTS node > as suggested by

Re: [PATCH] hugetlb: allow to free gigantic pages regardless of the configuration

2019-01-17 Thread Mike Kravetz
On 1/17/19 10:39 AM, Alexandre Ghiti wrote: > From: Alexandre Ghiti > > On systems without CMA or (MEMORY_ISOLATION && COMPACTION) activated but > that support gigantic pages, boottime reserved gigantic pages can not be > freed at all. This patchs simply enables the possibility to hand back >

Re: [PATCH] powerpc/cell: Remove duplicate header

2019-01-17 Thread Souptick Joarder
On Thu, Jan 17, 2019 at 9:49 PM Sabyasachi Gupta wrote: > > Remove linux/syscalls.h which is included more than once > > Signed-off-by: Sabyasachi Gupta Acked-by: Souptick Joarder > --- > arch/powerpc/platforms/cell/spu_syscalls.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [PATCH 3/3] videobuf2: replace a layering violation with dma_map_resource

2019-01-17 Thread Christoph Hellwig
On Mon, Jan 14, 2019 at 01:42:26PM +0100, Marek Szyprowski wrote: > Hi Christoph, > > On 2019-01-11 19:17, Christoph Hellwig wrote: > > vb2_dc_get_userptr pokes into arm direct mapping details to get the > > resemblance of a dma address for a a physical address that does is > > not backed by a

[PATCH] Selftests/powerpc: Add a signal fuzzer selftest

2019-01-17 Thread Breno Leitao
This is a new selftest that raises SIGUSR1 signals and handles it in a set of different ways, trying to create different scenario for testing purpose. This test works raising a signal and calling sigreturn interleaved with TM operations, as starting, suspending and terminating a transaction. The

Re: [PATCH 2/4] powerpc/64s: Add slb_full_bitmap rather than hard-coding U32_MAX

2019-01-17 Thread Segher Boessenkool
On Thu, Jan 17, 2019 at 11:13:26PM +1100, Michael Ellerman wrote: > The recent rewrite of the SLB code into C included the assumption that > all CPUs we run on have at least 32 SLB entries. This is currently > true but a bit fragile as the SLB size is actually defined by the > device tree and so

[PATCH] powerpc/cell: Remove duplicate header

2019-01-17 Thread Sabyasachi Gupta
Remove linux/syscalls.h which is included more than once Signed-off-by: Sabyasachi Gupta --- arch/powerpc/platforms/cell/spu_syscalls.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/platforms/cell/spu_syscalls.c b/arch/powerpc/platforms/cell/spu_syscalls.c index

Re: [PATCH v3 0/4] Add NXP AUDMIX device and machine drivers

2019-01-17 Thread Rob Herring
On Thu, Jan 17, 2019 at 12:46:25PM +, Viorel Suman wrote: > The patchset adds NXP Audio Mixer (AUDMIX) device and machine > drivers and related DT bindings documentation. > > Changes since V2: > 1. Moved "dais" node from machine driver DTS node to device driver DTS node > as suggested by

[PATCH] powerpc/powernv: Remove duplicate header

2019-01-17 Thread Sabyasachi Gupta
Remove linux/printk.h which is included more than once. Signed-off-by: Sabyasachi Gupta --- arch/powerpc/platforms/powernv/opal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index beed86f..802de0d 100644 ---

Re: [RESENDING PATCH] powerpc/wii: properly disable use of BATs when requested.

2019-01-17 Thread Jonathan Neuschäfer
On Thu, Jan 17, 2019 at 11:29:06AM +0100, Christophe Leroy wrote: [...] > > > /* MEM2 64MB@0x1000 */ > > > delta = wii_hole_start + wii_hole_size; > > > + if (__map_without_bats) > > > + return delta; > > > + > > > > Nothing is visibly broken without this patch,

Re: ppc64le reliable stack unwinder and scheduled tasks

2019-01-17 Thread Segher Boessenkool
On Sun, Jan 13, 2019 at 11:33:56PM +1100, Balbir Singh wrote: > On Sat, Jan 12, 2019 at 02:45:41AM -0600, Segher Boessenkool wrote: > > On Sat, Jan 12, 2019 at 12:09:14PM +1100, Balbir Singh wrote: > > > Could you please define interesting frame on top a bit more? Usually > > > the topmost return

Re: [PATCH] kbuild: mark prepare0 as PHONY to fix external module build

2019-01-17 Thread Michael Ellerman
Masahiro Yamada writes: > On Tue, Jan 15, 2019 at 5:07 PM Masahiro Yamada > wrote: >> >> Commit c3ff2a5193fa ("powerpc/32: add stack protector support") >> caused kernel panic on PowerPC if an external module is used with >> CONFIG_STACKPROTECTOR because the 'prepare' target was not executed >>

Re: G5 Quad hangs early on 4.20.2 / 5.0-rc2+

2019-01-17 Thread Michael Ellerman
Tobias Ulmer writes: > On Wed, Jan 16, 2019 at 12:15:14PM +1100, Benjamin Herrenschmidt wrote: >> On Tue, 2019-01-15 at 23:49 +0100, Tobias Ulmer wrote: >> > Hi, >> > >> > both the latest stable 4.20.2 and 5.0 rc2+ hang early on the G5 Quad. >> > >> > Surely I'm not the first to run into this,

[PATCH v2 7/7] powerpc/pseries: Add firmware details to dump stack arch description

2019-01-17 Thread Michael Ellerman
Once we have unflattened the device tree we can easily grab these firmware version details and add them to dump stack arch description, which is printed in case of an oops. Currently /hypervisor only exists on KVM, so if we don't find that look for something that suggests we're on phyp and if so

[PATCH v2 6/7] powerpc/powernv: Add opal details to dump stack arch description

2019-01-17 Thread Michael Ellerman
Once we have unflattened the device tree we can easily grab these opal version details and add them to dump stack arch description, which is printed in case of an oops. eg: Hardware name: ... opal:v6.2 Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powernv/setup.c | 25

[PATCH v2 5/7] powerpc: Add ppc_md.name to dump stack arch description

2019-01-17 Thread Michael Ellerman
As soon as we know the name of the machine description we're using, add it to the dump stack arch description, which is printed in case of an oops. eg: Hardware name: ... machine:pSeries Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup-common.c | 3 +++ 1 file changed, 3

[PATCH v2 4/7] powerpc: Add device-tree model to dump stack arch description

2019-01-17 Thread Michael Ellerman
As soon as we know the model of the machine we're on, add it to the dump stack arch description, which is printed in case of an oops. eg: Hardware name: model:'IBM,8247-22L' Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 20 1 file changed, 20

[PATCH v2 3/7] powerpc/64: Add logical PVR to the dump stack arch description

2019-01-17 Thread Michael Ellerman
If we detect a logical PVR add that to the dump stack arch description, which is printed in case of an oops. eg: Hardware name: ... lpvr:0xf04 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) v2: new. diff --git

[PATCH v2 2/7] powerpc: Add PVR & CPU name to dump stack arch description

2019-01-17 Thread Michael Ellerman
As soon as we've done some basic setup, add the PVR and CPU name to the dump stack arch description, which is printed in case of an oops. eg: Hardware name: ... POWER8E (raw) pvr:0x4b0201 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/cputable.c | 1 + arch/powerpc/kernel/prom.c |

[PATCH v2 1/7] dump_stack: Support adding to the dump stack arch description

2019-01-17 Thread Michael Ellerman
Arch code can set a "dump stack arch description string" which is displayed with oops output to describe the hardware platform. It is useful to initialise this as early as possible, so that an early oops will have the hardware description. However in practice we discover the hardware platform in

[PATCH v3 4/4] ASoC: add imx-audmix DT binding documentation

2019-01-17 Thread Viorel Suman
Add the DT binding documentation for Audio Mixer machine driver. Signed-off-by: Viorel Suman --- Documentation/devicetree/bindings/sound/imx-audmix.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/imx-audmix.txt diff

[PATCH v3 0/4] Add NXP AUDMIX device and machine drivers

2019-01-17 Thread Viorel Suman
The patchset adds NXP Audio Mixer (AUDMIX) device and machine drivers and related DT bindings documentation. Changes since V2: 1. Moved "dais" node from machine driver DTS node to device driver DTS node as suggested by Rob. Changes since V1: 1. Original patch split into distinct patches for

[PATCH v3 3/4] ASoC: fsl: Add Audio Mixer machine driver

2019-01-17 Thread Viorel Suman
This patch implements Audio Mixer machine driver for NXP iMX8 SOCs. It connects together Audio Mixer and related SAI instances. Signed-off-by: Viorel Suman --- sound/soc/fsl/Kconfig | 9 ++ sound/soc/fsl/Makefile | 2 + sound/soc/fsl/imx-audmix.c | 334

[PATCH v3 2/4] ASoC: add fsl_audmix DT binding documentation

2019-01-17 Thread Viorel Suman
Add the DT binding documentation for NXP Audio Mixer CPU DAI driver. Signed-off-by: Viorel Suman --- .../devicetree/bindings/sound/fsl,audmix.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/fsl,audmix.txt diff

[PATCH v3 1/4] ASoC: fsl: Add Audio Mixer CPU DAI driver

2019-01-17 Thread Viorel Suman
This patch implements Audio Mixer CPU DAI driver for NXP iMX8 SOCs. The Audio Mixer is a on-chip functional module that allows mixing of two audio streams into a single audio stream. Audio Mixer datasheet is available here: https://www.nxp.com/docs/en/reference-manual/IMX8DQXPRM.pdf

Re: [RFC PATCH v2 5/5] powerpc/syscalls: Allow none instead of sys_ni_syscall

2019-01-17 Thread Arnd Bergmann
On Thu, Jan 17, 2019 at 11:35 AM Michael Ellerman wrote: > > Hi Arnd, > > Arnd Bergmann writes: > > On Wed, Jan 16, 2019 at 2:27 PM Michael Ellerman > > wrote: > >> > >> sys_ni_syscall is the "not-implemented" syscall syscall, which just > >> returns -ENOSYS. > >> > >> But unless you know that

[PATCH 3/4] powerpc/64s: Move SLB init into hash_utils_64.c

2019-01-17 Thread Michael Ellerman
The SLB initialisation code is spread around a bit between prom.c and hash_utils_64.c. Consolidate it all in hash_utils_64.c. This slightly changes the timing of when mmu_slb_size is initialised, but that should have no effect. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c

[PATCH 4/4] powerpc/64s: Support shrinking the SLB for debugging

2019-01-17 Thread Michael Ellerman
On machines with 1TB segments and a 32-entry SLB it's quite hard to cause sufficient SLB pressure to trigger bugs caused due to badly timed SLB faults. We have seen this in the past and a few years ago added the disable_1tb_segments command line option to force the use of 256MB segments. However

[PATCH 2/4] powerpc/64s: Add slb_full_bitmap rather than hard-coding U32_MAX

2019-01-17 Thread Michael Ellerman
The recent rewrite of the SLB code into C included the assumption that all CPUs we run on have at least 32 SLB entries. This is currently true but a bit fragile as the SLB size is actually defined by the device tree and so could theoretically change at any time. The assumption is encoded in the

[PATCH 1/4] powerpc/64s: Always set mmu_slb_size using slb_set_size()

2019-01-17 Thread Michael Ellerman
It's easier to reason about the code if we only set mmu_slb_size in one place, so convert open-coded assignments to use slb_set_size(). Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 2 +- arch/powerpc/mm/pgtable-radix.c | 3 ++- 2 files changed, 3 insertions(+), 2

Re: [PATCH] powerpc/tm: Limit TM code inside PPC_TRANSACTIONAL_MEM

2019-01-17 Thread Breno Leitao
hi Sasha, On 1/16/19 11:35 AM, Sasha Levin wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag, > fixing commit: e1c3743e1a20 powerpc/tm: Set MSR[TS] just prior to > recheckpoint. > > The bot has tested the following trees:

[PATCH] powerpc/64s: Remove MSR_RI optimisation in system_call_exit()

2019-01-17 Thread Michael Ellerman
Currently in system_call_exit() we have an optimisation where we disable MSR_RI (recoverable interrupt) and MSR_EE (external interrupt enable) in a single mtmsrd instruction. Unfortunately this will no longer work with THREAD_INFO_IN_TASK, because then the load of TI_FLAGS might fault and

[PATCH v2] powerpc/wii: properly disable use of BATs when requested.

2019-01-17 Thread Christophe Leroy
'nobats' kernel parameter or some options like CONFIG_DEBUG_PAGEALLOC deny the use of BATS for mapping memory. This patch makes sure that the specific wii RAM mapping function takes it into account as well. Fixes: de32400dd26e ("wii: use both mem1 and mem2 as ram") Cc: sta...@vger.kernel.org

Re: [PATCH v2 00/15] powerpc/32s: Use BATs/LTLBs for STRICT_KERNEL_RWX

2019-01-17 Thread Christophe Leroy
Le 17/01/2019 à 00:48, Jonathan Neuschäfer a écrit : On Wed, Jan 16, 2019 at 02:34:53PM +0100, Christophe Leroy wrote: Le 16/01/2019 à 14:16, Jonathan Neuschäfer a écrit : On Wed, Jan 16, 2019 at 07:55:29AM +0100, Christophe Leroy wrote: Le 16/01/2019 à 01:35, Jonathan Neuschäfer a écrit :

Re: [RESENDING PATCH] powerpc/wii: properly disable use of BATs when requested.

2019-01-17 Thread Christophe Leroy
Le 17/01/2019 à 02:05, Jonathan Neuschäfer a écrit : Hi again, On Tue, Jan 15, 2019 at 04:43:20PM +, Christophe Leroy wrote: 'nobats' kernel parameter or some options like CONFIG_DEBUG_PAGEALLOC deny the use of BATS for mapping memory. This patch makes sure that the specific wii RAM

Re: [PATCH 19/21] treewide: add checks for the return value of memblock_alloc*()

2019-01-17 Thread Guo Ren
On Wed, Jan 16, 2019 at 03:44:19PM +0200, Mike Rapoport wrote: > arch/csky/mm/highmem.c| 5 + ... > diff --git a/arch/csky/mm/highmem.c b/arch/csky/mm/highmem.c > index 53b1bfa..3317b774 100644 > --- a/arch/csky/mm/highmem.c > +++ b/arch/csky/mm/highmem.c > @@ -141,6

Re: [RFC PATCH v2 5/5] powerpc/syscalls: Allow none instead of sys_ni_syscall

2019-01-17 Thread Michael Ellerman
Hi Arnd, Arnd Bergmann writes: > On Wed, Jan 16, 2019 at 2:27 PM Michael Ellerman wrote: >> >> sys_ni_syscall is the "not-implemented" syscall syscall, which just >> returns -ENOSYS. >> >> But unless you know that it's not obvious what it does, and even if >> you do know what it means it

[PATCH v2 3/4] kbuild: add real-prereqs shorthand for $(filter-out FORCE, $^)

2019-01-17 Thread Masahiro Yamada
In Kbuild, if_changed and friends must have FORCE as a prerequisite. Hence, $(filter-out FORCE,$^) or $(filter-out $(PHONY),$^) is a common pattern to get the names of all the prerequisites except phony targets. Add real-prereqs as a shorthand. Note: We cannot replace $(filter %.o,$^) in

Re: [PATCH V2] mm: Introduce GFP_PGTABLE

2019-01-17 Thread Michael Ellerman
Matthew Wilcox writes: > On Wed, Jan 16, 2019 at 07:57:03AM +0100, Michal Hocko wrote: >> On Wed 16-01-19 11:51:32, Anshuman Khandual wrote: >> > All architectures have been defining their own PGALLOC_GFP as (GFP_KERNEL | >> > __GFP_ZERO) and using it for allocating page table pages. This causes

Re: G5 Quad hangs early on 4.20.2 / 5.0-rc2+

2019-01-17 Thread Tobias Ulmer
On Wed, Jan 16, 2019 at 12:15:14PM +1100, Benjamin Herrenschmidt wrote: > On Tue, 2019-01-15 at 23:49 +0100, Tobias Ulmer wrote: > > Hi, > > > > both the latest stable 4.20.2 and 5.0 rc2+ hang early on the G5 Quad. > > > > Surely I'm not the first to run into this, but I couldn't find any > >

Re: use generic DMA mapping code in powerpc V4

2019-01-17 Thread Christoph Hellwig
On Thu, Jan 17, 2019 at 10:21:11AM +0100, Christian Zigotzky wrote: > The X1000 boots and the PASEMI onboard ethernet works! > > Bad news for the X5000 (P5020 board). U-Boot loads the kernel and the dtb > file. Then the kernel starts but it doesn't find any hard disks > (partitions). Thanks for

Re: [PATCH 21/21] memblock: drop memblock_alloc_*_nopanic() variants

2019-01-17 Thread Petr Mladek
On Wed 2019-01-16 15:44:21, Mike Rapoport wrote: > As all the memblock allocation functions return NULL in case of error > rather than panic(), the duplicates with _nopanic suffix can be removed. [...] > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index c4f0a41..ae65221 100644

Re: use generic DMA mapping code in powerpc V4

2019-01-17 Thread Christian Zigotzky
Hi All, I compiled the fixed '257002094bc5935dd63207a380d9698ab81f0775' (powerpc/dma: use the dma-direct allocator for coherent platforms) today. git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.6 a git checkout 257002094bc5935dd63207a380d9698ab81f0775 Link to the Git: