[RESEND PATCH v7 3/3] clocksource: Add clockevent support to NPS400 driver

2016-11-15 Thread Noam Camus
From: Noam Camus Till now we used clockevent from generic ARC driver. This was enough as long as we worked with simple multicore SoC. When we are working with multithread SoC each HW thread can be scheduled to receive timer interrupt using timer mask register. This patch will provide a way to con

[RESEND PATCH v7 2/3] clocksource: update "fn" at CLOCKSOURCE_OF_DECLARE() of nps400 timer

2016-11-15 Thread Noam Camus
From: Noam Camus nps_setup_clocksource() should take node as only argument as defined by typedef int (*of_init_fn_1_ret)(struct device_node *) Therefore need to replace: int __init nps_setup_clocksource(struct device_node *node, struct clk *clk) with int __init nps_setup_clocksource(struct devic

[RESEND PATCH v7 0/3] Add clockevent for timer-nps driver to NPS400 SoC

2016-11-15 Thread Noam Camus
From: Noam Camus Change log --- V6 --> V7 Apply several comments made by Daniel Lezcano: 1) Remove CLOCK_EVT_FEAT_PERIODIC support. This way it is pure oneshot driver. This simplifies driver so that: nps_clkevent_add_thread() nps_clkevent_rm_thread() are more clearer without any vague logic i

[RESEND PATCH v7 1/3] soc: Support for NPS HW scheduling

2016-11-15 Thread Noam Camus
From: Noam Camus This new header file is for NPS400 SoC (part of ARC architecture). The header file includes macros for save/restore of HW scheduling. The control of HW scheduling is achieved by writing core registers. This code was moved from arc/plat-eznps so it can be used from drivers/clockso

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-15 Thread Daniel Lezcano
On Tue, Nov 15, 2016 at 06:05:32PM +, Noam Camus wrote: > >From: Daniel Lezcano > > >Sent: Tuesday, November 15, 2016 7:49 PM > > > I believe the request was for you. > Indeed it was. > > However no formal Ack was made by you. Since I got no tree I preferred that > you will take the series

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-15 Thread Daniel Lezcano
On Tue, Nov 15, 2016 at 05:42:22PM +, Noam Camus wrote: > > Sent: Tuesday, November 15, 2016 7:27 PM > > > To: Daniel Lezcano > > >> > >> Do you mind to pick Noam's series in your tree also ? I acked the patches. > > >Sure I can. Although for some reasons I was never CC'ed (nor was > >linus

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-15 Thread Vineet Gupta
On 11/15/2016 09:23 AM, Daniel Lezcano wrote: > On Tue, Nov 15, 2016 at 09:16:44AM -0800, Vineet Gupta wrote: >> On 11/15/2016 02:30 AM, Daniel Lezcano wrote: Thx Daniel. So I suppose for 4.10, I will get these merged, > including the > driver/clocksource bits. OK ? >>> Hi

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-15 Thread Daniel Lezcano
On Tue, Nov 15, 2016 at 09:16:44AM -0800, Vineet Gupta wrote: > On 11/15/2016 02:30 AM, Daniel Lezcano wrote: > >> Thx Daniel. So I suppose for 4.10, I will get these merged, > >> > including the > >> > driver/clocksource bits. OK ? > > Hi Vineet, > > > > I just want to clarify. Do you

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-15 Thread Vineet Gupta
On 11/15/2016 02:30 AM, Daniel Lezcano wrote: >> Thx Daniel. So I suppose for 4.10, I will get these merged, >> > including the >> > driver/clocksource bits. OK ? > Hi Vineet, > > I just want to clarify. Do you want the entire series to go through my > tree ? Or through your tree ? I'

Re: [PATCH v2] arc: Implement arch-specific dma_map_ops.mmap

2016-11-15 Thread Ramiro Oliveira
On 11/3/2016 3:06 PM, Alexey Brodkin wrote: > We used to use generic implementation of dma_map_ops.mmap which is > dma_common_mmap() but that only worked for simpler cached mappings when > vaddr = paddr. > > If a driver requests uncached DMA buffer kernel maps it to virtual > address so that MMU g

Re: [PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-15 Thread Daniel Lezcano
On 12/11/2016 11:19, Daniel Lezcano wrote: > Yes. > > > Le 12 nov. 2016 1:53 AM, "Vineet Gupta" > a écrit : > > On 11/11/2016 03:11 PM, Daniel Lezcano wrote: > > On Fri, Nov 11, 2016 at 01:38:52PM -0800, Vineet Gupta wrote: > >> This adds support f