RE: Need for ARC_HAS_COH_CACHES

2017-02-01 Thread Noam Camus
It is OK. Please remove. Noam -Original Message- From: Vineet Gupta [mailto:vineet.gup...@synopsys.com] Sent: Wednesday, February 1, 2017 10:56 PM To: Noam Camus Cc: arcml Subject: Need for ARC_HAS_COH_CACHES Hi Noam, When we started off with NPS support, it seems dcache was not enab

[PATCH] clocksource: arc_timer: RTC: allow registration despite SMP

2017-02-01 Thread Vineet Gupta
So far we didn't allow CPU private 64-bit RTC timer to register in SMP as the individual counters may not be synchronized across cores. However there is a situation when we build SMP kernel but want to use the same image on UP as well as SMP hardware. Here we would certainly want to use RTC, but c

[PATCH 0/2] Delete deprecated parameters in Device Trees

2017-02-01 Thread Yuriy Kolerov
* Remove support of the second argument in IDU interrupts (it is deprecated and not used anymore). * Remove useless declaration of interrupts list in IDU intc because it is not used anymore and the kernel can obtain information about supported interrupts from build registers. * So

[PATCH 2/2] ARCv2: intc: Delete useless comments in Device Trees

2017-02-01 Thread Yuriy Kolerov
Signed-off-by: Yuriy Kolerov --- arch/arc/boot/dts/haps_hs_idu.dts | 1 - arch/arc/boot/dts/nsimosci_hs_idu.dts | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arc/boot/dts/haps_hs_idu.dts b/arch/arc/boot/dts/haps_hs_idu.dts index 0a857fa..215cddd 100644 --- a/arch/arc/boot/dts/hap

[PATCH 1/2] ARCv2: IDU-intc: Delete deprecated parameters in Device Trees

2017-02-01 Thread Yuriy Kolerov
No need for specifying a list of interrupts in the declaration of IDU interrupt controller anymore since the kernel can obtain a number of supported interrupts from the build register. Also delete support of the second parameter for devices which are connected to IDU because it is not used anywher

RE: [PATCH v2 0/4] Use build registers for getting numbers of interrupts

2017-02-01 Thread Yuriy Kolerov
Hi Vineet, I have checked reworked patches. I think it is fine. > -Original Message- > From: Vineet Gupta [mailto:vgu...@synopsys.com] > Sent: Wednesday, February 01, 2017 11:58 PM > To: Yuriy Kolerov ; linux-snps- > a...@lists.infradead.org > Cc: alexey.brod...@synopsys.com; linux-ker...

Re: [PATCH v2 0/4] Use build registers for getting numbers of interrupts

2017-02-01 Thread Vineet Gupta
On 01/31/2017 03:45 AM, Yuriy Kolerov wrote: > A summary: > > * Use build registers for getting numbers of interrupts both for > core interrupt controller and for IDU interrupt controller. > * Set a default priority for all core interrupt to prevent > unexpected switching of banks of r

Need for ARC_HAS_COH_CACHES

2017-02-01 Thread Vineet Gupta
Hi Noam, When we started off with NPS support, it seems dcache was not enabled. Thats why we introduced ARC_HAS_COH_CACHES etc. But it seems eznps selects this anyways. There is no other requirement for this toggle - are you OK if I remove it. -Vineet ___

RE: [PATCH 1/3] arc: vdk: Disable halt on reset

2017-02-01 Thread Alexey Brodkin
Hi Vineet, > -Original Message- > From: Vineet Gupta [mailto:vgu...@synopsys.com] > Sent: Wednesday, February 1, 2017 10:56 PM > To: Alexey Brodkin > Cc: Ruud Derwig ; linux-ker...@vger.kernel.org; > linux-snps-arc@lists.infradead.org > Subject: Re: [PATCH 1/3] arc: vdk: Disable halt on r

Re: [PATCH 1/3] arc: vdk: Disable halt on reset

2017-02-01 Thread Vineet Gupta
On 02/01/2017 09:52 AM, Alexey Brodkin wrote: >> The whole point of adding this to defconfig is to override the default from >> Kconfig ? > Not anymore :) > > Since commit c4c9a040ecb7 ("clocksource: import ARC timer driver"), > see > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.gi

Re: [PATCH 1/3] arc: vdk: Disable halt on reset

2017-02-01 Thread Alexey Brodkin
Hi Vineet, On Wed, 2017-02-01 at 09:37 -0800, Vineet Gupta wrote: > On 02/01/2017 09:14 AM, Alexey Brodkin wrote: > > > > > > > > > > > > > -# CONFIG_ARC_TIMERS_64BIT is not set > > > > > > Are you sure abut this part. Ater the timers driver rework, this would > > > enable GFRC > > > for SMP

Re: [PATCH 0/3] Updates for ARC VDK platform

2017-02-01 Thread Vineet Gupta
On 02/01/2017 08:43 AM, Alexey Brodkin wrote: > This series improves ARC VDK support in upstream Linux kernel by: > 1) Removal of UP configuration which is no longer supported by ARC VDK. > Instead SMP platform with all but master cores halted is used to mimic > UP system. Is this missing

Re: [PATCH 0/3] Updates for ARC VDK platform

2017-02-01 Thread Vineet Gupta
On 02/01/2017 09:16 AM, Alexey Brodkin wrote: > Hi Vineet, > > On Wed, 2017-02-01 at 09:13 -0800, Vineet Gupta wrote: >> On 02/01/2017 08:43 AM, Alexey Brodkin wrote: >>> This series improves ARC VDK support in upstream Linux kernel by: >>> 1) Removal of UP configuration which is no longer support

Re: [PATCH 1/3] arc: vdk: Disable halt on reset

2017-02-01 Thread Vineet Gupta
On 02/01/2017 09:14 AM, Alexey Brodkin wrote: >>> -# CONFIG_ARC_TIMERS_64BIT is not set >> >> Are you sure abut this part. Ater the timers driver rework, this would >> enable GFRC >> for SMP builds and AFAIKR there were some issues with time with GFRC + nSIM >> etc.. > > Not anymore :) > > Prob

Re: [PATCH 0/3] Updates for ARC VDK platform

2017-02-01 Thread Alexey Brodkin
Hi Vineet, On Wed, 2017-02-01 at 09:22 -0800, Vineet Gupta wrote: > On 02/01/2017 09:16 AM, Alexey Brodkin wrote: > > > > Hi Vineet, > > > > On Wed, 2017-02-01 at 09:13 -0800, Vineet Gupta wrote: > > > > > > On 02/01/2017 08:43 AM, Alexey Brodkin wrote: > > > > > > > > This series improves ARC

Re: [PATCH 0/3] Updates for ARC VDK platform

2017-02-01 Thread Alexey Brodkin
Hi Vineet, On Wed, 2017-02-01 at 09:13 -0800, Vineet Gupta wrote: > On 02/01/2017 08:43 AM, Alexey Brodkin wrote: > > > > This series improves ARC VDK support in upstream Linux kernel by: > >  1) Removal of UP configuration which is no longer supported by ARC VDK. > > Instead SMP platform wit

Re: [PATCH 1/3] arc: vdk: Disable halt on reset

2017-02-01 Thread Alexey Brodkin
Hi Vineet, On Wed, 2017-02-01 at 08:52 -0800, Vineet Gupta wrote: > On 02/01/2017 08:42 AM, Alexey Brodkin wrote: > > > > In recent VDKs ARC cores are configured as "run on reset" > > which made existing kernel configuration outdated to effect that > > slave cores never start execution of the cod

Re: [PATCH 1/3] arc: vdk: Disable halt on reset

2017-02-01 Thread Vineet Gupta
On 02/01/2017 08:42 AM, Alexey Brodkin wrote: > In recent VDKs ARC cores are configured as "run on reset" > which made existing kernel configuration outdated to effect that > slave cores never start execution of the code keeping only master > online. > > With that fix we're again in sync with VDK

[PATCH 3/3] arc: vdk: Add support of UIO

2017-02-01 Thread Alexey Brodkin
ARC VDK for EVSS uses UIO for communication with Embedded Vision Subsystem. Signed-off-by: Alexey Brodkin --- arch/arc/boot/dts/vdk_axs10x_mb.dtsi| 8 arch/arc/configs/vdk_hs38_smp_defconfig | 2 ++ 2 files changed, 10 insertions(+) diff --git a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi

[PATCH 2/3] arc: vdk: Add support of MMC controller

2017-02-01 Thread Alexey Brodkin
ARC VDK virtual platform emulates host MMC controller (DW Mobile Storage) and moreover rootfs is situated on that virtual card. Signed-off-by: Alexey Brodkin --- arch/arc/boot/dts/vdk_axs10x_mb.dtsi| 18 ++ arch/arc/configs/vdk_hs38_smp_defconfig | 4 2 files changed, 2

[PATCH 1/3] arc: vdk: Disable halt on reset

2017-02-01 Thread Alexey Brodkin
In recent VDKs ARC cores are configured as "run on reset" which made existing kernel configuration outdated to effect that slave cores never start execution of the code keeping only master online. With that fix we're again in sync with VDK platform. And while at it we regenerate defconfig via sav

[PATCH 0/3] Updates for ARC VDK platform

2017-02-01 Thread Alexey Brodkin
This series improves ARC VDK support in upstream Linux kernel by: 1) Removal of UP configuration which is no longer supported by ARC VDK. Instead SMP platform with all but master cores halted is used to mimic UP system. 2) Adding off-the-tree patches that enable MMC card and UIO Alexey

RE: [PATCH v2 4/4] ARCv2: IRQ: Set a default priority for all core interrupts

2017-02-01 Thread Yuriy Kolerov
Hi Vineet, > -Original Message- > From: Vineet Gupta [mailto:vgu...@synopsys.com] > Sent: Tuesday, January 31, 2017 8:54 PM > To: Yuriy Kolerov ; linux-snps- > a...@lists.infradead.org > Cc: marc.zyng...@arm.com; alexey.brod...@synopsys.com; linux- > ker...@vger.kernel.org > Subject: Re: [