Re: [PATCH v4 2/3] clocksource: Add NPS400 timers driver

2016-02-11 Thread Daniel Lezcano
On 02/11/2016 04:02 AM, Noam Camus wrote: From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano C

[PATCH 1/2] mm, thp: refactor generic deposit/withdraw routines for wider usage

2016-02-11 Thread Vineet Gupta
Generic pgtable_trans_huge_deposit()/pgtable_trans_huge_withdraw() assume pgtable_t to be struct page * which is not true for all arches. Thus arc, s390, sparch end up with their own copies despite no special hardware requirements (unlike powerpc). It seems massaging the code a bit can make it reu

[PATCH 0/2] Enable s390/arc/sparc to use generic thp deposit/withdraw

2016-02-11 Thread Vineet Gupta
Hi, This came out my debugging THP on ARC. The generic deposit/withdraw routines can be easily adapted to work with pgtable_t != struct page *. Build/Run tested on ARC only. Thx, -Vineet Vineet Gupta (2): mm,thp: refactor generic deposit/withdraw routines for wider usage ARC: mm: THP: use g

[PATCH 2/2] ARC: mm: THP: use generic THP deposit/withdraw

2016-02-11 Thread Vineet Gupta
Generic code can now cope with pgtable_t != struct page * Signed-off-by: Vineet Gupta --- arch/arc/include/asm/hugepage.h | 8 arch/arc/mm/tlb.c | 37 - 2 files changed, 45 deletions(-) diff --git a/arch/arc/include/asm/hugepage.h b/ar

Re: [PATCH 1/2] mm,thp: refactor generic deposit/withdraw routines for wider usage

2016-02-11 Thread Martin Schwidefsky
On Thu, 11 Feb 2016 14:58:26 +0530 Vineet Gupta wrote: > Generic pgtable_trans_huge_deposit()/pgtable_trans_huge_withdraw() > assume pgtable_t to be struct page * which is not true for all arches. > Thus arc, s390, sparch end up with their own copies despite no special > hardware requirements (un

Re: [PATCH 1/2] mm,thp: refactor generic deposit/withdraw routines for wider usage

2016-02-11 Thread Vineet Gupta
On Thursday 11 February 2016 03:52 PM, Martin Schwidefsky wrote: > On Thu, 11 Feb 2016 14:58:26 +0530 > Vineet Gupta wrote: > >> Generic pgtable_trans_huge_deposit()/pgtable_trans_huge_withdraw() >> assume pgtable_t to be struct page * which is not true for all arches. >> Thus arc, s390, sparch e

Re: [PATCH 1/2] mm,thp: refactor generic deposit/withdraw routines for wider usage

2016-02-11 Thread Martin Schwidefsky
On Thu, 11 Feb 2016 16:23:33 +0530 Vineet Gupta wrote: > On Thursday 11 February 2016 03:52 PM, Martin Schwidefsky wrote: > > On Thu, 11 Feb 2016 14:58:26 +0530 > > Vineet Gupta wrote: > > > >> Generic pgtable_trans_huge_deposit()/pgtable_trans_huge_withdraw() > >> assume pgtable_t to be struct

Re: [PATCH 1/2] mm,thp: refactor generic deposit/withdraw routines for wider usage

2016-02-11 Thread Vineet Gupta
On Thursday 11 February 2016 04:50 PM, Martin Schwidefsky wrote: > On Thu, 11 Feb 2016 16:23:33 +0530 > Vineet Gupta wrote: > >> On Thursday 11 February 2016 03:52 PM, Martin Schwidefsky wrote: >>> On Thu, 11 Feb 2016 14:58:26 +0530 >>> Vineet Gupta wrote: >>> Generic pgtable_trans_huge_dep

[PATCH v5 0/3] Adding NPS400 drivers

2016-02-11 Thread Noam Camus
From: Noam Camus Change Log-- v5: Clocksource, irqchip - Fix gracefull return. replace call to panic() with pr_err() and proper return value. v4: clocksource -- Apply all Daniel comments (Thanks) Handle gracefull return and also us

[PATCH v5 1/3] soc: Support for EZchip SoC

2016-02-11 Thread Noam Camus
From: Noam Camus This header file is for NPS400 SoC. It includes macros for accessing memory mapped registers. These are functional registers that core can use to configure SoC. Signed-off-by: Noam Camus --- include/soc/nps/common.h | 150 ++ 1 file

[PATCH v5 2/3] clocksource: Add NPS400 timers driver

2016-02-11 Thread Noam Camus
From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano Cc: Rob Herring Cc: Thomas Gleixner Cc: Joh

[PATCH v5 3/3] irqchip: add nps Internal and external irqchips

2016-02-11 Thread Noam Camus
From: Noam Camus Adding EZchip NPS400 support. NPS internal interrupts are internally handled at Multi Thread Manager (MTM) that is signaled for deactivating an interrupt. External interrupts is handled also at Global Interrupt Controller (GIC) e.g. serial and network devices. Signed-off-by: Noa

Re: [PATCH v5 2/3] clocksource: Add NPS400 timers driver

2016-02-11 Thread Daniel Lezcano
On 02/11/2016 07:40 PM, Noam Camus wrote: From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano C