Re: [PATCH v3 3/4] powerpc/mpc85xx: Add FSL QorIQ DPAA BMan support to device tree(s)

2014-12-02 Thread Emil Medve
Hello Scott, On 12/02/2014 06:32 PM, Scott Wood wrote: > On Mon, 2014-12-01 at 04:02 -0600, Emil Medve wrote: >> diff --git a/arch/powerpc/boot/dts/t4240rdb.dts >> b/arch/powerpc/boot/dts/t4240rdb.dts >> index 53761d4..431bf4e 100644 >> --- a/arch/powerpc/boot/dts/t4240rdb.dts >> +++ b/arch/powe

Re: [PATCH] ALSA: i2sbus: Deletion of unnecessary checks before the function call "release_and_free_resource"

2014-12-02 Thread Takashi Iwai
At Tue, 02 Dec 2014 22:55:57 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Tue, 2 Dec 2014 22:50:24 +0100 > > The release_and_free_resource() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > This issu

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2014-12-02 Thread Anshuman Khandual
On 12/03/2014 10:52 AM, Michael Ellerman wrote: > On Tue, 2014-02-12 at 07:56:45 UTC, Anshuman Khandual wrote: >> This patch adds four new ELF core note sections for powerpc >> transactional memory and one new ELF core note section for >> powerpc general miscellaneous debug registers. These additio

Re: [PATCH v2 0/3] fix a kernel panic on fsl corenet board when CONFIG_CLK_PPC_CORENET is enabled

2014-12-02 Thread Kevin Hao
On Tue, Dec 02, 2014 at 06:38:57PM -0600, Scott Wood wrote: > If the current code panics as of commit da788acb2838, then the revert > (but not the other patches) should go to stable as well. OK, I will make a respin to cc stable and add yours and Michael's ack. Thanks, Kevin pgpVjwceGF3KP.pgp D

Re: [PATCH v5 1/6] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-12-02 Thread Michael Ellerman
On Tue, 2014-12-02 at 18:03 -0800, Sukadev Bhattiprolu wrote: > 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 e

Re: [PATCH V6 9/9] selftests: Make GIT ignore all binaries in powerpc test suite

2014-12-02 Thread Anshuman Khandual
On 12/02/2014 11:53 PM, Shuah Khan wrote: > On 12/02/2014 12:56 AM, Anshuman Khandual wrote: >> > This patch includes all of the powerpc test binaries into the >> > .gitignore file listing in their respective directories. This >> > will make sure that GIT ignores all of these test binaries while >>

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2014-12-02 Thread Michael Ellerman
On Tue, 2014-02-12 at 07:56:45 UTC, Anshuman Khandual wrote: > This patch adds four new ELF core note sections for powerpc > transactional memory and one new ELF core note section for > powerpc general miscellaneous debug registers. These addition > of new ELF core note sections extends the existin

[PATCH v2] powerpc/book3s: Fix flush_tlb cpu_spec hook to take a generic argument.

2014-12-02 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar The flush_tlb hook in cpu_spec was introduced as a generic function hook to invalidate TLBs. But the current implementation of flush_tlb hook takes IS (invalidation selector) as an argument which is architecture dependent. Hence, It is not right to have a generic routine w

[PATCH] powerpc: powernv: Return to cpu offline loop when finished in KVM guest

2014-12-02 Thread Paul Mackerras
When a secondary hardware thread has finished running a KVM guest, we currently put that thread into nap mode using a nap instruction in the KVM code. This changes the code so that instead of doing a nap instruction directly, we instead cause the call to power7_nap() that put the thread into nap m

Re: [PATCH V2] powerpc/mm: don't do tlbie for updatepp request with NO HPTE fault

2014-12-02 Thread Michael Ellerman
On Tue, 2014-12-02 at 12:20 +0530, Aneesh Kumar K.V wrote: > upatepp get called for a nohpte fault, when we find from the linux > page table that the translation was hashed before. In that case > we are sure that there is no existing translation, hence we could > avoid doing tlbie. Same comments a

[PATCH v5 3/4] perf Documentation: add event parameters

2014-12-02 Thread Sukadev Bhattiprolu
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 v5 4/4] tools/perf: Document parameterized and symbolic events

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer Changelog[v6]: - [Sukadev Bhattiprolu]: Update documentation of perf-list and perf-record; Added documentation for perf-stat. CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer Signed-off-by: Sukadev Bhattiprolu --- tools/perf/Documentat

[PATCH v5 1/4] tools/perf: support parsing parameterized events

2014-12-02 Thread Sukadev Bhattiprolu
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=$foo,bar=1,param1=$baz Changelog[v4]: [Jiri Olsa] Merge to recent perf

[PATCH v5 2/4] tools/perf: extend format_alias() to include event parameters

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer This causes `perf list pmu` to show parameters for parameterized events like: pmu/event_name,param1=$param1,param2=$param2/ [Kernel PMU event] Example: hv_24x7/HPM_TLBIE__PHYS_CORE,starting_index=$core/ [Kernel PMU event] Changelog[v5] [Jiri Olsa, Peter Zijlst

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

2014-12-02 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 v5 6/6] powerpc/perf/hv-24x7: Document sysfs event description entries

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer 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 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-d

[PATCH v5 5/6] powerpc/perf/hv-gpci: add the remaining gpci requests

2014-12-02 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). CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- arch/powerpc/perf/hv-gpci-

[PATCH v5 2/6] perf: add PMU_EVENT_ATTR_STRING() helper

2014-12-02 Thread Sukadev Bhattiprolu
From: Cody P Schafer Helper for constructing static struct perf_pmu_events_attr s. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer Signed-off-by: Cody P Schafer --- include/linux/perf_event.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/perf_event.h b

[PATCH v5 4/6] powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated

2014-12-02 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 v5 3/6] powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

2014-12-02 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 v5 1/6] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-12-02 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. CC: Sukadev Bhattiprolu CC: Haren Myneni CC: Cody P Schafer

[PATCH v5 0/6]: Make 24x7 and GPCI events available in sysfs

2014-12-02 Thread Sukadev Bhattiprolu
The current support for the 24x7 and GPCI counters in the kernel requires users to specify the domain and offset of the event numerically, which is obviously hard to use: perf stat -C 0 -e \ 'hv_24x7/domain=2,offset=0xd58,starting_index=0,lpar=0x/' \ sleep 1 This pat

Re: [PATCH v2 0/3] fix a kernel panic on fsl corenet board when CONFIG_CLK_PPC_CORENET is enabled

2014-12-02 Thread Scott Wood
If the current code panics as of commit da788acb2838, then the revert (but not the other patches) should go to stable as well. -Scott On Wed, 2014-11-26 at 21:30 -0600, Tang Yuantian-B29983 wrote: > Hello Mike, > > Could you please apply this patch? > This patch has been acked for a while. > >

Re: [PATCH v3 3/4] powerpc/mpc85xx: Add FSL QorIQ DPAA BMan support to device tree(s)

2014-12-02 Thread Scott Wood
On Mon, 2014-12-01 at 04:02 -0600, Emil Medve wrote: > diff --git a/arch/powerpc/boot/dts/t4240rdb.dts > b/arch/powerpc/boot/dts/t4240rdb.dts > index 53761d4..431bf4e 100644 > --- a/arch/powerpc/boot/dts/t4240rdb.dts > +++ b/arch/powerpc/boot/dts/t4240rdb.dts > @@ -69,10 +69,27 @@ >

Re: [PATCH v3 1/4] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA BMan

2014-12-02 Thread Scott Wood
On Mon, 2014-12-01 at 04:02 -0600, Emil Medve wrote: > +bman: bman@31a000 { > + compatible = "fsl,bman"; > + reg = <0x31a000 0x1000>; > + interrupts = <16 2 1 2>; > + fsl,bman-portals = &bportals; > + memory-region = <&bman_fbpr>; Shouldn't it be <&bportals>? And I don't see f

Re: [PATCH v2] powerpc: Remove more traces of bootmem

2014-12-02 Thread Michael Ellerman
On Thu, 2014-11-20 at 13:33 +1100, Tony Breeds wrote: > On Thu, Nov 20, 2014 at 11:07:38AM +1100, Michael Ellerman wrote: > > --- a/arch/powerpc/lib/alloc.c > > +++ b/arch/powerpc/lib/alloc.c > > @@ -13,9 +13,7 @@ void * __init_refok zalloc_maybe_bootmem(size_t size, > > gfp_t mask) > > if (m

Re: [PATCH] Documentation: bindings: net: DPAA corenet binding document

2014-12-02 Thread Scott Wood
On Tue, 2014-12-02 at 06:12 -0600, Bucur Madalin-Cristian-B32716 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Tuesday, December 02, 2014 6:40 AM > > On Fri, 2014-11-28 at 12:10 +0200, Madalin Bucur wrote: > > > Add the device tree binding document for the DPAA corenet

Re: [RFC PATCH v1 1/1] powerpc/85xx: Add support for Emerson/Artesyn MVME2500.

2014-12-02 Thread Scott Wood
On Tue, 2014-12-02 at 15:55 +0100, Alessio Igor Bogani wrote: > Hi Scott, > > On 2 December 2014 at 06:03, Scott Wood wrote: > [...] > >> The pq3-gpio-0.dtsi defines an gpio controller in this way: > >> > >> gpio-controller@f000 { > >> reg = <0xf000 0x100>; > >> [...] > >> > >> But MVME

Re: [PATCH] powerpc: add little endian flag to syscall_get_arch()

2014-12-02 Thread Andy Lutomirski
On Tue, Dec 2, 2014 at 1:27 PM, Richard Guy Briggs wrote: > Since both ppc and ppc64 have LE variants which are now reported by uname, add > that flag (__AUDIT_ARCH_LE) to syscall_get_arch() and add AUDIT_ARCH_PPC*LE > variants. > > Without this, perf trace and auditctl fail. > > Mainline kernel

Re: [PATCH] powerpc: add little endian flag to syscall_get_arch()

2014-12-02 Thread Tony Jones
On 12/02/2014 01:27 PM, Richard Guy Briggs wrote: > Since both ppc and ppc64 have LE variants which are now reported by uname, add > that flag (__AUDIT_ARCH_LE) to syscall_get_arch() and add AUDIT_ARCH_PPC*LE > variants. > > Without this, perf trace and auditctl fail. > > Mainline kernel reports

[PATCH] ALSA: i2sbus: Deletion of unnecessary checks before the function call "release_and_free_resource"

2014-12-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 Dec 2014 22:50:24 +0100 The release_and_free_resource() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfrin

[PATCH] powerpc: add little endian flag to syscall_get_arch()

2014-12-02 Thread Richard Guy Briggs
Since both ppc and ppc64 have LE variants which are now reported by uname, add that flag (__AUDIT_ARCH_LE) to syscall_get_arch() and add AUDIT_ARCH_PPC*LE variants. Without this, perf trace and auditctl fail. Mainline kernel reports ppc64le (per a058801) but there is no matching AUDIT_ARCH_PPC64

Re: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa

2014-12-02 Thread Benjamin Herrenschmidt
On Tue, 2014-12-02 at 13:01 +0530, Aneesh Kumar K.V wrote: > Benjamin Herrenschmidt writes: > > > On Fri, 2014-11-21 at 13:57 +, Mel Gorman wrote: > >> void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, > >> pte_t pte) > >> { > >> -#ifdef CONFIG_DEBUG_VM >

Re: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa

2014-12-02 Thread Benjamin Herrenschmidt
On Tue, 2014-12-02 at 12:57 +0530, Aneesh Kumar K.V wrote: > Now, hash_preload can possibly insert an hpte in hash page table even if > the access is not allowed by the pte permissions. But i guess even that > is ok. because we will fault again, end-up calling hash_page_mm where we > handle that pa

Re: [PATCH V6 9/9] selftests: Make GIT ignore all binaries in powerpc test suite

2014-12-02 Thread Shuah Khan
On 12/02/2014 12:56 AM, Anshuman Khandual wrote: > This patch includes all of the powerpc test binaries into the > .gitignore file listing in their respective directories. This > will make sure that GIT ignores all of these test binaries while > displaying status. > > Signed-off-by: Anshuman Khand

Re: [RFC PATCH v1 1/1] powerpc/85xx: Add support for Emerson/Artesyn MVME2500.

2014-12-02 Thread Alessio Igor Bogani
Hi Scott, On 2 December 2014 at 06:03, Scott Wood wrote: [...] > I was referring to the final ranges entry: > >> + 0x5 0x0 0x0 0xffdf 0x1000>; > > The localbus ranges should reflect what was programmed into BRn/ORn. > The smallest size that can be programmed into O

RE: [PATCH] Documentation: bindings: net: DPAA corenet binding document

2014-12-02 Thread Madalin-Cristian Bucur
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, December 02, 2014 6:40 AM > On Fri, 2014-11-28 at 12:10 +0200, Madalin Bucur wrote: > > Add the device tree binding document for the DPAA corenet node > > and DPAA Ethernet nodes. > > > > Signed-off-by: Madalin Bucur > > --- >

Re: Disabled LocalPlus Controller (LPC) clock on MPC512x

2014-12-02 Thread Matteo Facchinetti
On 26/11/2014 12:49, Alexander Popov wrote: Hello. Hi. My Freescale TWR-MPC5125 board instantly reboots if I touch any physical address on the LocalPlus Bus (LPB) for the first time when Linux has already booted. This effect is reproduced by using /dev/mem or loading a kernel module which wo

Re: [PATCH 02/10] mm: Add p[te|md] protnone helpers for use by NUMA balancing

2014-12-02 Thread Mel Gorman
On Tue, Dec 02, 2014 at 09:38:39AM +1100, Benjamin Herrenschmidt wrote: > On Fri, 2014-11-21 at 13:57 +, Mel Gorman wrote: > > > #ifdef CONFIG_NUMA_BALANCING > > +/* > > + * These work without NUMA balancing but the kernel does not care. See the > > + * comment in include/asm-generic/pgtable.

Re: powerpc/book3s: Fix flush_tlb cpu_spec hook to take a generic argument.

2014-12-02 Thread Mahesh Jagannath Salgaonkar
On 11/29/2014 04:08 AM, Michael Ellerman wrote: > On Tue, 2014-23-09 at 03:53:54 UTC, Mahesh Salgaonkar wrote: >> From: Mahesh Salgaonkar >> >> The flush_tlb hook in cpu_spec was introduced as a generic function hook >> to invalidate TLBs. But the current implementation of flush_tlb hook >> takes

[PATCH V6 1/9] elf: Add new powerpc specifc core note sections

2014-12-02 Thread Anshuman Khandual
This patch adds four new ELF core note sections for powerpc transactional memory and one new ELF core note section for powerpc general miscellaneous debug registers. These addition of new ELF core note sections extends the existing ELF ABI without affecting it in any manner. Acked-by: Andrew Morto

[PATCH V6 9/9] selftests: Make GIT ignore all binaries in powerpc test suite

2014-12-02 Thread Anshuman Khandual
This patch includes all of the powerpc test binaries into the .gitignore file listing in their respective directories. This will make sure that GIT ignores all of these test binaries while displaying status. Signed-off-by: Anshuman Khandual --- .../testing/selftests/powerpc/copyloops/.gitignore

Re: [PATCH V3] powerpc, powernv: Add OPAL platform event driver

2014-12-02 Thread Anshuman Khandual
On 11/25/2014 06:51 PM, Anshuman Khandual wrote: > This patch creates a new OPAL platform event character driver > which will give userspace clients the access to these events > and process them effectively. Following platforms events are > currently supported with this platform driver. > >

[PATCH V6 8/9] selftests, powerpc: Make GIT ignore all binaries related to TM

2014-12-02 Thread Anshuman Khandual
This patch includes all the TM test binaries into the .gitignore file listing in the same directory. This will make sure that GIT ignores all of them while displaying status. Signed-off-by: Anshuman Khandual --- tools/testing/selftests/powerpc/tm/.gitignore | 2 ++ 1 file changed, 2 insertions(+

[PATCH V6 7/9] selftests, powerpc: Add test case for TM related ptrace interface

2014-12-02 Thread Anshuman Khandual
This patch adds one more test case called 'tm-ptrace' targeting TM related ptrace interface. This test creates one child process to run some basic TM transactions and the parent process attaches the child to do some ptrace probing using the recently added regset interfaces. The parent process then

[PATCH V6 6/9] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-12-02 Thread Anshuman Khandual
This patch enables get and set of miscellaneous debug registers through ptrace PTRACE_GETREGSET-PTRACE_SETREGSET interface by implementing new powerpc specific register set REGSET_MISC support corresponding to the new ELF core note NT_PPC_MISC added previously in this regard. Signed-off-by: Anshum

[PATCH V6 5/9] powerpc, ptrace: Enable support for transactional memory register sets

2014-12-02 Thread Anshuman Khandual
This patch enables get and set of transactional memory related register sets through PTRACE_GETREGSET-PTRACE_SETREGSET interface by implementing four new powerpc specific register sets i.e REGSET_TM_SPR, REGSET_TM_CGPR, REGSET_TM_CFPR, REGSET_CVMX support corresponding to these following new ELF co

[PATCH V6 4/9] powerpc, ptrace: Enable vr_(get/set) for transactional memory

2014-12-02 Thread Anshuman Khandual
This patch enables the vr_get which gets the running value of all the VMX registers and the vr_set which sets the running value of of all the VMX registers to accommodate in transaction ptrace interface based requests. Signed-off-by: Anshuman Khandual --- arch/powerpc/kernel/ptrace.c | 104 +