[PATCH 1/6] powerpc/perf: factor out power8 pmu macros and defines

2016-06-26 Thread Madhavan Srinivasan
Factor out some of the power8 pmu macros to new a header file to share with power9 pmu code. Just code movement and no logic change. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/isa207-common.h | 230 ++ arch/powerpc/perf/power8-pmu.c| 221 +---

[PATCH 2/6] powerpc/perf: factor out power8 pmu functions

2016-06-26 Thread Madhavan Srinivasan
Factor out some of the power8 pmu functions to new file "isa207-common.c" to share with power9 pmu code. Only code movement and no logic change Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/Makefile| 2 +- arch/powerpc/perf/isa207-common.c | 263 +

[PATCH 3/6] powerpc/perf: factor out power8 __init_pmu code

2016-06-26 Thread Madhavan Srinivasan
Factor out the power8 pmu init functions to share with power9. Monitor Mode Control Register S(MMCRS) and Monitor Mode Control Register H(MMCRH) registers are dropped in Power9. These registers are added to new function which are included for power8 init. Signed-off-by: Madhavan Srinivasan --- a

[PATCH 4/6] powerpc/perf: Add power9 event list macros for generic and cache events

2016-06-26 Thread Madhavan Srinivasan
Add macros for the generic and cache events on Power9 Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/power9-events-list.h | 55 ++ 1 file changed, 55 insertions(+) create mode 100644 arch/powerpc/perf/power9-events-list.h diff --git a/arch/powerpc/perf

[PATCH 5/6] powerpc/perf: Power9 PMU support

2016-06-26 Thread Madhavan Srinivasan
This patch adds base enablement for the power9 PMU. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/Makefile | 2 +- arch/powerpc/perf/power9-pmu.c | 271 + 2 files changed, 272 insertions(+), 1 deletion(-) create mode 100644 arch/powerpc/p

[PATCH 6/6] powerpc/perf: Export Power9 generic and cache events to sysfs

2016-06-26 Thread Madhavan Srinivasan
Export the generic hardware and cache perf events for Power9 to sysfs, so users can determine the PMU event monitored. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/power9-pmu.c | 59 ++ 1 file changed, 59 insertions(+) diff --git a/arch/powerp

Proposed: Patch to fix boot on PA6T

2016-06-26 Thread Darren Stevens
Hello All, commit d6a9996e84ac4beb7713e9485f4563e100a9b03e powerpc/mm: vmalloc abstraction in preparation for radix This commit introduced variables for some linux kernel addresses that had before been constants, unfortunately this stopped PaSemi PA6T systems(*) from booting as

Re: Proposed: Patch to fix boot on PA6T

2016-06-26 Thread Christian Zigotzky
Hi Darren, Fantastic news! I'll test your patch with the RC5 tomorrow. Excellent work! Well done! - Christian Sent from my iPhone > On 26 Jun 2016, at 18:42, Darren Stevens wrote: > > Hello All, > >commit d6a9996e84ac4beb7713e9485f4563e100a9b03e >powerpc/mm: vmalloc abstraction in p

[PATCH v4 19/29] signal: Consolidate {TS,TLF}_RESTORE_SIGMASK code

2016-06-26 Thread Andy Lutomirski
In general, there's no need for the "restore sigmask" flag to live in ti->flags. alpha, ia64, microblaze, powerpc, sh, sparc (64-bit only), tile, and x86 use essentially identical alternative implementations, placing the flag in ti->status. Replace those optimized implementations with an equally

Re: Proposed: Patch to fix boot on PA6T

2016-06-26 Thread Benjamin Herrenschmidt
On Sun, 2016-06-26 at 18:42 +0100, Darren Stevens wrote: > >     commit d6a9996e84ac4beb7713e9485f4563e100a9b03e >     powerpc/mm: vmalloc abstraction in preparation for radix > >     This commit introduced variables for some linux kernel addresses that had > before been constants, unfortunately

linux-next: manual merge of the kvm-ppc-paulus tree with the powerpc tree

2016-06-26 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the kvm-ppc-paulus tree got a conflict in: arch/powerpc/kernel/traps.c between commit: 42f5b4cacd78 ("powerpc: Introduce asm-prototypes.h") from the powerpc tree and commit: fd7bacbca47a ("KVM: PPC: Book3S HV: Fix TB corruption in guest exit path on

[PATCH V5 2/2] cpufreq: Reuse new freq-table helpers

2016-06-26 Thread Viresh Kumar
This patch migrates few users of cpufreq tables to the new helpers that work on sorted freq-tables. Signed-off-by: Viresh Kumar --- drivers/cpufreq/acpi-cpufreq.c | 14 -- drivers/cpufreq/amd_freq_sensitivity.c | 4 ++-- drivers/cpufreq/cpufreq_ondemand.c | 6 ++ dr

Re: [PATCH v2] powerpc/boot: Add OPAL console to epapr wrappers

2016-06-26 Thread Stewart Smith
Oliver O'Halloran writes: > This patch adds an OPAL console backend to the powerpc boot wrapper so > that decompression failures inside the wrapper can be reported to the > user. This is important since it typically indicates data corruption in > the firmware and other nasty things. > > Currently

Re: [PATCH] cpufreq: powernv: Replacing pstate_id with frequency table index

2016-06-26 Thread Viresh Kumar
Hi Akshay, Did you try running checkpatch for this? On 24-06-16, 19:33, Akshay Adiga wrote: > diff --git a/drivers/cpufreq/powernv-cpufreq.c > b/drivers/cpufreq/powernv-cpufreq.c > index b29c5c2..f6ce6f0 100644 > --- a/drivers/cpufreq/powernv-cpufreq.c > +++ b/drivers/cpufreq/powernv-cpufreq.c >

Re: [PATCH v2] powerpc/boot: Add OPAL console to epapr wrappers

2016-06-26 Thread oliver
On Mon, Jun 27, 2016 at 2:38 PM, Stewart Smith wrote: > Oliver O'Halloran writes: > One thing to think of is if we really need anything printed except the > error message. Out of these three lines of output (for a corrupted > zImage.epapr), only the last line gives any real information. > > 53434