linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Updates for ARC VDK platform
@ 2017-02-01 16:42 Alexey Brodkin
  2017-02-01 16:42 ` [PATCH 1/3] arc: vdk: Disable halt on reset Alexey Brodkin
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 16:42 UTC (permalink / raw)
  To: linux-snps-arc; +Cc: linux-kernel, Vineet Gupta, 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 Brodkin (3):
  arc: vdk: Disable halt on reset
  arc: vdk: Add support of MMC controller
  arc: vdk: Add support of UIO

 arch/arc/boot/dts/vdk_axs10x_mb.dtsi    | 26 ++++++++++++++++++++++++++
 arch/arc/configs/vdk_hs38_smp_defconfig | 10 +++++++---
 2 files changed, 33 insertions(+), 3 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 16:42 [PATCH 0/3] Updates for ARC VDK platform Alexey Brodkin
@ 2017-02-01 16:42 ` Alexey Brodkin
  2017-02-01 16:52   ` Vineet Gupta
  2017-02-01 16:42 ` [PATCH 2/3] arc: vdk: Add support of MMC controller Alexey Brodkin
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 16:42 UTC (permalink / raw)
  To: linux-snps-arc; +Cc: linux-kernel, Vineet Gupta, 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 savedefconfig so default
options are now excluded.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
---
 arch/arc/configs/vdk_hs38_smp_defconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arc/configs/vdk_hs38_smp_defconfig b/arch/arc/configs/vdk_hs38_smp_defconfig
index 573028f19de7..f6361de41eec 100644
--- a/arch/arc/configs/vdk_hs38_smp_defconfig
+++ b/arch/arc/configs/vdk_hs38_smp_defconfig
@@ -15,7 +15,7 @@ CONFIG_ARC_PLAT_AXS10X=y
 CONFIG_AXS103=y
 CONFIG_ISA_ARCV2=y
 CONFIG_SMP=y
-# CONFIG_ARC_TIMERS_64BIT is not set
+# CONFIG_ARC_SMP_HALT_ON_RESET is not set
 CONFIG_ARC_UBOOT_SUPPORT=y
 CONFIG_ARC_BUILTIN_DTB_NAME="vdk_hs38_smp"
 CONFIG_PREEMPT=y
@@ -56,7 +56,6 @@ CONFIG_NATIONAL_PHY=y
 CONFIG_MOUSE_PS2_TOUCHKIT=y
 CONFIG_SERIO_ARC_PS2=y
 # CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 CONFIG_SERIAL_8250_DW=y
@@ -80,7 +79,6 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_SERIAL=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_EXT3_FS=y
-CONFIG_EXT4_FS=y
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_NTFS_FS=y
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 2/3] arc: vdk: Add support of MMC controller
  2017-02-01 16:42 [PATCH 0/3] Updates for ARC VDK platform Alexey Brodkin
  2017-02-01 16:42 ` [PATCH 1/3] arc: vdk: Disable halt on reset Alexey Brodkin
@ 2017-02-01 16:42 ` Alexey Brodkin
  2017-02-01 16:42 ` [PATCH 3/3] arc: vdk: Add support of UIO Alexey Brodkin
  2017-02-01 17:13 ` [PATCH 0/3] Updates for ARC VDK platform Vineet Gupta
  3 siblings, 0 replies; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 16:42 UTC (permalink / raw)
  To: linux-snps-arc; +Cc: linux-kernel, Vineet Gupta, 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 <abrodkin@synopsys.com>
---
 arch/arc/boot/dts/vdk_axs10x_mb.dtsi    | 18 ++++++++++++++++++
 arch/arc/configs/vdk_hs38_smp_defconfig |  4 ++++
 2 files changed, 22 insertions(+)

diff --git a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
index 99498a4b4216..1953914b9f4f 100644
--- a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
+++ b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
@@ -23,6 +23,12 @@
 				#clock-cells = <0>;
 			};
 
+			mmcclk: mmcclk {
+				compatible = "fixed-clock";
+				clock-frequency = <50000000>;
+				#clock-cells = <0>;
+			};
+
 			pguclk: pguclk {
 				#clock-cells = <0>;
 				compatible = "fixed-clock";
@@ -94,5 +100,17 @@
 			interrupts = <5>;
 			interrupt-names = "arc_ps2_irq";
 		};
+
+		mmc@0x15000 {
+			compatible = "snps,dw-mshc";
+			reg = <0x15000 0x400>;
+			num-slots = <1>;
+			fifo-depth = <1024>;
+			card-detect-delay = <200>;
+			clocks = <&apbclk>, <&mmcclk>;
+			clock-names = "biu", "ciu";
+			interrupts = <7>;
+			bus-width = <4>;
+		};
 	};
 };
diff --git a/arch/arc/configs/vdk_hs38_smp_defconfig b/arch/arc/configs/vdk_hs38_smp_defconfig
index f6361de41eec..e03413fbc784 100644
--- a/arch/arc/configs/vdk_hs38_smp_defconfig
+++ b/arch/arc/configs/vdk_hs38_smp_defconfig
@@ -77,6 +77,10 @@ CONFIG_USB_OHCI_HCD=y
 CONFIG_USB_OHCI_HCD_PLATFORM=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_SERIAL=y
+CONFIG_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_DW=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_EXT3_FS=y
 CONFIG_MSDOS_FS=y
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 3/3] arc: vdk: Add support of UIO
  2017-02-01 16:42 [PATCH 0/3] Updates for ARC VDK platform Alexey Brodkin
  2017-02-01 16:42 ` [PATCH 1/3] arc: vdk: Disable halt on reset Alexey Brodkin
  2017-02-01 16:42 ` [PATCH 2/3] arc: vdk: Add support of MMC controller Alexey Brodkin
@ 2017-02-01 16:42 ` Alexey Brodkin
  2017-02-01 17:13 ` [PATCH 0/3] Updates for ARC VDK platform Vineet Gupta
  3 siblings, 0 replies; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 16:42 UTC (permalink / raw)
  To: linux-snps-arc; +Cc: linux-kernel, Vineet Gupta, Alexey Brodkin

ARC VDK for EVSS uses UIO for communication with Embedded Vision
Subsystem.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
---
 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 b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
index 1953914b9f4f..f0df59b23e21 100644
--- a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
+++ b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
@@ -112,5 +112,13 @@
 			interrupts = <7>;
 			bus-width = <4>;
 		};
+
+		/* Embedded Vision subsystem UIO mappings; only relevant for EV VDK */
+		uio_ev: uio@0xD0000000 {
+			compatible = "generic-uio";
+			reg = <0xD0000000 0x2000 0xD1000000 0x2000 0x90000000 0x10000000 0xC0000000 0x10000000>;
+			reg-names = "ev_gsa", "ev_ctrl", "ev_shared_mem", "ev_code_mem";
+			interrupts = <23>;
+		};
 	};
 };
diff --git a/arch/arc/configs/vdk_hs38_smp_defconfig b/arch/arc/configs/vdk_hs38_smp_defconfig
index e03413fbc784..1a9b19903c9a 100644
--- a/arch/arc/configs/vdk_hs38_smp_defconfig
+++ b/arch/arc/configs/vdk_hs38_smp_defconfig
@@ -81,6 +81,8 @@ CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_DW=y
+CONFIG_UIO=y
+CONFIG_UIO_PDRV_GENIRQ=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_EXT3_FS=y
 CONFIG_MSDOS_FS=y
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 16:42 ` [PATCH 1/3] arc: vdk: Disable halt on reset Alexey Brodkin
@ 2017-02-01 16:52   ` Vineet Gupta
  2017-02-01 17:14     ` Alexey Brodkin
  0 siblings, 1 reply; 15+ messages in thread
From: Vineet Gupta @ 2017-02-01 16:52 UTC (permalink / raw)
  To: Alexey Brodkin, linux-snps-arc; +Cc: Ruud Derwig, linux-kernel

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 platform.
> 
> And while at it we regenerate defconfig via savedefconfig so default
> options are now excluded.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> ---
>  arch/arc/configs/vdk_hs38_smp_defconfig | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/arch/arc/configs/vdk_hs38_smp_defconfig b/arch/arc/configs/vdk_hs38_smp_defconfig
> index 573028f19de7..f6361de41eec 100644
> --- a/arch/arc/configs/vdk_hs38_smp_defconfig
> +++ b/arch/arc/configs/vdk_hs38_smp_defconfig
> @@ -15,7 +15,7 @@ CONFIG_ARC_PLAT_AXS10X=y
>  CONFIG_AXS103=y
>  CONFIG_ISA_ARCV2=y
>  CONFIG_SMP=y
> -# 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..

> +# CONFIG_ARC_SMP_HALT_ON_RESET is not set
>  CONFIG_ARC_UBOOT_SUPPORT=y
>  CONFIG_ARC_BUILTIN_DTB_NAME="vdk_hs38_smp"
>  CONFIG_PREEMPT=y
> @@ -56,7 +56,6 @@ CONFIG_NATIONAL_PHY=y
>  CONFIG_MOUSE_PS2_TOUCHKIT=y
>  CONFIG_SERIO_ARC_PS2=y
>  # CONFIG_LEGACY_PTYS is not set
> -# CONFIG_DEVKMEM is not set
>  CONFIG_SERIAL_8250=y
>  CONFIG_SERIAL_8250_CONSOLE=y
>  CONFIG_SERIAL_8250_DW=y
> @@ -80,7 +79,6 @@ CONFIG_USB_STORAGE=y
>  CONFIG_USB_SERIAL=y
>  # CONFIG_IOMMU_SUPPORT is not set
>  CONFIG_EXT3_FS=y
> -CONFIG_EXT4_FS=y
>  CONFIG_MSDOS_FS=y
>  CONFIG_VFAT_FS=y
>  CONFIG_NTFS_FS=y
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 0/3] Updates for ARC VDK platform
  2017-02-01 16:42 [PATCH 0/3] Updates for ARC VDK platform Alexey Brodkin
                   ` (2 preceding siblings ...)
  2017-02-01 16:42 ` [PATCH 3/3] arc: vdk: Add support of UIO Alexey Brodkin
@ 2017-02-01 17:13 ` Vineet Gupta
  2017-02-01 17:15   ` Alexey Brodkin
  3 siblings, 1 reply; 15+ messages in thread
From: Vineet Gupta @ 2017-02-01 17:13 UTC (permalink / raw)
  To: Alexey Brodkin, linux-snps-arc; +Cc: linux-kernel

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 from the series ?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 16:52   ` Vineet Gupta
@ 2017-02-01 17:14     ` Alexey Brodkin
  2017-02-01 17:37       ` Vineet Gupta
  0 siblings, 1 reply; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 17:14 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: linux-kernel, Ruud Derwig, linux-snps-arc

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 code keeping only master
> > online.
> > 
> > With that fix we're again in sync with VDK platform.
> > 
> > And while at it we regenerate defconfig via savedefconfig so default
> > options are now excluded.
> > 
> > Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> > ---
> >  arch/arc/configs/vdk_hs38_smp_defconfig | 4 +---
> >  1 file changed, 1 insertion(+), 3 deletions(-)
> > 
> > diff --git a/arch/arc/configs/vdk_hs38_smp_defconfig b/arch/arc/configs/vdk_hs38_smp_defconfig
> > index 573028f19de7..f6361de41eec 100644
> > --- a/arch/arc/configs/vdk_hs38_smp_defconfig
> > +++ b/arch/arc/configs/vdk_hs38_smp_defconfig
> > @@ -15,7 +15,7 @@ CONFIG_ARC_PLAT_AXS10X=y
> >  CONFIG_AXS103=y
> >  CONFIG_ISA_ARCV2=y
> >  CONFIG_SMP=y
> > -# 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 :)

Probably I missed something in discussions.
As a matter of fact I did run-test resulting vmlinux and it worked very nice.
More over ARC_TIMERS_64BIT is selected automatically by ISA_ARCV2, see
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arc/Kconfig#n119

That said even if "# CONFIG_ARC_TIMERS_64BIT is not set" is left in place the option will be
effectively enabled, no?

-Alexey

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 0/3] Updates for ARC VDK platform
  2017-02-01 17:13 ` [PATCH 0/3] Updates for ARC VDK platform Vineet Gupta
@ 2017-02-01 17:15   ` Alexey Brodkin
  2017-02-01 17:22     ` Vineet Gupta
  0 siblings, 1 reply; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 17:15 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: linux-kernel, linux-snps-arc

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 with all but master cores halted is used to mimic
> >     UP system.
> 
> Is this missing from the series ?

Indeed, I was doing 2 things in parallel and so missed -1 patch :(
I may either send v2 with missing patch included or save it for another series
that ditches most of UP configs as well. What suits you better?

-Alexey

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 0/3] Updates for ARC VDK platform
  2017-02-01 17:15   ` Alexey Brodkin
@ 2017-02-01 17:22     ` Vineet Gupta
  2017-02-01 17:35       ` Alexey Brodkin
  0 siblings, 1 reply; 15+ messages in thread
From: Vineet Gupta @ 2017-02-01 17:22 UTC (permalink / raw)
  To: Alexey Brodkin; +Cc: linux-kernel, linux-snps-arc

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 supported by ARC VDK.
>>>     Instead SMP platform with all but master cores halted is used to mimic
>>>     UP system.
>> Is this missing from the series ?
> Indeed, I was doing 2 things in parallel and so missed -1 patch :(
> I may either send v2 with missing patch included or save it for another series
> that ditches most of UP configs as well. What suits you better?

Latter would be better !

-Vineet

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 0/3] Updates for ARC VDK platform
  2017-02-01 17:22     ` Vineet Gupta
@ 2017-02-01 17:35       ` Alexey Brodkin
  0 siblings, 0 replies; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 17:35 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: linux-kernel, linux-snps-arc

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 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 from the series ?
> > Indeed, I was doing 2 things in parallel and so missed -1 patch :(
> > I may either send v2 with missing patch included or save it for another series
> > that ditches most of UP configs as well. What suits you better?
> 
> Latter would be better !

So then you're going to apply existing series as it is sometime soon and
in the meantime I'll prepare another one, right?

-Alexey

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 17:14     ` Alexey Brodkin
@ 2017-02-01 17:37       ` Vineet Gupta
  2017-02-01 17:52         ` Alexey Brodkin
  0 siblings, 1 reply; 15+ messages in thread
From: Vineet Gupta @ 2017-02-01 17:37 UTC (permalink / raw)
  To: Alexey Brodkin; +Cc: linux-kernel, Ruud Derwig, linux-snps-arc

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 :)
> 
> Probably I missed something in discussions.

STAR 9000879565, 9000879563

> As a matter of fact I did run-test resulting vmlinux and it worked very nice.
> More over ARC_TIMERS_64BIT is selected automatically by ISA_ARCV2, see
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arc/Kconfig#n119
> 
> That said even if "# CONFIG_ARC_TIMERS_64BIT is not set" is left in place the option will be
> effectively enabled, no?

The whole point of adding this to defconfig is to override the default from Kconfig ?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 17:37       ` Vineet Gupta
@ 2017-02-01 17:52         ` Alexey Brodkin
  2017-02-01 19:56           ` Vineet Gupta
  0 siblings, 1 reply; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 17:52 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: Ruud Derwig, linux-kernel, linux-snps-arc

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 builds and AFAIKR there were some issues with time with GFRC + nSIM etc..
> > 
> > Not anymore :)
> > 
> > Probably I missed something in discussions.
> 
> STAR 9000879565, 9000879563
> 
> > 
> > As a matter of fact I did run-test resulting vmlinux and it worked very nice.
> > More over ARC_TIMERS_64BIT is selected automatically by ISA_ARCV2, see
> > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arc/Kconfig#n119
> > 
> > That said even if "# CONFIG_ARC_TIMERS_64BIT is not set" is left in place the option will be
> > effectively enabled, no?
> 
> 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.git/commit/?id=c4c9a040ecb7297e011e579f5a9cc280e42d725f
we have this:
---------------------->8----------------------
config ISA_ARCV2
	bool "ARC ISA v2"
	select ARC_TIMERS_64BIT
---------------------->8----------------------

which really means if one selects ISA_ARCV2 then ARC_TIMERS_64BIT gets selected automatically
and there's no way to override it from either menuconfig or defconfig.

Probably behavior that you meant was to keep a separate "config ARC_TIMERS_64BIT"
and have it "default y if ISA_ARCV2".

-Alexey

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 17:52         ` Alexey Brodkin
@ 2017-02-01 19:56           ` Vineet Gupta
  2017-02-01 20:03             ` Alexey Brodkin
  2017-02-02 14:03             ` Ruud Derwig
  0 siblings, 2 replies; 15+ messages in thread
From: Vineet Gupta @ 2017-02-01 19:56 UTC (permalink / raw)
  To: Alexey Brodkin; +Cc: Ruud Derwig, linux-kernel, linux-snps-arc

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.git/commit/?id=c4c9a040ecb7297e011e579f5a9cc280e42d725f
> we have this:
> ---------------------->8----------------------
> config ISA_ARCV2
> 	bool "ARC ISA v2"
> 	select ARC_TIMERS_64BIT
> ---------------------->8----------------------
> 
> which really means if one selects ISA_ARCV2 then ARC_TIMERS_64BIT gets selected automatically
> and there's no way to override it from either menuconfig or defconfig.

Bummer - this means VDK based off 4.9+ kernel might be affected with nsim GFRC issue !

> Probably behavior that you meant was to keep a separate "config ARC_TIMERS_64BIT"
> and have it "default y if ISA_ARCV2".

No, the whole point of moving it out of arch/arc was to increase test coverage etc
so it was not tied to ISA_ARCV2 on purpose so that it would atleast build.

Lets see what Rudd has to say abt this. But GFRC can't be used this would need
fixing after all by introducing an additional ARC_PLAT_CANT_USE_TIMERS_64BIT which
is def_bool set to n, but selected y in VDK Kconfig.

-Vineet

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 19:56           ` Vineet Gupta
@ 2017-02-01 20:03             ` Alexey Brodkin
  2017-02-02 14:03             ` Ruud Derwig
  1 sibling, 0 replies; 15+ messages in thread
From: Alexey Brodkin @ 2017-02-01 20:03 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: Ruud Derwig, linux-kernel, linux-snps-arc

Hi Vineet,

> -----Original Message-----
> From: Vineet Gupta [mailto:vgupta@synopsys.com]
> Sent: Wednesday, February 1, 2017 10:56 PM
> To: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
> Cc: Ruud Derwig <rderwig@synopsys.com>; linux-kernel@vger.kernel.org;
> linux-snps-arc@lists.infradead.org
> Subject: Re: [PATCH 1/3] arc: vdk: Disable halt on reset
> 
> 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.git/commit/
> > ?id=c4c9a040ecb7297e011e579f5a9cc280e42d725f
> > we have this:
> > ---------------------->8----------------------
> > config ISA_ARCV2
> > 	bool "ARC ISA v2"
> > 	select ARC_TIMERS_64BIT
> > ---------------------->8----------------------
> >
> > which really means if one selects ISA_ARCV2 then ARC_TIMERS_64BIT gets
> > selected automatically and there's no way to override it from either
> menuconfig or defconfig.
> 
> Bummer - this means VDK based off 4.9+ kernel might be affected with nsim
> GFRC issue !

One note here - I think it only affects 4.10+ kernels.

-Aexey

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 1/3] arc: vdk: Disable halt on reset
  2017-02-01 19:56           ` Vineet Gupta
  2017-02-01 20:03             ` Alexey Brodkin
@ 2017-02-02 14:03             ` Ruud Derwig
  1 sibling, 0 replies; 15+ messages in thread
From: Ruud Derwig @ 2017-02-02 14:03 UTC (permalink / raw)
  To: Vineet Gupta, Alexey Brodkin; +Cc: linux-kernel, linux-snps-arc

Hi,

VDK config includes GRFC, not sure if it's working/used though.
The nSIM STAR is about that GRFC frequency is fixed in nSIM, but configurable for HW/customers.
But if the frequency is configured correctly (same as cpu frequency), don't think there's an issue.

Ruud.
-----Original Message-----
From: Vineet Gupta 
Sent: Wednesday, February 01, 2017 8:56 PM
To: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: Ruud Derwig <rderwig@synopsys.com>; linux-kernel@vger.kernel.org; linux-snps-arc@lists.infradead.org
Subject: Re: [PATCH 1/3] arc: vdk: Disable halt on reset

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.git/commit/
> ?id=c4c9a040ecb7297e011e579f5a9cc280e42d725f
> we have this:
> ---------------------->8----------------------
> config ISA_ARCV2
> 	bool "ARC ISA v2"
> 	select ARC_TIMERS_64BIT
> ---------------------->8----------------------
> 
> which really means if one selects ISA_ARCV2 then ARC_TIMERS_64BIT gets 
> selected automatically and there's no way to override it from either menuconfig or defconfig.

Bummer - this means VDK based off 4.9+ kernel might be affected with nsim GFRC issue !

> Probably behavior that you meant was to keep a separate "config ARC_TIMERS_64BIT"
> and have it "default y if ISA_ARCV2".

No, the whole point of moving it out of arch/arc was to increase test coverage etc so it was not tied to ISA_ARCV2 on purpose so that it would atleast build.

Lets see what Rudd has to say abt this. But GFRC can't be used this would need fixing after all by introducing an additional ARC_PLAT_CANT_USE_TIMERS_64BIT which is def_bool set to n, but selected y in VDK Kconfig.

-Vineet

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-02-02 14:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-01 16:42 [PATCH 0/3] Updates for ARC VDK platform Alexey Brodkin
2017-02-01 16:42 ` [PATCH 1/3] arc: vdk: Disable halt on reset Alexey Brodkin
2017-02-01 16:52   ` Vineet Gupta
2017-02-01 17:14     ` Alexey Brodkin
2017-02-01 17:37       ` Vineet Gupta
2017-02-01 17:52         ` Alexey Brodkin
2017-02-01 19:56           ` Vineet Gupta
2017-02-01 20:03             ` Alexey Brodkin
2017-02-02 14:03             ` Ruud Derwig
2017-02-01 16:42 ` [PATCH 2/3] arc: vdk: Add support of MMC controller Alexey Brodkin
2017-02-01 16:42 ` [PATCH 3/3] arc: vdk: Add support of UIO Alexey Brodkin
2017-02-01 17:13 ` [PATCH 0/3] Updates for ARC VDK platform Vineet Gupta
2017-02-01 17:15   ` Alexey Brodkin
2017-02-01 17:22     ` Vineet Gupta
2017-02-01 17:35       ` Alexey Brodkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).