Re: Elbc device driver

2013-10-22 Thread Mercier Ivan
Ok Scott, now it works! We had severals hardware problem. Thanks for your help 2013/10/11 Scott Wood : > On Fri, 2013-10-11 at 17:03 +0200, Mercier Ivan wrote: >> Hi, >> this should be correct (I'm using chip select 3 for this device) >> lbc: localbus@ffe124000 { >> reg = <

Re: [PATCHv1 8/8] Documentation: Add device tree bindings for Freescale VF610 sound.

2013-10-22 Thread Mark Brown
On Mon, Oct 21, 2013 at 07:24:56AM +, Xiubo Li-B47053 wrote: > Yes, the "-- SGTL5000 pins:" should be in the CODEC binding. > But, actually the CODEC binding hasn't any reference about this. > So I added it here, but not very sure. Please add them to the CODEC binding instead. signature.as

[RFC PATCH 0/9] powerpc: mm: Numa faults support for ppc64

2013-10-22 Thread Aneesh Kumar K.V
Hi, This patch series add support for numa faults on ppc64 architecture. We steal the _PAGE_COHERENCE bit and use that for indicating _PAGE_NUMA. We clear the _PAGE_PRESENT bit and also invalidate the hpte entry on setting _PAGE_NUMA. The next fault on that page will be considered a numa fault.

[RFC PATCH 4/9] powerpc: mm: Only check for _PAGE_PRESENT in set_pte/pmd functions

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We want to make sure we don't use these function when updating a pte or pmd entry that have a valid hpte entry, because these functions don't invalidate them. So limit the check to _PAGE_PRESENT bit. Numafault core changes use these functions for updating _PAGE_NUMA bits.

[RFC PATCH 1/9] powerpc: Use HPTE constants when updating hpte bits

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Even though we have same value for linux PTE bits and hash PTE pits use the hash pte bits wen updating hash pte Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/platforms/cell/beat_htab.c | 4 ++-- arch/powerpc/platforms/pseries/lpar.c | 3 ++- 2 files changed, 4 ins

[RFC PATCH 3/9] mm: Move change_prot_numa outside CONFIG_ARCH_USES_NUMA_PROT_NONE

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" change_prot_numa should work even if _PAGE_NUMA != _PAGE_PROTNONE. On archs like ppc64 that don't use _PAGE_PROTNONE and also have a separate page table outside linux pagetable, we just need to make sure that when calling change_prot_numa we flush the hardware page table

[RFC PATCH 8/9] powerpc: mm: Support setting _PAGE_NUMA bit on pmd entry which are pointer to PTE page

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable-ppc64.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/pgtable-ppc64.h b/arch/powerpc/include/asm/pgtable-ppc64.h index 46db094..f8289

[RFC PATCH 9/9] powerpc: mm: Enable numa faulting for hugepages

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Provide numa related functions for updating pmd entries. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgta

[RFC PATCH 7/9] mm: numafaults: Use change_pmd_protnuma for updating _PAGE_NUMA for regular pmds

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Archs like ppc64 have different layout for pmd entries pointing to PTE page. Hence add a separate function for modifying them Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/pgtable.h | 17 + include/asm-generic/pgtable.h | 20

[RFC PATCH 6/9] powerpc: mm: book3s: Disable hugepaged pmd format for book3s

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" After commit e2b3d202d1dba8f3546ed28224ce485bc50010be we have the below possible formats for pmd entry (1) invalid (all zeroes) (2) pointer to next table, as normal; bottom 6 bits == 0 (3) leaf pte for huge page, bottom two bits != 00 (4) hugepd pointer, bottom two bits

[RFC PATCH 5/9] powerpc: mm: book3s: Enable _PAGE_NUMA for book3s

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We steal the _PAGE_COHERENCE bit and use that for indicating NUMA ptes. This patch still disables the numa hinting using pmd entries. That require further changes to pmd entry format which is done in later patches. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/inclu

Re: [PATCH 1/3] sched: Fix nohz_kick_needed to consider the nr_busy of the parent domain's group

2013-10-22 Thread Kamalesh Babulal
* Vaidyanathan Srinivasan [2013-10-21 17:14:42]: > for_each_domain(cpu, sd) { > - struct sched_group *sg = sd->groups; > - struct sched_group_power *sgp = sg->sgp; > - int nr_busy = atomic_read(&sgp->nr_busy_cpus); > - > - if (sd->flags & SD_S

Re: [PATCH 1/3] powerpc: sync ppc64, ppc64e and pseries configs

2013-10-22 Thread Nathan Fontenot
On 10/21/2013 07:44 PM, Anton Blanchard wrote: > > Run savedefconfig over the ppc64, ppc64e and pseries config > > Signed-off-by: Anton Blanchard > --- > > Index: b/arch/powerpc/configs/ppc64_defconfig > === > --- a/arch/powerpc/co

Re: [PATCH 1/3] sched: Fix nohz_kick_needed to consider the nr_busy of the parent domain's group

2013-10-22 Thread Preeti U Murthy
Hi Kamalesh, On 10/22/2013 08:05 PM, Kamalesh Babulal wrote: > * Vaidyanathan Srinivasan [2013-10-21 17:14:42]: > >> for_each_domain(cpu, sd) { >> -struct sched_group *sg = sd->groups; >> -struct sched_group_power *sgp = sg->sgp; >> -int nr_busy = atomic_

[RFC PATCH 2/9] powerpc: Free up _PAGE_COHERENCE for numa fault use later

2013-10-22 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Set memory coherence always on hash64 config. If a platform cannot have memory coherence always set they can infer that from _PAGE_NO_CACHE and _PAGE_WRITETHRU like in lpar. So we dont' really need a separate bit for tracking _PAGE_COHERENCE. Signed-off-by: Aneesh Kumar

Re: [PATCH 1/3] sched: Fix nohz_kick_needed to consider the nr_busy of the parent domain's group

2013-10-22 Thread Peter Zijlstra
On Mon, Oct 21, 2013 at 05:14:42PM +0530, Vaidyanathan Srinivasan wrote: > kernel/sched/fair.c | 19 +-- > 1 file changed, 13 insertions(+), 6 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 7c70201..12f0eab 100644 > --- a/kernel/sched/fair.c > ++

Re: [PATCH 2/3] sched: Fix asymmetric scheduling for POWER7

2013-10-22 Thread Peter Zijlstra
On Mon, Oct 21, 2013 at 05:14:52PM +0530, Vaidyanathan Srinivasan wrote: > kernel/sched/fair.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 12f0eab..828ed97 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched

Re: [PATCH 3/3] sched: Aggressive balance in domains whose groups share package resources

2013-10-22 Thread Peter Zijlstra
On Mon, Oct 21, 2013 at 05:15:02PM +0530, Vaidyanathan Srinivasan wrote: > kernel/sched/fair.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index 828ed97..bbcd96b 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/

perf events ring buffer memory barrier on powerpc

2013-10-22 Thread Michael Neuling
Frederic, In the perf ring buffer code we have this in perf_output_get_handle(): if (!local_dec_and_test(&rb->nest)) goto out; /* * Publish the known good head. Rely on the full barrier implied * by atomic_dec_and_test() order the rb->head read a

Re: [PATCH 1/3] sched: Fix nohz_kick_needed to consider the nr_busy of the parent domain's group

2013-10-22 Thread Preeti U Murthy
Hi Peter, On 10/23/2013 03:41 AM, Peter Zijlstra wrote: > On Mon, Oct 21, 2013 at 05:14:42PM +0530, Vaidyanathan Srinivasan wrote: >> kernel/sched/fair.c | 19 +-- >> 1 file changed, 13 insertions(+), 6 deletions(-) >> >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >>

Re: [PATCH 1/3] sched: Fix nohz_kick_needed to consider the nr_busy of the parent domain's group

2013-10-22 Thread Preeti U Murthy
On 10/23/2013 09:30 AM, Preeti U Murthy wrote: > Hi Peter, > > On 10/23/2013 03:41 AM, Peter Zijlstra wrote: >> On Mon, Oct 21, 2013 at 05:14:42PM +0530, Vaidyanathan Srinivasan wrote: >>> kernel/sched/fair.c | 19 +-- >>> 1 file changed, 13 insertions(+), 6 deletions(-) >>> >>>

Re: [PATCH] [RFC] Emulate "lwsync" to run standard user land on e500 cores

2013-10-22 Thread Kumar Gala
On Oct 18, 2013, at 2:38 AM, Wolfgang Denk wrote: > Default Debian PowerPC doesn't work on e500 because the code contains > "lwsync" instructions, which are unsupported on this core. As a > result, applications using this will crash with an "unhandled signal 4" > "Illegal instruction" error. >

Re: Missing _restvr_20 and _savevr_20 subroutines for lib/raid6/altivec8.o

2013-10-22 Thread Kumar Gala
On Oct 19, 2013, at 5:24 PM, Ben Hutchings wrote: > When building lib/raid6/altivec8.o with gcc 4.8 on Debian, the compiler > is generating references to two new runtime subroutines which are > apparently not included in the kernel: > > ERROR: "_restvr_20" [lib/raid6/raid6_pq.ko] undefined! > ER