[PATCH 2/5] powerpc: Remove some old bootmem related comments

2014-09-17 Thread Anton Blanchard
Now bootmem is gone from powerpc we can remove comments mentioning it. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/prom.c | 5 + arch/powerpc/kernel/rtas.c | 4 ++-- arch/powerpc/kvm/book3s_hv_builtin.c | 2 +- arch/powerpc/mm/hugetlbpage.c

[PATCH 3/5] powerpc: Remove superfluous bootmem includes

2014-09-17 Thread Anton Blanchard
Lots of places included bootmem.h even when not using bootmem. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/crash_dump.c | 1 - arch/powerpc/kernel/irq.c | 1 - arch/powerpc/kernel/pci_64.c | 1 -

[PATCH 5/5] powerpc: make __ffs return unsigned long

2014-09-17 Thread Anton Blanchard
I'm seeing a build warning in mm/nobootmem.c after removing bootmem: mm/nobootmem.c: In function '__free_pages_memory': include/linux/kernel.h:713:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void) (_min1 == _min2); \ ^

[PATCH 4/5] powerpc: Move sparse_init() into initmem_init

2014-09-17 Thread Anton Blanchard
We did part of sparse initialisation in setup_arch and part in initmem_init. Put them together. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/setup_64.c | 1 - arch/powerpc/mm/mem.c | 1 + arch/powerpc/mm/numa.c | 2 ++ 3 files changed, 3 insertions(+),

Re: [1/5] pseries: Define rtas hotplug event sections

2014-09-17 Thread Michael Ellerman
On Mon, 2014-09-15 at 15:29 -0500, Nathan Fontenot wrote: diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h index b390f55..a01879e 100644 --- a/arch/powerpc/include/asm/rtas.h +++ b/arch/powerpc/include/asm/rtas.h @@ -273,6 +273,7 @@ inline uint32_t

Re: [2/5] pseries: Export drc_[acquire|release]_drc() routines

2014-09-17 Thread Michael Ellerman
On Mon, 2014-09-15 at 15:30 -0500, Nathan Fontenot wrote: diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 361add6..b94516b 100644 --- a/arch/powerpc/platforms/pseries/pseries.h +++ b/arch/powerpc/platforms/pseries/pseries.h @@ -59,6

[PATCH 1/3] powerpc: Remove -mno-sched-epilog workaround

2014-09-17 Thread Anton Blanchard
We added -mno-sched-epilog in commit 7563dc645853 (powerpc: Work around gcc's -fno-omit-frame-pointer bug). We shouldn't apply -fno-omit-frame-pointer on powerpc any more (it's protected by CONFIG_FRAME_POINTER and CONFIG_SCHED_OMIT_FRAME_POINTER). It's also an undocumented gcc option, so lets

[PATCH 2/3] powerpc/ftrace: Remove mod_return_to_handler

2014-09-17 Thread Anton Blanchard
mod_return_to_handler is the same as return_to_handler, except it handles the change of the TOC (r2). Add this into return_to_handler and remove mod_return_to_handler. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/entry_64.S | 24 +---

[PATCH 3/3] powerpc/ftrace: simplify prepare_ftrace_return

2014-09-17 Thread Anton Blanchard
Instead of passing in the stack address of the link register to be modified, just pass in the old value and return the new value and rely on ftrace_graph_caller to do the modification. This removes the exception handling around the stack update - it isn't needed and we weren't consistent about

Re: [3/5] pseries: Create device hotplug entry point

2014-09-17 Thread Michael Ellerman
On Mon, 2014-09-15 at 15:31 -0500, Nathan Fontenot wrote: For pseries system the kernel will be notified of hotplug requests in the form of rtas hotplug events. Can you flesh that design out a bit for me, I don't entirely get how it's going to work. The kernel gets the rtas hotplug events

Re: [4/5] pseries: Implement memory hotplug add in the kernel

2014-09-17 Thread Michael Ellerman
On Mon, 2014-09-15 at 15:32 -0500, Nathan Fontenot wrote: This patch adds the ability to do memory hotplug adding in the kernel. Currently the hotplug add/remove of memory is handled by the drmgr command. The drmgr command performs the add/remove by performing some work in user-space and

Re: [5/5] pseries: Implement memory hotplug remove in the kernel

2014-09-17 Thread Michael Ellerman
On Mon, 2014-09-15 at 15:33 -0500, Nathan Fontenot wrote: This patch adds the ability to do memory hotplug remove in the kernel. Currently the hotplug add/remove of memory is handled by the drmgr command. The drmgr command performs the add/remove by performing some work in user-space and

Re: [PATCH 3/5] powerpc: Remove superfluous bootmem includes

2014-09-17 Thread Emil Medve
Hello Anton, On 09/17/2014 12:58 AM, Anton Blanchard wrote: Lots of places included bootmem.h even when not using bootmem. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/crash_dump.c | 1 - arch/powerpc/kernel/irq.c | 1 -

[PATCH][V2] Freescale Frame Manager Device Tree binding document

2014-09-17 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com The Frame Manager (FMan) combines the Ethernet network interfaces with packet distribution logic to provide intelligent distribution and queuing decisions for incoming traffic at line rate. This binding document describes Freescale's Frame Manager

Re: [PATCH 3/5] powerpc: Remove superfluous bootmem includes

2014-09-17 Thread Anton Blanchard
Hi Emil, While building corenet64_smp I get this: ../arch/powerpc/mm/pgtable_64.c: In function 'early_alloc_pgtable': ../arch/powerpc/mm/pgtable_64.c:77:95: error: 'MAX_DMA_ADDRESS' undeclared (first use in this function) ../arch/powerpc/mm/pgtable_64.c:77:95: note: each undeclared

[PATCH 1/5] powerpc: Remove bootmem allocator

2014-09-17 Thread Anton Blanchard
At the moment we transition from the memblock alloctor to the bootmem allocator. Gitting rid of the bootmem allocator removes a bunch of complicated code (most of which I owe the dubious honour of being responsible for writing). Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve

[PATCH 2/5] powerpc: Remove some old bootmem related comments

2014-09-17 Thread Anton Blanchard
Now bootmem is gone from powerpc we can remove comments mentioning it. Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve emilian.me...@freescale.com --- arch/powerpc/kernel/prom.c | 5 + arch/powerpc/kernel/rtas.c | 4 ++--

[PATCH 3/5] powerpc: Remove superfluous bootmem includes

2014-09-17 Thread Anton Blanchard
Lots of places included bootmem.h even when not using bootmem. Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve emilian.me...@freescale.com --- arch/powerpc/kernel/crash_dump.c | 1 - arch/powerpc/kernel/irq.c | 1 -

[PATCH 4/5] powerpc: Move sparse_init() into initmem_init

2014-09-17 Thread Anton Blanchard
We did part of sparse initialisation in setup_arch and part in initmem_init. Put them together. Signed-off-by: Anton Blanchard an...@samba.org Tested-by: Emil Medve emilian.me...@freescale.com --- arch/powerpc/kernel/setup_64.c | 1 - arch/powerpc/mm/mem.c | 1 + arch/powerpc/mm/numa.c

[PATCH 5/5] powerpc: make __ffs return unsigned long

2014-09-17 Thread Anton Blanchard
I'm seeing a build warning in mm/nobootmem.c after removing bootmem: mm/nobootmem.c: In function '__free_pages_memory': include/linux/kernel.h:713:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] (void) (_min1 == _min2); \ ^

Re: [PATCH v2 0/3] PCI/MSI: Remove arch_msi_check_device()

2014-09-17 Thread Thomas Petazzoni
Dear Alexander Gordeev, On Sun, 7 Sep 2014 20:57:52 +0200, Alexander Gordeev wrote: Alexander Gordeev (3): patch 1 - PCI/MSI/PPC: Remove arch_msi_check_device() patch 2 - PCI/MSI/Armada-370-xp: Remove arch_msi_check_device() patch 3 - PCI/MSI: Remove arch_msi_check_device() For the

Re: [RFC PATCH] dt:numa: adding numa node mapping for memory nodes.

2014-09-17 Thread Kumar Gala
On Sep 17, 2014, at 1:56 AM, Ganapatrao Kulkarni ganapatrao.kulka...@caviumnetworks.com wrote: From: Ganapatrao Kulkarni ganapatrao.kulka...@cavium.com This patch adds property nid to memory node to provide the memory range to numa node id mapping. Signed-off-by: Ganapatrao Kulkarni

[PATCH v3 01/21] powerpc/8xx: Declare SPRG2 as a SCRATCH register

2014-09-17 Thread Christophe Leroy
Since coming 469d62be9263b92f2c3329540cbb1c076111f4f3, SPRG2 is used as a scratch register just like SPRG0 and SPRG1. So Declare it as such and fix the comment which is not valid anymore since that commit. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes

[PATCH v3 03/21] powerpc/8xx: exception InstructionAccess does not exist on MPC8xx

2014-09-17 Thread Christophe Leroy
Exception InstructionAccess does not exist on MPC8xx. No need to branch there from somewhere else. Handling can be done directly in InstructionTLBError Exception. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - arch/powerpc/mm/fault.c uses

[PATCH v3 02/21] powerpc/8xx: Use SCRATCH0 and SCRATCH1 also for TLB handlers

2014-09-17 Thread Christophe Leroy
SCRATCH0 and SCRATCH1 are only used in Exceptions prologs where no other exception can happen. There is therefore no need to preserve them accross TLB handlers, we can use them there as in other exceptions. One of the advantages is that they do not suffer CPU6 errata unlike M_TW register.

[PATCH v3 04/21] powerpc/8xx: Remove loading of r10 at end of FixupDAR

2014-09-17 Thread Christophe Leroy
Since commit 2321f33790a6c5b80322d907a92d5739e7521a13, r10 is not used anymore after FixupDAR. There is therefore no need to set it up with the value of DAR. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S

[PATCH v3 00/21] powerpc/8xx: Optimise MMU TLB handling and add support of 16k pages

2014-09-17 Thread Christophe Leroy
This patchset: 1) provides several MMU TLB handling optimisation on MPC8xx. 2) adds support of 16k pages on MPC8xx. All changes have been successfully tested on a custom board equipped with MPC885 Signed-off-by: Christophe Leroy christophe.le...@c-s.fr Tested-by: Christophe Leroy

[PATCH v3 05/21] powerpc/8xx: Fix comment about DIRTY update

2014-09-17 Thread Christophe Leroy
Since commit 2321f33790a6c5b80322d907a92d5739e7521a13, dirty handling is not handled here anymore. So we fix the comment. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S |8 ++-- 1 files changed, 2

[PATCH v3 09/21] powerpc/8xx: Optimize verification in FixupDAR

2014-09-17 Thread Christophe Leroy
By XORing the upper part of the instruction code, we get a value that can directly be verified with the second test and we can remove the first test. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S |6

[PATCH v3 07/21] powerpc/8xx: DataAccess exception not generated by MPC8xx

2014-09-17 Thread Christophe Leroy
DataAccess exception is never generated by MPC8xx so do the job directly where it is used to avoid an unnecessary branching. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - arch/powerpc/mm/fault.c uses the vector number, so make sure it

[PATCH v3 12/21] powerpc/8xx: Don't use MD_TWC for walk

2014-09-17 Thread Christophe Leroy
MD_TWC can only be used properly with 4k pages. So lets calculate level 2 table index by ourselves. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - No need to save r11 in cr, we can do without modifying r11 in DataStoreTLBMiss Changes in v3: - None

[PATCH v3 13/21] powerpc/8xx: Use PAGE size related consts

2014-09-17 Thread Christophe Leroy
For PAGE size related operations, use PAGE size consts in order to be able to use different page size in the futur. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S | 30 ++ 1

[PATCH v3 10/21] powerpc/8xx: Duplicate two insns instead of branching

2014-09-17 Thread Christophe Leroy
Branching takes two cycles on MPC8xx. Lets duplicate the two instructions and avoid the branching. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S |6 -- 1 files changed, 4 insertions(+), 2

[PATCH v3 14/21] powerpc/8xx: Const for TLB RPN forced value

2014-09-17 Thread Christophe Leroy
Value 0x00f0 is used to force bits in TLB level 2 entry. This value is linked to the page size and will vary when we change the page size. Lets define a const for it in order to have it at only one place. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes

[PATCH v3 08/21] powerpc/8xx: No need to restore registers and save them again.

2014-09-17 Thread Christophe Leroy
In DTLBError handler there is not need to restore r10, r11 and cr registers after fixing DAR as they are saved again to the same place just after. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S |4 ++--

[PATCH v3 11/21] powerpc/8xx: Use M_TW instead of M_TWB

2014-09-17 Thread Christophe Leroy
Use M_TW instead of M_TWB for storing Level 1 table address as M_TWB requires 4k aligned tables, which is only the case with 4k pages. Consequently, we have to calculate the level 1 table index by ourselves. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None

[PATCH v3 06/21] powerpc/8xx: No need to save r10 and r3 when not calling FixupDAR

2014-09-17 Thread Christophe Leroy
r10 and r3 are only used inside FixupDAR function. So lets save them inside that function only. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S | 27 +-- 1 files changed, 13

[PATCH v3 15/21] powerpc/8xx: Implement 16k pages

2014-09-17 Thread Christophe Leroy
This patch activates the handling of 16k pages on the MPC8xx. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/Kconfig |2 +- arch/powerpc/include/asm/mmu-8xx.h |2 ++ arch/powerpc/kernel/head_8xx.S

[PATCH v3 17/21] powerpc/8xx: set PTE bit 22 off TLBmiss

2014-09-17 Thread Christophe Leroy
No need to re-set this bit at each TLB miss. Let's set it in the PTE. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - Removed PPC405 related macro from PPC8xx specific code - PTE_NONE_MASK doesn't need PAGE_ACCESSED in Linux 2.6

[PATCH v3 19/21] powerpc/8xx: Don't restore regs to save them again.

2014-09-17 Thread Christophe Leroy
There is not need to restore r10, r11 and cr registers at this end of ITLBmiss handler as they are saved again to the same place in ITLBError handler we are jumping to. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None

[PATCH v3 18/21] powerpc/8xx: _PMD_PRESENT already set in level 1 entries

2014-09-17 Thread Christophe Leroy
When a PMD entry is valid, _PMD_PRESENT is set. Therefore, forcing that bit during TLB loading is useless. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S |2 -- 1 files changed, 0 insertions(+), 2

[PATCH v3 21/21] powerpc/8xx: Invalidate non present TLB as early as possible

2014-09-17 Thread Christophe Leroy
8xx sometimes need to load a invalid/non-present TLBs in it DTLB asm handler. These must be invalidated separaly as linux mm doesn't. Commit 5efab4a02c89c252fb4cce097aafde5f8208dbfe was invalidating them in arch/powerpc/mm/fault.c. This patch does the invalidation earlier in order to free

[PATCH v3 16/21] powerpc/8xx: Better readibility of ERRATA CPU6 handling

2014-09-17 Thread Christophe Leroy
This patch hiddes that SPR address needed for CPU6 ERRATA handling in the macro. Then we don't have to worry about this address directly in the code. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v2: - None Changes in v3: - None arch/powerpc/kernel/head_8xx.S | 29

[PATCH v3 20/21] powerpc/8xx: Use DAR to save r3 for CPU6 ERRATA

2014-09-17 Thread Christophe Leroy
As we are not using anymore DAR to save registers, it is now available for saving the r3 register used for CPU6 ERRATA handling. Therefore we can remove the major hack which was to use memory location 0 to save r3. Signed-off-by: Christophe Leroy christophe.le...@c-s.fr --- Changes in v3: - New

Re: [PATCH v3 00/21] powerpc/8xx: Optimise MMU TLB handling and add support of 16k pages

2014-09-17 Thread Scott Wood
On Wed, 2014-09-17 at 18:36 +0200, Christophe Leroy wrote: This patchset: 1) provides several MMU TLB handling optimisation on MPC8xx. 2) adds support of 16k pages on MPC8xx. All changes have been successfully tested on a custom board equipped with MPC885 Signed-off-by: Christophe Leroy

Re: [1/5] pseries: Define rtas hotplug event sections

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:06 AM, Michael Ellerman wrote: On Mon, 2014-09-15 at 15:29 -0500, Nathan Fontenot wrote: diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h index b390f55..a01879e 100644 --- a/arch/powerpc/include/asm/rtas.h +++

Re: [2/5] pseries: Export drc_[acquire|release]_drc() routines

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: On Mon, 2014-09-15 at 15:30 -0500, Nathan Fontenot wrote: diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 361add6..b94516b 100644 --- a/arch/powerpc/platforms/pseries/pseries.h +++

Re: [PATCH v4 04/11] drivers: base: support cpu cache information interface to userspace via sysfs

2014-09-17 Thread Sudeep Holla
Hi Greg, On 03/09/14 18:00, Sudeep Holla wrote: From: Sudeep Holla sudeep.ho...@arm.com This patch adds initial support for providing processor cache information to userspace through sysfs interface. This is based on already existing implementations(x86, ia64, s390 and powerpc) and hence the

Re: [PATCH V4] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-17 Thread Nicolin Chen
On Tue, Sep 16, 2014 at 10:13:16AM +0800, Shengjiu Wang wrote: Check if ipg clock is in clock-names property, then we can move the ipg clock enable and disable operation to startup and shutdown, that is only enable ipg clock when ssi is working and keep clock is disabled when ssi is in idle.

Re: [PATCH V4] ASoC: fsl_ssi: refine ipg clock usage in this module

2014-09-17 Thread Mark Brown
On Tue, Sep 16, 2014 at 10:13:16AM +0800, Shengjiu Wang wrote: Check if ipg clock is in clock-names property, then we can move the ipg clock enable and disable operation to startup and shutdown, that is only enable ipg clock when ssi is working and keep clock is disabled when ssi is in idle.

[PATCH 0/4] powerpc/perf: Miscellaneous fixes

2014-09-17 Thread Sukadev Bhattiprolu
Miscellaenous fixes for perf and 24x7 counters in powerpc. Patches 1,3,4 were submitted earlier as a part of the parametrized events for 24x7 counters. But they are not directly related to the parametrized events. Patch 2 simplifies and fixes a bug in catalog_read() which causes the catalog file

[PATCH 1/4] powerpc/perf/hv-24x7: use kmem_cache instead of aligned stack allocations

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Ian pointed out the use of __aligned(4096) caused rather large stack consumption in single_24x7_request(), so use the kmem_cache hv_page_cache (which we've already got set up for other allocations) insead of allocating locally. CC: Sukadev Bhattiprolu

[PATCH 2/4] Simplify catalog_read()

2014-09-17 Thread Sukadev Bhattiprolu
catalog_read() implements the read interface for the sysfs file /sys/bus/event_source/devices/hv_24x7/interface/catalog It essentially takes a buffer, an offset and count as parameters to the read() call. It makes a hypervisor call to read a specific page from the catalog and copy the

[PATCH 4/4] perf Documentation: remove duplicated docs for powerpc cpu specific events

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Listing specific events doesn't actually help us at all here because: - these events actually vary between different ppc processors, they aren't garunteed to be present. - the documentation of the (generic) file contents is now superceded by the

[PATCH 3/4] perf Documentation: sysfs events/ interfaces

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Add documentation for the event, event.scale, and event.unit files in sysfs. event.scale and event.unit were undocumented. event was previously documented only for specific powerpc pmu events. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC:

[PATCH v3 00/10] Add support for parameterized events from sysfs

2014-09-17 Thread Sukadev Bhattiprolu
What this patchset does: - the first patch (override sysfs in tools/perf via SYSFS_PATH) was sent out previously, but needed a resend anyhow. Having it is useful for testing the later changes to tools/perf. - the second patch is a bugfix to the powerpc hv-24x7 code which was previously

[PATCH v3 02/10] tools/perf: extend format_alias() to include event parameters

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com This causes `perf list pmu` to show parameters for parameterized events like follows: pmu/event_name,param1=?,param2=?/ [Kernel PMU event] An example:

[PATCH v3 01/10] tools/perf: support parsing parameterized events

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com 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=foo,bar=1,param1=baz Changelog[v6]: [Jiri

[PATCH v3 03/10] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com (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. CC: Sukadev Bhattiprolu

[PATCH v3 04/10] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com 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. Catalog is (at the moment) only parsed on boot. It needs re-parsing when

[PATCH v3 05/10] perf: add PMU_EVENT_ATTR_STRING() helper

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com ---

[PATCH v3 07/10] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com 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). CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P

[PATCH v3 06/10] powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com 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

[PATCH v3 08/10] perf Documentation: add event parameters

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com 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

[PATCH v3 09/10] tools/perf: Document parameterized and symbolic events

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer

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

2014-09-17 Thread Sukadev Bhattiprolu
From: Cody P Schafer c...@linux.vnet.ibm.com CC: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com CC: Haren Myneni hb...@us.ibm.com CC: Cody P Schafer d...@codyps.com Signed-off-by: Cody P Schafer c...@linux.vnet.ibm.com --- .../testing/sysfs-bus-event_source-devices-hv_24x7 | 22

Re: [PATCH v4 04/11] drivers: base: support cpu cache information interface to userspace via sysfs

2014-09-17 Thread Greg Kroah-Hartman
On Wed, Sep 17, 2014 at 06:25:10PM +0100, Sudeep Holla wrote: Hi Greg, On 03/09/14 18:00, Sudeep Holla wrote: From: Sudeep Holla sudeep.ho...@arm.com This patch adds initial support for providing processor cache information to userspace through sysfs interface. This is based on already

Re: [3/5] pseries: Create device hotplug entry point

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: On Mon, 2014-09-15 at 15:31 -0500, Nathan Fontenot wrote: For pseries system the kernel will be notified of hotplug requests in the form of rtas hotplug events. Can you flesh that design out a bit for me, I don't entirely get how it's

Re: [4/5] pseries: Implement memory hotplug add in the kernel

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: On Mon, 2014-09-15 at 15:32 -0500, Nathan Fontenot wrote: This patch adds the ability to do memory hotplug adding in the kernel. Currently the hotplug add/remove of memory is handled by the drmgr command. The drmgr command performs the

Re: [RFC PATCH] dt:numa: adding numa node mapping for memory nodes.

2014-09-17 Thread Mark Rutland
On Wed, Sep 17, 2014 at 04:37:30PM +0100, Kumar Gala wrote: On Sep 17, 2014, at 1:56 AM, Ganapatrao Kulkarni ganapatrao.kulka...@caviumnetworks.com wrote: From: Ganapatrao Kulkarni ganapatrao.kulka...@cavium.com This patch adds property nid to memory node to provide the memory range

Re: [5/5] pseries: Implement memory hotplug remove in the kernel

2014-09-17 Thread Nathan Fontenot
On 09/17/2014 02:07 AM, Michael Ellerman wrote: On Mon, 2014-09-15 at 15:33 -0500, Nathan Fontenot wrote: This patch adds the ability to do memory hotplug remove in the kernel. Currently the hotplug add/remove of memory is handled by the drmgr command. The drmgr command performs the

Re: [PATCH v3 00/21] powerpc/8xx: Optimise MMU TLB handling and add support of 16k pages

2014-09-17 Thread christophe leroy
Le 17/09/2014 18:40, Scott Wood a écrit : On Wed, 2014-09-17 at 18:36 +0200, Christophe Leroy wrote: This patchset: 1) provides several MMU TLB handling optimisation on MPC8xx. 2) adds support of 16k pages on MPC8xx. All changes have been successfully tested on a custom board equipped with

Re: [PATCH v3 00/21] powerpc/8xx: Optimise MMU TLB handling and add support of 16k pages

2014-09-17 Thread Scott Wood
On Wed, 2014-09-17 at 22:33 +0200, christophe leroy wrote: Le 17/09/2014 18:40, Scott Wood a écrit : On Wed, 2014-09-17 at 18:36 +0200, Christophe Leroy wrote: This patchset: 1) provides several MMU TLB handling optimisation on MPC8xx. 2) adds support of 16k pages on MPC8xx. All changes

Re: [PATCH 0/9] powerpc/powernv: Support for fastsleep and winkle

2014-09-17 Thread Shreyas B Prabhu
Hi, In this patch series we use winkle for offlined cores. I successfully tested the working of this with subcore functionality. Test scenario was as follows: 1. Set SMT mode to 1, Set subores-per-core to 1 2. Offline a core, in this case cpu 32 (sending it to winkle) 3. Set subcores-per-core to