Re: [PATCH v4] memory-hotplug: Fix kernel warning during memory hotplug on ppc64

2016-01-07 Thread Andrew Morton
On Wed, 6 Jan 2016 16:30:00 -0600 John Allen wrote: > This patch fixes a bug where a kernel warning is triggered when performing > a memory hotplug on ppc64. This warning may also occur on any architecture > that uses the memory_probe_store interface. (cc's added).

Re: [PATCH v4] memory-hotplug: Fix kernel warning during memory hotplug on ppc64

2016-01-07 Thread Dave Hansen
On 01/06/2016 02:30 PM, John Allen wrote: > On any architecture that uses memory_probe_store to reserve memory, the > udev rule will be triggered after the first section of the block is > reserved and will subsequently attempt to online the entire block, > interrupting the memory reservation

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Ian Munsie
Excerpts from Brian Norris's message of 2016-01-08 10:02:25 +1100: > > - It forces cxl developers to a higher standard. cxl has already had > >more than it's fair share of incredibly difficult to debug issues, > >so any way we can reduce the risk of errors going in makes our lives > >

[PATCH] platforms/powernv: Fix update of NVLink DMA mask

2016-01-07 Thread Alistair Popple
The emulated NVLink PCI devices share the same IODA2 TCE tables but only support a single TVT (instead of the normal two for PCI devices). This requires the kernel to manually replace windows with either the bypass or non-bypass window depending on what the driver has requested. Unfortunately an

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Daniel Axtens
Hi Arnd, Thanks for your patch. Acked-by: Daniel Axtens > Alternatively, remove the -Werror. We occasionally get people that add this > flag to a Makefile, but it tends to cause more trouble whenever a new > gcc version arrives. Speaking up as the person who added -Werror to

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Brian Norris
On Fri, Jan 08, 2016 at 09:51:35AM +1100, Daniel Axtens wrote: > > > Alternatively, remove the -Werror. We occasionally get people that add this > > flag to a Makefile, but it tends to cause more trouble whenever a new > > gcc version arrives. ^^ Your reasons below don't really address this

Re: linux-next: manual merge of the akpm-current tree with the powerpc tree

2016-01-07 Thread Stephen Rothwell
Hi all, On Fri, 18 Dec 2015 16:33:51 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the akpm-current tree got a conflict in: > > arch/powerpc/include/asm/pgtable.h > > between commit: > > ee4889c7bc2a ("powerpc/mm: Don't have generic headers

linux-next: build failure after merge of the powerpc tree

2016-01-07 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this: arch/powerpc/mm/hash_utils_64.c: In function 'get_paca_psize': arch/powerpc/mm/hash_utils_64.c:869:19: error: 'struct paca_struct' has no member named 'context' return

Re: [PATCH] misc: cxl: fix build for GCC 4.6.x

2016-01-07 Thread Michael Ellerman
On Thu, 2016-01-07 at 12:38 -0800, Brian Norris wrote: > GCC 4.6.3 does not support -Wno-unused-const-variable. Instead, use the > kbuild infrastructure that checks if this options exists. Thanks. > Also drop -Werror, since it's harmful, if forced on the user. New GCC's, > or higher warning

[PATCH 1/6] QE: Add IC, SI and SIRAM document to device tree bindings.

2016-01-07 Thread Zhao Qiang
Add IC, SI and SIRAM document of QE to Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/qe.txt Signed-off-by: Zhao Qiang --- .../devicetree/bindings/powerpc/fsl/cpm_qe/qe.txt | 53 ++ 1 file changed, 53 insertions(+) diff --git

[PATCH 6/6] T104xQDS: Add qe node to t104xqds

2016-01-07 Thread Zhao Qiang
add qe node to t104xqds.dtsi Signed-off-by: Zhao Qiang --- arch/powerpc/boot/dts/fsl/t104xqds.dtsi | 44 + 1 file changed, 44 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t104xqds.dtsi b/arch/powerpc/boot/dts/fsl/t104xqds.dtsi index

[PATCH 1/3] TDM: Add maxim ds26522 document to bindings

2016-01-07 Thread Zhao Qiang
Add maxim ds26522 document to Documentation/devicetree/bindings/tdm/maxim,ds26522.txt Signed-off-by: Zhao Qiang --- Documentation/devicetree/bindings/tdm/maxim,ds26522.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644

[PATCH 2/6] QE: Add ucc hdlc document to bindings

2016-01-07 Thread Zhao Qiang
Add ucc hdlc document to Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt Signed-off-by: Zhao Qiang --- .../bindings/powerpc/fsl/cpm_qe/network.txt| 35 ++ 1 file changed, 35 insertions(+) diff --git

[PATCH 5/6] T104xRDB: Add qe node to t104xrdb

2016-01-07 Thread Zhao Qiang
add qe node to t104xrdb.dtsi Signed-off-by: Zhao Qiang --- arch/powerpc/boot/dts/fsl/t104xrdb.dtsi | 44 + 1 file changed, 44 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t104xrdb.dtsi b/arch/powerpc/boot/dts/fsl/t104xrdb.dtsi index

[PATCH 4/6] T104xD4RDB: Add qe node to t104xd4rdb

2016-01-07 Thread Zhao Qiang
add qe node to t104xd4rdb.dtsi and t1040si-post.dtsi. Signed-off-by: Zhao Qiang --- arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 45 + arch/powerpc/boot/dts/fsl/t104xd4rdb.dtsi | 44 2 files changed, 89

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Brian Norris
On Fri, Jan 08, 2016 at 12:31:54PM +1100, Ian Munsie wrote: > Excerpts from Brian Norris's message of 2016-01-08 10:02:25 +1100: > > > - It forces cxl developers to a higher standard. cxl has already had > > >more than it's fair share of incredibly difficult to debug issues, > > >so any

[PATCH 3/3] T1040D4RDB: add tdm riser card node to t1040d4rdb

2016-01-07 Thread Zhao Qiang
add tdm riser card node to t1040d4rdb.dts Signed-off-by: Zhao Qiang --- arch/powerpc/boot/dts/fsl/t1040d4rdb.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1040d4rdb.dts b/arch/powerpc/boot/dts/fsl/t1040d4rdb.dts index

[PATCH 2/3] T1040RDB: add tdm riser card node to t1040rdb

2016-01-07 Thread Zhao Qiang
add tdm riser card node to t1040rdb.dts Signed-off-by: Zhao Qiang --- arch/powerpc/boot/dts/fsl/t1040rdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1040rdb.dts b/arch/powerpc/boot/dts/fsl/t1040rdb.dts index

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Michael Ellerman
On Thu, 2016-01-07 at 18:07 -0800, Brian Norris wrote: > On Fri, Jan 08, 2016 at 12:31:54PM +1100, Ian Munsie wrote: > > Excerpts from Brian Norris's message of 2016-01-08 10:02:25 +1100: > > > > - It forces cxl developers to a higher standard. cxl has already had > > > >more than it's fair

[PATCH 3/6] QE: Add uqe_serial document to bindings

2016-01-07 Thread Zhao Qiang
Add uqe_serial document to Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/uqe_serial.txt Signed-off-by: Zhao Qiang --- .../bindings/powerpc/fsl/cpm_qe/uqe_serial.txt | 20 1 file changed, 20 insertions(+) create mode 100644

Re: [PATCH v4] perf: bpf: Fix build breakage due to libbpf

2016-01-07 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 07, 2016 at 12:28:15PM +0530, Naveen N. Rao escreveu: > On 2015/12/17 09:19AM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Dec 17, 2015 at 10:37:14AM +0530, Naveen N. Rao escreveu: > > > On 2015/12/17 09:29AM, Wang Nan wrote: > > > > The whole thread is: > > > > > > > > [PATCH v3 0/3]

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Ian Munsie
Acked-by: Ian Munsie As suggested by Brian we might also gate the -Werror with CONFIG_PPC_WERROR, but that can be in a separate commit. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: [PATCH v4] perf: bpf: Fix build breakage due to libbpf

2016-01-07 Thread Wangnan (F)
On 2016/1/8 5:23, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 07, 2016 at 05:39:57PM -0300, Arnaldo Carvalho de Melo escreveu: Em Thu, Jan 07, 2016 at 12:28:15PM +0530, Naveen N. Rao escreveu: Can you please push at least the initial 3 patches of this for v4.4? Wang Nan has posted v6 here:

[PATCH] powerpc/powernv: Remove misleading comment in pci.c

2016-01-07 Thread Russell Currey
PCI in powernv now supports quite a bit more than p5ioc2, so remove the outdated comment. Signed-off-by: Russell Currey --- arch/powerpc/platforms/powernv/pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci.c

Re: [PATCH v4] perf: bpf: Fix build breakage due to libbpf

2016-01-07 Thread Naveen N. Rao
On 2016/01/07 05:39PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Jan 07, 2016 at 12:28:15PM +0530, Naveen N. Rao escreveu: > > On 2015/12/17 09:19AM, Arnaldo Carvalho de Melo wrote: > > > Em Thu, Dec 17, 2015 at 10:37:14AM +0530, Naveen N. Rao escreveu: > > > > On 2015/12/17 09:29AM, Wang Nan

[PATCH] misc: cxl: fix build for GCC 4.6.x

2016-01-07 Thread Brian Norris
GCC 4.6.3 does not support -Wno-unused-const-variable. Instead, use the kbuild infrastructure that checks if this options exists. Also drop -Werror, since it's harmful, if forced on the user. New GCC's, or higher warning verbosities (e.g., W=1) can easily kill the build where they shouldn't.

Re: [PATCH v4] perf: bpf: Fix build breakage due to libbpf

2016-01-07 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 07, 2016 at 12:28:15PM +0530, Naveen N. Rao escreveu: > On 2015/12/17 09:19AM, Arnaldo Carvalho de Melo wrote: > > Em Thu, Dec 17, 2015 at 10:37:14AM +0530, Naveen N. Rao escreveu: > > > On 2015/12/17 09:29AM, Wang Nan wrote: > > > > The whole thread is: > > > > > > > > [PATCH v3 0/3]

Re: [PATCH] mtd: nand: add FSL_SOC dependency to drivers using FSL_LBC

2016-01-07 Thread Scott Wood
On Thu, 2016-01-07 at 12:34 -0800, Brian Norris wrote: > Hi Scott, > > On Thu, Jan 07, 2016 at 01:47:33PM -0600, Scott Wood wrote: > > On Thu, 2016-01-07 at 11:21 -0800, Brian Norris wrote: > > > I've managed to construct .config files (for ppc64) that come across > > > this Kconfig warning: > >

Re: [PATCH] mtd: nand: add FSL_SOC dependency to drivers using FSL_LBC

2016-01-07 Thread Brian Norris
Hi Scott, On Thu, Jan 07, 2016 at 02:40:37PM -0600, Scott Wood wrote: > On Thu, 2016-01-07 at 12:34 -0800, Brian Norris wrote: > > On Thu, Jan 07, 2016 at 01:47:33PM -0600, Scott Wood wrote: > > > On Thu, 2016-01-07 at 11:21 -0800, Brian Norris wrote: > > > > I've managed to construct .config

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Joe Perches
On Thu, 2016-01-07 at 20:44 +0100, Michal Marek wrote: > Dne 7.1.2016 v 20:37 Joe Perches napsal(a): > > On Thu, 2016-01-07 at 10:54 -0800, Brian Norris wrote: > > > I'm using a GCC 4.6.3 compiler for some compile tests, and I noticed > > > that commit 2cd55c68c0a4 ("cxl: Fix build failure due to

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Brian Norris
On Thu, Jan 07, 2016 at 11:57:31AM -0800, Joe Perches wrote: > On Thu, 2016-01-07 at 20:44 +0100, Michal Marek wrote: > > Dne 7.1.2016 v 20:37 Joe Perches napsal(a): > > > On Thu, 2016-01-07 at 10:54 -0800, Brian Norris wrote: > > > > I'm using a GCC 4.6.3 compiler for some compile tests, and I

Re: [PATCH] mtd: nand: add FSL_SOC dependency to drivers using FSL_LBC

2016-01-07 Thread Scott Wood
On Thu, 2016-01-07 at 11:21 -0800, Brian Norris wrote: > I've managed to construct .config files (for ppc64) that come across > this Kconfig warning: > > warning: (MPC836x_RDK && MTD_NAND_FSL_ELBC && MTD_NAND_FSL_UPM) selects > FSL_LBC which has unmet direct dependencies (FSL_SOC) > > Let's

Re: Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Arnd Bergmann
On Thursday 07 January 2016 10:54:06 Brian Norris wrote: > > I'm using a GCC 4.6.3 compiler for some compile tests, and I noticed > that commit 2cd55c68c0a4 ("cxl: Fix build failure due to -Wunused-variable > behaviour change") breaks my builds, because the > -Wno-unused-const-variable doesn't

Re: [PATCH] mtd: nand: add FSL_SOC dependency to drivers using FSL_LBC

2016-01-07 Thread Brian Norris
Hi Scott, On Thu, Jan 07, 2016 at 01:47:33PM -0600, Scott Wood wrote: > On Thu, 2016-01-07 at 11:21 -0800, Brian Norris wrote: > > I've managed to construct .config files (for ppc64) that come across > > this Kconfig warning: > > > > warning: (MPC836x_RDK && MTD_NAND_FSL_ELBC &&

Build failure: -Wno-unused-const-variable DNE on old GCC

2016-01-07 Thread Brian Norris
Hi, I'm using a GCC 4.6.3 compiler for some compile tests, and I noticed that commit 2cd55c68c0a4 ("cxl: Fix build failure due to -Wunused-variable behaviour change") breaks my builds, because the -Wno-unused-const-variable doesn't exist on GCC 4.6.3. drivers/misc/cxl/base.c: At top level:

[PATCH] mtd: nand: add FSL_SOC dependency to drivers using FSL_LBC

2016-01-07 Thread Brian Norris
I've managed to construct .config files (for ppc64) that come across this Kconfig warning: warning: (MPC836x_RDK && MTD_NAND_FSL_ELBC && MTD_NAND_FSL_UPM) selects FSL_LBC which has unmet direct dependencies (FSL_SOC) Let's add the FSL_SOC dependency to the NAND drivers. AFAICT, they are only

Re: [PATCH v4] perf: bpf: Fix build breakage due to libbpf

2016-01-07 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 07, 2016 at 05:39:57PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Jan 07, 2016 at 12:28:15PM +0530, Naveen N. Rao escreveu: > > Can you please push at least the initial 3 patches of this for v4.4? > > Wang Nan has posted v6 here: > >