Select the newly introduced ARM_GIC option to the relevant sunxi
MACH configurations.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 7 +++
1 file changed, 7 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index b139d1c139a2..b8a34e4fbdf8 100644
--- a/board
ig options.
- Fixed a commit message (removed 'HYP').
Antoine Tenart (9):
ARM: add the ARM_GIC configuration option
sunxi: select ARM_GIC for sun[6789]i
ARM: select ARM_GIC for SoCs having a psci implementation
exynos: select ARM_GIC for TARGET_ARNDALE
tegra: select ARM_GIC for Te
Select the newly introduced ARM_GIC option to the relevant configuration
which also have a psci implementation.
Signed-off-by: Antoine Tenart
---
arch/arm/mach-tegra/tegra124/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-tegra/tegra124/Kconfig
b/arch/arm/mach
Some SoC does not have a GIC. Adds a configuration option to denote
this, allowing to remove code configuring the GIC when it's not
possible.
Signed-off-by: Antoine Tenart
---
arch/arm/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
The sun5i SoCs can take advantage of the newly introduce PSCI suspend
function. Add defines used by the PSCI code.
Signed-off-by: Antoine Tenart
---
include/configs/sun5i.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/sun5i.h b/include/configs/sun5i.h
index
sun5i now implements the psci suspend function. In order to be used by
the kernel, we should now boot in non-secure mode. Enable it by default.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
Select the newly introduced ARM_GIC option to the relevant MACH
configurations.
Signed-off-by: Antoine Tenart
---
arch/arm/Kconfig | 8
1 file changed, 8 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f361a47fc52f..ed1a7d607dbe 100644
--- a/arch/arm/Kconfig
+++ b
.
Signed-off-by: Antoine Tenart
---
arch/arm/cpu/armv7/sunxi/Makefile | 9 +-
arch/arm/cpu/armv7/sunxi/psci_suspend.c | 175 ++
arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 7 ++
arch/arm/include/asm/arch-sunxi/dram_sun4i.h | 11 ++
4 files changed
Select the newly introduced ARM_GIC option to the relevant configuration
which also have a psci implementation.
Signed-off-by: Antoine Tenart
---
arch/arm/mach-exynos/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index
Introducing the ARM_GIC configuration option, use it to only use GIC
specific code in ARM PSCI function when the SoC has a GIC.
Signed-off-by: Antoine Tenart
---
arch/arm/cpu/armv7/nonsec_virt.S | 6 ++
arch/arm/cpu/armv7/virt-v7.c | 42 ++--
2 files
Hi Stephen,
On Thu, Oct 06, 2016 at 10:15:06AM -0600, Stephen Warren wrote:
> On 10/06/2016 08:33 AM, Antoine Tenart wrote:
> >Select the newly introduced ARM_GIC option to the relevant configuration
> >which also have a psci implementation.
>
> >diff --git a/arch/arm/mac
Select the newly introduced ARM_GIC option to the relevant sunxi
MACH configurations.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 7 +++
1 file changed, 7 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 1b30669230a3..c9b500e9390b 100644
--- a/board
.
Signed-off-by: Antoine Tenart
---
arch/arm/cpu/armv7/sunxi/Makefile | 9 +-
arch/arm/cpu/armv7/sunxi/psci_suspend.c | 175 ++
arch/arm/include/asm/arch-sunxi/clock_sun4i.h | 7 ++
arch/arm/include/asm/arch-sunxi/dram_sun4i.h | 11 ++
4 files changed
Introducing the ARM_GIC configuration option, use it to only use GIC
specific code in ARM PSCI function when the SoC has a GIC.
Signed-off-by: Antoine Tenart
---
arch/arm/cpu/armv7/nonsec_virt.S | 6 ++
arch/arm/cpu/armv7/virt-v7.c | 38 --
2 files
Some SoC does not have a GIC. Adds a configuration option to denote
this, allowing to remove code configuring the GIC when it's not
possible.
Signed-off-by: Antoine Tenart
---
arch/arm/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
SoCs, and another patch to let sun5i SoCs boot the kernel in non-secure
mode so that it can call psci functions.
Thanks!
Antoine
Antoine Tenart (6):
ARM: add the ARM_GIC configuration option
sunxi: select ARM_GIC for sun[6789]i
ARM: PSCI: protect GIC specific code with ARM_GIC
sun5/
sun5i now implements the psci suspend function. In order to be used by
the kernel, we should now boot in non-secure mode. Enable it by default.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
The sun5i SoCs can take advantage of the newly introduce PSCI suspend
function. Enable the PSCI support to denote this.
Signed-off-by: Antoine Tenart
---
include/configs/sun5i.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/configs/sun5i.h b/include/configs/sun5i.h
index
Hi,
On Thu, Sep 01, 2016 at 10:47:28AM +0200, Hans de Goede wrote:
> On 01-09-16 09:57, Antoine Tenart wrote:
> >sun5i now implements the psci suspend function. In order to be used by
> >the kernel, we should now boot in non-secure mode. Enable it by default.
>
> The sun5i h
Hi,
On Thu, Sep 01, 2016 at 10:44:13AM +0200, Hans de Goede wrote:
> On 01-09-16 09:57, Antoine Tenart wrote:
> >Introducing the ARM_GIC configuration option, use it to only use GIC
> >specific code in ARM PSCI function when the SoC has a GIC.
>
> AFAIK sunxi is not the onl
Implement three atomic functions to allow making an atomic operation
that returns the value. Adds: atomic_add_return(), atomic_sub_return(),
atomic_inc_return() and atomic_dec_return().
This is heavily based on the Linux implementation of such functions for
ARM.
Signed-off-by: Antoine Tenart
Cc
Some SoC does not have a GIC. Adds a configuration option to denote
this, allowing to remove code configuring the GIC when it's not
possible.
Signed-off-by: Antoine Tenart
Cc: Albert Aribaud
---
arch/arm/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/Kconfig b/arc
Introducing the ARM_GIC configuration option, use it to only use GIC
specific code in ARM PSCI function when the SoC has a GIC.
Signed-off-by: Antoine Tenart
Cc: Albert ARIBAUD
---
arch/arm/cpu/armv7/nonsec_virt.S | 6 ++
arch/arm/cpu/armv7/virt-v7.c | 42
Select the newly introduced ARM_GIC option to the relevant MACH
configurations.
Signed-off-by: Antoine Tenart
Cc: Albert Aribaud
---
arch/arm/Kconfig | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index c7aebae3b039..8b13f6909f9c 100644
Select the newly introduced ARM_GIC option to the relevant configuration
which also have a psci implementation.
Signed-off-by: Antoine Tenart
Cc: Stefano Babic
---
arch/arm/cpu/armv7/mx7/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/cpu/armv7/mx7/Kconfig b/arch/arm/cpu
Add the suspend psci function for sun5i and sun7i. Thus function
switches the cpu clk source to osc24M or to losc depending on the
SoC family.
Signed-off-by: Antoine Tenart
---
arch/arm/cpu/armv7/sunxi/Makefile | 9 ++-
arch/arm/cpu/armv7/sunxi/psci.c | 40
The sun5i SoCs can take advantage of the newly introduce PSCI suspend
function. Add defines used by the PSCI code.
Signed-off-by: Antoine Tenart
---
include/configs/sun5i.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/configs/sun5i.h b/include/configs/sun5i.h
index ec8f3199ba34
d a commit message (removed 'HYP').
Antoine Tenart (11):
arm: add atomic functions with return support
arm: add the ARM_GIC configuration option
sunxi: select ARM_GIC for sun[6789]i
arm: select ARM_GIC for SoCs having a psci implementation
tegra: select ARM_GIC for Tegra SoCs
Select the newly introduced ARM_GIC option to the relevant configuration
which also have a psci implementation.
Signed-off-by: Antoine Tenart
Cc: Masahiro Yamada
---
arch/arm/mach-uniphier/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-uniphier/Kconfig b/arch/arm
Select the newly introduced ARM_GIC option to the relevant configuration
which also have a psci implementation.
Signed-off-by: Antoine Tenart
Cc: Tom Warren
---
arch/arm/mach-tegra/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra
sun5i now implements the psci suspend function. In order to be used by
the kernel, we should now boot in non-secure mode. Enable it by default.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
Select the newly introduced ARM_GIC option to the relevant sunxi
MACH configurations.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 9 +
1 file changed, 9 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 27bd42c64b98..e53cd9c21c33 100644
--- a/board
Hi Angus,
On Sun, Apr 30, 2017 at 10:26:15AM -0600, Angus Ainslie wrote:
> On 2017-04-30 07:29, Antoine Tenart wrote:
> >
> > Respin this series that was sent in October 2016, with comments and new
> > psci aware SoC taken into account.
> >
> > This series a
Hi Stephen,
On Mon, May 01, 2017 at 03:12:30PM +, Tom Warren wrote:
> Antoine - what testing did you do?
I tested using CPU idle with a mainline kernel on both the CHIP and an
A20 board (both have an Allwinner SoC). I also measured the overall
power consumption using the ACME cape from BayLib
On Tue, May 02, 2017 at 08:39:03AM +0200, Antoine Tenart wrote:
> Hi Stephen,
Of course I meant Tom... Sorry for that.
Antoine
> On Mon, May 01, 2017 at 03:12:30PM +, Tom Warren wrote:
> > Antoine - what testing did you do?
>
> I tested using CPU idle with a mainline
Hi Stephen,
On Mon, May 01, 2017 at 09:34:43AM -0600, Stephen Warren wrote:
> > Antoine Tenart wrote at Sunday, April 30, 2017 6:30 AM:
> > >
> > > Select the newly introduced ARM_GIC option to the relevant configuration
> > > which also have a psci implementati
Hi Maxime,
On Mon, May 01, 2017 at 11:14:22PM +0200, Maxime Ripard wrote:
> On Sun, Apr 30, 2017 at 03:29:56PM +0200, Antoine Tenart wrote:
> > sun5i now implements the psci suspend function. In order to be used by
> > the kernel, we should now boot in non-secure mode. Enabl
Hi Maxime,
On Mon, May 01, 2017 at 11:13:27PM +0200, Maxime Ripard wrote:
> On Sun, Apr 30, 2017 at 03:29:54PM +0200, Antoine Tenart wrote:
> > +
> > +static void __secure sunxi_clock_enter_idle(struct sunxi_ccm_reg *ccm)
> > +{
> > + /* switch cpuclk to osc24m */
&
On Sun, Apr 30, 2017 at 05:26:03PM -0600, Angus Ainslie wrote:
> On 2017-04-30 10:49, Hi Tenart wrote:
> > >
> > > Does this get suspend to memory working on the Nextthing CHIP ?
> >
> > No, this is used for CPU idle.
>
> Does a different PSCI function need to be implemented in u-boot to suppor
On Tue, May 02, 2017 at 09:04:18AM +0200, Antoine Tenart wrote:
> On Mon, May 01, 2017 at 11:13:27PM +0200, Maxime Ripard wrote:
> > On Sun, Apr 30, 2017 at 03:29:54PM +0200, Antoine Tenart wrote:
> >
> > > +static void __secure sunxi_clock_leave_idle(s
On Tue, May 02, 2017 at 09:33:47AM +0200, Maxime Ripard wrote:
> On Tue, May 02, 2017 at 03:27:41PM +0800, Chen-Yu Tsai wrote:
> > On Tue, May 2, 2017 at 3:23 PM, Antoine Tenart
> > wrote:
> > > On Tue, May 02, 2017 at 09:04:18AM +0200, Antoine Tenart wrote:
> > &g
On Tue, May 02, 2017 at 09:56:19AM +0200, Maxime Ripard wrote:
> On Tue, May 02, 2017 at 09:04:18AM +0200, Antoine Tenart wrote:
> > On Mon, May 01, 2017 at 11:13:27PM +0200, Maxime Ripard wrote:
> > > On Sun, Apr 30, 2017 at 03:29:54PM +0200, Antoine Tenart wrote:
> > &g
Select the newly introduced ARM_GIC option to the relevant MACH
configurations.
Signed-off-by: Antoine Tenart
---
arch/arm/Kconfig | 8
1 file changed, 8 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 6a5e53280679..b329d3c29fce 100644
--- a/arch/arm/Kconfig
+++ b
Implement three atomic functions to allow making an atomic operation
that returns the value. Adds: atomic_add_return(), atomic_sub_return(),
atomic_inc_return() and atomic_dec_return().
Signed-off-by: Antoine Tenart
---
arch/arm/include/asm/atomic.h | 34 ++
1
Introducing the ARM_GIC configuration option, use it to only use GIC
specific code in ARM PSCI function when the SoC has a GIC.
Signed-off-by: Antoine Tenart
---
arch/arm/cpu/armv7/nonsec_virt.S | 6 ++
arch/arm/cpu/armv7/virt-v7.c | 42 ++--
2 files
sun5i now implements the psci suspend function. In order to be used by
the kernel, we should now boot in non-secure mode. Enable it by default.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
Some SoC does not have a GIC. Adds a configuration option to denote
this, allowing to remove code configuring the GIC when it's not
possible.
Signed-off-by: Antoine Tenart
---
arch/arm/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
back the cpuclk source to pll1.
- Rebased on the latest master and updated the patches.
Since v1:
- Rebased on the latest master and updated the patches.
- Fixed a compile warning I introduced in virt-v7.c
- Added the missing ARM_GIC Kconfig options.
- Fixed a commit message (removed 'HY
Select the newly introduced ARM_GIC option to the relevant sunxi
MACH configurations.
Signed-off-by: Antoine Tenart
---
board/sunxi/Kconfig | 7 +++
1 file changed, 7 insertions(+)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index c0ffebfc..cd8330c3944f 100644
--- a/board
Select the newly introduced ARM_GIC option to the relevant configuration
which also have a psci implementation.
Signed-off-by: Antoine Tenart
---
arch/arm/mach-tegra/tegra124/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-tegra/tegra124/Kconfig
b/arch/arm/mach
Add the suspend psci function for sun5i and sun7i. Thus function
switches the cpu clk source to osc24M or to losc depending on the
SoC family.
Signed-off-by: Antoine Tenart
---
arch/arm/cpu/armv7/sunxi/Makefile | 9 ++-
arch/arm/cpu/armv7/sunxi/psci.c | 2 +-
arch
Select the newly introduced ARM_GIC option to the relevant configuration
which also have a psci implementation.
Signed-off-by: Antoine Tenart
---
arch/arm/mach-exynos/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index
The sun5i SoCs can take advantage of the newly introduce PSCI suspend
function. Add defines used by the PSCI code.
Signed-off-by: Antoine Tenart
---
include/configs/sun5i.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/sun5i.h b/include/configs/sun5i.h
index
Hello,
On Wed, Oct 26, 2016 at 08:55:27AM -0600, Stephen Warren wrote:
> On 10/26/2016 06:10 AM, Antoine Tenart wrote:
> > Select the newly introduced ARM_GIC option to the relevant configuration
> > which also have a psci implementation.
>
> This doesn't look right;
Hi,
On Wed, Oct 26, 2016 at 02:34:30PM +0200, Maxime Ripard wrote:
> On Wed, Oct 26, 2016 at 02:10:32PM +0200, Antoine Tenart wrote:
> > The sun5i SoCs can take advantage of the newly introduce PSCI suspend
> > function. Add defines used by the PSCI code.
> >
> > Si
Hi,
On Wed, Oct 26, 2016 at 02:38:10PM +0200, Maxime Ripard wrote:
> On Wed, Oct 26, 2016 at 02:10:31PM +0200, Antoine Tenart wrote:
> > +
> > +#ifndef CONFIG_MACH_SUN7I
> > + /* switch cpuclk to losc */
> > + clrbits_le32(&ccm->cpu_ahb_apb0_cfg, 0x3
On Wed, Oct 26, 2016 at 09:01:59AM -0600, Stephen Warren wrote:
> On 10/26/2016 08:59 AM, Antoine Tenart wrote:
> > On Wed, Oct 26, 2016 at 08:55:27AM -0600, Stephen Warren wrote:
> > > On 10/26/2016 06:10 AM, Antoine Tenart wrote:
> > > > Select the newly introduced
HI Mark,
On Wed, Oct 26, 2016 at 04:14:31PM +0100, Mark Rutland wrote:
> On Wed, Oct 26, 2016 at 02:10:24PM +0200, Antoine Tenart wrote:
> > Implement three atomic functions to allow making an atomic operation
> > that returns the value. Adds: atomic_add_return(), at
On Thu, Oct 27, 2016 at 03:20:02PM +0200, Maxime Ripard wrote:
> On Thu, Oct 27, 2016 at 03:10:58PM +0200, Antoine Tenart wrote:
> > On Wed, Oct 26, 2016 at 02:38:10PM +0200, Maxime Ripard wrote:
> > > On Wed, Oct 26, 2016 at 02:10:31PM +0200, Antoine Tenart wrote:
> >
Hi,
On Thu, Oct 27, 2016 at 09:21:10PM +0800, Chen-Yu Tsai wrote:
> On Thu, Oct 27, 2016 at 9:10 PM, Antoine Tenart
> wrote:
> > On Wed, Oct 26, 2016 at 02:38:10PM +0200, Maxime Ripard wrote:
> >> On Wed, Oct 26, 2016 at 02:10:31PM +0200, Antoine Tenart wrote:
> >
>
60 matches
Mail list logo