[PATCH] powerpc: Add some documentation of ISA versions

2018-11-05 Thread Michael Ellerman
Add some documentation on which CPU versions map to which ISA versions. This is all publicly available information, some of it already in the kernel source, but it's much nicer to have it all in one place. Signed-off-by: Michael Ellerman --- Documentation/powerpc/isa-versions.rst | 74

[PATCHv2 4/6] arm64: dts: Add the PCIE EP node in dts

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

RE: [PATCH 5/6] pci: layerscape: Add the EP mode support.

2018-11-05 Thread Xiaowei Bao
-Original Message- From: Kishon Vijay Abraham I Sent: 2018年11月5日 16:57 To: Xiaowei Bao ; bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; lorenzo.pieral...@arm.com; a...@arndb.de; gre...@linuxfoundation.org; M.h. Lian ; Mingkai Hu ; Roy

[PATCHv2 1/6] arm64: dts: Add the status property disable PCIe

2018-11-05 Thread Xiaowei Bao
From: Bao Xiaowei Add the status property disable the PCIe, the property will be enable by bootloader. Signed-off-by: Bao Xiaowei --- v2: - no change arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi |1 + arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |3 +++

[PATCHv2 6/6] misc: pci_endpoint_test: Add the layerscape EP device support

2018-11-05 Thread Xiaowei Bao
Add the layerscape EP device support in pci_endpoint_test driver. Signed-off-by: Xiaowei Bao --- v2: - 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 b/drivers/misc/pci_endpoint_test.c index

[PATCHv2 3/6] PCI: layerscape: Add the EP mode support

2018-11-05 Thread Xiaowei Bao
Add the EP mode support. Signed-off-by: Xiaowei Bao --- v2: - Add the SoC specific compatibles. .../devicetree/bindings/pci/layerscape-pci.txt |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt

[PATCHv2 2/6] ARM: dts: ls1021a: Add the status property disable PCIe

2018-11-05 Thread Xiaowei Bao
Add the status property disable the PCIe, the property will be enable by bootloader. Signed-off-by: Xiaowei Bao --- v2: - no change arch/arm/boot/dts/ls1021a.dtsi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi

[PATCHv2 5/6] pci: layerscape: Add the EP mode support.

2018-11-05 Thread Xiaowei Bao
Add the PCIe EP mode support for layerscape platform. Signed-off-by: Xiaowei Bao --- v2: - remove the EP mode check function. drivers/pci/controller/dwc/Makefile|2 +- drivers/pci/controller/dwc/pci-layerscape-ep.c | 147 2 files changed, 148

System not booting since dm changes? (was Linux 4.20-rc1)

2018-11-05 Thread Michael Ellerman
Linus Torvalds writes: ... > Mike Snitzer (1): > device mapper updates Hi Mike, Replying here because I can't find the device-mapper pull or the patch in question on LKML. I guess I should be subscribed to dm-devel. We have a box that doesn't boot any more, bisect points at one of:

Re: [PATCH 5/6] pci: layerscape: Add the EP mode support.

2018-11-05 Thread Kishon Vijay Abraham I
Hi, On 31/10/18 4:08 PM, Xiaowei Bao wrote: > > > -Original Message- > From: Kishon Vijay Abraham I > Sent: 2018年10月31日 12:15 > To: Xiaowei Bao ; bhelg...@google.com; > robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li > ; lorenzo.pieral...@arm.com;

Re: [RFC PATCH] lib: Introduce generic __cmpxchg_u64() and use it where needed

2018-11-05 Thread Peter Zijlstra
On Fri, Nov 02, 2018 at 07:19:15PM +0300, Andrey Ryabinin wrote: > UBSAN warns about signed overflows despite -fno-strict-overflow if gcc > version is < 8. I have learned recently that UBSAN in GCC 8 ignores > signed overflows if -fno-strict-overflow of fwrapv is used. Ah, good. > We can

Re: [PATCH v11 00/26] Speculative page faults

2018-11-05 Thread Balbir Singh
On Thu, May 17, 2018 at 01:06:07PM +0200, Laurent Dufour wrote: > This is a port on kernel 4.17 of the work done by Peter Zijlstra to handle > page fault without holding the mm semaphore [1]. > > The idea is to try to handle user space page faults without holding the > mmap_sem. This should allow

Re: System not booting since dm changes? (was Linux 4.20-rc1)

2018-11-05 Thread Mike Snitzer
On Mon, Nov 05 2018 at 5:25am -0500, Michael Ellerman wrote: > Linus Torvalds writes: > ... > > Mike Snitzer (1): > > device mapper updates > > Hi Mike, > > Replying here because I can't find the device-mapper pull or the patch > in question on LKML. I guess I should be subscribed to

Re: [RFC PATCH] lib: Introduce generic __cmpxchg_u64() and use it where needed

2018-11-05 Thread Peter Zijlstra
On Fri, Nov 02, 2018 at 07:19:15PM +0300, Andrey Ryabinin wrote: > UBSAN warns about signed overflows despite -fno-strict-overflow if gcc > version is < 8. > I have learned recently that UBSAN in GCC 8 ignores signed overflows if > -fno-strict-overflow of fwrapv is used. > > $ cat

Re: System not booting since dm changes? (was Linux 4.20-rc1)

2018-11-05 Thread Satheesh Rajendran
On Mon, Nov 05, 2018 at 08:51:57AM -0500, Mike Snitzer wrote: > On Mon, Nov 05 2018 at 5:25am -0500, > Michael Ellerman wrote: > > > Linus Torvalds writes: > > ... > > > Mike Snitzer (1): > > > device mapper updates > > > > Hi Mike, > > > > Replying here because I can't find the

Re: System not booting since dm changes? (was Linux 4.20-rc1)

2018-11-05 Thread Jens Axboe
On 11/5/18 7:35 AM, Satheesh Rajendran wrote: > On Mon, Nov 05, 2018 at 08:51:57AM -0500, Mike Snitzer wrote: >> On Mon, Nov 05 2018 at 5:25am -0500, >> Michael Ellerman wrote: >> >>> Linus Torvalds writes: >>> ... Mike Snitzer (1): device mapper updates >>> >>> Hi Mike, >>> >>>

[PATCH v6 00/18] of: overlay: validation checks, subsequent fixes

2018-11-05 Thread frowand . list
From: Frank Rowand Add checks to (1) overlay apply process and (2) memory freeing triggered by overlay release. The checks are intended to detect possible memory leaks and invalid overlays. The checks revealed bugs in existing code. Fixed the bugs. While fixing bugs, noted other issues,

[PATCH v6 01/18] of: overlay: add tests to validate kfrees from overlay removal

2018-11-05 Thread frowand . list
From: Frank Rowand Add checks: - attempted kfree due to refcount reaching zero before overlay is removed - properties linked to an overlay node when the node is removed - node refcount > one during node removal in a changeset destroy, if the node was created by the changeset After

[PATCH v6 02/18] of: overlay: add missing of_node_put() after add new node to changeset

2018-11-05 Thread frowand . list
From: Frank Rowand The refcount of a newly added overlay node decrements to one (instead of zero) when the overlay changeset is destroyed. This change will cause the final decrement be to zero. After applying this patch, new validation warnings will be reported from the devicetree unittest

[PATCH v6 03/18] of: overlay: add missing of_node_get() in __of_attach_node_sysfs

2018-11-05 Thread frowand . list
From: Frank Rowand There is a matching of_node_put() in __of_detach_node_sysfs() Remove misleading comment from function header comment for of_detach_node(). This patch may result in memory leaks from code that directly calls the dynamic node add and delete functions directly instead of using

[PATCH v6 04/18] powerpc/pseries: add of_node_put() in dlpar_detach_node()

2018-11-05 Thread frowand . list
From: Frank Rowand "of: overlay: add missing of_node_get() in __of_attach_node_sysfs" added a missing of_node_get() to __of_attach_node_sysfs(). This results in a refcount imbalance for nodes attached with dlpar_attach_node(). The calling sequence from dlpar_attach_node() to

[PATCH v6 17/18] of: unittest: find overlays[] entry by name instead of index

2018-11-05 Thread frowand . list
From: Frank Rowand One accessor of overlays[] was using a hard coded index value to find the correct array entry instead of searching for the entry containing the correct name. Tested-by: Alan Tull Signed-off-by: Frank Rowand --- drivers/of/unittest.c | 21 + 1 file

[PATCH v6 11/18] of: overlay: test case of two fragments adding same node

2018-11-05 Thread frowand . list
From: Frank Rowand Multiple overlay fragments adding or deleting the same node is not supported. An attempt to do so results in an incorrect devicetree. The node name will be munged for the second add. After adding this patch, the unittest messages will show: Duplicate name in motor-1,

[PATCH v6 14/18] of: unittest: remove unused of_unittest_apply_overlay() argument

2018-11-05 Thread frowand . list
From: Frank Rowand Argument unittest_nr is not used in of_unittest_apply_overlay(), remove it. Tested-by: Alan Tull Signed-off-by: Frank Rowand --- drivers/of/unittest.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c

[PATCH v6 05/18] of: overlay: use prop add changeset entry for property in new nodes

2018-11-05 Thread frowand . list
From: Frank Rowand The changeset entry 'update property' was used for new properties in an overlay instead of 'add property'. The decision of whether to use 'update property' was based on whether the property already exists in the subtree where the node is being spliced into. At the top level

[PATCH v6 07/18] of: dynamic: change type of of_{at, de}tach_node() to void

2018-11-05 Thread frowand . list
From: Frank Rowand of_attach_node() and of_detach_node() always return zero, so their return value is meaningless. Change their type to void and fix all callers to ignore return value. Tested-by: Alan Tull Signed-off-by: Frank Rowand --- arch/powerpc/platforms/pseries/dlpar.c| 13

[PATCH v6 10/18] of: overlay: make all pr_debug() and pr_err() messages unique

2018-11-05 Thread frowand . list
From: Frank Rowand Make overlay.c debug and error messages unique so that they can be unambiguously found by grep. Tested-by: Alan Tull Signed-off-by: Frank Rowand --- drivers/of/overlay.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/of/overlay.c

[PATCH v6 08/18] of: overlay: reorder fields in struct fragment

2018-11-05 Thread frowand . list
From: Frank Rowand Order the fields of struct fragment in the same order as struct of_overlay_notify_data. The order in struct fragment is not significant. If both structs are ordered the same then when examining the data in a debugger or dump the human involved does not have to remember which

[PATCH v6 13/18] of: overlay: check prevents multiple fragments touching same property

2018-11-05 Thread frowand . list
From: Frank Rowand Add test case of two fragments updating the same property. After adding the test case, the system hangs at end of boot, after after slub stack dumps from kfree() in crypto modprobe code. Multiple overlay fragments adding, modifying, or deleting the same property is not

[PATCH v6 12/18] of: overlay: check prevents multiple fragments add or delete same node

2018-11-05 Thread frowand . list
From: Frank Rowand Multiple overlay fragments adding or deleting the same node is not supported. Replace code comment of such, with check to detect the attempt and fail the overlay apply. Devicetree unittest where multiple fragments added the same node was added in the previous patch in the

[PATCH v6 16/18] of: unittest: allow base devicetree to have symbol metadata

2018-11-05 Thread frowand . list
From: Frank Rowand The overlay metadata nodes in the FDT created from testcases.dts are not handled properly. The __fixups__ and __local_fixups__ node were added to the live devicetree, but should not be. Only the first property in the /__symbols__ node was added to the live devicetree if the

Re: [PATCH v08 0/5] powerpc/hotplug: Update affinity for migrated CPUs

2018-11-05 Thread Michael Bringmann
On 10/29/2018 02:51 PM, Michal Suchánek wrote: > On Sun, 29 Jul 2018 08:18:34 -0500 > Michael Bringmann wrote: > >> The migration of LPARs across Power systems affects many attributes >> including that of the associativity of CPUs. The patches in this >> set execute when a system is coming up

[PATCH v6 06/18] of: overlay: do not duplicate properties from overlay for new nodes

2018-11-05 Thread frowand . list
From: Frank Rowand When allocating a new node, add_changeset_node() was duplicating the properties from the respective node in the overlay instead of allocating a node with no properties. When this patch is applied the errors reported by the devictree unittest from patch "of: overlay: add tests

[PATCH v6 09/18] of: overlay: validate overlay properties #address-cells and #size-cells

2018-11-05 Thread frowand . list
From: Frank Rowand If overlay properties #address-cells or #size-cells are already in the live devicetree for any given node, then the values in the overlay must match the values in the live tree. If the properties are already in the live tree then there is no need to create a changeset entry

[PATCH v6 15/18] of: overlay: set node fields from properties when add new overlay node

2018-11-05 Thread frowand . list
From: Frank Rowand Overlay nodes added by add_changeset_node() do not have the node fields name, phandle, and type set. The node passed to __of_attach_node() when the add node changeset entry is processed does not contain any properties. The node's properties are located in add property

Re: [PATCH v6 00/18] of: overlay: validation checks, subsequent fixes

2018-11-05 Thread Rob Herring
On Mon, Nov 5, 2018 at 9:26 AM wrote: > > From: Frank Rowand > > Add checks to (1) overlay apply process and (2) memory freeing > triggered by overlay release. The checks are intended to detect > possible memory leaks and invalid overlays. > > The checks revealed bugs in existing code. Fixed

[PATCH v6 18/18] of: unittest: initialize args before calling of_*parse_*()

2018-11-05 Thread frowand . list
From: Frank Rowand Callers of of_irq_parse_one() blindly use the pointer args.np without checking whether of_irq_parse_one() had an error and thus did not set the value of args.np. Initialize args to zero so that using the format "%pOF" to show the value of args.np will show "(null)" when

[PATCH] powerpc/fadump: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/powerpc/kernel/fadump.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index a711d22339ea..2df5e04b5afc 100644

Re: [PATCH v11 00/26] Speculative page faults

2018-11-05 Thread Laurent Dufour
Le 05/11/2018 à 11:42, Balbir Singh a écrit : On Thu, May 17, 2018 at 01:06:07PM +0200, Laurent Dufour wrote: This is a port on kernel 4.17 of the work done by Peter Zijlstra to handle page fault without holding the mm semaphore [1]. The idea is to try to handle user space page faults without

Re: [PATCH 2/2 v3] clk: qoriq: add more compatibles strings

2018-11-05 Thread Rob Herring
On Wed, 31 Oct 2018 14:57:36 +0800, Yuantian Tang wrote: > Add more SoC compatible strings to support more chips. > > Signed-off-by: Yuantian Tang > --- > v3: > - undo deleting old bindings > - split the dts and driver to different patchset > > .../devicetree/bindings/clock/qoriq-clock.txt

Re: [PATCHv2 3/6] PCI: layerscape: Add the EP mode support

2018-11-05 Thread Rob Herring
On Mon, 5 Nov 2018 16:46:50 +0800, Xiaowei Bao wrote: > Add the EP mode support. > > Signed-off-by: Xiaowei Bao > --- > v2: > - Add the SoC specific compatibles. > > .../devicetree/bindings/pci/layerscape-pci.txt |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) >

Re: [PATCH v11 10/26] mm: protect VMA modifications using VMA sequence count

2018-11-05 Thread Laurent Dufour
Le 05/11/2018 à 08:04, vinayak menon a écrit : Hi Laurent, On Thu, May 17, 2018 at 4:37 PM Laurent Dufour wrote: The VMA sequence count has been introduced to allow fast detection of VMA modification when running a page fault handler without holding the mmap_sem. This patch provides

Re: Build regressions/improvements in v4.20-rc1

2018-11-05 Thread Geert Uytterhoeven
On Mon, Nov 5, 2018 at 11:07 PM Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v4.20-rc1[1] compared to v4.19[2]. > > Summarized: > - build errors: +3/-0 > - build warnings: +449/-2712 > > Happy fixing! ;-) > > Thanks to the linux-next team

Re: [PATCH v6 00/18] of: overlay: validation checks, subsequent fixes

2018-11-05 Thread Frank Rowand
Hi Michael, Ben, Paul, Do you know if anyone has tried this series on PowerPC? Thanks, -Frank On 11/5/18 11:24 AM, Rob Herring wrote: > On Mon, Nov 5, 2018 at 9:26 AM wrote: >> >> From: Frank Rowand >> >> Add checks to (1) overlay apply process and (2) memory freeing >> triggered by overlay

[PATCH] KVM: PPC: Book3S HV: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- arch/powerpc/kvm/book3s_xics.c | 12 +--- arch/powerpc/kvm/book3s_xive.c | 12 +--- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/arch/powerpc/kvm/book3s_xics.c

[PATCH] ASoC: fsl_ssi: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-05 Thread Yangtao Li
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yangtao Li --- sound/soc/fsl/fsl_ssi_dbg.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi_dbg.c b/sound/soc/fsl/fsl_ssi_dbg.c index 1255dfe19eef..6f6294149476 100644

Re: [PATCH 0/2] poewrpc/Boot: Fix cross compiling with clang

2018-11-05 Thread Nick Desaulniers
On Sun, Nov 4, 2018 at 3:11 PM Joel Stanley wrote: > > Hello, > > These patches allow clang to cross-compile the powerpc boot wrapper. > The boot wrapper constructs it's own compiler flags as it may not be > built for the same arch as the kernel. Hi Joel, thanks for the series! I'm just

Re: [PATCH 0/2] poewrpc/Boot: Fix cross compiling with clang

2018-11-05 Thread Joel Stanley
On Tue, 6 Nov 2018 at 09:07, Nick Desaulniers wrote: > > On Sun, Nov 4, 2018 at 3:11 PM Joel Stanley wrote: > > > > Hello, > > > > These patches allow clang to cross-compile the powerpc boot wrapper. > > The boot wrapper constructs it's own compiler flags as it may not be > > built for the same

Re: [PATCH] powerpc/32: Avoid unsupported flags with clang

2018-11-05 Thread Segher Boessenkool
On Mon, Nov 05, 2018 at 02:48:49PM +1100, Michael Ellerman wrote: > Joel Stanley writes: > > When building for ppc32 with clang these flags are unsupported: > > > > -ffixed-r2 and -mmultiple > > -CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD) > > +ifndef CONFIG_CC_IS_CLANG > >

Re: [PATCH 2/2 v3] clk: qoriq: add more compatibles strings

2018-11-05 Thread Stephen Boyd
Quoting Yuantian Tang (2018-10-30 23:57:36) > Add more SoC compatible strings to support more chips. > > Signed-off-by: Yuantian Tang > --- Acked-by: Stephen Boyd

Build regressions/improvements in v4.20-rc1 (sound/pci/hda/patch_ca0132.c)

2018-11-05 Thread Randy Dunlap
On 11/5/18 2:12 PM, Geert Uytterhoeven wrote: > On Mon, Nov 5, 2018 at 11:07 PM Geert Uytterhoeven > wrote: >> Below is the list of build error/warning regressions/improvements in >> v4.20-rc1[1] compared to v4.19[2]. >> >> Summarized: >> - build errors: +3/-0 >> - build warnings: +449/-2712

Re: [PATCH] powerpc/fadump: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-05 Thread David Gibson
On Mon, Nov 05, 2018 at 10:01:19AM -0500, Yangtao Li wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yangtao Li Reviewed-by: David Gibson > --- > arch/powerpc/kernel/fadump.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff

[PATCH v2 2/2] kbuild: consolidate Clang compiler flags

2018-11-05 Thread Masahiro Yamada
Collect basic Clang options such as --target, --prefix, --gcc-toolchain, -no-integrated-as into a single variable CLANG_FLAGS so that it can be easily reused in other parts of Makefile. Signed-off-by: Masahiro Yamada --- Changes in v2: - Use := flavor instead of = because $(CLANG_FLAGS) is

[PATCH v2 1/2] kbuild: add -no-integrated-as Clang option unconditionally

2018-11-05 Thread Masahiro Yamada
We are still a way off the Clang's integrated assembler support for the kernel. Hence, -no-integrated-as is mandatory to build the kernel with Clang. If you had an ancient version of Clang that does not recognize this option, you would not be able to compile the kernel anyway. Signed-off-by:

Re: [PATCH 5/6] pci: layerscape: Add the EP mode support.

2018-11-05 Thread Kishon Vijay Abraham I
(Removed Niklas as mails to him is bouncing) Hi, Please fix your email client. Refer Documentation/process/email-clients.rst On 05/11/18 2:45 PM, Xiaowei Bao wrote: > > > -Original Message- > From: Kishon Vijay Abraham I > Sent: 2018年11月5日 16:57 > To: Xiaowei Bao ;

Re: [PATCH -next 0/3] Add support for fast mremap

2018-11-05 Thread Joel Fernandes
On Sun, Nov 04, 2018 at 12:56:48AM -0600, William Kucharski wrote: > > > > On Nov 3, 2018, at 12:32 PM, Joel Fernandes wrote: > > > > Looks like more architectures don't define set_pmd_at. I am thinking the > > easiest way forward is to just do the following, instead of defining > > set_pmd_at

RE: [PATCH 5/6] pci: layerscape: Add the EP mode support.

2018-11-05 Thread Xiaowei Bao
Hi Kishon, -Original Message- From: Kishon Vijay Abraham I Sent: 2018年11月6日 14:07 To: Xiaowei Bao ; bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo Li ; lorenzo.pieral...@arm.com; a...@arndb.de; gre...@linuxfoundation.org; M.h. Lian ; Mingkai