[PATCH v4 8/8] ARM: dts: mt6580: enable basic SMP bringup for MT6580

2015-08-23 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. Signed-off-by: Scott Shu --- arch/arm/boot/dts/mt6580.dtsi | 20 1 file

[PATCH v4 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-23 Thread Scott Shu
This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu --- drivers/soc/mediatek/mtk-scpsys.c | 250 include/linux/soc/mediatek/scpsys.h | 9 ++ 2 files changed, 259 insertions(+) create mode 100644 include

[PATCH v4 7/8] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-08-23 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. Signed-off-by: Scott Shu --- arch/arm/boot/dts/mt6580.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index 06fdf6c..40957d3 100644 --- a/arch/arm/boot/dts

[PATCH v4 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-23 Thread Scott Shu
Add support for cpu enable-method "mediatek,mt6580-smp" for booting secondary CPUs on MT6580. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/platsmp.c | 67 1 file changed, 67 insertions(+) diff --git a/arch/arm/mach-mediatek/platsmp.c

[PATCH v4 2/8] dt-bindings: soc: Add SCPSYS compatible support for mt6580

2015-08-23 Thread Scott Shu
This adds "mediatek,mt6580-scpsys" in the compatible properties of SCPSYS node for MT6580 SoC. Signed-off-by: Scott Shu --- Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bi

[PATCH v4 1/8] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-08-23 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT6589, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCPSYS to control the CPU power. Signed-off-by: Scott Shu --- Documentation/devicetree/bindings

[PATCH v4 6/8] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-08-23 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644

[PATCH v4 4/8] ARM: multi_v7_defconfig: enable INFRACFG and SCPSYS modules

2015-08-23 Thread Scott Shu
The INFRACFG contains various infrastructure registers and the SCPSYS handles several power management related tasks. Both are needed for SMP and CPU hotplug on MT6580. Signed-off-by: Scott Shu --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch

[PATCH v4 0/8] This series adds SMP support for the MediaTek MT6580.

2015-08-23 Thread Scott Shu
ge in v2: 1. Rebase to 4.2-rc1 2. Fix using usleep() in atomic context 3. Put a timeout in cpu power on/off sequence 4. Fix some coding style Scott Shu (8): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform dt-bindings: soc: Add SCPSYS compatible support for mt6580 soc:

[PATCH v4 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-23 Thread Scott Shu
Add support for cpu enable-method mediatek,mt6580-smp for booting secondary CPUs on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/platsmp.c | 67 1 file changed, 67 insertions(+) diff --git a/arch/arm/mach-mediatek

[PATCH v4 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-23 Thread Scott Shu
This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- drivers/soc/mediatek/mtk-scpsys.c | 250 include/linux/soc/mediatek/scpsys.h | 9 ++ 2 files changed, 259 insertions(+) create

[PATCH v4 7/8] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-08-23 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/boot/dts/mt6580.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index 06fdf6c..40957d3 100644

[PATCH v4 2/8] dt-bindings: soc: Add SCPSYS compatible support for mt6580

2015-08-23 Thread Scott Shu
This adds mediatek,mt6580-scpsys in the compatible properties of SCPSYS node for MT6580 SoC. Signed-off-by: Scott Shu scott@mediatek.com --- Documentation/devicetree/bindings/soc/mediatek/scpsys.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH v4 8/8] ARM: dts: mt6580: enable basic SMP bringup for MT6580

2015-08-23 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/boot/dts/mt6580.dtsi | 20

[PATCH v4 0/8] This series adds SMP support for the MediaTek MT6580.

2015-08-23 Thread Scott Shu
using usleep() in atomic context 3. Put a timeout in cpu power on/off sequence 4. Fix some coding style Scott Shu (8): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform dt-bindings: soc: Add SCPSYS compatible support for mt6580 soc: Mediatek: Add SCPSYS CPU power domain

[PATCH v4 1/8] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-08-23 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT6589, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCPSYS to control the CPU power. Signed-off-by: Scott Shu scott@mediatek.com

[PATCH v4 6/8] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-08-23 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67

[PATCH v4 4/8] ARM: multi_v7_defconfig: enable INFRACFG and SCPSYS modules

2015-08-23 Thread Scott Shu
The INFRACFG contains various infrastructure registers and the SCPSYS handles several power management related tasks. Both are needed for SMP and CPU hotplug on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions

Re: [PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-06 Thread Scott Shu
On Wed, 2015-08-05 at 10:44 +0100, Russell King - ARM Linux wrote: > On Tue, Aug 04, 2015 at 09:54:21PM +0800, Scott Shu wrote: > > Add support for cpu enable-method "mediatek,mt6580-smp" for booting > > secondary CPUs on MT6580. > > If you have CPU power d

Re: [PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-06 Thread Scott Shu
On Thu, 2015-08-06 at 08:19 +0200, Sascha Hauer wrote: > On Wed, Aug 05, 2015 at 06:47:03PM +0200, Matthias Brugger wrote: > > On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote: > > > Add support for cpu enable-method "mediatek,mt6580-smp" for booting &g

Re: [PATCH v3 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-06 Thread Scott Shu
On Thu, 2015-08-06 at 12:03 +0200, Sascha Hauer wrote: > On Thu, Aug 06, 2015 at 10:59:02AM +0800, Scott Shu wrote: > > On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote: > > > don't do this then it indeed doesn't make much sense to put it into the > > > same file. &

Re: [PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-06 Thread Scott Shu
On Wed, 2015-08-05 at 18:47 +0200, Matthias Brugger wrote: > On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote: > > Add support for cpu enable-method "mediatek,mt6580-smp" for booting > > secondary CPUs on MT6580. > > > > Signed-off-by: Scott Shu

Re: [PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-06 Thread Scott Shu
On Wed, 2015-08-05 at 10:44 +0100, Russell King - ARM Linux wrote: On Tue, Aug 04, 2015 at 09:54:21PM +0800, Scott Shu wrote: Add support for cpu enable-method mediatek,mt6580-smp for booting secondary CPUs on MT6580. If you have CPU power domain support, and you power up and power down

Re: [PATCH v3 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-06 Thread Scott Shu
On Thu, 2015-08-06 at 12:03 +0200, Sascha Hauer wrote: On Thu, Aug 06, 2015 at 10:59:02AM +0800, Scott Shu wrote: On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote: don't do this then it indeed doesn't make much sense to put it into the same file. From what I see we would need

Re: [PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-06 Thread Scott Shu
On Thu, 2015-08-06 at 08:19 +0200, Sascha Hauer wrote: On Wed, Aug 05, 2015 at 06:47:03PM +0200, Matthias Brugger wrote: On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote: Add support for cpu enable-method mediatek,mt6580-smp for booting secondary CPUs on MT6580. Signed-off

Re: [PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-06 Thread Scott Shu
On Wed, 2015-08-05 at 18:47 +0200, Matthias Brugger wrote: On Tuesday, August 04, 2015 09:54:21 PM Scott Shu wrote: Add support for cpu enable-method mediatek,mt6580-smp for booting secondary CPUs on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek

Re: [PATCH v3 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-05 Thread Scott Shu
On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote: > On Tue, Aug 04, 2015 at 09:54:19PM +0800, Scott Shu wrote: > > This adds a CPU power domain driver for the Mediatek SCPSYS unit on > > MT6580. > > > > Signed-off-by: Scott Shu > > --- > > dri

Re: [PATCH v3 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-05 Thread Scott Shu
On Wed, 2015-08-05 at 10:50 +0200, Sascha Hauer wrote: On Tue, Aug 04, 2015 at 09:54:19PM +0800, Scott Shu wrote: This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- drivers/soc/mediatek/mtk-scpsys.c

[PATCH v3 8/8] ARM: dts: mt6580: enable basic SMP bringup for MT6580

2015-08-04 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. Signed-off-by: Scott Shu --- arch/arm/boot/dts/mt6580.dtsi | 20 1

[PATCH v3 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-04 Thread Scott Shu
This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu --- drivers/soc/mediatek/mtk-scpsys.c | 250 +++ include/linux/soc/mediatek/scpsys.h |9 ++ 2 files changed, 259 insertions(+) create mode 100644 include

[PATCH v3 4/8] ARM: multi_v7_defconfig: enable INFRACFG and SCPSYS modules

2015-08-04 Thread Scott Shu
The INFRACFG contains various infrastructure registers and the SCPSYS handles several power management related tasks. Both are needed for SMP and CPU hotplug on MT6580. Signed-off-by: Scott Shu --- arch/arm/configs/multi_v7_defconfig |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch

[PATCH v3 2/8] dt-bindings: soc: Add SCPSYS compatible support for mt6580

2015-08-04 Thread Scott Shu
This adds "mediatek,mt6580-scpsys" in the compatible properties of SCPSYS node for MT6580 SoC. Signed-off-by: Scott Shu --- .../devicetree/bindings/soc/mediatek/scpsys.txt|2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/so

[PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-04 Thread Scott Shu
Add support for cpu enable-method "mediatek,mt6580-smp" for booting secondary CPUs on MT6580. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/platsmp.c | 137 ++ 1 file changed, 137 insertions(+) diff --git a/arch/arm/mach-mediatek/platsmp.c

[PATCH v3 6/8] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-08-04 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/mediatek.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644

[PATCH v3 7/8] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-08-04 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. Signed-off-by: Scott Shu --- arch/arm/boot/dts/mt6580.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index 06fdf6c..40957d3 100644 --- a/arch/arm/boot/dts

[PATCH v3 0/8] This series adds SMP support for the MediaTek MT6580.

2015-08-04 Thread Scott Shu
a timeout in cpu power on/off sequence 4. Fix some coding style Scott Shu (8): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform dt-bindings: soc: Add SCPSYS compatible support for mt6580 soc: Mediatek: Add SCPSYS CPU power domain driver ARM: multi_v7_defconfig: enab

[PATCH v3 1/8] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-08-04 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT6589, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCPSYS to control the CPU power. Signed-off-by: Scott Shu --- Documentation/devicetree/bindings

[PATCH v3 0/8] This series adds SMP support for the MediaTek MT6580.

2015-08-04 Thread Scott Shu
. Fix some coding style Scott Shu (8): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform dt-bindings: soc: Add SCPSYS compatible support for mt6580 soc: Mediatek: Add SCPSYS CPU power domain driver ARM: multi_v7_defconfig: enable INFRACFG and SCPSYS modules ARM

[PATCH v3 1/8] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-08-04 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT6589, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCPSYS to control the CPU power. Signed-off-by: Scott Shu scott@mediatek.com

[PATCH v3 7/8] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-08-04 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/boot/dts/mt6580.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index 06fdf6c..40957d3 100644

[PATCH v3 6/8] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-08-04 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/mediatek.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67

[PATCH v3 3/8] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-08-04 Thread Scott Shu
This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- drivers/soc/mediatek/mtk-scpsys.c | 250 +++ include/linux/soc/mediatek/scpsys.h |9 ++ 2 files changed, 259 insertions

[PATCH v3 4/8] ARM: multi_v7_defconfig: enable INFRACFG and SCPSYS modules

2015-08-04 Thread Scott Shu
The INFRACFG contains various infrastructure registers and the SCPSYS handles several power management related tasks. Both are needed for SMP and CPU hotplug on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/configs/multi_v7_defconfig |2 ++ 1 file changed, 2 insertions

[PATCH v3 2/8] dt-bindings: soc: Add SCPSYS compatible support for mt6580

2015-08-04 Thread Scott Shu
This adds mediatek,mt6580-scpsys in the compatible properties of SCPSYS node for MT6580 SoC. Signed-off-by: Scott Shu scott@mediatek.com --- .../devicetree/bindings/soc/mediatek/scpsys.txt|2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH v3 5/8] ARM: mediatek: add smp bringup code for MT6580

2015-08-04 Thread Scott Shu
Add support for cpu enable-method mediatek,mt6580-smp for booting secondary CPUs on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/platsmp.c | 137 ++ 1 file changed, 137 insertions(+) diff --git a/arch/arm/mach-mediatek

[PATCH v3 8/8] ARM: dts: mt6580: enable basic SMP bringup for MT6580

2015-08-04 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/boot/dts/mt6580.dtsi | 20

[PATCH] ARM64: dts: mt6795: enable basic SMP bringup for MT6795

2015-08-03 Thread Scott Shu
This patch adds support SMP on MediaTek MT6795 Cortex-A53 Octa-core SoC. The patch is based on v4.2-rc1 and following patch series: (1) Mars Cheng's "Add mt6795 basic chip support" [1] [1] https://lkml.org/lkml/2015/7/14/63 Signed-off-by: Scott Shu --- arch/arm64/boot/dts/mediatek/m

[PATCH] ARM64: dts: mt6795: enable basic SMP bringup for MT6795

2015-08-03 Thread Scott Shu
This patch adds support SMP on MediaTek MT6795 Cortex-A53 Octa-core SoC. The patch is based on v4.2-rc1 and following patch series: (1) Mars Cheng's Add mt6795 basic chip support [1] [1] https://lkml.org/lkml/2015/7/14/63 Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm64/boot/dts

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-25 Thread Scott Shu
On Fri, 2015-07-24 at 07:50 +0200, Sascha Hauer wrote: > On Fri, Jul 24, 2015 at 10:02:03AM +0800, Scott Shu wrote: > > On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote: > > > Hi Scott, > > > > > > On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-25 Thread Scott Shu
On Fri, 2015-07-24 at 07:50 +0200, Sascha Hauer wrote: On Fri, Jul 24, 2015 at 10:02:03AM +0800, Scott Shu wrote: On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote: Hi Scott, On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote: This adds a CPU power domain driver

Re: [RESEND PATCH 0/6] This series adds SMP support for the MediaTek MT6580.

2015-07-24 Thread Scott Shu
On Fri, 2015-07-24 at 14:59 +0200, Matthias Brugger wrote: > On Friday, June 19, 2015 02:01:15 AM Scott Shu wrote: > > This patchset adds support SMP on MediaTek MT6580 Cortex-A7 qual core SoC. > > > > This is based on v4.1-rc1 and following patch series: > > (1) Ying

Re: [RESEND PATCH 0/6] This series adds SMP support for the MediaTek MT6580.

2015-07-24 Thread Scott Shu
On Fri, 2015-07-24 at 14:59 +0200, Matthias Brugger wrote: On Friday, June 19, 2015 02:01:15 AM Scott Shu wrote: This patchset adds support SMP on MediaTek MT6580 Cortex-A7 qual core SoC. This is based on v4.1-rc1 and following patch series: (1) Yingjoe Chen's Add SMP bringup support

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-23 Thread Scott Shu
On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote: > Hi Scott, > > On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote: > > This adds a CPU power domain driver for the Mediatek SCPSYS unit on > > MT6580. > > This seems to be support for the very same hard

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-23 Thread Scott Shu
On Tue, 2015-06-23 at 07:53 +0200, Sascha Hauer wrote: Hi Scott, On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote: This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. This seems to be support for the very same hardware as I am posting here: https

Re: [PATCH v2 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-17 Thread Scott Shu
uly 10, 2015 02:04:05 PM Scott Shu wrote: > > This adds a CPU power domain driver for the Mediatek SCPSYS unit on > > MT6580. > > > > Signed-off-by: Scott Shu > > --- > > arch/arm/mach-mediatek/Makefile | 2 +- > > arch/arm/mach-mediatek/generic.h |

Re: [PATCH v2 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-17 Thread Scott Shu
10, 2015 02:04:05 PM Scott Shu wrote: This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/Makefile | 2 +- arch/arm/mach-mediatek/generic.h | 23 arch/arm/mach-mediatek

Re: [PATCH v2 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-12 Thread Scott Shu
? On Fri, 2015-07-10 at 16:31 +0200, Matthias Brugger wrote: > On Friday, July 10, 2015 02:04:05 PM Scott Shu wrote: > > This adds a CPU power domain driver for the Mediatek SCPSYS unit on > > MT6580. > > > > Signed-off-by: Scott Shu > > --- > > arch/arm/mac

Re: [PATCH v2 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-12 Thread Scott Shu
? On Fri, 2015-07-10 at 16:31 +0200, Matthias Brugger wrote: On Friday, July 10, 2015 02:04:05 PM Scott Shu wrote: This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/Makefile | 2

[PATCH v2 6/6] ARM: dts: mt6580: enable basic SMP bringup for MT6580

2015-07-10 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. Signed-off-by: Scott Shu --- arch/arm/boot/dts/mt6580.dtsi | 20 1 file

[PATCH v2 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-07-10 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT65xx series SoC, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCPSYS to control the CPU power. Signed-off-by: Scott Shu --- Documentation

[PATCH v2 0/6] This series adds SMP support for the MediaTek MT6580.

2015-07-10 Thread Scott Shu
[3] for more information about SCPSYS. [1] https://lkml.org/lkml/2015/5/16/33 [2] https://lkml.org/lkml/2015/7/7/122 [3] https://lkml.org/lkml/2015/6/9/172 Change in v2: 1. Rebase to 4.2-rc1 2. Fix using usleep() in atomic context 3. Put a timeout in cpu power on/off sequence 4. Fix some coding st

[PATCH v2 5/6] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-07-10 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. Signed-off-by: Scott Shu --- arch/arm/boot/dts/mt6580.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index 09852cd..4a9df6a 100644 --- a/arch/arm/boot/dts

[PATCH v2 3/6] ARM: mediatek: add smp bringup code for MT6580

2015-07-10 Thread Scott Shu
Add support for cpu enable-method "mediatek,mt6580-smp" for booting secondary CPUs on MT6580. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/platsmp.c | 139 ++- 1 file changed, 138 insertions(+), 1 deletion(-) diff --git a/arch/arm/mac

[PATCH v2 4/6] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-07-10 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644

[PATCH v2 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-10 Thread Scott Shu
This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu --- arch/arm/mach-mediatek/Makefile | 2 +- arch/arm/mach-mediatek/generic.h | 23 arch/arm/mach-mediatek/hotplug.c | 267 +++ 3 files changed, 291

[PATCH v2 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-07-10 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT65xx series SoC, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCPSYS to control the CPU power. Signed-off-by: Scott Shu scott@mediatek.com

[PATCH v2 6/6] ARM: dts: mt6580: enable basic SMP bringup for MT6580

2015-07-10 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/boot/dts/mt6580.dtsi | 20

[PATCH v2 0/6] This series adds SMP support for the MediaTek MT6580.

2015-07-10 Thread Scott Shu
. [1] https://lkml.org/lkml/2015/5/16/33 [2] https://lkml.org/lkml/2015/7/7/122 [3] https://lkml.org/lkml/2015/6/9/172 Change in v2: 1. Rebase to 4.2-rc1 2. Fix using usleep() in atomic context 3. Put a timeout in cpu power on/off sequence 4. Fix some coding style Scott Shu (6): Document

[PATCH v2 5/6] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-07-10 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/boot/dts/mt6580.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index 09852cd..4a9df6a 100644

[PATCH v2 3/6] ARM: mediatek: add smp bringup code for MT6580

2015-07-10 Thread Scott Shu
Add support for cpu enable-method mediatek,mt6580-smp for booting secondary CPUs on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/platsmp.c | 139 ++- 1 file changed, 138 insertions(+), 1 deletion(-) diff --git a/arch/arm

[PATCH v2 4/6] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-07-10 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67

[PATCH v2 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-10 Thread Scott Shu
This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. Signed-off-by: Scott Shu scott@mediatek.com --- arch/arm/mach-mediatek/Makefile | 2 +- arch/arm/mach-mediatek/generic.h | 23 arch/arm/mach-mediatek/hotplug.c | 267

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-02 Thread Scott Shu
; Hi Scott, > > On Fri, Jun 19, 2015 at 02:01:17AM +0800, Scott Shu wrote: > > This adds a CPU power domain driver for the Mediatek SCPSYS unit on > > MT6580. > > This seems to be support for the very same hardware as I am posting > here: > > https://lkml.org/lk

Re: [RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-07-02 Thread Scott Shu
, 2015 at 02:01:17AM +0800, Scott Shu wrote: This adds a CPU power domain driver for the Mediatek SCPSYS unit on MT6580. This seems to be support for the very same hardware as I am posting here: https://lkml.org/lkml/2015/6/22/41 We should consolidate this. My driver is currently

[RESEND PATCH 6/6] ARM: dts: mt6580: enable basic SMP bringup for mt6580

2015-06-18 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. --- arch/arm/boot/dts/mt6580.dtsi | 20 1 file changed, 20 insertions(+)

[RESEND PATCH 3/6] ARM: mediatek: add smp bringup code for MT6580

2015-06-18 Thread Scott Shu
Add support for cpu enable-method "mediatek,mt6580-smp" for booting secondary CPUs on MT6580. --- arch/arm/mach-mediatek/platsmp.c | 107 +++ 1 file changed, 107 insertions(+) diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c

[RESEND PATCH 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-06-18 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT65xx series SoC, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCYSYS to control the CPU power. --- Documentation/devicetree/bindings/arm/cpus.txt |

[RESEND PATCH 4/6] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-06-18 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644 ---

[RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-06-18 Thread Scott Shu
..2a0d0c8 --- /dev/null +++ b/arch/arm/mach-mediatek/generic.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2015 Mediatek Inc. + * Author: Scott Shu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published

[RESEND PATCH 5/6] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-06-18 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. --- arch/arm/boot/dts/mt6580.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index ae3cdb6..a974830 100644 --- a/arch/arm/boot/dts/mt6580.dtsi +++

[RESEND PATCH 0/6] This series adds SMP support for the MediaTek MT6580.

2015-06-18 Thread Scott Shu
[3] for more information about SCPSYS. [1] https://lkml.org/lkml/2015/5/16/33 [2] https://lkml.org/lkml/2015/6/3/113 [3] https://lkml.org/lkml/2015/6/9/172 Scott Shu (6): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform soc: Mediatek: Add SCPSYS CPU power domain driver

[RESEND PATCH 5/6] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-06-18 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. --- arch/arm/boot/dts/mt6580.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index ae3cdb6..a974830 100644 --- a/arch/arm/boot/dts/mt6580.dtsi +++

[RESEND PATCH 0/6] This series adds SMP support for the MediaTek MT6580.

2015-06-18 Thread Scott Shu
. [1] https://lkml.org/lkml/2015/5/16/33 [2] https://lkml.org/lkml/2015/6/3/113 [3] https://lkml.org/lkml/2015/6/9/172 Scott Shu (6): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform soc: Mediatek: Add SCPSYS CPU power domain driver ARM: mediatek: add smp bringup code

[RESEND PATCH 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-06-18 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT65xx series SoC, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCYSYS to control the CPU power. --- Documentation/devicetree/bindings/arm/cpus.txt |

[RESEND PATCH 4/6] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-06-18 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644 ---

[RESEND PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-06-18 Thread Scott Shu
..2a0d0c8 --- /dev/null +++ b/arch/arm/mach-mediatek/generic.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2015 Mediatek Inc. + * Author: Scott Shu scott@mediatek.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version

[RESEND PATCH 6/6] ARM: dts: mt6580: enable basic SMP bringup for mt6580

2015-06-18 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. --- arch/arm/boot/dts/mt6580.dtsi | 20 1 file changed, 20 insertions(+)

[RESEND PATCH 3/6] ARM: mediatek: add smp bringup code for MT6580

2015-06-18 Thread Scott Shu
Add support for cpu enable-method mediatek,mt6580-smp for booting secondary CPUs on MT6580. --- arch/arm/mach-mediatek/platsmp.c | 107 +++ 1 file changed, 107 insertions(+) diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c index

[PATCH 4/6] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-06-17 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644 ---

[PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-06-17 Thread Scott Shu
..2a0d0c8 --- /dev/null +++ b/arch/arm/mach-mediatek/generic.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2015 Mediatek Inc. + * Author: Scott Shu + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published

[PATCH 6/6] ARM: dts: mt6580: enable basic SMP bringup for mt6580

2015-06-17 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. --- arch/arm/boot/dts/mt6580.dtsi | 20 1 file changed, 20 insertions(+)

[PATCH 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-06-17 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT65xx series SoC, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCYSYS to control the CPU power. --- Documentation/devicetree/bindings/arm/cpus.txt |

[PATCH 5/6] ARM: dts: mt6580: Add device nodes to the MT6580 dtsi file

2015-06-17 Thread Scott Shu
This adds the SCPSYS device node to the MT6580 dtsi file. --- arch/arm/boot/dts/mt6580.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mt6580.dtsi b/arch/arm/boot/dts/mt6580.dtsi index ae3cdb6..a974830 100644 --- a/arch/arm/boot/dts/mt6580.dtsi +++

[PATCH 3/6] ARM: mediatek: add smp bringup code for MT6580

2015-06-17 Thread Scott Shu
Add support for cpu enable-method "mediatek,mt6580-smp" for booting secondary CPUs on MT6580. --- arch/arm/mach-mediatek/platsmp.c | 107 +++ 1 file changed, 107 insertions(+) diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c

[PATCH 0/6] This series adds SMP support for the MediaTek MT6580.

2015-06-17 Thread Scott Shu
[3] for more information about SCPSYS. [1] https://lkml.org/lkml/2015/5/16/33 [2] https://lkml.org/lkml/2015/6/3/113 [3] https://lkml.org/lkml/2015/6/9/172 Scott Shu (6): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform soc: Mediatek: Add SCPSYS CPU power domain driver

[PATCH 1/6] Document: bindings: DT: Add SMP enable method for MT6580 SoC platform

2015-06-17 Thread Scott Shu
For MT6580 SoC platform, the secondary cores are in powered off state as default, so compared with MT65xx series SoC, one new enable method is needed. This method using the SPM (System Power Manager) inside the SCYSYS to control the CPU power. --- Documentation/devicetree/bindings/arm/cpus.txt |

[PATCH 4/6] ARM: Mediatek: enable GPT6 on boot up to make arch timer working for MT6580

2015-06-17 Thread Scott Shu
We enable GTP6 which ungates the arch timer clock. --- arch/arm/mach-mediatek/mediatek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 6b38d67..469d332 100644 ---

[PATCH 2/6] soc: Mediatek: Add SCPSYS CPU power domain driver

2015-06-17 Thread Scott Shu
..2a0d0c8 --- /dev/null +++ b/arch/arm/mach-mediatek/generic.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2015 Mediatek Inc. + * Author: Scott Shu scott@mediatek.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version

[PATCH 6/6] ARM: dts: mt6580: enable basic SMP bringup for mt6580

2015-06-17 Thread Scott Shu
Add arch timer node to enable arch-timer support. MT6580 firmware doesn't correctly setup arch-timer frequency and CNTVOFF, add properties to workaround this. This set cpu enable-method to enable SMP. --- arch/arm/boot/dts/mt6580.dtsi | 20 1 file changed, 20 insertions(+)

[PATCH 0/6] This series adds SMP support for the MediaTek MT6580.

2015-06-17 Thread Scott Shu
. [1] https://lkml.org/lkml/2015/5/16/33 [2] https://lkml.org/lkml/2015/6/3/113 [3] https://lkml.org/lkml/2015/6/9/172 Scott Shu (6): Document: bindings: DT: Add SMP enable method for MT6580 SoC platform soc: Mediatek: Add SCPSYS CPU power domain driver ARM: mediatek: add smp bringup code

  1   2   >