[PATCH 7/9] powerpc/perf: Core EBB support for 64-bit book3s

2013-06-28 Thread Michael Ellerman
kernel involvement in the inner loop. Most of the logic is in the generic book3s code, primarily to avoid a proliferation of PMU callbacks. Signed-off-by: Michael Ellerman --- v2: Flesh out the documentation further. --- Documentation/powerpc/00-INDEX |2 + Documentation/powerpc

[PATCH 8/9] powerpc/perf: Add power8 EBB support

2013-06-28 Thread Michael Ellerman
configured. Signed-off-by: Michael Ellerman --- v2: Use EVENT_EBB_MASK --- arch/powerpc/perf/power8-pmu.c | 45 +--- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index d59f5b2

[PATCH 9/9] powerpc/pseries: Inform the hypervisor we are using EBB regs

2013-06-28 Thread Michael Ellerman
On LPAR systems we need to inform the hypervisor that we are using the EBB registers. We do this by setting a bit in the Virtual Processor Area (VPA) - formerly known as the lppaca. For now we do this always, ie. we do not dynamically enable/disable. Signed-off-by: Michael Ellerman --- arch

Re: [PATCH v3 0/2] perf tools: Power7 events name available for perf

2013-06-30 Thread Michael Ellerman
.h" >which don't have a PMC, so that they all line up vertically. Hi Runzhen, These look good to me. Thanks for reworking them. They seem to be on top of Arnaldo's tree, so it's probably easiest if he takes them. You can have my: Acked-by: Michael Ellerman Arnaldo

Re: [PATCHv4 02/11] pci: use weak functions for MSI arch-specific functions

2013-07-01 Thread Michael Ellerman
On Mon, 2013-07-01 at 15:42 +0200, Thomas Petazzoni wrote: > Until now, the MSI architecture-specific functions could be overloaded > using a fairly complex set of #define and compile-time > conditionals. In order to prepare for the introduction of the msi_chip > infrastructure, it is desirable to

Re: [PATCHv4 02/11] pci: use weak functions for MSI arch-specific functions

2013-07-01 Thread Michael Ellerman
On Tue, Jul 02, 2013 at 07:30:37AM +0200, Thomas Petazzoni wrote: > Dear Michael Ellerman, > > On Tue, 02 Jul 2013 10:53:16 +1000, Michael Ellerman wrote: > > On Mon, 2013-07-01 at 15:42 +0200, Thomas Petazzoni wrote: > > > Until now, the MSI architecture-specific funct

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-04 Thread Michael Ellerman
On Tue, Jun 25, 2013 at 12:46:42PM -0400, Vince Weaver wrote: > On Tue, 25 Jun 2013, Runzhen Wang wrote: > > > This patch makes all the POWER7 events available in sysfs. > > > > ... > > > > $ size arch/powerpc/perf/power7-pmu.o > >textdata bss dec hex filename > >3073

Re: [PATCH 8/8] powerpc/perf: Add power8 EBB support

2013-07-04 Thread Michael Ellerman
On Thu, Jul 04, 2013 at 03:58:01PM -0300, Adhemerval Zanella wrote: > Hi Michael, > > I believe you forgot to add the cpu_user_features2 bit to announce the EBB > support > for P8, patch following: Hi Adhemerval, You're right, I haven't added it. I was wondering how best to do it. It's possibl

Re: [PATCH] powerpc, perf: Add generic cache reference and cache miss events for POWER8 PMU

2013-07-08 Thread Michael Ellerman
On Mon, Jul 01, 2013 at 11:43:03AM +0530, Anshuman Khandual wrote: > powerpc, perf: Add generic cache reference and cache miss events for POWER8 > PMU > > This enables generic cache reference and cache miss events on POWER8 systems > by > utilizing raw PMU event codes for L1 cache reference and

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-08 Thread Michael Ellerman
On Thu, Jul 04, 2013 at 02:57:00PM +0200, Peter Zijlstra wrote: > On Thu, Jul 04, 2013 at 10:52:18PM +1000, Michael Ellerman wrote: > > I don't think it even needs libpfm4, just some csv files in tools/perf > > would do the trick. > > Right; I think Stephane and Jiri a

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-08 Thread Michael Ellerman
On Mon, Jul 08, 2013 at 10:24:34PM -0400, Vince Weaver wrote: > On Tue, 9 Jul 2013, Michael Ellerman wrote: > > > On Thu, Jul 04, 2013 at 02:57:00PM +0200, Peter Zijlstra wrote: > > > > > > Right; I think Stephane and Jiri are in favour of creating a 'new'

Re: [PATCH 1/2] powerpc/math-emu: remove the dead code in math.c

2013-07-09 Thread Michael Ellerman
On Wed, Jul 10, 2013 at 09:43:42AM +0800, Kevin Hao wrote: > The math.c is only built when CONFIG_MATH_EMULATION is enabled. > So we would never get into the case that CONFIG_MATH_EMULATION > is not defined in this file. Any idea why we have that there? ie. have the config symbols changed over tim

Re: [PATCH 2/8] powerpc/perf: Rework disable logic in pmu_disable()

2013-07-09 Thread Michael Ellerman
On Tue, Jul 09, 2013 at 05:15:23PM -0700, Sukadev Bhattiprolu wrote: > Anshuman Khandual [khand...@linux.vnet.ibm.com] wrote: > | On 06/24/2013 04:58 PM, Michael Ellerman wrote: > | > In pmu_disable() we disable the PMU by setting the FC (Freeze Counters) > | > bit in MMCR0. In o

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-09 Thread Michael Ellerman
On Tue, Jul 09, 2013 at 11:20:50AM -0400, Vince Weaver wrote: > On Tue, 9 Jul 2013, Michael Ellerman wrote: > > > On Mon, Jul 08, 2013 at 10:24:34PM -0400, Vince Weaver wrote: > > > why is it a hack to use cpuid? > > > > Because you're assuming that the

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-09 Thread Michael Ellerman
On Tue, Jul 09, 2013 at 10:14:34AM +0200, Peter Zijlstra wrote: > On Mon, Jul 08, 2013 at 10:24:34PM -0400, Vince Weaver wrote: > > > > So something like they have on ARM? > > > > vince@pandaboard:/sys/bus/event_source/devices$ ls -l > > lrwxrwxrwx 1 root root 0 Jul 8 21:57 ARMv7 Cortex-A9 -> >

Re: [PATCH 1/2] powerpc/math-emu: remove the dead code in math.c

2013-07-09 Thread Michael Ellerman
On Wed, Jul 10, 2013 at 10:23:07AM +0800, Kevin Hao wrote: > On Wed, Jul 10, 2013 at 12:01:33PM +1000, Michael Ellerman wrote: > > On Wed, Jul 10, 2013 at 09:43:42AM +0800, Kevin Hao wrote: > > > The math.c is only built when CONFIG_MATH_EMULATION is enabled. > > > So

Re: [PATCH v2 2/2] perf tools: Make Power7 events available for perf

2013-07-10 Thread Michael Ellerman
On Thu, Jul 11, 2013 at 12:42:31AM -0400, Vince Weaver wrote: > On Wed, 10 Jul 2013, Ingo Molnar wrote: > > > Exactly - PMUs enumerated in /sys should be self-identifying, it's a > > hardware topology after all ... > > > > Anytime userspace is forced to look into /proc, or into weird places in

Re: visible memory seems wrong in kexec crash dump kernel

2013-07-11 Thread Michael Ellerman
On Thu, Jul 11, 2013 at 03:22:49PM -0600, Chris Friesen wrote: > On 07/11/2013 02:55 PM, Chris Friesen wrote: > >Hi, > > > >I'm running 2.6.34 with kexec 2.0.1 on a Freescale p5020-based system > >with 8GB of memory. (It's an embedded system and I can't do much > >about the fact that it's using ol

[PATCH] powerpc/perf: Set PPC_FEATURE2_EBB when we register the power8 PMU

2013-07-12 Thread Michael Ellerman
. Signed-off-by: Michael Ellerman --- arch/powerpc/perf/power8-pmu.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index 96a64d6..09def19 100644 --- a/arch/powerpc/perf/power8-pmu.c +++ b/arch/powerpc

Re: visible memory seems wrong in kexec crash dump kernel

2013-07-13 Thread Michael Ellerman
On Sat, Jul 13, 2013 at 12:30:50AM -0600, Chris Friesen wrote: > On 07/12/2013 04:59 PM, Chris Friesen wrote: > >On 07/12/2013 03:08 PM, Chris Friesen wrote: > > > >>I turned on the instrumentation in early_init_dt_scan_memory() and got > >>the following when jumping to the capture kernel: > >> > >

[PATCH] powerpc/perf: Export PERF_EVENT_CONFIG_EBB_SHIFT to userspace

2013-07-23 Thread Michael Ellerman
We use bit 63 of the event code for userspace to request that the event be counted using EBB (Event Based Branches). Export this value, making it part of the API - though only on processors that support EBB. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/perf_event_server.h | 6

Re: [PATCH V3 2/2] powerpc, perf: BHRB filter configuration should follow the task

2013-07-23 Thread Michael Ellerman
On Mon, Jul 22, 2013 at 04:48:16PM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2013-07-22 at 12:09 +0530, Anshuman Khandual wrote: > > These patches have not been applied yet. Would like me to correct > > these spellings myself and send out again. Please do let me know. > > Thanks ! > > No, it'

Re: [PATCH] module: ppc64 module CRC relocation fix causes perf issues

2013-07-23 Thread Michael Ellerman
On Fri, Jul 19, 2013 at 05:59:30PM -0500, Scott Wood wrote: > On 07/17/2013 11:00:45 PM, Anton Blanchard wrote: > > > >Hi Scott, > > > >> What specifically should I do to test it? > > > >Could you double check perf annotate works? I'm 99% sure it will but > >that is what was failing on ppc64. > >

Re: [v1][PATCH 1/1] powerpc/ppc64: rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE

2013-07-23 Thread Michael Ellerman
On Tue, Jul 16, 2013 at 11:09:30AM +0800, Tiejun Chen wrote: > The SOFT_DISABLE_INTS seems an odd name for something that updates the > software state to be consistent with interrupts being hard disabled, so > rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE to avoid this confusion. Yes! I have

Re: [PATCH] powerpc/8xx: Remove last traces of 8XX_MINIMAL_FPEMU

2013-07-23 Thread Michael Ellerman
On Tue, Jul 16, 2013 at 10:56:38AM +0200, Paul Bolle wrote: > The Kconfig symbol 8XX_MINIMAL_FPEMU was removed in commit 968219fa33 > ("powerpc/8xx: Remove 8xx specific "minimal FPU emulation""). But that > commit didn't remove all code depending on that symbol. Do so now. > > Signed-off-by: Paul

Re: [PATCH] Fix a typo in pSeries_lpar_hpte_insert()

2013-07-23 Thread Michael Ellerman
On Mon, Jul 22, 2013 at 08:54:31PM +0530, Aneesh Kumar K.V wrote: > Denis Kirjanov writes: > > > Fix a typo in pSeries_lpar_hpte_insert() > > > > Signed-off-by: Denis Kirjanov > > looks good > > Reviewed-by: Aneesh Kumar K.V > > We may want to add the commit that introduced the change ? > >

Re: [PATCH v2] powerpc: kernel: remove useless code which related with 'max_cpus'

2013-07-23 Thread Michael Ellerman
On Mon, Jul 22, 2013 at 12:21:16PM +0530, Srivatsa S. Bhat wrote: > On 07/22/2013 12:10 PM, Chen Gang wrote: > > Since not need 'max_cpus' after the related commit, the related code > > are useless too, need be removed. > > > > The related commit: > > > > c1aa687 powerpc: Clean up obsolete code

Re: [Suggestion] powerpc: xmon: about 'longjmp' related warning.

2013-07-23 Thread Michael Ellerman
On Mon, Jul 22, 2013 at 03:02:53PM +0800, Chen Gang wrote: > Hello Maintainers: > > With allmodconfig and EXTRA_CFLAGS=-W", it reports warnings below: > > arch/powerpc/xmon/xmon.c:3027:6: warning: variable ‘i’ might be clobbered by > ‘longjmp’ or ‘vfork’ [-Wclobbered] > arch/powerpc/xmon/xmon.c

Re: cpuidle/pseries: Fix kernel command line parameter smt-snooze-delay

2013-07-23 Thread Michael Ellerman
On Tue, Jul 23, 2013 at 10:23:57AM +0530, Deepthi Dharwar wrote: > smt-snooze-delay is a tun-able provided currently on powerpc to delay the > entry of an idle cpu to NAP state. By default, the value is 100us, > which is entry criteria for NAP state i.e only if the idle period is > above 100us it w

Re: [PATCH 1/3] cpuidle/powernv: cpuidle backend driver for powernv

2013-07-23 Thread Michael Ellerman
On Tue, Jul 23, 2013 at 02:31:41PM +0530, Deepthi Dharwar wrote: > This patch implements a back-end cpuidle driver for > powernv calling power7_nap and snooze idle states. > This can be extended by adding more idle states > in the future to the existing framework. Other than the state table and a

Re: [PATCH v2] powerpc: kernel: remove useless code which related with 'max_cpus'

2013-07-23 Thread Michael Ellerman
On Wed, Jul 24, 2013 at 08:28:07AM +0800, Chen Gang wrote: > On 07/23/2013 09:44 PM, Michael Ellerman wrote: > > On Mon, Jul 22, 2013 at 12:21:16PM +0530, Srivatsa S. Bhat wrote: > >> On 07/22/2013 12:10 PM, Chen Gang wrote: > >>> Since not need 'max_cpus

Re: [PATCH v2] powerpc: kernel: remove useless code which related with 'max_cpus'

2013-07-24 Thread Michael Ellerman
On Wed, Jul 24, 2013 at 10:09:33AM +0800, Chen Gang wrote: > On 07/24/2013 09:16 AM, Michael Ellerman wrote: > > On Wed, Jul 24, 2013 at 08:28:07AM +0800, Chen Gang wrote: > >> > On 07/23/2013 09:44 PM, Michael Ellerman wrote: > >>> > > On Mon, Jul 22, 201

Re: [PATCH] powerpc: Feed entire flattened device tree into the random pool

2013-07-24 Thread Michael Ellerman
On Thu, Jul 25, 2013 at 12:51:22PM +1000, Anton Blanchard wrote: > > We feed the entire DMI table into the random pool to provide > better random data during early boot, so do the same with the > flattened device tree. > > Signed-off-by: Anton Blanchard > --- > > It might be worth doing this so

[PATCH 1/3] selftests: Add infrastructure for powerpc selftests

2013-07-30 Thread Michael Ellerman
This commit adds a powerpc subdirectory to tools/testing/selftests, for tests that are powerpc specific. On other architectures nothing is built. The makefile supports cross compilation if the user sets ARCH and CROSS_COMPILE. Signed-off-by: Michael Ellerman --- tools/testing/selftests

[PATCH 2/3] selftests: Add support files for powerpc tests

2013-07-30 Thread Michael Ellerman
This commit adds support code used by upcoming powerpc tests. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/harness.c | 83 +++ tools/testing/selftests/powerpc/subunit.h | 47 + tools/testing/selftests/powerpc/utils.h | 34

[PATCH 3/3] selftests: Add test of PMU instruction counting on powerpc

2013-07-30 Thread Michael Ellerman
This commit adds a test of instruction counting using the PMU on powerpc. Although the bulk of the code is architecture agnostic, the code needs to run a precisely sized loop which is implemented in assembler. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/Makefile

Re: [PATCH 2/3] selftests: Add support files for powerpc tests

2013-07-30 Thread Michael Ellerman
On Wed, Jul 31, 2013 at 02:56:32PM +1000, Michael Ellerman wrote: > This commit adds support code used by upcoming powerpc tests. Fudge, I broke this one while "cleaning it up". Will send a v2. cheers ___ Linuxppc-dev mailing list

[PATCH v2] selftests: Add support files for powerpc tests

2013-07-30 Thread Michael Ellerman
This commit adds support code used by upcoming powerpc tests. Signed-off-by: Michael Ellerman --- v2: Put back the SIGALRM handler to make the hang logic work. tools/testing/selftests/powerpc/harness.c | 99 +++ tools/testing/selftests/powerpc/subunit.h | 47

Re: [PATCH 1/8] register bootmem pages for powerpc when sparse vmemmap is not defined

2013-08-01 Thread Michael Ellerman
On Wed, Jul 24, 2013 at 01:35:11PM -0500, Nathan Fontenot wrote: > Previous commit 46723bfa540... introduced a new config option > HAVE_BOOTMEM_INFO_NODE that ended up breaking memory hot-remove for powerpc > when sparse vmemmap is not defined. So that's a bug fix that should go into 3.10 stable?

Re: [PATCH 2/8] Mark powerpc memory resources as busy

2013-08-01 Thread Michael Ellerman
On Wed, Jul 24, 2013 at 01:36:34PM -0500, Nathan Fontenot wrote: > Memory I/O resources need to be marked as busy or else we cannot remove > them when doing memory hot remove. I would have thought it was the opposite? cheers ___ Linuxppc-dev mailing lis

Re: [PATCH 3/8] Add all memory via sysfs probe interface at once

2013-08-01 Thread Michael Ellerman
On Wed, Jul 24, 2013 at 01:37:47PM -0500, Nathan Fontenot wrote: > When doing memory hot add via the 'probe' interface in sysfs we do not > need to loop through and add memory one section at a time. I think this > was originally done for powerpc, but is not needed. This patch removes > the loop and

Re: [PATCH] drivers/crypto/nx: saves chaining value from co-processor

2013-08-04 Thread Michael Ellerman
On Fri, Aug 02, 2013 at 05:16:56PM -0500, Fionnuala Gunter wrote: > On Sat, 2013-08-03 at 07:59 +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2013-08-02 at 16:55 -0500, Fionnuala Gunter wrote: > > > Sorry, I thought linuxppc-dev was the right tree since the patch is > > > for > > > a ppc driver

Re: [PATCH 2/8] Mark powerpc memory resources as busy

2013-08-04 Thread Michael Ellerman
On Fri, Aug 02, 2013 at 02:05:57PM -0500, Nathan Fontenot wrote: > On 08/01/2013 09:28 PM, Michael Ellerman wrote: > > On Wed, Jul 24, 2013 at 01:36:34PM -0500, Nathan Fontenot wrote: > >> Memory I/O resources need to be marked as busy or else we cannot remove > >>

Re: [PATCH 3/8] Add all memory via sysfs probe interface at once

2013-08-04 Thread Michael Ellerman
On Fri, Aug 02, 2013 at 02:13:06PM -0500, Nathan Fontenot wrote: > On 08/01/2013 09:32 PM, Michael Ellerman wrote: > > On Wed, Jul 24, 2013 at 01:37:47PM -0500, Nathan Fontenot wrote: > >> When doing memory hot add via the 'probe' interface in sysfs we do not >

[PATCH v3 1/3] selftests: Add infrastructure for powerpc selftests

2013-08-06 Thread Michael Ellerman
This commit adds a powerpc subdirectory to tools/testing/selftests, for tests that are powerpc specific. On other architectures nothing is built. The makefile supports cross compilation if the user sets ARCH and CROSS_COMPILE. Signed-off-by: Michael Ellerman --- v3: Add tags v2: No change

[PATCH v3 2/3] selftests: Add support files for powerpc tests

2013-08-06 Thread Michael Ellerman
This commit adds support code used by upcoming powerpc tests. Signed-off-by: Michael Ellerman --- v3: Print when the child dies due to a signal v2: Put back the SIGALARM handler to make the hang logic work. tools/testing/selftests/powerpc/harness.c | 105 ++ tools

[PATCH v3 3/3] selftests: Add test of PMU instruction counting on powerpc

2013-08-06 Thread Michael Ellerman
This commit adds a test of instruction counting using the PMU on powerpc. Although the bulk of the code is architecture agnostic, the code needs to run a precisely sized loop which is implemented in assembler. Signed-off-by: Michael Ellerman --- v2,3: No change tools/testing/selftests/powerpc

Re: [PATCH kernel v12 17/34] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-06-09 Thread Michael Ellerman
On Fri, 2015-06-05 at 16:35 +1000, Alexey Kardashevskiy wrote: > So far one TCE table could only be used by one IOMMU group. However > IODA2 hardware allows programming the same TCE table address to > multiple PE allowing sharing tables. ... > diff --git a/arch/powerpc/platforms/powernv/pci.c >

Re: [kernel, v12, 17/34] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-06-10 Thread Michael Ellerman
On Fri, 2015-05-06 at 06:35:09 UTC, Alexey Kardashevskiy wrote: > So far one TCE table could only be used by one IOMMU group. However > IODA2 hardware allows programming the same TCE table address to > multiple PE allowing sharing tables. ... > + pnv_pci_link_table_and_group(phb->hose->node,

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

2015-06-10 Thread Michael Ellerman
On Fri, 2015-06-05 at 10:16 +0200, Richard Weinberger wrote: > On Fri, Jun 5, 2015 at 6:40 AM, Cyril Bur wrote: > > On Tue, 2015-06-02 at 14:26 +1000, Cyril Bur wrote: > >> Powerpc powernv platforms allow access to certain system flash devices > >> through a firmwarwe interface. This change adds a

Re: question on FSL_EMB perf

2015-06-10 Thread Michael Ellerman
On Wed, 2015-06-10 at 13:41 +0200, Peter Zijlstra wrote: > Hi Mike, Ben, > > I just noticed: > > arch/powerpc/Kconfig: select HAVE_PERF_EVENTS_NMI if PPC64 We actually only added that recently, in c54b2bf1b5e9 "powerpc: Add ppc64 hard lockup detector support". AFAICS it doesn't actually have

Re: [V2] powerpc/mm: Limit the max memory we can support

2015-06-11 Thread Michael Ellerman
On Fri, 2015-29-05 at 08:20:18 UTC, "Aneesh Kumar K.V" wrote: > We need to limit the max memory based on Linux page table format. > Add checks to limit memory based on pte size. Also limit the memory > based on MAX_PHSYSMEM_BITS. > > Signed-off-by: Aneesh Kumar K.V > --- > Changes from V1: > * Up

Re: powerpc/powernv: Bump opal_init initcall priority

2015-06-12 Thread Michael Ellerman
On Thu, 2015-11-06 at 09:25:29 UTC, Alistair Popple wrote: > opal_init() is called via a machine_subsys_initcall(). Due to a hack > in the eeh code the eeh driver is initialised with at the same > initcall level. This means depending on link ordering the following > error can occur because the opal

[PATCH] powerpc/powernv: pnv_init_idle_states() should only run on powernv

2015-06-12 Thread Michael Ellerman
Although this init call checks for device tree properties before doing anything, it should still only run on powernv machines. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powernv/idle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/platforms

Re: [PATCH] powerpc/powernv: pnv_init_idle_states() should only run on powernv

2015-06-14 Thread Michael Ellerman
On Sun, 2015-06-14 at 21:58 +0530, Shreyas B Prabhu wrote: > > On 06/12/2015 03:30 PM, Michael Ellerman wrote: > > Although this init call checks for device tree properties before doing > > anything, it should still only run on powernv machines. > > > > S

[PATCH v2] powerpc/powernv: pnv_init_idle_states() should only run on powernv

2015-06-14 Thread Michael Ellerman
Although this init call checks for device tree properties before doing anything, it should still only run on powernv machines. Reviewed-by: Shreyas B Prabhu Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powernv/idle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) v2

Re: [RFC,v2,01/24] macintosh/nvram: Remove as unused

2015-06-14 Thread Michael Ellerman
On Sun, 2015-14-06 at 07:46:08 UTC, Finn Thain wrote: > Signed-off-by: Finn Thain > Acked-by: Geert Uytterhoeven > --- > drivers/macintosh/nvram.c | 130 > -- > 1 file changed, 130 deletions(-) This seems uncontroversial, so I'll take it via powerpc

Re: [kernel] powerpc/powernv/ioda2: Add devices only from buses which belong to PE

2015-06-14 Thread Michael Ellerman
On Fri, 2015-12-06 at 06:19:17 UTC, Alexey Kardashevskiy wrote: > The existing code puts all devices from a root PE to the same IOMMU group. > However it is a possible situation when subordinate buses belong to > separate PEs, in this case devices from these subordinate buses > should be added to l

Re: powerpc/powernv: Bump opal_init initcall priority

2015-06-15 Thread Michael Ellerman
On Mon, 2015-06-15 at 13:44 +1000, Alistair Popple wrote: > On Fri, 12 Jun 2015 19:47:35 Michael Ellerman wrote: > > On Thu, 2015-11-06 at 09:25:29 UTC, Alistair Popple wrote: > > > opal_init() is called via a machine_subsys_initcall(). Due to a hack > > > in the

Re: [v3] powerpc/configs: enable RTC class support

2015-06-16 Thread Michael Ellerman
On Mon, 2015-01-06 at 10:48:55 UTC, Vaibhav Jain wrote: > A working rtc kernel driver is needed so that hwclock can synchronize > system clock to rtc during shutdown/boot. We already have a rtc platform > driver for power arch located at drivers/rtc/rtc-opal.c However it > depends on CONFIG_RTC_CLA

Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-17 Thread Michael Ellerman
On Wed, 2015-06-17 at 08:21 +0530, Aneesh Kumar K.V wrote: > "Aneesh Kumar K.V" writes: > > > Hi Scott, > > > Current swap encoding in pte can't support large pfns > > above 4TB. Change the swap encoding such that we put > > the swap type in the PTE bits. Also add build checks > > to make sure

Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-17 Thread Michael Ellerman
On Wed, 2015-06-17 at 16:14 -0500, Scott Wood wrote: > On Wed, 2015-06-17 at 19:45 +1000, Michael Ellerman wrote: > > On Wed, 2015-06-17 at 08:21 +0530, Aneesh Kumar K.V wrote: > > > "Aneesh Kumar K.V" writes: > > > > > > > > > Hi Scott, &g

Re: [PATCH] cxl: Fix typo in debug print

2015-06-17 Thread Michael Ellerman
On Thu, 2015-06-18 at 15:15 +1000, Michael Neuling wrote: > Fix typo in debug print. p1->p2. No functional change. That's not "no functional change", it changes the behaviour, unless p2_base() implements the same logic as p1_base()? cheers > diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/c

Re: [RESEND PATCH 0/4] ppc64 LE ABI v2 ftrace-with-regs implementation

2015-06-18 Thread Michael Ellerman
On Thu, 2015-06-18 at 18:17 +0200, Torsten Duwe wrote: > Did I miss anything else? I have the notrace optimisations and > kernel live patching in the queue, which depends on this, so I'd > really appreciate a comment whether it is acceptable in this form > or not. Thanks in advance! Hi Torsten, S

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-18 Thread Michael Ellerman
nition would ever need to be > changed regardless of architecture so lets move it into > include/linux/ptrace.h. > > Signed-off-by: David A. Long > --- > arch/powerpc/kernel/ptrace.c | 5 - Built and booted on powerpc, but is there an easy way to actually test the code pat

Re: [1/1] powerpc/tm: Abort syscalls in active transactions (v2)

2015-06-19 Thread Michael Ellerman
On Fri, 2015-12-06 at 01:06:32 UTC, Sam bobroff wrote: > This patch changes the syscall handler to doom (tabort) active > transactions when a syscall is made and return very early without > performing the syscall and keeping side effects to a minimum (no CPU > accounting or system call tracing is p

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-22 Thread Michael Ellerman
On Fri, 2015-06-19 at 10:12 -0400, David Long wrote: > On 06/19/15 00:19, Michael Ellerman wrote: > > On Mon, 2015-06-15 at 12:42 -0400, David Long wrote: > >> From: "David A. Long" > >> > >> The pt_regs_offset structure is used for HAVE_REGS_AND_STA

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

2015-06-23 Thread Michael Ellerman
_SHARED all types of kernel pages powerpc/8xx: Handle PAGE_USER via APG bits powerpc/8xx: Implementation of PAGE_EXEC Laurent Dufour (1): powerpc: Enable sys_kcmp() for CRIU Michael Ellerman (15): powerpc: Make STRICT_MM_TYPECHECKS a config option powerpc/pase

Re: [2/3] powerpc/iommu: Cleanup setting of DMA base/offset

2015-06-23 Thread Michael Ellerman
On Mon, 2015-22-06 at 04:32:05 UTC, Benjamin Herrenschmidt wrote: > Now that the table and the offset can co-exist, we no longer need > to flip/flop, we can just establish both once at boot time. > > Signed-off-by: Benjamin Herrenschmidt > --- > arch/powerpc/platforms/powernv/pci-ioda.c | 50 >

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-23 Thread Michael Ellerman
On Tue, 2015-06-23 at 09:48 -0400, David Long wrote: > On 06/22/15 23:32, Michael Ellerman wrote: > > On Fri, 2015-06-19 at 10:12 -0400, David Long wrote: > >> On 06/19/15 00:19, Michael Ellerman wrote: > >>> On Mon, 2015-06-15 at 12:42 -0400, David Long wrot

Re: [PATCH] powerpc: Set the correct kernel taint on machine check errors.

2015-06-23 Thread Michael Ellerman
On Mon, 2015-06-15 at 13:25 +1000, Daniel Axtens wrote: > This means the 'M' flag will work properly when the kernel prints a backtrace. > > Signed-off-by: Daniel Axtens > --- > arch/powerpc/kernel/traps.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/powerpc/kernel/traps.c b/

Re: [PATCH] tick/idle/powerpc: Do not register idle states with CPUIDLE_FLAG_TIMER_STOP set in periodic mode

2015-06-24 Thread Michael Ellerman
On 24 June 2015 23:50:40 GMT+10:00, "Rafael J. Wysocki" wrote: >On Wednesday, June 24, 2015 01:48:01 AM Preeti U Murthy wrote: >> On some archs, the local clockevent device stops in deep cpuidle >states. >> The broadcast framework is used to wakeup cpus in these idle states, >in >> which either

Re: [8/8] powerpc/perf: cleanup in perf_event_print_debug()

2015-06-25 Thread Michael Ellerman
On Thu, 2015-11-06 at 08:43:37 UTC, Madhavan Srinivasan wrote: > From: Janani > > Code cleanup/fix in perf_event_print_debug(). Performance > Monitoring Unit (PMU) registers in the server side > are 64bit long. No they're not, see the ISA, figure 17. cheers _

Re: [v2,9/9] fsl/fman: Add FMan MAC driver

2015-06-25 Thread Michael Ellerman
On Thu, 2015-06-25 at 19:59 -0500, Scott Wood wrote: > On Fri, 2015-06-26 at 01:06 +0200, Paul Bolle wrote: > > (Evolution 3.16 is basically unbearable for replying to patches. > > Anyone > > else running into this?) > > If you mean the crazy lag when selecting moderate-to-large amounts of > te

Re: [v2,9/9] fsl/fman: Add FMan MAC driver

2015-06-28 Thread Michael Ellerman
On Thu, 2015-06-25 at 21:25 -0500, Scott Wood wrote: > On Fri, 2015-06-26 at 12:21 +1000, Michael Ellerman wrote: > > On Thu, 2015-06-25 at 19:59 -0500, Scott Wood wrote: > > > On Fri, 2015-06-26 at 01:06 +0200, Paul Bolle wrote: > > > > (Evolution 3.16 is basica

Re: [PATCH RESEND] Update kernel math-emu code from current glibc soft-fp

2015-06-29 Thread Michael Ellerman
On Mon, 2015-06-22 at 13:26 +, Joseph Myers wrote: > From: Joseph Myers > > The include/math-emu code (used for alpha powerpc sh sparc, and to a > very limited extent for s390) was taken from an old version of glibc's > soft-fp code around 15 years ago (in the pre-git era, anyway, and some .

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-29 Thread Michael Ellerman
On Wed, 2015-06-17 at 14:30 -0400, David Long wrote: > On 06/16/15 09:17, Rob Herring wrote: > > On Mon, Jun 15, 2015 at 11:42 AM, David Long wrote: > >> > >> #define REG_OFFSET_NAME(r) \ > >> {.name = #r, .offset = offsetof(struct pt_regs, ARM_##r)} > >> #define REG_OFFSET_END {.name

Re: [PATCH RESEND] Update kernel math-emu code from current glibc soft-fp

2015-06-30 Thread Michael Ellerman
On Tue, 2015-06-30 at 10:48 +, Joseph Myers wrote: > On Tue, 30 Jun 2015, Michael Ellerman wrote: > > > Is there some way you can imagine of splitting this up into smaller chunks, > > so > > that different arches can merge the pieces separately? > > Well

Re: [RFC PATCH] powerpc/numa: initialize distance lookup table from drconf path

2015-07-01 Thread Michael Ellerman
On Thu, 2015-07-02 at 08:31 +1000, Anton Blanchard wrote: > Hi Nikunj, > > > > Thanks for the patch. Have we tested that this doesn't regress the > > > non dynamic representation? > > > > Yes, that is tested. And works as expected. > > Great, you can add: > > Acked-by: Anton Blanchard Hi Niku

Re: [PATCH RESEND] Update kernel math-emu code from current glibc soft-fp

2015-07-02 Thread Michael Ellerman
On Wed, 2015-07-01 at 09:34 +0200, Geert Uytterhoeven wrote: > On Wed, Jul 1, 2015 at 12:18 AM, Michael Ellerman wrote: > > On Tue, 2015-06-30 at 10:48 +, Joseph Myers wrote: > >> On Tue, 30 Jun 2015, Michael Ellerman wrote: > >> > >> > Is there some w

Re: [PATCH 4/6] crypto/nx-842-{powerpc,pseries}: only load on the appropriate machine type

2015-07-02 Thread Michael Ellerman
On Thu, 2015-07-02 at 15:40 -0700, Nishanth Aravamudan wrote: > While we never would successfully load on the wrong machine type, there > is extra output by default regardless of machine type. > > For instance, on a PowerVM LPAR, we see the following: > > nx_compress_powernv: loading > nx_compres

Re: [RESEND] powerpc/configs: enable RTC class support

2015-07-02 Thread Michael Ellerman
On Fri, 2015-03-07 at 05:11:20 UTC, Vaibhav Jain wrote: > A working rtc kernel driver is needed so that hwclock can synchronize > system clock to rtc during shutdown/boot. We already have a powernv > platform rtc driver located at drivers/rtc/rtc-opal.c. However it depends > on CONFIG_RTC_CLASS whi

Re: powerpc/powernv: Fix race in updating core_idle_state

2015-07-05 Thread Michael Ellerman
On Wed, 2015-01-07 at 06:34:10 UTC, "Shreyas B. Prabhu" wrote: > core_idle_state is maintained for each core. It uses 0-7 bits to track > whether a thread in the core has entered fastsleep or winkle. 8th bit is > used as a lock bit. > The lock bit is set in these 2 scenarios- > - The thread is fir

Re: [PATCH v2] powerpc/powernv: Fix race in updating core_idle_state

2015-07-06 Thread Michael Ellerman
On Tue, 2015-07-07 at 01:39 +0530, Shreyas B. Prabhu wrote: > core_idle_state is maintained for each core. It uses 0-7 bits to track > whether a thread in the core has entered fastsleep or winkle. 8th bit is > used as a lock bit. ... > This patch fixes the above race by looping on the lock bit even

[PATCH] powerpc: Update MAINTAINERS to point at shared tree

2015-07-07 Thread Michael Ellerman
Now that we have a shared powerpc tree on kernel.org, point folks at that as the primary place to look for powerpc stuff. Signed-off-by: Michael Ellerman --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8133cefb6b6e

Re: [PATCH v2] crypto/nx-842-{powerpc,pseries}: reduce chattiness of platform drivers

2015-07-07 Thread Michael Ellerman
On Mon, 2015-07-06 at 10:06 -0700, Nishanth Aravamudan wrote: > On 03.07.2015 [11:30:32 +1000], Michael Ellerman wrote: > > On Thu, 2015-07-02 at 15:40 -0700, Nishanth Aravamudan wrote: > > > While we never would successfully load on the wrong machine type, there > > >

Re: [1/1] cxl/vphb.c: Use phb pointer after NULL check

2015-07-07 Thread Michael Ellerman
On Mon, 2015-29-06 at 10:35:11 UTC, Maninder Singh wrote: > static Anlaysis detected below error:- > (error) Possible null pointer dereference: phb > > So, Use phb after NULL check. > > Signed-off-by: Maninder Singh > Acked-by: Ian Munsie Applied to powerpc fixes, thanks. https://git.kernel.o

Re: powerpc: Set the correct kernel taint on machine check errors.

2015-07-07 Thread Michael Ellerman
On Mon, 2015-15-06 at 03:25:19 UTC, Daniel Axtens wrote: > This means the 'M' flag will work properly when the kernel prints a backtrace. > > Signed-off-by: Daniel Axtens Applied to powerpc fixes, thanks. https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=27ea2c42

Re: cxl: Test the correct mmio space before unmapping

2015-07-07 Thread Michael Ellerman
On Thu, 2015-02-07 at 05:55:21 UTC, Daniel Axtens wrote: > Before freeing p2n, test p2n, not p1n. > > Signed-off-by: Daniel Axtens > Acked-by: Ian Munsie Applied to powerpc fixes, thanks. https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=8c00d5c9d3e7452658dda550

Re: opal-elog: Fix opal-elog interrupt handler

2015-07-07 Thread Michael Ellerman
On Fri, 2015-03-07 at 07:39:12 UTC, Alistair Popple wrote: > The conversion of opal events to a proper irqchip means that handlers > are called until the relevant opal event has been cleared by > processing it. Events that queue work should therefore use a threaded > handler to mask the event until

Re: powerpc/ppc4xx_hsta_msi: Include ppc-pci.h to fix reference to hose_list

2015-07-07 Thread Michael Ellerman
On Sun, 2015-05-07 at 23:40:34 UTC, Daniel Axtens wrote: > An earlier commit referenced 'hose_list' in sysdev/ppc4xx_hsta_msi.c. > hose_list is defined in ppc-pci.h, which was not included in that > file. Include it, fixing the build for the akebono defconfig used > by the kbuild test robot. > > F

Re: [v2] powerpc/powernv: Fix race in updating core_idle_state

2015-07-07 Thread Michael Ellerman
On Mon, 2015-06-07 at 20:09:23 UTC, "Shreyas B. Prabhu" wrote: > core_idle_state is maintained for each core. It uses 0-7 bits to track > whether a thread in the core has entered fastsleep or winkle. 8th bit is > used as a lock bit. ... > Signed-off-by: Shreyas B. Prabhu > Fixes: 7b54e9f213f76 'po

Re: [RESEND] powerpc/powernv: Fix vma page prot flags in opal-prd driver

2015-07-07 Thread Michael Ellerman
On Mon, 2015-29-06 at 05:17:55 UTC, Vaidyanathan Srinivasan wrote: > opal-prd driver will mmap() firmware code/data area as private > mapping to prd user space daemon. Write to this page will > trigger COW faults. The new COW pages are normal kernel RAM > pages accounted by the kernel and are not

Re: powerpc: Add plain English description for alignment exception oopses

2015-07-07 Thread Michael Ellerman
On Thu, 2015-02-07 at 04:56:20 UTC, Anton Blanchard wrote: > If we take an alignment exception which we cannot fix, the oops > currently prints: > > Unable to handle kernel paging request for unknown fault > > Lets print something more useful: > > Unable to handle kernel paging request for unali

Re: [RFC,1/2] powerpc/numa: fix cpu_to_node() usage during boot

2015-07-07 Thread Michael Ellerman
On Thu, 2015-02-07 at 23:02:02 UTC, Nishanth Aravamudan wrote: > Much like on x86, now that powerpc is using USE_PERCPU_NUMA_NODE_ID, we > have an ordering issue during boot with early calls to cpu_to_node(). "now that .." implies we changed something and broke this. What commit was it that change

Re: [PATCH V2 2/2] powerpc/kexec: Reset HILE before kexec_sequence

2015-07-07 Thread Michael Ellerman
On Wed, 2015-07-08 at 14:37 +1000, Samuel Mendoza-Jonas wrote: > On powernv secondary cpus are returned to OPAL, and will then enter the > target kernel in big-endian. However if it is set the HILE bit will persist, > causing the first exception in the target kernel to be delivered in > litte-endia

Re: ipmi/powernv: Fix a minor bug

2015-07-08 Thread Michael Ellerman
On Wed, 2015-08-07 at 06:27:28 UTC, Neelesh Gupta wrote: > If the OPAL call to receive the ipmi message fails, then we free up the smi > message before returning. But, the driver still holds the reference to old > smi message in the 'cur_msg' which is dangerous if the driver derefernces it > later

Re: [1/2] cxl: Fix off by one error allowing subsequent mmap page to be accessed

2015-07-08 Thread Michael Ellerman
On Tue, 2015-07-07 at 05:45:45 UTC, Ian Munsie wrote: > From: Ian Munsie > > It was discovered that if a process mmaped their problem state area they > were able to access one page more than expected, potentially allowing > them to access the problem state area of an unrelated process. > > This

Re: cxl: Fix refcounting in kernel API

2015-07-08 Thread Michael Ellerman
On Tue, 2015-07-07 at 01:01:17 UTC, Michael Neuling wrote: > Currently the kernel API AFU dev refcounting is done on context start and > stop. > This patch moves this refcounting to context init and release, bringing it > inline with how the userspace API does it. > > Without this we've seen the

Re: powerpc/perf/24x7: Fix lockdep warning

2015-07-08 Thread Michael Ellerman
On Tue, 2015-07-07 at 19:37:25 UTC, Sukadev Bhattiprolu wrote: > >From 370152d9427e57cd9632b00189f71099f8e85544 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Tue, 7 Jul 2015 12:21:10 -0400 > Subject: [PATCH 1/1] powerpc/perf/24x7: Fix lockdep warning > > The sysfs attributes for th

<    1   2   3   4   5   6   7   8   9   10   >