Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-03-18 Thread Patrick DELAUNAY
Hi, > From: Oleksandr > Sent: jeudi 14 mars 2019 12:37 > > > On 14.03.19 02:16, Marek Vasut wrote: > > On 2/12/19 8:52 PM, Oleksandr wrote: > > > > Hi, > > Hi > > > > > [...] > > > > I was thinking about this whole PSCI situation and how it's all > > implemented today. Basically what we do

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-03-14 Thread Oleksandr
On 14.03.19 02:16, Marek Vasut wrote: On 2/12/19 8:52 PM, Oleksandr wrote: Hi, Hi [...] I was thinking about this whole PSCI situation and how it's all implemented today. Basically what we do is generate a separate reduced shred of U-Boot, which will remain resident in memory and which

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-03-13 Thread Ley Foon Tan
On Thu, 2019-03-14 at 01:16 +0100, Marek Vasut wrote: > On 2/12/19 8:52 PM, Oleksandr wrote: > > Hi, > > [...] > > I was thinking about this whole PSCI situation and how it's all > implemented today. Basically what we do is generate a separate > reduced > shred of U-Boot, which will remain

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-03-13 Thread Marek Vasut
On 2/12/19 8:52 PM, Oleksandr wrote: Hi, [...] I was thinking about this whole PSCI situation and how it's all implemented today. Basically what we do is generate a separate reduced shred of U-Boot, which will remain resident in memory and which could be called by some other software. That

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-27 Thread Marek Vasut
On 2/26/19 7:37 PM, Oleksandr wrote: > > Hi, Marek Hi, >>> 2. It should be new pm-r8a7791.c file which will don't have any CA7 related stuff (CPU cores, SCU, etc). >>> I'd like to have a generic pm-gen2.c file , which parses the DT and >>> figures the configuration out that way. We

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-26 Thread Oleksandr
Hi, Marek 2. It should be new pm-r8a7791.c file which will don't have any CA7 related stuff (CPU cores, SCU, etc). I'd like to have a generic pm-gen2.c file , which parses the DT and figures the configuration out that way. We are trying to get rid of all the ad-hoc hardcoded configuration

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-12 Thread Oleksandr
On 09.02.19 18:37, Marek Vasut wrote: Hi diff --git a/arch/arm/mach-rmobile/Kconfig.32 b/arch/arm/mach-rmobile/Kconfig.32 index 076a019..a2e9e3d 100644 --- a/arch/arm/mach-rmobile/Kconfig.32 +++ b/arch/arm/mach-rmobile/Kconfig.32 @@ -76,6 +76,8 @@ config TARGET_LAGER    select

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-12 Thread Oleksandr
On 09.02.19 18:35, Marek Vasut wrote: Hi On 2/7/19 6:19 PM, Oleksandr wrote: [...] +    /* Update registers with correct frequency */ +    writel(freq, TIMER_BASE + TIMER_CNTFID0); +    asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); + +    /* Make sure arch

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-09 Thread Marek Vasut
On 2/7/19 6:19 PM, Oleksandr wrote: [...] > +    /* Update registers with correct frequency */ > +    writel(freq, TIMER_BASE + TIMER_CNTFID0); > +    asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); > + > +    /* Make sure arch timer is started by

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-09 Thread Marek Vasut
On 2/8/19 12:40 PM, Oleksandr wrote: > > On 07.02.19 19:19, Oleksandr wrote: >> >> On 07.02.19 17:49, Marek Vasut wrote: >>> On 2/7/19 4:28 PM, Oleksandr wrote: On 05.02.19 20:48, Marek Vasut wrote: Hi Marek >>> Hi, >> >> Hi, >> >>> > On 1/31/19 6:38 PM, Oleksandr Tyshchenko

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-08 Thread Oleksandr
On 07.02.19 19:19, Oleksandr wrote: On 07.02.19 17:49, Marek Vasut wrote: On 2/7/19 4:28 PM, Oleksandr wrote: On 05.02.19 20:48, Marek Vasut wrote: Hi Marek Hi, Hi, On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Both Lager and Stout boards are based on

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-07 Thread Oleksandr
On 07.02.19 17:49, Marek Vasut wrote: On 2/7/19 4:28 PM, Oleksandr wrote: On 05.02.19 20:48, Marek Vasut wrote: Hi Marek Hi, Hi, On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Both Lager and Stout boards are based on r8a7790 SoC. Leave platform specific

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-07 Thread Marek Vasut
On 2/7/19 4:28 PM, Oleksandr wrote: > > On 05.02.19 20:48, Marek Vasut wrote: > > Hi Marek Hi, >> On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: >>> From: Oleksandr Tyshchenko >>> >>> Both Lager and Stout boards are based on r8a7790 SoC. >>> >>> Leave platform specific functions for bringing

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-07 Thread Oleksandr
On 05.02.19 20:48, Marek Vasut wrote: Hi Marek On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: From: Oleksandr Tyshchenko Both Lager and Stout boards are based on r8a7790 SoC. Leave platform specific functions for bringing seconadary CPUs up empty, since our target is to use PSCI for

Re: [U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-02-05 Thread Marek Vasut
On 1/31/19 6:38 PM, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > Both Lager and Stout boards are based on r8a7790 SoC. > > Leave platform specific functions for bringing seconadary CPUs up empty, > since our target is to use PSCI for that. > > Also take care of updating arch

[U-Boot] [PATCH 1/3] ARM: rmobile: Switch CPU to non-secure HYP mode for r8a7790 based boards

2019-01-31 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko Both Lager and Stout boards are based on r8a7790 SoC. Leave platform specific functions for bringing seconadary CPUs up empty, since our target is to use PSCI for that. Also take care of updating arch timer while we are in secure mode. Signed-off-by: Oleksandr