Re: [PATCH 0/4] defconfigs: cleanup obsolete MTD configs

2015-01-26 Thread Simon Horman
On Sat, Jan 24, 2015 at 06:33:29PM +0200, Semen Protsenko wrote: > This patch series removes next obsolete MTD configs from all defconfig files: > - CONFIG_MTD_CHAR > - CONFIG_MTD_CONCAT > - CONFIG_MTD_DEBUG > - CONFIG_MTD_DEBUG_VERBOSE > - CONFIG_MTD_PARTITIONS > > All those configs wer

[GIT PULL 00/26] perf/core improvements and fixes

2015-01-26 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, it has my latest perf/urgent pull content, please let me know if you don't want it to be submitted like that, i.e. if you have any problems with my latest perf/urgent pull request and I'll try to address it ASAP. - Arnaldo The following changes since com

[PATCH 08/26] perf tools: Support parsing parameterized events

2015-01-26 Thread Arnaldo Carvalho de Melo
From: Cody P Schafer Enable event specification like: pmu/event_name,param1=0x1,param2=0x4/ Assuming that /sys/bus/event_source/devices/pmu/events/event_name Contains something like param2=?,bar=1,param1=? Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattip

[PATCH 09/26] perf tools: Extend format_alias() to include event parameters

2015-01-26 Thread Arnaldo Carvalho de Melo
From: Cody P Schafer This causes `perf list pmu` to show parameters for parameterized events like: pmu/event_name,param1=?,param2=?/ [Kernel PMU event] An example: hv_24x7/HPM_TLBIE__PHYS_CORE,core=?/ [Kernel PMU event] Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu Ac

[PATCH 11/26] perf tools: Document parameterized and symbolic events

2015-01-26 Thread Arnaldo Carvalho de Melo
From: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu Acked-by: Jiri Olsa Cc: Cody P Schafer Cc: Haren Myneni Cc: Jiri Olsa Cc: Michael Ellerman Cc: Paul Mackerras Cc: Peter Zijlstra Cc: linuxppc-dev@lists.ozlabs.org Link: http://lkml.kernel.org/r/1420679

[PATCH 10/26] perf Documentation: Add event parameters

2015-01-26 Thread Arnaldo Carvalho de Melo
From: Cody P Schafer Event parameters are a basic way for partial events to be specified in sysfs with per-event names given to the fields that need to be filled in when using a particular event. It is intended for supporting cases where the single 'cpu' parameter is insufficient. For example, P

[PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64

2015-01-26 Thread Kim Phillips
arch/powerpc has __kernel_map_pages implementations in mm/pgtable_32.c, and mm/hash_utils_64.c, of which the former is built for PPC32, and the latter for PPC64 machines with PPC_STD_MMU. Fix arch/powerpc/Kconfig to not select ARCH_SUPPORTS_DEBUG_PAGEALLOC when CONFIG_PPC_STD_MMU_64 isn't defined,

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-26 Thread Kim Phillips
On Thu, 22 Jan 2015 10:45:51 +0900 Joonsoo Kim wrote: > From 7cb9d1ed8a785df152cb8934e187031c8ebd1bb2 Mon Sep 17 00:00:00 2001 > From: Joonsoo Kim > Date: Thu, 22 Jan 2015 10:28:58 +0900 > Subject: [PATCH] mm/debug_pagealloc: fix build failure on ppc and some other > archs > > Kim Phillips rep

Re: Build regressions/improvements in v3.19-rc6

2015-01-26 Thread Geert Uytterhoeven
On Mon, Jan 26, 2015 at 9:29 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v3.19-rc6[1] to v3.19-rc5[3], the summaries are: > - build errors: +9/-9 + /home/kisskb/slave/src/arch/powerpc/kvm/book3s_pr.c: error: 'last_sc' may be used uninitialized in this function [-Werror=uninitialized]

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-26 Thread Brian King
On 01/24/2015 03:57 AM, Benjamin Herrenschmidt wrote: > On Fri, 2015-01-23 at 14:50 +1100, Gavin Shan wrote: > >> Messages from Brian for reference: >> >> | The API has changed. I wrote the pci_set_pcie_reset_state API originally. >> | When this API was put in place initially, it was perfectly leg

[PATCH v7 0/4] Add support for parametrized events

2015-01-26 Thread Sukadev Bhattiprolu
Description of "event parameters" from the documentation patch: Event parameters are a basic way for partial events to be specified in sysfs with per-event names given to the fields that need to be filled in when using a particular event. It is intended for supporting cases where

[PATCH v7 2/7] perf: add PMU_EVENT_ATTR_STRING() helper

2015-01-26 Thread Sukadev Bhattiprolu
From: Cody P Schafer Helper for constructing static struct perf_pmu_events_attr s. Changelog[v7]: [Jiri Olsa] Initialize 'id' field in perf_pmu_events_attr also. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- include/linux/perf_event.h

[PATCH v7 1/7] perf: provide sysfs_show for struct perf_pmu_events_attr

2015-01-26 Thread Sukadev Bhattiprolu
From: Cody P Schafer (struct perf_pmu_events_attr) is defined in include/linux/perf_event.h, but the only "show" for it is in x86 and contains x86 specific stuff. Make a generic one for those of us who are just using the event_str. Changelog[v7]: [Jiri Olsa] Add a check pmu_events->str for simi

[PATCH v7 4/7] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2015-01-26 Thread Sukadev Bhattiprolu
From: Cody P Schafer Retrieves and parses the 24x7 catalog on POWER systems that supply it (right now, only POWER 8). Events are exposed via sysfs in the standard fashion, and are all parameterized. $ cd /sys/bus/event_source/devices/hv_24x7/events $ cat HPM_CS_FROM_L4_LDATA__PH

[PATCH v7 5/7] powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated

2015-01-26 Thread Sukadev Bhattiprolu
From: Cody P Schafer This adds (in req-gen/) a framework for defining gpci counter requests. It uses macro magic similar to ftrace. Also convert the existing hv-gpci request structures and enum values to use the new framework (and adjust old users of the structs and enum values to cope with chan

[PATCH v7 3/7] perf: define EVENT_DEFINE_RANGE_FORMAT_LITE helper

2015-01-26 Thread Sukadev Bhattiprolu
Define a lite version of the EVENT_DEFINE_RANGE_FORMAT() that avoids defining helper functions for the bit-field ranges. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/hv-common.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/perf/hv-common.h b/arch/power

[PATCH v7 6/7] powerpc/perf/hv-gpci: add the remaining gpci requests

2015-01-26 Thread Sukadev Bhattiprolu
From: Cody P Schafer Add the remaining gpci requests that contain counters suitable for use by perf. Omit those that don't contain any counters (but note their ommision). Changelog[v6] [Jiri Olsa, Sukadev Bhattiprolu] Replace 'starting_index' with what it really means for the ev

[PATCH v7 7/7] powerpc/perf/hv-24x7: Document sysfs event description entries

2015-01-26 Thread Sukadev Bhattiprolu
From: Cody P Schafer Changelog[v6] Update Contact info to Linux on Power Developer list CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22 ++ 1 file changed, 22 in

Re: How long am I allowed to disable preemption? (was How to make use of SPE instructions?)

2015-01-26 Thread Scott Wood
On Tue, 2015-01-20 at 14:53 +, Markus Stockhausen wrote: > > Von: Scott Wood [scottw...@freescale.com] > > Gesendet: Dienstag, 20. Januar 2015 08:38 > > An: Markus Stockhausen > > Cc: Michael Ellerman; linuxppc-dev@lists.ozlabs.org > > Betreff: Re: AW: How to make use of SPE instructions? > > .

Re: [PATCH V3] tick/broadcast: Make movement of broadcast hrtimer robust against hotplug

2015-01-26 Thread Preeti U Murthy
On 01/22/2015 04:45 PM, Thomas Gleixner wrote: > On Thu, 22 Jan 2015, Preeti U Murthy wrote: >> On 01/21/2015 05:16 PM, Thomas Gleixner wrote: >> How about when the cpu that is going offline receives a timer interrupt >> just before setting its state to CPU_DEAD ? That is still possible right >> gi

Re: cpuidle/powernv: Read target_residency value of idle states from DT if available

2015-01-26 Thread Preeti U Murthy
On 01/23/2015 10:29 AM, Michael Ellerman wrote: > On Tue, 2015-20-01 at 11:26:49 UTC, Preeti U Murthy wrote: >> @@ -177,34 +178,39 @@ static int powernv_add_idle_states(void) >> return nr_idle_states; >> } >> >> -idle_state_latency = of_get_property(power_mgt, >> -

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-26 Thread Benjamin Herrenschmidt
On Mon, 2015-01-26 at 17:36 -0600, Brian King wrote: > To set some context, this function is only used by ipr for some old > broken adapters. These are adapters that are not supported on p8, > so will never show up under OPAL, only PowerVM. I'm fine with looking > at alternatives for the future, bu

SPE & Interrupt context (was how to make use of SPE instructions)

2015-01-26 Thread Markus Stockhausen
On Tue, 2015-01-20 at 14:53 +, Markus Stockhausen wrote: > > Von: Scott Wood [scottw...@freescale.com] > > Gesendet: Dienstag, 20. Januar 2015 08:38 > > An: Markus Stockhausen > > Cc: Michael Ellerman; linuxppc-dev@lists.ozlabs.org > > Betreff: Re: AW: How to make use of SPE instructions? > > .

[git pull] Please pull mpe/linux.git powerpc-3.19-5 tag

2015-01-26 Thread Michael Ellerman
Hi Linus, Please pull two powerpc fixes for 3.19: The following changes since commit ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc: Linux 3.19-rc5 (2015-01-18 18:02:20 +1200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux.git tags/powerpc-3.19-5

[PATCH V2 1/2] KVM: PPC: BOOK3S: HV: Add helpers for lock/unlock hpte

2015-01-26 Thread Aneesh Kumar K.V
This patch adds helper routine for lock and unlock hpte and use the same for rest of the code. We don't change any locking rules in this patch. In the next patch we switch some of the unlock usage to use the api with barrier and also document the usage without barriers. Signed-off-by: Aneesh Kumar

Re: cpuidle/powernv: Read target_residency value of idle states from DT if available

2015-01-26 Thread Michael Ellerman
On Tue, 2015-01-27 at 09:32 +0530, Preeti U Murthy wrote: > On 01/23/2015 10:29 AM, Michael Ellerman wrote: > > On Tue, 2015-20-01 at 11:26:49 UTC, Preeti U Murthy wrote: > >> @@ -177,34 +178,39 @@ static int powernv_add_idle_states(void) > > > >>for (i = 0; i < dt_idle_states; i++) { > >> >

[PATCH V2 2/2] KVM: PPC: BOOK3S: HV: Use unlock variant with memory barrier

2015-01-26 Thread Aneesh Kumar K.V
We switch to unlock variant with memory barriers in the error path and also in code path where we had implicit dependency on previous functions calling lwsync/ptesync. In most of the cases we don't really need an explicit barrier, but using the variant make sure we don't make mistakes later with co

Re: [PATCH 2/2] mm: fix undefined reference to `.kernel_map_pages' on PPC builds

2015-01-26 Thread Joonsoo Kim
On Thu, Jan 22, 2015 at 10:45:51AM +0900, Joonsoo Kim wrote: > On Wed, Jan 21, 2015 at 09:57:59PM +0900, Akinobu Mita wrote: > > 2015-01-21 9:07 GMT+09:00 Andrew Morton : > > > On Tue, 20 Jan 2015 15:01:50 -0800 j...@joshtriplett.org wrote: > > > > > >> On Tue, Jan 20, 2015 at 02:02:00PM -0600, Kim