[PATCH] powerpc: thp: Use tlbiel wherever possible

2014-08-04 Thread Aneesh Kumar K.V
If we know that user address space has never executed on other cpus we could use tlbiel. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/machdep.h| 2 +- arch/powerpc/mm/hash_native_64.c | 4 ++-- arch/powerpc/mm/hugepage-hash64.c | 10 ++ arch/powerpc/mm/pgta

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

2014-08-04 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); \ ^ mm/nobootmem.c:

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

2014-08-04 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 --- Index: b/arch/powerpc/kernel/setup_64.c === --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/k

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

2014-08-04 Thread Anton Blanchard
Lots of places included bootmem.h even when not using bootmem. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/kernel/crash_dump.c === --- a/arch/powerpc/kernel/crash_dump.c +++ b/arch/powerpc/kernel/crash_dump.c @@ -12,7 +

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

2014-08-04 Thread Anton Blanchard
Now bootmem is gone from powerpc we can remove comments mentioning it. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/kernel/prom.c === --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -695,10 +695,7 @@

[PATCH 1/5] powerpc: Remove bootmem allocator

2014-08-04 Thread Anton Blanchard
At the moment we transition from the memblock alloctor to the bootmem allocator. Removing 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 --- Index: b/arch/powerpc/Kconfig

[PATCH 2/2] powerpc: Add ppc64 hard lockup detector support

2014-08-04 Thread Anton Blanchard
The hard lockup detector uses a PMU event as a periodic NMI to detect if we are stuck (where stuck means no timer interrupts have occurred). Ben's rework of the ppc64 soft disable code has made ppc64 PMU exceptions a partial NMI. They can get disabled if an external interrupt comes in, but otherwi

[PATCH 1/2] powerpc: Hard disable interrupts in xmon

2014-08-04 Thread Anton Blanchard
xmon only soft disables interrupts. This seems like a bad idea - we certainly don't want decrementer and PMU exceptions going off when we are debugging something inside xmon. This issue was uncovered when the hard lockup detector went off inside xmon. To ensure we wont get a spurious hard lockup w

[PATCH] powerpc: Remove powerpc specific cmd_line

2014-08-04 Thread Anton Blanchard
There is no need for yet another copy of the command line, just use boot_command_line like everyone else. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/include/asm/machdep.h === --- a/arch/powerpc/include/asm/machdep.h ++

Re: [PATCH 2/2] powerpc/nohash: Split __early_init_mmu() into boot and secondary

2014-08-04 Thread Benjamin Herrenschmidt
On Fri, 2014-08-01 at 22:07 -0500, Scott Wood wrote: > > -void __init early_init_mmu(void) > -{ > - __early_init_mmu(1); > -} > - > void early_init_mmu_secondary(void) > { > - __early_init_mmu(0); > + early_init_mmu_allcpus(); > } Small nit, it took me 30s too long to figure out

[PATCH] arch/powerpc/mm/numa.c: Fix break placement

2014-08-04 Thread Andrey Utkin
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=81631 Reported-by: David Binderman Signed-off-by: Andrey Utkin --- arch/powerpc/mm/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 3b181b2..d3e9a78 100644 --- a/

Re: spi, spi_fsl-spi.c not working?

2014-08-04 Thread Scott Wood
On Thu, 2014-07-17 at 11:11 +0200, Heiko Schocher wrote: > Hello all, > > I just tried a mpc83xx based board (similiar to the mpc8313erdb) > with linux v3.16-rc4 using the drivers/spi/spi-fsl-spi.c driver. > DT nodes for spi are the same as in arch/powerpc/boot/dts/mpc8313erdb.dts: > >

[PATCH] Simplify symbol check in prom_init_check.sh

2014-08-04 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- arch/powerpc/kernel/prom_init_check.sh | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/kernel/prom_init_check.sh b/arch/powerpc/kernel/prom_init_check.sh index fe8e54b..12640f7 100644 --- a/arch/powerpc/ke

[PATCH] Avoid bashisms

2014-08-04 Thread av1474
From 300a98f895dc7e2167cf379408322a9607907761 Mon Sep 17 00:00:00 2001 From: malc Date: Mon, 4 Aug 2014 23:28:05 +0400 Subject: [PATCH] Avoid bashisms --- arch/powerpc/kernel/prom_init_check.sh | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/

[PATCH 3.2 51/94] locking/mutex: Disable optimistic spinning on some architectures

2014-08-04 Thread Ben Hutchings
3.2.62-rc1 review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 4badad352a6bb202ec68afa7a574c0bb961e5ebc upstream. The optimistic spin code assumes regular stores and cmpxchg() play nice; this is found to not be true for at least: pari

Re: [PATCH] ASoC: fsl_sai: Set SYNC bit of TCR2 to Asynchronous Mode

2014-08-04 Thread Mark Brown
On Mon, Aug 04, 2014 at 03:07:25PM +0800, Nicolin Chen wrote: > From: Nicolin Chen > > There is one design rule according to SAI's reference manual: > If the transmitter bit clock and frame sync are to be used by both transmitter > and receiver, the transmitter must be configured for asynchronous

Re: [PATCH 0/2] ASoC: fsl_asrc: Fix two dereferenced variable before check

2014-08-04 Thread Mark Brown
On Mon, Aug 04, 2014 at 12:19:47PM +0800, Nicolin Chen wrote: > These two patches fixes two warning of dereferenced variable reported by > Dan Carpenter Applied both, thanks. signature.asc Description: Digital signature ___ Linuxppc-dev mailing list L

Re: scheduler crash on Power

2014-08-04 Thread Dietmar Eggemann
On 04/08/14 04:20, Michael Ellerman wrote: > On Fri, 2014-08-01 at 14:24 -0700, Sukadev Bhattiprolu wrote: >> Dietmar Eggemann [dietmar.eggem...@arm.com] wrote: >> | > ltcbrazos2-lp07 login: [ 181.915974] [ cut here >> ] >> | > [ 181.915991] WARNING: at ../kernel/sched/co

Re: [PATCH v13 4/8] powerpc: add pmd_[dirty|mkclean] for THP

2014-08-04 Thread Aneesh Kumar K.V
Minchan Kim writes: > MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent > overwrite of the contents since MADV_FREE syscall is called for > THP page. > > This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE > support. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras

Re: [PATCH] powerpc/cpufreq: Add pr_warn() on OPAL firmware failures

2014-08-04 Thread Gautham R Shenoy
On Sun, Aug 03, 2014 at 02:54:05PM +0530, Vaidyanathan Srinivasan wrote: > @@ -131,7 +136,12 @@ static unsigned int pstate_id_to_freq(int pstate_id) > int i; > > i = powernv_pstate_info.max - pstate_id; > - BUG_ON(i >= powernv_pstate_info.nr_pstates || i < 0); > + if (i >= powe

[PATCH] ASoC: fsl_sai: Set SYNC bit of TCR2 to Asynchronous Mode

2014-08-04 Thread Nicolin Chen
From: Nicolin Chen There is one design rule according to SAI's reference manual: If the transmitter bit clock and frame sync are to be used by both transmitter and receiver, the transmitter must be configured for asynchronous operation and the receiver for synchronous operation. And SYNC of TCR2