Re: [PATCH] powerpc/tools/checkpatch: Ignore DT_SPLIT_BINDING_PATCH

2018-12-03 Thread Andrew Donnellan
On 4/12/18 4:11 pm, Russell Currey wrote: From what I've seen, every time this warning comes up it's bogus, so let's ignore it. Signed-off-by: Russell Currey Reviewed-by: Andrew Donnellan --- arch/powerpc/tools/checkpatch.sh | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] powerpc: Discard more sections in linker script

2018-12-03 Thread Joel Stanley
Building the ppc64 kernel with a modern binutils results in this warning: powerpc64le-linux-gnu-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash' Alan Modra explains: > .gnu.hash, like .hash, is used by glibc ld.so for dynamic symbol > lookup.

Re: [PATCH] powerpc/pkeys: copy pkey-tracking-information at fork()

2018-12-03 Thread Thiago Jung Bauermann
Ram Pai writes: > At fork(), the pkey tracking information is not copied over > to the mm_struct of the child. This can cause the child to erroneously > allocate keys that were already allocated. Any allocated execute-only > key is lost aswell. > > Add code; called by dup_mmap(), to copy the

Re: [PATCH v2] raid6/ppc: Fix build for clang

2018-12-03 Thread Segher Boessenkool
On Tue, Dec 04, 2018 at 08:43:47AM +1030, Joel Stanley wrote: > On Tue, 4 Dec 2018 at 05:15, Nick Desaulniers wrote: > > > > > +ifdef CONFIG_CC_IS_CLANG > > > > > +# clang ppc port does not yet support -maltivec when -msoft-float is > > > > > +# enabled. A future release of clang will resolve

Re: [PATCH 2/7] powerpc: change CONFIG_6xx to CONFIG_PPC_BOOK3S_32

2018-12-03 Thread Michael Ellerman
Mathieu Malaterre writes: > On Sat, Nov 17, 2018 at 11:29 AM Christophe Leroy > wrote: >> >> Today we have: >> >> config PPC_BOOK3S_32 >> bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx" >> [depends on PPC32 within a choice] >> >> config PPC_BOOK3S >> def_bool y >>

Re: [PATCH v2 28/34] dt-bindings: arm: Convert SPEAr board/soc bindings to json-schema

2018-12-03 Thread Viresh Kumar
On 03-12-18, 15:32, Rob Herring wrote: > Convert SPEAr SoC bindings to DT schema format using json-schema. > > Cc: Viresh Kumar > Cc: Shiraz Hashim > Cc: Mark Rutland > Cc: devicet...@vger.kernel.org > Signed-off-by: Rob Herring > --- > .../devicetree/bindings/arm/spear.txt | 26

[PATCH] powerpc/tools/checkpatch: Ignore DT_SPLIT_BINDING_PATCH

2018-12-03 Thread Russell Currey
>From what I've seen, every time this warning comes up it's bogus, so let's ignore it. Signed-off-by: Russell Currey --- arch/powerpc/tools/checkpatch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/tools/checkpatch.sh b/arch/powerpc/tools/checkpatch.sh index

Re: pkeys: Reserve PKEY_DISABLE_READ

2018-12-03 Thread Ram Pai
On Mon, Dec 03, 2018 at 04:52:02PM +0100, Florian Weimer wrote: > * Ram Pai: > > > So the problem is as follows: > > > > Currently the kernel supports 'disable-write' and 'disable-access'. > > > > On x86, cpu supports 'disable-write' and 'disable-access'. This > > matches with what the kernel

[PATCH 2/2] powerpc: Discard dynsym section for !PPC32

2018-12-03 Thread Joel Stanley
Alan Modra explains: > Likely you could discard .interp > and .dynstr too, and .dynsym when > !CONFIG_PPC32. Discarding of interp and dynstr happened in a previous patch. The dynsym cleanup was a bit less straightforward, so it gets it's own patch. Signed-off-by: Joel Stanley --- See

[PATCH v2 0/3] powerpc: Add to linker script discards

2018-12-03 Thread Joel Stanley
v2 pulls in the branch_lt patch too. No changes to the first two patches. Joel Stanley (3): powerpc: Discard more sections in linker script powerpc: Discard dynsym section for !PPC32 powerpc: Discard .branch_lt section arch/powerpc/kernel/vmlinux.lds.S | 15 +-- 1 file

[PATCH 0/2] powerpc: Add to linker script discards

2018-12-03 Thread Joel Stanley
Joel Stanley (2): powerpc: Discard more sections in linker script powerpc: Discard dynsym section for !PPC32 arch/powerpc/kernel/vmlinux.lds.S | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) -- 2.19.1

[PATCH v2 3/3] powerpc: Discard .branch_lt section

2018-12-03 Thread Joel Stanley
When building a 32 bit powerpc kernel with Binutils 2.31.1 this warning is emitted: powerpc-linux-gnu-ld: warning: orphan section `.branch_lt' from `arch/powerpc/kernel/head_44x.o' being placed in section `.branch_lt' As of binutils commit 2d7ad24e8726 ("Support PLT16 relocs against local

[PATCH v2 2/3] powerpc: Discard dynsym section for !PPC32

2018-12-03 Thread Joel Stanley
Alan Modra explains: > Likely you could discard .interp > and .dynstr too, and .dynsym when > !CONFIG_PPC32. Discarding of interp and dynstr happened in a previous patch. The dynsym cleanup was a bit less straightforward, so it gets it's own patch. Signed-off-by: Joel Stanley --- See

[PATCH v2 1/3] powerpc: Discard more sections in linker script

2018-12-03 Thread Joel Stanley
Building the ppc64 kernel with a modern binutils results in this warning: powerpc64le-linux-gnu-ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash' Alan Modra explains: > .gnu.hash, like .hash, is used by glibc ld.so for dynamic symbol > lookup.

Re: use generic DMA mapping code in powerpc V4

2018-12-03 Thread Christian Zigotzky
Hi All, Could you please test Christoph's kernel on your PASEMI and NXP boards? Download: 'git clone git://git.infradead.org/users/hch/misc.git -b powerpc-dma.5 a' Thanks, Christian

Re: [PATCH RFCv2 1/4] mm/memory_hotplug: Introduce memory block types

2018-12-03 Thread David Hildenbrand
On 01.12.18 02:25, Wei Yang wrote: > On Fri, Nov 30, 2018 at 06:59:19PM +0100, David Hildenbrand wrote: >> Memory onlining should always be handled by user space, because only user >> space knows which use cases it wants to satisfy. E.g. memory might be >> onlined to the MOVABLE zone even if it

Re: [PATCH 12/36] dt-bindings: arm: Convert cpu binding to json-schema

2018-12-03 Thread Will Deacon
On Fri, Nov 30, 2018 at 12:00:05PM -0600, Rob Herring wrote: > On Thu, Nov 8, 2018 at 2:49 AM Michal Simek wrote: > > > > Hi Rob, > > > > On 05. 10. 18 18:58, Rob Herring wrote: > > > Convert ARM CPU binding to DT schema format using json-schema. > > > > > > Cc: Mark Rutland > > > Cc: Matthias

Re: [PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Daniel Borkmann
Hi Sandipan, On 12/03/2018 01:21 PM, Sandipan Das wrote: > Once the JITed images for each function in a multi-function program > are generated after the first three JIT passes, we only need to fix > the target address for the branch instruction corresponding to each > bpf-to-bpf function call. >

[PATCHv3 3/4] pci: layerscape: Add the EP mode support.

2018-12-03 Thread Xiaowei Bao
Add the PCIe EP mode support for layerscape platform. Signed-off-by: Xiaowei Bao --- v2: - remove the EP mode check function. v3: - modif the return value when enter default case. drivers/pci/controller/dwc/Makefile|2 +- drivers/pci/controller/dwc/pci-layerscape-ep.c | 146

Patch "powerpc/function_graph: Simplify with function_graph_enter()" has been added to the 4.19-stable tree

2018-12-03 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/function_graph: Simplify with function_graph_enter() 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

[PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Sandipan Das
Once the JITed images for each function in a multi-function program are generated after the first three JIT passes, we only need to fix the target address for the branch instruction corresponding to each bpf-to-bpf function call. This introduces the following optimizations for reducing the work

[PATCHv3 2/4] arm64: dts: Add the PCIE EP node in dts

2018-12-03 Thread Xiaowei Bao
Add the PCIE EP node in dts for ls1046a. Signed-off-by: Xiaowei Bao --- v2: - Add the SoC specific compatibles. v3: - no change arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git

[PATCHv3 4/4] misc: pci_endpoint_test: Add the layerscape EP device support

2018-12-03 Thread Xiaowei Bao
Add the layerscape EP device support in pci_endpoint_test driver. Signed-off-by: Xiaowei Bao --- v2: - no change v3: - no change drivers/misc/pci_endpoint_test.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/misc/pci_endpoint_test.c

Re: [PATCH v2] raid6/ppc: Fix build for clang

2018-12-03 Thread Joel Stanley
On Sat, 3 Nov 2018 at 04:04, Nick Desaulniers wrote: > > On Thu, Nov 1, 2018 at 5:45 PM Joel Stanley wrote: > > > > We cannot build these files with clang as it does not allow altivec > > instructions in assembly when -msoft-float is passed. > > > > Jinsong Ji wrote: > > > We currently disable

Re: [PATCH 12/36] dt-bindings: arm: Convert cpu binding to json-schema

2018-12-03 Thread Rob Herring
On Mon, Dec 3, 2018 at 6:40 AM Will Deacon wrote: > > On Fri, Nov 30, 2018 at 12:00:05PM -0600, Rob Herring wrote: > > On Thu, Nov 8, 2018 at 2:49 AM Michal Simek wrote: > > > > > > Hi Rob, > > > > > > On 05. 10. 18 18:58, Rob Herring wrote: > > > > Convert ARM CPU binding to DT schema format

Re: [PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Sandipan Das
Hi Daniel, On 03/12/18 6:18 PM, Daniel Borkmann wrote: > > Thanks for the patch, just to clarify, it's targeted at bpf-next and > not bpf, correct? > This patch is targeted at the bpf tree. This depends on commit e2c95a61656d ("bpf, ppc64: generalize fetching subprog into

Re: [PATCH RFCv2 2/4] mm/memory_hotplug: Replace "bool want_memblock" by "int type"

2018-12-03 Thread David Hildenbrand
On 01.12.18 02:50, Wei Yang wrote: > On Fri, Nov 30, 2018 at 06:59:20PM +0100, David Hildenbrand wrote: >> Let's pass a memory block type instead. Pass "MEMORY_BLOCK_NONE" for device >> memory and for now "MEMORY_BLOCK_UNSPECIFIED" for anything else. No >> functional change. > > I would suggest

[PATCHv3 1/4] dt-bindings: add DT binding for the layerscape PCIe controller with EP mode

2018-12-03 Thread Xiaowei Bao
Add the documentation for the Device Tree binding for the layerscape PCIe controller with EP mode. Signed-off-by: Xiaowei Bao --- v2: - Add the SoC specific compatibles. v3: - modify the commit message. .../devicetree/bindings/pci/layerscape-pci.txt |3 +++ 1 files changed, 3

Patch "powerpc/function_graph: Simplify with function_graph_enter()" has been added to the 4.14-stable tree

2018-12-03 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/function_graph: Simplify with function_graph_enter() 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 patch

[PATCH v2 2/6] microblaze: prefer memblock API returning virtual address

2018-12-03 Thread Mike Rapoport
Rather than use the memblock_alloc_base that returns a physical address and then convert this address to the virtual one, use appropriate memblock function that returns a virtual address. Signed-off-by: Mike Rapoport --- arch/microblaze/mm/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v2 1/6] powerpc: prefer memblock APIs returning virtual address

2018-12-03 Thread Mike Rapoport
There are a several places that allocate memory using memblock APIs that return a physical address, convert the returned address to the virtual address and frequently also memset(0) the allocated range. Update these places to use memblock allocators already returning a virtual address; use

Re: [PATCH v2 3/6] sh: prefer memblock APIs returning virtual address

2018-12-03 Thread Sam Ravnborg
Hi Mike. On Mon, Dec 03, 2018 at 05:47:12PM +0200, Mike Rapoport wrote: > Rather than use the memblock_alloc_base that returns a physical address and > then convert this address to the virtual one, use appropriate memblock > function that returns a virtual address. > > There is a small

Re: [PATCH v6 2/4] kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function()

2018-12-03 Thread Daniel Thompson
On Tue, Nov 27, 2018 at 09:38:37AM -0800, Douglas Anderson wrote: > When I had lockdep turned on and dropped into kgdb I got a nice splat > on my system. Specifically it hit: > DEBUG_LOCKS_WARN_ON(current->hardirq_context) > > Specifically it looked like this: > sysrq: SysRq : DEBUG >

Re: [PATCH v2 3/6] sh: prefer memblock APIs returning virtual address

2018-12-03 Thread Mike Rapoport
On Mon, Dec 03, 2018 at 05:10:52PM +0100, Sam Ravnborg wrote: > Hi Mike. > > On Mon, Dec 03, 2018 at 05:47:12PM +0200, Mike Rapoport wrote: > > Rather than use the memblock_alloc_base that returns a physical address and > > then convert this address to the virtual one, use appropriate memblock >

[PATCH v2 4/6] openrisc: simplify pte_alloc_one_kernel()

2018-12-03 Thread Mike Rapoport
The pte_alloc_one_kernel() function allocates a page using __get_free_page(GFP_KERNEL) when mm initialization is complete and memblock_phys_alloc() on the earlier stages. The physical address of the page allocated with memblock_phys_alloc() is converted to the virtual address and in the both cases

[PATCH v2 3/6] sh: prefer memblock APIs returning virtual address

2018-12-03 Thread Mike Rapoport
Rather than use the memblock_alloc_base that returns a physical address and then convert this address to the virtual one, use appropriate memblock function that returns a virtual address. There is a small functional change in the allocation of then NODE_DATA(). Instead of panicing if the local

Re: [PATCH v2 6/6] arm, unicore32: remove early_alloc*() wrappers

2018-12-03 Thread Mike Rapoport
On Mon, Dec 03, 2018 at 10:27:02AM -0600, Rob Herring wrote: > On Mon, Dec 3, 2018 at 9:48 AM Mike Rapoport wrote: > > > > On arm and unicore32i the early_alloc_aligned() and and early_alloc() are > > oneliner wrappers for memblock_alloc. > > > > Replace their usage with direct call to

[PATCH v2 0/6] memblock: simplify several early memory allocation

2018-12-03 Thread Mike Rapoport
Hi, These patches simplify some of the early memory allocations by replacing usage of older memblock APIs with newer and shinier ones. Quite a few places in the arch/ code allocated memory using a memblock API that returns a physical address of the allocated area, then converted this physical

[PATCH v2 5/6] arch: simplify several early memory allocations

2018-12-03 Thread Mike Rapoport
There are several early memory allocations in arch/ code that use memblock_phys_alloc() to allocate memory, convert the returned physical address to the virtual address and then set the allocated memory to zero. Exactly the same behaviour can be achieved simply by calling memblock_alloc(): it

Re: [PATCH v6 1/4] kgdb: Remove irq flags from roundup

2018-12-03 Thread Daniel Thompson
On Tue, Nov 27, 2018 at 09:38:36AM -0800, Douglas Anderson wrote: > The function kgdb_roundup_cpus() was passed a parameter that was > documented as: > > > the flags that will be used when restoring the interrupts. There is > > local_irq_save() call before kgdb_roundup_cpus(). > > Nobody used

Re: [PATCH v2 6/6] arm, unicore32: remove early_alloc*() wrappers

2018-12-03 Thread Rob Herring
On Mon, Dec 3, 2018 at 9:48 AM Mike Rapoport wrote: > > On arm and unicore32i the early_alloc_aligned() and and early_alloc() are > oneliner wrappers for memblock_alloc. > > Replace their usage with direct call to memblock_alloc. > > Suggested-by: Christoph Hellwig > Signed-off-by: Mike Rapoport

Re: [PATCH v2 5/6] arch: simplify several early memory allocations

2018-12-03 Thread Sam Ravnborg
Hi Mike. > index c37955d..2a17665 100644 > --- a/arch/sparc/kernel/prom_64.c > +++ b/arch/sparc/kernel/prom_64.c > @@ -34,16 +34,13 @@ > > void * __init prom_early_alloc(unsigned long size) > { > - unsigned long paddr = memblock_phys_alloc(size, SMP_CACHE_BYTES); > - void *ret; > +

Re: [PATCH v2 5/6] arch: simplify several early memory allocations

2018-12-03 Thread Mike Rapoport
On Mon, Dec 03, 2018 at 05:29:08PM +0100, Sam Ravnborg wrote: > Hi Mike. > > > index c37955d..2a17665 100644 > > --- a/arch/sparc/kernel/prom_64.c > > +++ b/arch/sparc/kernel/prom_64.c > > @@ -34,16 +34,13 @@ > > > > void * __init prom_early_alloc(unsigned long size) > > { > > - unsigned

Re: [RFC PATCH] mm: add probe_user_read() and probe_user_address()

2018-12-03 Thread Christophe LEROY
Le 19/10/2018 à 17:42, Kees Cook a écrit : On Fri, Oct 19, 2018 at 8:14 AM, Christophe Leroy wrote: In the powerpc, there are several places implementing safe access to user data. This is sometimes implemented using probe_kerne_address() with additional access_ok() verification, sometimes

[PATCH v2 6/6] arm, unicore32: remove early_alloc*() wrappers

2018-12-03 Thread Mike Rapoport
On arm and unicore32i the early_alloc_aligned() and and early_alloc() are oneliner wrappers for memblock_alloc. Replace their usage with direct call to memblock_alloc. Suggested-by: Christoph Hellwig Signed-off-by: Mike Rapoport --- arch/arm/mm/mmu.c | 11 +++

Re: pkeys: Reserve PKEY_DISABLE_READ

2018-12-03 Thread Florian Weimer
* Ram Pai: > So the problem is as follows: > > Currently the kernel supports 'disable-write' and 'disable-access'. > > On x86, cpu supports 'disable-write' and 'disable-access'. This > matches with what the kernel supports. All good. > > However on power, cpu supports 'disable-read' too. Since

[PATCH 2/2] powerpc: use probe_user_read() and probe_user_address()

2018-12-03 Thread Christophe Leroy
Instead of opencoding, use probe_user_read() and probe_user_address() to failessly read a user location. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 12 +--- arch/powerpc/mm/fault.c | 6 +- arch/powerpc/perf/callchain.c | 20 +++-

[PATCH 1/2] mm: add probe_user_read() and probe_user_address()

2018-12-03 Thread Christophe Leroy
In the powerpc, there are several places implementing safe access to user data. This is sometimes implemented using probe_kernel_address() with additional access_ok() verification, sometimes with get_user() enclosed in a pagefault_disable()/enable() pair, etc... : show_user_instructions()

[PATCH v4] powerpc/mm: dump block address translation on book3s/32

2018-12-03 Thread Christophe Leroy
This patch adds a debugfs file to dump block address translation: ~# cat /sys/kernel/debug/powerpc/block_address_translation ---[ Instruction Block Address Translations ]--- 0: - 1: - 2: 0xc000-0xcfff 0x Kernel EXEC coherent 3: 0xd000-0xdfff 0x1000

Re: [PATCH 1/2] mm: add probe_user_read() and probe_user_address()

2018-12-03 Thread Mike Rapoport
On Mon, Dec 03, 2018 at 05:06:42PM +, Christophe Leroy wrote: > In the powerpc, there are several places implementing safe > access to user data. This is sometimes implemented using > probe_kernel_address() with additional access_ok() verification, > sometimes with get_user() enclosed in a

Re: [PATCH] powerpc/mm: dump block address translation on book3s/32

2018-12-03 Thread Christophe LEROY
Le 16/11/2018 à 11:20, Michael Ellerman a écrit : Christophe LEROY writes: Le 15/11/2018 à 12:46, Michael Ellerman a écrit : Christophe Leroy writes: This patch adds a debugfs file to dump block address translation: ~# cat /sys/kernel/debug/block_address_translation My instinct is

Re: [PATCH v2] raid6/ppc: Fix build for clang

2018-12-03 Thread Nick Desaulniers
On Mon, Dec 3, 2018 at 2:24 AM Joel Stanley wrote: > > On Sat, 3 Nov 2018 at 04:04, Nick Desaulniers wrote: > > > > On Thu, Nov 1, 2018 at 5:45 PM Joel Stanley wrote: > > > > > > We cannot build these files with clang as it does not allow altivec > > > instructions in assembly when -msoft-float

Re: [PATCH RFCv2 1/4] mm/memory_hotplug: Introduce memory block types

2018-12-03 Thread Wei Yang
[...] >>> >>> + if (type == MEMORY_BLOCK_NONE) >>> + return -EINVAL; >> >> No one will pass in this value. Can we omit this check for now? > >I could move it to patch nr 2 I guess, but as I introduce >MEMORY_BLOCK_NONE here it made sense to keep it in here. > Yes, this make sense to

Re: [PATCH V2] mm: Replace all open encodings for NUMA_NO_NODE

2018-12-03 Thread Doug Ledford
On Mon, 2018-11-26 at 17:56 +0530, Anshuman Khandual wrote: > At present there are multiple places where invalid node number is encoded > as -1. Even though implicitly understood it is always better to have macros > in there. Replace these open encodings for an invalid node number with the >

[PATCH v2 02/34] dt-bindings: Add a writing DT schemas how-to and annotated example

2018-12-03 Thread Rob Herring
Add a how-to doc on writing DT schema documentation. This gives a description of each section and details on how to validate the DT schema file. The DT schema are written using json-schema vocabulary in a YAML encoded document. Using jsonschema gives us access to existing tooling. A YAML encoding

[PATCH v2 04/34] dt-bindings: altera: Convert clkmgr binding to json-schema

2018-12-03 Thread Rob Herring
Convert Altera clkmgr to DT schema format using json-schema. Cc: Mark Rutland Cc: Dinh Nguyen Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../arm/altera/socfpga-clk-manager.txt| 11 --- .../arm/altera/socfpga-clk-manager.yaml | 31 +++ 2

[PATCH v2 05/34] dt-bindings: i2c: Convert i2c-gpio binding to json-schema

2018-12-03 Thread Rob Herring
Convert the i2c-gpio binding to DT schema format using json-schema. This serves as an example of how to include other schema (i2c-controller.yaml in this case). Signed-off-by: Rob Herring --- .../devicetree/bindings/i2c/i2c-gpio.txt | 46

Re: [PATCH 2/7] powerpc: change CONFIG_6xx to CONFIG_PPC_BOOK3S_32

2018-12-03 Thread Mathieu Malaterre
On Sat, Nov 17, 2018 at 11:29 AM Christophe Leroy wrote: > > Today we have: > > config PPC_BOOK3S_32 > bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx" > [depends on PPC32 within a choice] > > config PPC_BOOK3S > def_bool y > depends on PPC_BOOK3S_32 || PPC_BOOK3S_64 >

[PATCH v2 00/34] Devicetree schema

2018-12-03 Thread Rob Herring
The current DT binding documentation is not ideal as it is just free form text with at most only a loose structure. This makes reviewing bindings a manual process. The bindings are often duplicating information that's already defined elsewhere and missing information one would need to validate a

[PATCH v2 01/34] kbuild: Add support for DT binding schema checks

2018-12-03 Thread Rob Herring
This adds the build infrastructure for checking DT binding schema documents and validating dts files using the binding schema. Check DT binding schema documents: make dt_binding_check Build dts files and check using DT binding schema: make dtbs_check Optionally, DT_SCHEMA_FILES can passed in

[PATCH v2 03/34] dt-bindings: Convert trivial-devices.txt to json-schema

2018-12-03 Thread Rob Herring
Convert trivial-devices.txt to DT schema format using json-schema. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/trivial-devices.txt | 190 - .../devicetree/bindings/trivial-devices.yaml | 392 ++ 2 files

[PATCH v2 06/34] dt-bindings: timer: Convert ARM timer bindings to json-schema

2018-12-03 Thread Rob Herring
Convert ARM timers to DT schema format using json-schema. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../bindings/timer/arm,arch_timer.txt | 112 .../bindings/timer/arm,arch_timer.yaml

[PATCH] powerpc/ipic: Fix a bounds check in ipic_set_priority()

2018-12-03 Thread Dan Carpenter
The ipic_info[] array only has 95 elements so I have made the bounds check smaller to prevent a read overflow. It was Smatch that found this issue: arch/powerpc/sysdev/ipic.c:784 ipic_set_priority() error: buffer overflow 'ipic_info' 95 <= 127 Signed-off-by: Dan Carpenter --- I wasn't

[PATCH v2 07/34] dt-bindings: arm: Convert cpu binding to json-schema

2018-12-03 Thread Rob Herring
Convert ARM CPU binding to DT schema format using json-schema. Cc: Mark Rutland Cc: Matthias Brugger Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-media...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/cpus.txt |

[PATCH] powerpc/pkeys: copy pkey-tracking-information at fork()

2018-12-03 Thread Ram Pai
At fork(), the pkey tracking information is not copied over to the mm_struct of the child. This can cause the child to erroneously allocate keys that were already allocated. Any allocated execute-only key is lost aswell. Add code; called by dup_mmap(), to copy the pkey state from parent to child

Re: [PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Daniel Borkmann
On 12/03/2018 02:26 PM, Sandipan Das wrote: > Hi Daniel, > > On 03/12/18 6:18 PM, Daniel Borkmann wrote: >> >> Thanks for the patch, just to clarify, it's targeted at bpf-next and >> not bpf, correct? > > This patch is targeted at the bpf tree. Ok, thanks for clarifying, applied to bpf!

Re: [PATCH v2] raid6/ppc: Fix build for clang

2018-12-03 Thread Nick Desaulniers
On Mon, Dec 3, 2018 at 2:14 PM Joel Stanley wrote: > > On Tue, 4 Dec 2018 at 05:15, Nick Desaulniers wrote: > > > > > +ifdef CONFIG_CC_IS_CLANG > > > > > +# clang ppc port does not yet support -maltivec when -msoft-float is > > > > > +# enabled. A future release of clang will resolve this > > >

[PATCH v3] powerpc/math-emu: Update macros from GCC

2018-12-03 Thread Joel Stanley
The add_ss, sub_ddmmss, umul_ppmm and udiv_qrnnd macros originate from GCC's longlong.h which in turn was copied from GMP's longlong.h a few decades ago. This was found when compiling with clang: arch/powerpc/math-emu/fnmsub.c:46:2: error: invalid use of a cast in a inline asm context

Re: [PATCH v3] powerpc/math-emu: Update macros from GCC

2018-12-03 Thread Nick Desaulniers
On Mon, Dec 3, 2018 at 3:07 PM Joel Stanley wrote: > > The add_ss, sub_ddmmss, umul_ppmm and udiv_qrnnd macros originate > from GCC's longlong.h which in turn was copied from GMP's longlong.h a > few decades ago. > > This was found when compiling with clang: > >

Re: linux-next: build warnings from Linus' tree

2018-12-03 Thread Joel Stanley
On Sun, 18 Nov 2018 at 21:52, Alan Modra wrote: > > On Wed, Nov 14, 2018 at 09:20:23PM +1100, Michael Ellerman wrote: > > Joel Stanley writes: > > > Hello Alan, > > > > > > On Tue, 12 Jun 2018 at 07:44, Stephen Rothwell > > > wrote: > > > > > >> Building Linus' tree, today's linux-next build

Re: [PATCH v3] powerpc/math-emu: Update macros from GCC

2018-12-03 Thread Segher Boessenkool
On Tue, Dec 04, 2018 at 09:37:46AM +1030, Joel Stanley wrote: > The add_ss, sub_ddmmss, umul_ppmm and udiv_qrnnd macros originate > from GCC's longlong.h which in turn was copied from GMP's longlong.h a > few decades ago. > > This was found when compiling with clang: > >

[PATCH v2 08/34] dt-bindings: arm: Convert PMU binding to json-schema

2018-12-03 Thread Rob Herring
Convert ARM PMU binding to DT schema format using json-schema. Cc: Will Deacon Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/arm/pmu.txt | 70 --

[PATCH v2 09/34] dt-bindings: arm: Convert primecell binding to json-schema

2018-12-03 Thread Rob Herring
Convert ARM Primecell binding to DT schema format using json-schema. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/primecell.txt | 46 --- .../devicetree/bindings/arm/primecell.yaml| 36 +++ 2

[PATCH v2 10/34] dt-bindings: arm: Convert Actions Semi bindings to jsonschema

2018-12-03 Thread Rob Herring
Convert Actions Semi SoC bindings to DT schema format using json-schema. Cc: "Andreas Färber" Cc: Manivannan Sadhasivam Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/actions.txt | 56

[PATCH v2 13/34] dt-bindings: arm: amlogic: Move 'amlogic, meson-gx-ao-secure' binding to its own file

2018-12-03 Thread Rob Herring
It is best practice to have 1 binding per file, so board level bindings should be separate for various misc SoC bindings. Cc: Mark Rutland Cc: Carlo Caione Cc: Kevin Hilman Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-amlo...@lists.infradead.org

[PATCH v2 14/34] dt-bindings: arm: Convert Amlogic board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Amlogic SoC bindings to DT schema format using json-schema. Cc: Carlo Caione Cc: Kevin Hilman Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/amlogic.txt | 109 --

[PATCH v2 15/34] dt-bindings: arm: Convert Atmel board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Atmel SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/atmel-at91.txt| 72 --

[PATCH v2 17/34] dt-bindings: arm: Convert TI davinci board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert TI Davinci SoC bindings to DT schema format using json-schema. Cc: Sekhar Nori Cc: Kevin Hilman Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/davinci.txt | 25 -- .../bindings/arm/ti/ti,davinci.yaml

[PATCH v2 18/34] dt-bindings: arm: Convert FSL board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Freescale SoC bindings to DT schema format using json-schema. Cc: Shawn Guo Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/armadeus.txt | 6 - Documentation/devicetree/bindings/arm/bhf.txt | 6 -

[PATCH v2 19/34] dt-bindings: arm: Convert MediaTek board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert MediaTek SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Matthias Brugger Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-media...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/mediatek.txt

[PATCH v2 20/34] dt-bindings: arm: Convert TI nspire board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert TI NSpire SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/nspire.txt| 14 --- .../devicetree/bindings/arm/ti/nspire.yaml| 24 +++ 2 files

[PATCH v2 22/34] dt-bindings: arm: Convert QCom board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert QCom SoC bindings to DT schema format using json-schema. Cc: Andy Gross Cc: David Brown Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/qcom.txt | 57 .../devicetree/bindings/arm/qcom.yaml | 125

[PATCH v2 21/34] dt-bindings: arm: Convert Oxford Semi board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Oxford Semi SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Neil Armstrong Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-ox...@groups.io Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/oxnas.txt | 14

[PATCH v2 24/34] dt-bindings: arm: Convert Rockchip board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Rockchip SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Heiko Stuebner Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-rockc...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/rockchip.txt

[PATCH v2 23/34] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Realtek SoC bindings to DT schema format using json-schema. Cc: "Andreas Färber" Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/realtek.txt | 22 --

[PATCH v2 25/34] dt-bindings: arm: renesas: Move 'renesas, prr' binding to its own doc

2018-12-03 Thread Rob Herring
In preparation to convert board-level bindings to json-schema, move various misc SoC bindings out to their own file. Cc: Mark Rutland Cc: Simon Horman Cc: Magnus Damm Cc: devicet...@vger.kernel.org Cc: linux-renesas-...@vger.kernel.org Signed-off-by: Rob Herring ---

[PATCH v2 27/34] dt-bindings: arm: Convert CSR SiRF board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert CSR SiRF SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Barry Song Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/sirf.txt | 11

[PATCH v2 29/34] dt-bindings: arm: Convert ST STi board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert ST STi SoC bindings to DT schema format using json-schema. Cc: Patrice Chotard Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/arm/sti.txt | 23 --- .../devicetree/bindings/arm/sti.yaml | 23

[PATCH v2 31/34] dt-bindings: arm: Convert VIA board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert VIA SoC bindings to DT schema format using json-schema. Cc: Tony Prisk Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/vt8500.txt| 22 -- .../devicetree/bindings/arm/vt8500.yaml | 23

[PATCH v2 11/34] dt-bindings: arm: Convert Alpine board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Alpine SoC bindings to DT schema format using json-schema. Cc: Tsahee Zidenberg Cc: Antoine Tenart Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/al,alpine.txt | 16 --

[PATCH v2 12/34] dt-bindings: arm: Convert Altera board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Altera SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Dinh Nguyen Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/altera.txt| 14 - .../devicetree/bindings/arm/altera.yaml | 20

[PATCH v2 16/34] dt-bindings: arm: Convert Calxeda board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Calxeda SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/calxeda.txt | 15 - .../devicetree/bindings/arm/calxeda.yaml | 22 +++ 2 files

[PATCH v2 26/34] dt-bindings: arm: Convert Renesas board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Renesas SoC bindings to DT schema format using json-schema. Cc: Simon Horman Cc: Magnus Damm Cc: Mark Rutland Cc: linux-renesas-...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/shmobile.txt | 151

[PATCH v2 28/34] dt-bindings: arm: Convert SPEAr board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert SPEAr SoC bindings to DT schema format using json-schema. Cc: Viresh Kumar Cc: Shiraz Hashim Cc: Mark Rutland Cc: devicet...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/spear.txt | 26 --- .../devicetree/bindings/arm/spear.yaml

[PATCH v2 30/34] dt-bindings: arm: Convert Tegra board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Tegra SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Thierry Reding Cc: Jonathan Hunter Cc: devicet...@vger.kernel.org Cc: linux-te...@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/tegra.txt | 65 ---

[PATCH v2 32/34] dt-bindings: arm: Convert Xilinx board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert Xilinx SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Michal Simek Cc: devicet...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/xilinx.txt| 83 ---

[PATCH v2 33/34] dt-bindings: arm: Add missing Xilinx boards

2018-12-03 Thread Rob Herring
From: Michal Simek Add missing description for Ultra96, zcu104, zcu106 and zcu111. Signed-off-by: Michal Simek Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/xilinx.yaml | 32 +++ 1 file changed, 32 insertions(+) diff --git

[PATCH v2 34/34] dt-bindings: arm: Convert ZTE board/soc bindings to json-schema

2018-12-03 Thread Rob Herring
Convert ZTE SoC bindings to DT schema format using json-schema. Cc: Jun Nie Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Acked-by: Shawn Guo Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/arm/zte.txt | 14 --

Re: [PATCH v1 03/13] powerpc/mm/32s: rework mmu_mapin_ram()

2018-12-03 Thread Jonathan Neuschäfer
Hi, On Thu, Nov 29, 2018 at 07:00:16PM +, Christophe Leroy wrote: > This patch reworks mmu_mapin_ram() to be more generic and map as much > blocks as possible. It now supports blocks not starting at address 0. > > It scans DBATs array to find free ones instead of forcing the use of > BAT2

Re: [PATCH v2] raid6/ppc: Fix build for clang

2018-12-03 Thread Joel Stanley
On Tue, 4 Dec 2018 at 05:15, Nick Desaulniers wrote: > > > > +ifdef CONFIG_CC_IS_CLANG > > > > +# clang ppc port does not yet support -maltivec when -msoft-float is > > > > +# enabled. A future release of clang will resolve this > > > > +# https://bugs.llvm.org/show_bug.cgi?id=31177 > > > >

  1   2   >