Re: [PATCH 02/27] powerpc/powermac: move pmac_pci_probe_mode from setup.c to pci.c

2015-03-30 Thread Michael Ellerman
On Tue, 2015-03-31 at 08:46 +1100, Benjamin Herrenschmidt wrote: > On Mon, 2015-03-30 at 23:32 +1100, Michael Ellerman wrote: > > On Wed, 2015-25-03 at 05:35:36 UTC, Daniel Axtens wrote: > > > > Why did we move it? Just for cleanliness? > > > > > diff --g

Re: [v3, 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-03-30 Thread Michael Ellerman
On Mon, 2015-03-30 at 22:45 +0530, Shreyas B Prabhu wrote: > On Monday 30 March 2015 03:51 PM, Michael Ellerman wrote: > > > > This sounds good, although the name is a bit vague. > How about "fastsleep_workaround_permanent", with default value = 0. User > c

Re: [RFC/RFT, RESEND] powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure

2015-03-31 Thread Michael Ellerman
erspace via sysfs") > > Signed-off-by: Sudeep Holla > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Anshuman Khandual > Cc: linuxppc-dev@lists.ozlabs.org > --- > arch/powerpc/kernel/cacheinfo.c | 811 > +--

Re: [PATCH] powerpc: fix memory corruption by pnv_alloc_idle_core_states

2015-03-31 Thread Michael Ellerman
On Tue, 2015-03-31 at 18:11 +0200, Jan Stancek wrote: > Space allocated for paca is based off nr_cpu_ids, > but pnv_alloc_idle_core_states() iterates paca with > cpu_nr_cores()*threads_per_core, which is using NR_CPUS. > > This causes pnv_alloc_idle_core_states() to write over memory, > which is o

Re: [RFC/RFT, RESEND] powerpc: move cacheinfo sysfs to generic cacheinfo infrastructure

2015-03-31 Thread Michael Ellerman
On Tue, 2015-03-31 at 18:14 +0100, Sudeep Holla wrote: > > On 31/03/15 11:56, Michael Ellerman wrote: > > On Mon, 2015-23-02 at 18:18:20 UTC, Sudeep Holla wrote: > >> This patch removes the redundant sysfs cacheinfo code by reusing > >> the newly introduced ge

[git pull] Please pull mpe/linux.git powerpc-4.0-4 tag

2015-04-02 Thread Michael Ellerman
Hi Linus, Please pull one powerpc fix for 4.0: The following changes since commit e42391cd048809d903291d07f86ed3934ce138e9: Linux 4.0-rc6 (2015-03-29 15:26:31 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux.git tags/powerpc-4.0-4 for

[PATCH 1/2] powerpc/cell: Fix crash in iic_setup_cpu() after per_cpu changes

2015-04-02 Thread Michael Ellerman
e sparse results often enough. Fixes: 69111bac42f5 ("powerpc: Replace __get_cpu_var uses") Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/cell/interrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/cell/interrupt.c b/arch/powe

[PATCH 2/2] powerpc/cell: Fix cell iommu after it_page_shift changes

2015-04-02 Thread Michael Ellerman
o determine iommu page size") Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/cell/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index c7c8720aa39f..63db1b03e756 100644 --

Re: [PATCH 0/2] Add a MTD driver for OpenPower PNOR flash

2015-04-03 Thread Michael Ellerman
On Wed, 2015-04-01 at 14:05 +0800, Jeremy Kerr wrote: > Hi all, > > This series implements a simple mtd device to allow access to the PNOR > flash on OpenPower machines. The flash is accessed through firmware > calls. > > Patch 1/2 adds the Linux interface to these calls. Patch 2/2 adds a mtd > d

[PATCH] powerpc: Drop return value of smp_ops->probe()

2015-04-04 Thread Michael Ellerman
c1aa687d499a "powerpc: Clean up obsolete code relating to decrementer and timebase". So drop that requirement, probe() now returns void, and update all implementations. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/smp.h | 4 ++-- arch/powerpc/include/asm/xic

Re: [PATCH v2 1/4] powerpc/tm: Abort syscalls in active transactions

2015-04-04 Thread Michael Ellerman
On Mon, 2015-03-30 at 14:20 +1100, Sam Bobroff wrote: > @@ -145,6 +146,24 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_SPLPAR) > andi. r11,r10,_TIF_SYSCALL_DOTRACE > bne syscall_dotrace > .Lsyscall_dotrace_cont: > +#ifdef CONFIG_PPC_TRANSACTIONAL_MEM > +BEGIN_FTR_SECTION > + b

Re: [PATCH 0/8] powerpc/8xx: Getting rid of CONFIG_8xx

2015-04-07 Thread Michael Ellerman
On Tue, 2015-04-07 at 16:31 -0500, Scott Wood wrote: > On Tue, 2015-04-07 at 10:19 +0200, leroy christophe wrote: > > Le 25/03/2015 01:45, Scott Wood a écrit : > > > On Fri, 2015-03-13 at 10:34 +1100, Michael Ellerman wrote: > > >> You'll need to collect ACKs, o

Re: powerpc32: fix warning from include/linux/mm.h

2015-04-07 Thread Michael Ellerman
On Fri, 2015-03-20 at 18:52 -0500, Scott Wood wrote: > On Fri, Dec 05, 2014 at 12:20:20PM +0100, LEROY Christophe wrote: > > include/linux/mm.h: In function 'is_vmalloc_addr': > > include/linux/mm.h:367:14: warning: comparison between signed and unsigned > > integer expressions [-Wsign-compare] >

Re: [PATCH v2 04/19] powerpc: Create pci_controller_ops.dma_dev_setup and shim

2015-04-07 Thread Michael Ellerman
On Tue, 2015-04-07 at 09:44 +0200, Arnd Bergmann wrote: > On Tuesday 07 April 2015 10:31:36 Daniel Axtens wrote: > > > Please see https://patchwork.ozlabs.org/patch/431333/ for related work. > > > > > I'm familiar with that patch series - I've been helping Yijing get it up > > to speed on PowerPC.

Re: [PATCH 3/3] powerpc: Include linux/jump_label.h to get HAVE_JUMP_LABEL define

2015-04-09 Thread Michael Ellerman
hvCall.S| 2 +- > arch/powerpc/platforms/pseries/lpar.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) Acked-by: Michael Ellerman I assume it's best for Andrew to take this series with all the cross-archness? cheers

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

2015-04-11 Thread Michael Ellerman
On Fri, 2015-04-10 at 20:02 +1000, Stephen Rothwell wrote: > Hi all, > > After merging the powerpc-mpe tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > mm/gup.c: In function 'gup_pte_range': > mm/gup.c:904:3: error: conversion to non-scalar type requested >pte_t p

Re: powerpc: CONFIG_PPC_CELLEB leftovers

2015-04-11 Thread Michael Ellerman
On Fri, 2015-04-10 at 13:54 +0200, Valentin Rothberg wrote: > Hi Michael, Hi Valentin, > your commit bf4981a00636 ("powerpc: Remove the celleb support") in > today's Linux next tree removes the Kconfig option PPC_CELLEB. It looks > like there are some leftovers in Kconfig dependencies on this op

Re: [PATCH] powerpc/pasemi: Only the build the pasemi MSI code for PASEMI=y

2015-04-12 Thread Michael Ellerman
On Sun, 2015-04-12 at 14:04 -0500, Segher Boessenkool wrote: > On Fri, Apr 10, 2015 at 08:38:55PM +1000, Michael Ellerman wrote: > > BUT, I can't work out how to tell git-send-email I *always* want to pass > > -M, so > > I'll probably forget next time :) >

[PATCH] powerpc: Re-enable dynticks

2015-04-12 Thread Michael Ellerman
crementer exception on the next timebase tick. We then handle the work in __timer_interrupt(). CC: Frederic Weisbecker Signed-off-by: Paul A. Clarke Reviewed-by: Paul E. McKenney [mpe: Flesh out change log, fix ws & include guards, remove include of processor.h] Signed-off-by: Michael Ellerm

[PATCH 1/2] powerpc/eeh: Fix crash in eeh_add_device_early() on Cell

2015-04-13 Thread Michael Ellerman
The recent change to the EEH probing causes a crash on Cell because eeh_ops is NULL. Check if EEH is enabled and if not bail out. Fixes: ff57b454ddb9 ("powerpc/eeh: Do probe on pci_dn") Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/eeh.c | 2 +- 1 file changed, 1 inser

[PATCH 2/2] powerpc/cell: Fix iommu breakage caused by controller_ops change

2015-04-13 Thread Michael Ellerman
quot;powerpc/cell: Move controller ops from ppc_md to controller_ops") Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/cell/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c inde

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-14 Thread Michael Ellerman
On Tue, 2015-04-14 at 10:55 +0200, Ingo Molnar wrote: > * Sukadev Bhattiprolu wrote: > > > This is another attempt to resurrect Andi Kleen's patchset so users > > can specify perf events by their event names rather than raw codes. > > > > This is a rebase of Andi Kleen's patchset from Jul 30, 20

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-14 Thread Michael Ellerman
On Tue, 2015-04-14 at 14:58 +0200, Ingo Molnar wrote: > * Michael Ellerman wrote: > > > On Tue, 2015-04-14 at 10:55 +0200, Ingo Molnar wrote: > > > * Sukadev Bhattiprolu wrote: > > > > > > > This is another attempt to resurrect Andi Kleen's patch

[PATCH] powerpc: Show utsname->machine in boot-up banner

2015-04-14 Thread Michael Ellerman
nux ppc64le #1 SMP Wed Apr 15 12:12:20 AEST 2015 Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 49f553bbb360..dfbeabad523b 100644 --- a/arc

[git pull] Please pull mpe/linux.git powerpc-4.1-1 tag

2015-04-16 Thread Michael Ellerman
o prevent the flash driver telling you it was flashing your firmware when it wasn't. - Patch from Ben Herrenschmidt to add an OPAL heartbeat driver. - Fix for an oops causing get/put_cpu_var() imbalance in perf by Jan Stancek. - Some fixes for migration from Tyrel Datwyler. - A new sy

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-16 Thread Michael Ellerman
On Thu, 2015-04-09 at 21:52 +, Lijun Pan wrote: > Hi Maintainers, > > We have a proposal for writing the defconfigs for freescale's powperpc > platforms in a new way. > Can you take a look and provide some feedback? > > You know currently we have mpc85xx_defconfig, corenet32_defconfig, > bs

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-16 Thread Michael Ellerman
On Thu, 2015-04-16 at 23:13 -0500, Scott Wood wrote: > On Fri, 2015-04-17 at 10:54 +1000, Michael Ellerman wrote: > > On Thu, 2015-04-09 at 21:52 +, Lijun Pan wrote: > > > Hi Maintainers, > > > > > > We have a proposal for writing the defconfigs for freesc

Re: Fwd: Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-19 Thread Michael Ellerman
On Sun, 2015-04-19 at 14:36 -0400, Sowmini Varadhan wrote: > > On (04/19/15 14:09), David Miller wrote: > > > > > On (04/18/15 21:23), Guenter Roeck wrote: > > >> lib/built-in.o:(.discard+0x1): multiple definition of > > >> `__pcpu_unique_iommu_pool_hash' > > >> arch/powerpc/kernel/built-in.o:(.dis

Re: Fwd: Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-20 Thread Michael Ellerman
On Sun, 2015-04-19 at 22:17 -0700, Guenter Roeck wrote: > Hi Michael, Hi Guenter, > On 04/19/2015 08:01 PM, Michael Ellerman wrote: > > > Someone needs to be doing s390/alpha builds with that enabled anyway, > > because > > otherwise a clash between generic code and

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-20 Thread Michael Ellerman
On Mon, 2015-04-20 at 12:50 -0400, David Miller wrote: > From: Guenter Roeck > Date: Mon, 20 Apr 2015 09:44:31 -0700 > > > On Mon, Apr 20, 2015 at 12:25:19PM -0400, David Miller wrote: > >> From: Guenter Roeck > >> Date: Sun, 19 Apr 2015 22:17:21 -0700 > >> > >> > The debug option is intended f

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-20 Thread Michael Ellerman
On Mon, 2015-04-20 at 19:32 -0700, Guenter Roeck wrote: > On 04/20/2015 06:54 PM, Michael Ellerman wrote: > > On Mon, 2015-04-20 at 12:50 -0400, David Miller wrote: > >> From: Guenter Roeck > >> Date: Mon, 20 Apr 2015 09:44:31 -0700 > >> > >>>

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-20 Thread Michael Ellerman
On Mon, 2015-04-20 at 21:02 -0500, Timur Tabi wrote: > On Mon, Apr 20, 2015 at 3:31 PM, Scott Wood wrote: > > > > > > The ability to merge configs is already there. We're just talking about > > using that functionality. > > Why do you need a powerpc-specific way to use merge_config.sh? Other >

Re: powerpc/defconfig: new way of writing defconfig

2015-04-20 Thread Michael Ellerman
On Sat, 2015-18-04 at 04:47:21 UTC, Lijun Pan wrote: > It is always a headache dealing with different defconfigs > though they only differ in few places. Hence we are proposing a new > way of writing defconfig: So on the whole this is looking promising, some comments ... > 1. Define a basic defco

[PATCH 1/2] powerpc: Little endian should depend on PPC64

2015-04-21 Thread Michael Ellerman
The only little endian configuration we support is ppc64le, so we shouldn't be asking which endian to use when building 32-bit kernels, they are always big endian. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/Kconfig.cputype | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH 2/2] powerpc: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Michael Ellerman
ully clean up the result in future with some further refactoring. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/Makefile | 3 ++- arch/powerpc/kernel/signal_32.c| 11 -- arch/powerpc/kernel/vdso.c | 38 +- arch/po

[PATCH] powerpc: Don't do gcc version checks if we're building with clang

2015-04-21 Thread Michael Ellerman
, it's possible that we're building with gcc but COMPILER was not set. So instead check for ${COMPILER} != "clang", which we know is currently the only other possibility. Signed-off-by: Michael Ellerman --- arch/powerpc/Makefile | 9 ++--- 1 file changed, 6 insertions(+), 3

Re: [PATCH 1/2] powerpc: Little endian should depend on PPC64

2015-04-21 Thread Michael Ellerman
On Tue, 2015-04-21 at 13:33 -0500, Scott Wood wrote: > On Tue, 2015-04-21 at 19:41 +1000, Michael Ellerman wrote: > > The only little endian configuration we support is ppc64le, so we > > shouldn't be asking which endian to use when building 32-bit kernels, > >

Re: [PATCH 2/2] powerpc: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Michael Ellerman
On Tue, 2015-04-21 at 13:36 -0500, Scott Wood wrote: > On Tue, 2015-04-21 at 19:41 +1000, Michael Ellerman wrote: > > diff --git a/arch/powerpc/platforms/Kconfig.cputype > > b/arch/powerpc/platforms/Kconfig.cputype > > index 12fc443b9d54..1324f589f43a 100644 > > -

[PATCH] powerpc: Little endian should depend on PPC_BOOK3S_64

2015-04-21 Thread Michael Ellerman
The only little endian configuration we support is ppc64le, all other configurations are big endian. So we should only offer a choice of endian if we're building for 64-bit Book3S, ie. PPC_BOOK3S_64. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/Kconfig.cputype | 1 + 1

[PATCH 1/3] powerpc/vdso: Remove unused debug code

2015-04-21 Thread Michael Ellerman
It's in the git history if we ever need it back. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/vdso.c | 44 1 file changed, 44 deletions(-) diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index 305eb0d

[PATCH 2/3] powerpc/vdso: Combine start/size variables

2015-04-21 Thread Michael Ellerman
So we can just consolidate them into start/size and avoid the duplication. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/vdso.c | 55 ++ 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/arch/powerpc/kernel/vdso.c b/arch/powe

[PATCH 3/3] powerpc/vdso: Disable building the 32-bit VDSO on little endian

2015-04-21 Thread Michael Ellerman
ully clean up the result in future with some further refactoring. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/vdso.h| 1 + arch/powerpc/kernel/Makefile | 3 ++- arch/powerpc/kernel/vdso.c | 40 ++ arch/powerpc

Re: [PATCH RFC] powerpc/ftrace: add powerpc timebase as a trace clock source

2015-04-22 Thread Michael Ellerman
On Wed, 2015-04-22 at 10:48 +0530, Naveen N. Rao wrote: > On 2015/04/21 09:25AM, Steven Rostedt wrote: > > On Tue, 21 Apr 2015 16:33:36 +0530 > > "Naveen N. Rao" wrote: > > > > > Add a new powerpc-specific trace clock using the timebase register, > > > similar to x86-tsc. This gives us a fast, mo

Re: [PATCH 3/3] powerpc/vdso: Disable building the 32-bit VDSO on little endian

2015-04-22 Thread Michael Ellerman
On Thu, 2015-04-23 at 13:06 +1000, Stephen Rothwell wrote: > Hi Michael, > > On Wed, 22 Apr 2015 15:40:36 +1000 Michael Ellerman > wrote: > > > > diff --git a/arch/powerpc/include/asm/vdso.h > > b/arch/powerpc/include/asm/vdso.h > > index c53f5f6d1761

Re: [PATCH] kvm: powerpc: Fix ppc64_defconfig + PPC_POWERNV=n build error

2015-04-23 Thread Michael Ellerman
On Thu, 2015-04-23 at 10:11 +0530, Shreyas B Prabhu wrote: > Any suggestions on this? It's in: https://git.kernel.org/cgit/linux/kernel/git/mpe/linux.git/log/?h=fixes cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.oz

[PATCH] powerpc: Reject binutils 2.24 when building little endian

2015-04-23 Thread Michael Ellerman
ckported to the binutils 2.24 branch and has been picked up by most distros it seems. However if we're running stock 2.24 (no extra version) then the bug is present, so check for that and bail. Signed-off-by: Michael Ellerman --- arch/powerpc/Makefile | 8 1 file changed, 8 inserti

[PATCH] ehea: Fix memory hook reference counting crashes

2015-04-23 Thread Michael Ellerman
ehea: registering mr failed ehea: register MR failed - driver inoperable! ehea: memory is going offline Fixes: aa183323312d ("ehea: Register memory hotplug, reboot and crash hooks on adapter probe") Signed-off-by: Michael Ellerman --- drivers/net/ethernet/ibm/ehea/ehea_main.c | 6

[git pull] Please pull mpe/linux.git powerpc-4.1-2 tag

2015-04-24 Thread Michael Ellerman
dereferencing pte_t pointer KVM: PPC: Remove page table walk helpers powerpc/mm/thp: Make page table walk safe against thp split/collapse powerpc/mm/thp: Return pte address if we find trans_splitting. powerpc/mm: Fix build error with CONFIG_PPC_TRANSACTIONAL_MEM disabled Micha

Re: [PATCH] ehea: Fix memory hook reference counting crashes

2015-04-26 Thread Michael Ellerman
On Sat, 2015-04-25 at 14:43 -0400, David Miller wrote: > From: Michael Ellerman > Date: Fri, 24 Apr 2015 15:52:32 +1000 > > > The recent commit to only register the EHEA memory hotplug hooks on > > adapter probe has a few problems. > > > > Firstly the referen

Re: [PATCH V2 2/8] ipmi/powernv: Convert to irq event interface

2015-04-26 Thread Michael Ellerman
On Fri, 2015-04-10 at 18:24 +1000, Alistair Popple wrote: > Convert the opal ipmi driver to use the new irq interface for events. > drivers/char/ipmi/ipmi_powernv.c | 39 ++- This needs to be CC'ed to the IPMI folks, and preferably get their ACK so we can take

[PATCH] powerpc/kvm: Fix SMP=n build error in book3s_xics.c

2015-04-27 Thread Michael Ellerman
Commit 34cb7954c0aa "Convert ICS mutex lock to spin lock" added an include of asm/spinlock.h, which does not work in the SMP=n case. It should instead include linux/spinlock.h Fixes: 34cb7954c0aa ("KVM: PPC: Book3S HV: Convert ICS mutex lock to spin lock") Signed-off-

Re: Kernel 4.1-rc1 build fails on Sam460ex amcc 460ex powerpc Canyonlands

2015-04-27 Thread Michael Ellerman
On Mon, 2015-04-27 at 06:59 -0400, Julian Margetson wrote: > Kernel 4.1-rc1 build fails on Sam460ex amcc 460ex powerpc Canyonlands with > CONFIG_SATA_DWC=y > > sata_dwc_460ex.c:(.text+0xa165c): undefined reference to `dw_dma_remove' > drivers/built-in.o: In function `sata_dwc_probe': > sata_dwc_

Re: [PATCH] Correct cpu affinity for dlpar added cpus

2015-04-28 Thread Michael Ellerman
Subject should be "powerpc/pseries: ..." please. On Tue, 2015-04-28 at 10:37 -0500, Nathan Fontenot wrote: > The incorrect ordering of operations during cpu dlpar causes the affinity > of cpus being added to be invalid. Phyp does not assign affinity information > for a cpu until the rtas set-indic

[PATCH] Revert "powerpc/tm: Abort syscalls in active transactions"

2015-04-29 Thread Michael Ellerman
merge window and will merge the fixed version in the next window. NB. Rather than reverting the selftest we just drop tm-syscall from TEST_PROGS so that it's not run by default. Fixes: feba40362b11 ("powerpc/tm: Abort syscalls in active transactions") Signed-off-by: M

Re: [PATCH] powerpc/pseries: Fix possible leaked device node reference

2015-04-30 Thread Michael Ellerman
On Thu, 2015-04-30 at 14:58 -0700, Tyrel Datwyler wrote: > On 04/29/2015 06:44 PM, Nathan Fontenot wrote: > > Failure return from dlpar_configure_connector when dlpar adding cpus > > results in leaking references to the cpus parent device node. Move the > > call to of_node_put() prior to checking t

Re: [PATCH] powerpc/eeh: Delay probing EEH device during hotplug

2015-04-30 Thread Michael Ellerman
On Fri, 2015-05-01 at 09:22 +1000, Gavin Shan wrote: > Commit 1c509148b ("powerpc/eeh: Do probe on pci_dn") probes EEH > devices in early stage, which is reasonable to pSeries platform. > However, it's wrong for PowerNV platform because the PE# isn't > determined until the resources (IO and MMIO) a

[PATCH] powerpc/cell: Drop cbe-oss-dev mailing list from MAINTAINERS

2015-04-30 Thread Michael Ellerman
Traffic on the cbe-oss-dev list is more or less non-existent, other than CC's from linuxppc. It's seems like we may as well just send everyone to linuxppc and archive the list. Signed-off-by: Michael Ellerman --- MAINTAINERS | 7 ++- 1 file changed, 2 insertions(+), 5 deletion

Re: [PATCH] powerpc/eeh: Delay probing EEH device during hotplug

2015-04-30 Thread Michael Ellerman
On Fri, 2015-05-01 at 11:28 +1000, Gavin Shan wrote: > On Fri, May 01, 2015 at 09:50:57AM +1000, Michael Ellerman wrote: > >On Fri, 2015-05-01 at 09:22 +1000, Gavin Shan wrote: > >> Commit 1c509148b ("powerpc/eeh: Do probe on pci_dn") probes EEH > >> devices i

Re: [PATCH] powerpc/cell: Drop cbe-oss-dev mailing list from MAINTAINERS

2015-04-30 Thread Michael Ellerman
On Fri, 2015-05-01 at 11:23 +0800, Jeremy Kerr wrote: > Hi Michael, > > > Traffic on the cbe-oss-dev list is more or less non-existent, other than > > CC's from linuxppc. > > Plus all that spam that never makes it out of the moderation queue. > > > It's seems like we may as well just send everyo

[PATCH] powernv/powerpc: restore non-volatile CRs after nap

2015-04-30 Thread Michael Ellerman
From: Sam Bobroff Patches 7cba160ad "powernv/cpuidle: Redesign idle states management" and 77b54e9f2 "powernv/powerpc: Add winkle support for offline cpus" use non-volatile condition registers (cr2, cr3 and cr4) early in the system reset interrupt handler (system_reset_pSeries()) before it has be

[git pull] Please pull mpe/linux.git powerpc-4.1-3 tag

2015-05-02 Thread Michael Ellerman
ns (1): powerpc/powernv: Fix early pci_controller_ops loading. Gavin Shan (2): powerpc/eeh: Fix race condition in pcibios_set_pcie_reset_state() powerpc/eeh: Delay probing EEH device during hotplug Michael Ellerman (3): powerpc/kvm: Fix SMP=n build error in book3s_xics.c R

[PATCH] perf_event: Don't allow vmalloc backed perf on powerpc

2015-05-03 Thread Michael Ellerman
NMI (see do_hash_page()). We don't actually need or want vmalloc backed perf so just disable it on powerpc. Signed-off-by: Michael Ellerman --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index dc24dec60232..81050e4d9941 100644

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

2015-05-05 Thread Michael Ellerman
n existing string it appends to it, with a leading space. This makes it easy to call it multiple times from different parts of the code and get a reasonable looking result. Signed-off-by: Michael Ellerman --- include/linux/printk.h | 5 + kernel/printk/pri

[PATCH 2/6] powerpc: Add cpu name to dump stack arch description

2015-05-05 Thread Michael Ellerman
As soon as we know the name of the cpu we're on, add it to the dump stack arch description, which is printed in case of an oops. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/cputable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/cputable.c b

[PATCH 3/6] powerpc: Add device-tree model to dump stack arch description

2015-05-05 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. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/powerpc/k

[PATCH 4/6] powerpc: Add ppc_md.name to dump stack arch description

2015-05-05 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. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/k

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

2015-05-05 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. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powernv/setup.c | 26 ++ 1 file changed, 26

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

2015-05-05 Thread Michael Ellerman
and if so that's probably a good guess. The actual content of the ibm,fw-net-version seems to be a full path so is too long to add to the description. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/pseries/setup.c | 35 ++ 1 file changed, 35 inse

Re: [PATCH 1/6] dump_stack: Support adding to the dump stack arch description

2015-05-05 Thread Michael Ellerman
On Tue, 2015-05-05 at 14:16 -0700, Andrew Morton wrote: > On Tue, 5 May 2015 21:12:12 +1000 Michael Ellerman > wrote: > > > Arch code can set a "dump stack arch description string" which is > > displayed with oops output to describe the hardware platform. >

Re: [PATCH 1/6] dump_stack: Support adding to the dump stack arch description

2015-05-07 Thread Michael Ellerman
On Tue, 2015-05-05 at 14:16 -0700, Andrew Morton wrote: > On Tue, 5 May 2015 21:12:12 +1000 Michael Ellerman > wrote: > > > Arch code can set a "dump stack arch description string" which is > > displayed with oops output to describe the hardware platfo

Re: [PATCH v2 1/2] powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform

2015-05-10 Thread Michael Ellerman
On Thu, 2015-05-07 at 15:00 +0530, Vipin K Parashar wrote: > This patch adds support for FSP EPOW (Early Power Off Warning) and > DPO (Delayed Power Off) events support for PowerNV platform. EPOW events > are generated by SPCN/FSP due to various critical system conditions that > need system shutdo

Re: [v3, 5/8] powernv/opal: Convert opal message events to opal irq domain

2015-05-11 Thread Michael Ellerman
On Thu, 2015-07-05 at 03:16:15 UTC, Alistair Popple wrote: > diff --git a/arch/powerpc/platforms/powernv/opal.c > b/arch/powerpc/platforms/powernv/opal.c > index 4399ff2..0196220 100644 > --- a/arch/powerpc/platforms/powernv/opal.c > +++ b/arch/powerpc/platforms/powernv/opal.c > @@ -362,33 +362,34

Re: powerpc/mce: fix off by one errors in mce event handling

2015-05-11 Thread Michael Ellerman
Stable folks please ignore this patch. Comments below. On Mon, 2015-11-05 at 00:48:32 UTC, Daniel Axtens wrote: > Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in > save_mce_event, index got the value of mce_nest_count, and > mce_nest_count was incremented *after* index was set. >

Re: [1/1] powerpc/hv-24x7: Check support before registering PMU

2015-05-11 Thread Michael Ellerman
On Thu, 2015-30-04 at 03:04:51 UTC, Sukadev Bhattiprolu wrote: > We currently try to register the 24x7 PMU unconditionally. Not all > Power systems support 24x7 counters (eg: Power7). On these systems > we get a backtrace during boot when trying to register the 24x7 PMU. > > Check if the hyperviso

Re: powerpc: Enabling sys_kcmp for CRIU

2015-05-11 Thread Michael Ellerman
On Tue, 2015-05-05 at 15:30:21 UTC, Laurent Dufour wrote: > The commit 8170a83f15ee ("powerpc: Wireup the kcmp syscall to sys_ni") has > disabled the kcmp syscall for powerpc. This has been done due to the use > of unsigned long parameters which may require a dedicated wrapper to handle > 32bit pr

Re: [PATCH v2] powerpc/mce: fix off by one errors in mce event handling

2015-05-12 Thread Michael Ellerman
On Tue, 2015-05-12 at 13:23 +1000, Daniel Axtens wrote: > Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in > save_mce_event, index got the value of mce_nest_count, and > mce_nest_count was incremented *after* index was set. > > However, that patch changed the behaviour so that mce_n

Re: [PATCH] ppc64 ftrace: mark data_access callees "notrace" (pt.1)

2015-05-14 Thread Michael Ellerman
On Wed, 2015-05-13 at 18:11 +0200, Torsten Duwe wrote: > In order to avoid an endless recursion, functions that may get > called from the data access handler must not call into tracing > functions, which may cause data access faults ;-) > > Advancing from my previous approach that lavishly compile

[RFC PATCH 1/3] powerpc/kernel: Get pt_regs from r9 before calling do_syscall_trace_enter()

2015-05-15 Thread Michael Ellerman
To call do_syscall_trace_enter() we need pt_regs in r3, but we don't need to recalculate it based on r1, it's already in r9. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/entry_64.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/en

[RFC PATCH 2/3] powerpc/kernel: Prepare for seccomp-filter in the 64-bit syscall path

2015-05-15 Thread Michael Ellerman
ue as it should be presented to userspace. That is mainly for consistency with syscall_get_error(). Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/syscall.h | 13 + arch/powerpc/kernel/entry_64.S | 37 +++-- 2 files changed, 44 inserti

[RFC PATCH 3/3] powerpc: Enable seccomp-filter for 64-bit

2015-05-15 Thread Michael Ellerman
entry_32.S in a similar fashion to the 64-bit code. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/ptrace.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 190cc48abc0c..a90bbd2c3f3b 100644

Re: powerpc/iommu: Support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask

2015-05-17 Thread Michael Ellerman
On Mon, 2015-18-05 at 03:56:51 UTC, Benjamin Herrenschmidt wrote: > This patch adds the ability to the DMA direct ops to fallback to the IOMMU > ops for coherent alloc/free if the coherent mask of the device isn't > suitable for accessing the direct DMA space and the device also happens > to have a

[git pull] Please pull mpe/linux.git powerpc-4.1-4 tag

2015-05-18 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.1: The following changes since commit 030bbdbf4c833bc69f502eae58498bc5572db736: Linux 4.1-rc3 (2015-05-10 15:12:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux.git tags/powerpc-4.1

Re: [PATCH] ppc64 ftrace: mark data_access callees "notrace" (pt.1)

2015-05-18 Thread Michael Ellerman
On Mon, 2015-05-18 at 14:29 +0200, Jiri Kosina wrote: > yOn Sat, 16 May 2015, Torsten Duwe wrote: > > > > > There's got to be a better solution than this. > > > > > > Can you think of a better approach? > > > > Maybe a per thread variable to lock out a recursion into tracing? > > Thanks for your

Re: [PATCH v4 4/9] hvc: Convert to using interrupts instead of opal events

2015-05-18 Thread Michael Ellerman
On Fri, 2015-05-15 at 14:06 +1000, Alistair Popple wrote: > Convert the opal hvc driver to use the new irqchip to register for > opal events. As older firmware versions may not have device tree > bindings for the interrupt parent we just use a hardcoded hwirq based > on the event number. This is s

Re: [PATCH v4 4/9] hvc: Convert to using interrupts instead of opal events

2015-05-19 Thread Michael Ellerman
On Tue, 2015-05-19 at 15:09 +1000, Alistair Popple wrote: > On Tue, 19 May 2015 14:33:39 Michael Ellerman wrote: > > On Fri, 2015-05-15 at 14:06 +1000, Alistair Popple wrote: > > > Convert the opal hvc driver to use the new irqchip to register for > > > opal events. As

Re: [PATCH V4 00/13] POWER DSCR fixes, improvements, docs and tests

2015-05-20 Thread Michael Ellerman
On Mon, 2015-05-18 at 16:26 +0530, Anshuman Khandual wrote: > This patch series has patches for POWER DSCR fixes, improvements, > in code documentaion, kernel support user documentation and selftest based > test cases. It has got five test cases which are derived from Anton's DSCR > test buck

Re: [v5] cxl: Export AFU error buffer via sysfs

2015-05-21 Thread Michael Ellerman
On Thu, 2015-21-05 at 08:05:30 UTC, Vaibhav Jain wrote: > Export the "AFU Error Buffer" via sysfs attribute (afu_err_buf). AFU > error buffer is used by the AFU to report application specific > errors. The contents of this buffer are AFU specific and are intended to > be interpreted by the applicat

[PATCH] selftests/powerpc: Add install support to more powerpc tests

2015-06-01 Thread Michael Ellerman
These tests were merged in parallel to the install support, update them now to use it. This also adds cross compile support for the VPHN test which was missing it. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/switch_endian/Makefile | 14 -- tools/testing

[PATCH v2] powerpc/perf: Fix book3s kernel to userspace backtraces

2015-06-01 Thread Michael Ellerman
0x7e714 | | 0x7e714 Cc: sta...@vger.kernel.org Signed-off-by: Anton Blanchard Signed-off-by: Michael Ellerman --- v2: Return the result directly rather than if (x) return true. Add a big comment. Cc to stable. arch/powerpc/perf/core-book3s.c | 11 ++- 1 file changed, 10 inserti

[PATCH] powerpc/mm: Fix build break with STRICT_MM_TYPECHECKS && DEBUG_PAGEALLOC

2015-06-01 Thread Michael Ellerman
-by: Geert Uytterhoeven Signed-off-by: Michael Ellerman --- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index fda236f908eb..a04ca922f0db 100644 --- a/arch/powerpc/mm/hash_utils_

Re: [RFC PATCH] powerpc/pseries: Ratelimit EPOW event warnings

2015-06-01 Thread Michael Ellerman
On Thu, 2015-05-28 at 10:03 +0530, Kamalesh Babulal wrote: > We print the respective warning after parsing EPOW interrupts, > prompting user to take action depending upon the severity of the > event. > > Some times same EPOW event warning, such as below could flood kernel > log, within very short

Re: [v3, 33/36] genirq: Use helper function to access irq_data->msi_desc

2015-06-01 Thread Michael Ellerman
_msi_desc(d)) > pci_msi_unmask_irq(d); > #endif > /* unmask it */ These look OK. Though I would point out we already have 16 irq_foo_get_bar() accessors?! Acked-by: Michael Ellerman cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [V3] drivers/mtd: add powernv flash MTD abstraction driver

2015-06-01 Thread Michael Ellerman
On Mon, 2015-01-06 at 03:26:44 UTC, Cyril Bur wrote: > Powerpc powernv platforms allow access to certain system flash devices > through a firmwarwe interface. This change adds an mtd driver for these > flash devices. > > Minor updates from Jeremy Kerr and Joel Stanley. > > Signed-off-by: Cyril Bu

Re: [RFC PATCH] powerpc/pseries: Ratelimit EPOW event warnings

2015-06-02 Thread Michael Ellerman
On Tue, 2015-06-02 at 10:33 +0530, Kamalesh Babulal wrote: > * Michael Ellerman [2015-06-01 21:26:51]: > > > On Thu, 2015-05-28 at 10:03 +0530, Kamalesh Babulal wrote: > > > We print the respective warning after parsing EPOW interrupts, > > > prompting user to

Re: [PATCH v5] powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform

2015-06-02 Thread Michael Ellerman
On Tue, 2015-05-19 at 18:45 +0530, trigg wrote: > > > On 18-May-2015, at 20:48, Vipin K Parashar wrote: > > > > This patch adds support for FSP EPOW (Early Power Off Warning) and > > DPO (Delayed Power Off) events for PowerNV platform. EPOW events are > > generated by SPCN/FSP due to various cri

Re: [RFC, v1, 04/25] powerpc, irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc

2015-06-02 Thread Michael Ellerman
On Wed, 2015-20-05 at 09:59:52 UTC, Jiang Liu wrote: > Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we > already have a pointer to corresponding irq_desc. > > Signed-off-by: Jiang Liu > --- > arch/powerpc/platforms/52xx/mpc52xx_gpt.c |2 +- > arch/powerpc/platforms/

Re: [v5] powerpc/powernv: Add poweroff (EPOW, DPO) events support for PowerNV platform

2015-06-02 Thread Michael Ellerman
On Mon, 2015-18-05 at 15:18:04 UTC, Vipin K Parashar wrote: > This patch adds support for FSP EPOW (Early Power Off Warning) and Please spell out the acronyms the first time you use them, including FSP. > DPO (Delayed Power Off) events for PowerNV platform. EPOW events are

Re: of: clean-up unnecessary libfdt include paths

2015-06-04 Thread Michael Ellerman
../../../scripts/dtc/libfdt > CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' > > subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror Acked-by: Michael Ellerman cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: of/dynamic: Fix test for PPC_PSERIES

2015-06-04 Thread Michael Ellerman
On Thu, 2015-04-06 at 09:34:41 UTC, Geert Uytterhoeven wrote: > "IS_ENABLED(PPC_PSERIES)" always evaluates to false, as IS_ENABLED() is > supposed to be used with the full Kconfig symbol name, including the > "CONFIG_" prefix. > > Add the missing "CONFIG_" prefix to fix this. > > Fixes: a25095d45

Re: [3/3,v3] powerpc/powernv: Add opal-prd channel

2015-06-04 Thread Michael Ellerman
On Fri, 2015-29-05 at 03:55:59 UTC, Jeremy Kerr wrote: > This change adds a char device to access the "PRD" (processor runtime > diagnostics) channel to OPAL firmware. > > Includes contributions from Vaidyanathan Srinivasan, Neelesh Gupta & > Vishal Kulkarni. > > Signed-off-by: Neelesh Gupta > S

  1   2   3   4   5   6   7   8   9   10   >