Re: [PATCH v3 0/2] Add platform support for Adaptrum Anarion SOC

2017-08-25 Thread Vineet Gupta
On 08/16/2017 03:15 PM, Alexandru Gagniuc wrote: Changes since v2: * Changed compatible binding of uart[1-3] to "ns16550" (they are not DW UARTs) * Add support under plat-nsim instead of creating a new stub platform * Changed board model to "adaptrum,endor-fpga" to allow LEDE scripts to ID

Re: [PATCH v3 03/11] ARC: Allow irq threading

2017-08-25 Thread Thomas Gleixner
On Fri, 25 Aug 2017, Thomas Gleixner wrote: > On Fri, 25 Aug 2017, Vineet Gupta wrote: > > On 06/15/2017 01:43 AM, Noam Camus wrote: > > > From: Noam Camus > > > > > > Working with NPS400 we noticed that there is a possibility of L1 > > > interrupt nesting that may run out kernel stack. > > > Th

Re: [PATCH v3 03/11] ARC: Allow irq threading

2017-08-25 Thread Thomas Gleixner
On Fri, 25 Aug 2017, Vineet Gupta wrote: > On 06/15/2017 01:43 AM, Noam Camus wrote: > > From: Noam Camus > > > > Working with NPS400 we noticed that there is a possibility of L1 > > interrupt nesting that may run out kernel stack. > > The scenario include serving invoke_softirqs() from irq_exit(

Re: [PATCH v3 03/11] ARC: Allow irq threading

2017-08-25 Thread Vineet Gupta
+CC Peter, Tglx, Steven On 06/15/2017 01:43 AM, Noam Camus wrote: From: Noam Camus Working with NPS400 we noticed that there is a possibility of L1 interrupt nesting that may run out kernel stack. The scenario include serving invoke_softirqs() from irq_exit() and once local_irq_enable() called

Re: [PATCH v2 1/1] futex: remove duplicated code and fix UB

2017-08-25 Thread Thomas Gleixner
On Thu, 24 Aug 2017, Will Deacon wrote: > On Thu, Aug 24, 2017 at 09:31:05AM +0200, Jiri Slaby wrote: > > +static int futex_atomic_op_inuser(unsigned int encoded_op, u32 __user > > *uaddr) > > +{ > > + unsigned int op = (encoded_op & 0x7000) >> 28; > > + unsigned int cmp =(

Re: [PATCHi v2] arc: Mask individual IRQ lines during core INTC init

2017-08-25 Thread Vineet Gupta
On 08/25/2017 07:22 AM, Alexey Brodkin wrote: From: Alexey Brodkin ARC cores on reset have all interrupt lines of built-in INTC enabled. Which means once we globally enable interrupts (very early on boot) faulty hardware blocks may trigger an interrupt that Linux kernel cannot handle yet as cor

[PATCH] arc: arcv2: Mask only private-per-core IRQ lines on boot

2017-08-25 Thread Alexey Brodkin
This fixes a8ec3ee861b6 "arc: Mask individual IRQ lines during core INTC init". Above commit breaks interrupt handling on ARCv2 SMP systems because slave cores are left with common interrupts (those coming form IDU) disabled. And given by default IDU distributes incoming IRQs to all cores following

Re: [PATCH v4] ARC: clk: introduce HSDK pll driver

2017-08-25 Thread Vineet Gupta
On 08/25/2017 10:39 AM, Eugeniy Paltsev wrote: HSDK board manages its clocks using various PLLs. These PLL have same dividers and corresponding control registers mapped to different addresses. So we add one common driver for such PLLs. Each PLL on HSDK board consists of three dividers: IDIV, FBD

Re: [PATCH v2] OF: move extern declarations of of_stdout inside ifdef

2017-08-25 Thread Rob Herring
On Fri, Aug 25, 2017 at 11:56 AM, Eugeniy Paltsev wrote: > Move extern declarations of "of_stdout" pointer inside "CONFIG_OF" > ifdef to be able to get rid of "CONFIG_OF" ifdef in its usage places. > > Suggested-by: Steven Rostedt > > Signed-off-by: Eugeniy Paltsev > --- > For example see: https

Re: [PATCH] console: don't select first registered console if stdout-path used

2017-08-25 Thread Sergey Senozhatsky
On (08/25/17 16:14), Eugeniy Paltsev wrote: > In the current implementation we take the first console that > registers if we didn't select one. > > But if we specify console via "stdout-path" property in device tree > we don't want first console that registers here to be selected. > Otherwise we m

[PATCH v4] ARC: clk: introduce HSDK pll driver

2017-08-25 Thread Eugeniy Paltsev
HSDK board manages its clocks using various PLLs. These PLL have same dividers and corresponding control registers mapped to different addresses. So we add one common driver for such PLLs. Each PLL on HSDK board consists of three dividers: IDIV, FBDIV and ODIV. Output clock value is managed using

Re: [PATCHi v2] arc: Mask individual IRQ lines during core INTC init

2017-08-25 Thread Alexey Brodkin
Hi Vineet, On Fri, 2017-08-25 at 10:13 -0700, Vineet Gupta wrote: > On 08/25/2017 07:22 AM, Alexey Brodkin wrote: > > > > From: Alexey Brodkin > > > > ARC cores on reset have all interrupt lines of built-in INTC enabled. > > Which means once we globally enable interrupts (very early on boot) >

Re: [PATCHi v2] arc: Mask individual IRQ lines during core INTC init

2017-08-25 Thread Vineet Gupta
On 08/25/2017 07:22 AM, Alexey Brodkin wrote: From: Alexey Brodkin ARC cores on reset have all interrupt lines of built-in INTC enabled. Which means once we globally enable interrupts (very early on boot) faulty hardware blocks may trigger an interrupt that Linux kernel cannot handle yet as cor

[PATCH v2] OF: move extern declarations of of_stdout inside ifdef

2017-08-25 Thread Eugeniy Paltsev
Move extern declarations of "of_stdout" pointer inside "CONFIG_OF" ifdef to be able to get rid of "CONFIG_OF" ifdef in its usage places. Suggested-by: Steven Rostedt Signed-off-by: Eugeniy Paltsev --- For example see: https://lkml.org/lkml/2017/8/25/337 Changes v1->v2: * Move only "of_stdout"

Re: [PATCH 1/3 v8] ARC: Set IO-coherency aperture base to LINUX_LINK_BASE

2017-08-25 Thread Eugeniy Paltsev
On Tue, 2017-08-22 at 14:44 -0700, Vineet Gupta wrote: > On 07/12/2017 02:40 AM, Eugeniy Paltsev wrote: > > Most of the time we indeed use the one and only LINUX_LINK_BASE > > set to 0x8000_. But there might be good reasons to move > > the kernel to another location like 0x9z etc. > > And we wa

Re: [PATCH] OF: move extern declarations of entry pointers inside ifdef

2017-08-25 Thread Rob Herring
On Fri, Aug 25, 2017 at 10:00 AM, Eugeniy Paltsev wrote: > Move extern declarations of "of_root", "of_chosen", "of_aliases", > "of_stdout" pointers inside "CONFIG_OF" ifdef to be able to get rid > of "CONFIG_OF" ifdef in their usage places. > > Suggested-by: Steven Rostedt > > Signed-off-by: Euge

Re: [PATCH] OF: move extern declarations of entry pointers inside ifdef

2017-08-25 Thread Steven Rostedt
On Fri, 25 Aug 2017 15:20:12 + Eugeniy Paltsev wrote: > On Fri, 2017-08-25 at 11:12 -0400, Steven Rostedt wrote: > > On Fri, 25 Aug 2017 18:00:26 +0300 > > Eugeniy Paltsev wrote: > > > > > Move extern declarations of "of_root", "of_chosen", "of_aliases", > > > "of_stdout" pointers inside

Re: [PATCH] OF: move extern declarations of entry pointers inside ifdef

2017-08-25 Thread Eugeniy Paltsev
On Fri, 2017-08-25 at 11:12 -0400, Steven Rostedt wrote: > On Fri, 25 Aug 2017 18:00:26 +0300 > Eugeniy Paltsev wrote: > > > Move extern declarations of "of_root", "of_chosen", "of_aliases", > > "of_stdout" pointers inside "CONFIG_OF" ifdef to be able to get rid > > of "CONFIG_OF" ifdef in their

Re: [PATCH] OF: move extern declarations of entry pointers inside ifdef

2017-08-25 Thread Steven Rostedt
On Fri, 25 Aug 2017 18:00:26 +0300 Eugeniy Paltsev wrote: > Move extern declarations of "of_root", "of_chosen", "of_aliases", > "of_stdout" pointers inside "CONFIG_OF" ifdef to be able to get rid > of "CONFIG_OF" ifdef in their usage places. > > Suggested-by: Steven Rostedt Thanks! -- Steve

[PATCH] OF: move extern declarations of entry pointers inside ifdef

2017-08-25 Thread Eugeniy Paltsev
Move extern declarations of "of_root", "of_chosen", "of_aliases", "of_stdout" pointers inside "CONFIG_OF" ifdef to be able to get rid of "CONFIG_OF" ifdef in their usage places. Suggested-by: Steven Rostedt Signed-off-by: Eugeniy Paltsev --- For example see: https://lkml.org/lkml/2017/8/25/337

[PATCHi v2] arc: Mask individual IRQ lines during core INTC init

2017-08-25 Thread Alexey Brodkin
From: Alexey Brodkin ARC cores on reset have all interrupt lines of built-in INTC enabled. Which means once we globally enable interrupts (very early on boot) faulty hardware blocks may trigger an interrupt that Linux kernel cannot handle yet as corresponding handler is not yet installed. In tha

Re: [PATCH] console: don't select first registered console if stdout-path used

2017-08-25 Thread Steven Rostedt
On Fri, 25 Aug 2017 16:14:51 +0300 Eugeniy Paltsev wrote: > In the current implementation we take the first console that > registers if we didn't select one. > > But if we specify console via "stdout-path" property in device tree > we don't want first console that registers here to be selected.

[PATCH] console: don't select first registered console if stdout-path used

2017-08-25 Thread Eugeniy Paltsev
In the current implementation we take the first console that registers if we didn't select one. But if we specify console via "stdout-path" property in device tree we don't want first console that registers here to be selected. Otherwise we may choose wrong console - for example if some console is