Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Sonny Rao
On Fri, Sep 19, 2014 at 6:30 AM, Catalin Marinas wrote: > On Fri, Sep 19, 2014 at 02:22:10PM +0100, Christopher Covington wrote: >> On 09/19/2014 01:56 AM, Peter Maydell wrote: >> > On 17 September 2014 06:25, Christopher Covington >> > wrote: >> >> On 09/16/2014 05:24 PM, Christopher Covington

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Christopher Covington
Hi Catalin, On 09/18/2014 01:23 PM, Catalin Marinas wrote: > On Tue, Sep 16, 2014 at 10:09:16PM +0100, Christopher Covington wrote: >> diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S >> index 2a55373..36d1a9c 100644 >> --- a/arch/arm/kernel/hyp-stub.S >> +++

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Christopher Covington
On 09/19/2014 09:30 AM, Catalin Marinas wrote: > On Fri, Sep 19, 2014 at 02:22:10PM +0100, Christopher Covington wrote: >> On 09/19/2014 01:56 AM, Peter Maydell wrote: >>> On 17 September 2014 06:25, Christopher Covington >>> wrote: On 09/16/2014 05:24 PM, Christopher Covington wrote: >

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Catalin Marinas
On Fri, Sep 19, 2014 at 02:22:10PM +0100, Christopher Covington wrote: > On 09/19/2014 01:56 AM, Peter Maydell wrote: > > On 17 September 2014 06:25, Christopher Covington > > wrote: > >> On 09/16/2014 05:24 PM, Christopher Covington wrote: > >>> On 09/16/2014 05:09 PM, Christopher Covington

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Christopher Covington
Hi Peter, On 09/19/2014 01:56 AM, Peter Maydell wrote: > On 17 September 2014 06:25, Christopher Covington wrote: >> On 09/16/2014 05:24 PM, Christopher Covington wrote: >>> On 09/16/2014 05:09 PM, Christopher Covington wrote: ARM Linux currently has the most features available to it in

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Christopher Covington
Hi Peter, On 09/19/2014 01:56 AM, Peter Maydell wrote: On 17 September 2014 06:25, Christopher Covington c...@codeaurora.org wrote: On 09/16/2014 05:24 PM, Christopher Covington wrote: On 09/16/2014 05:09 PM, Christopher Covington wrote: ARM Linux currently has the most features available to

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Catalin Marinas
On Fri, Sep 19, 2014 at 02:22:10PM +0100, Christopher Covington wrote: On 09/19/2014 01:56 AM, Peter Maydell wrote: On 17 September 2014 06:25, Christopher Covington c...@codeaurora.org wrote: On 09/16/2014 05:24 PM, Christopher Covington wrote: On 09/16/2014 05:09 PM, Christopher

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Christopher Covington
On 09/19/2014 09:30 AM, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 02:22:10PM +0100, Christopher Covington wrote: On 09/19/2014 01:56 AM, Peter Maydell wrote: On 17 September 2014 06:25, Christopher Covington c...@codeaurora.org wrote: On 09/16/2014 05:24 PM, Christopher Covington wrote:

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Christopher Covington
Hi Catalin, On 09/18/2014 01:23 PM, Catalin Marinas wrote: On Tue, Sep 16, 2014 at 10:09:16PM +0100, Christopher Covington wrote: diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S index 2a55373..36d1a9c 100644 --- a/arch/arm/kernel/hyp-stub.S +++

Re: [RFC] arm: Handle starting up in secure mode

2014-09-19 Thread Sonny Rao
On Fri, Sep 19, 2014 at 6:30 AM, Catalin Marinas catalin.mari...@arm.com wrote: On Fri, Sep 19, 2014 at 02:22:10PM +0100, Christopher Covington wrote: On 09/19/2014 01:56 AM, Peter Maydell wrote: On 17 September 2014 06:25, Christopher Covington c...@codeaurora.org wrote: On 09/16/2014

Re: [RFC] arm: Handle starting up in secure mode

2014-09-18 Thread Peter Maydell
On 17 September 2014 06:25, Christopher Covington wrote: > On 09/16/2014 05:24 PM, Christopher Covington wrote: >> On 09/16/2014 05:09 PM, Christopher Covington wrote: >>> ARM Linux currently has the most features available to it in hypervisor >>> (HYP) mode, so switch to it when possible. This

Re: [RFC] arm: Handle starting up in secure mode

2014-09-18 Thread Catalin Marinas
On Tue, Sep 16, 2014 at 10:09:16PM +0100, Christopher Covington wrote: > diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S > index 2a55373..36d1a9c 100644 > --- a/arch/arm/kernel/hyp-stub.S > +++ b/arch/arm/kernel/hyp-stub.S > @@ -20,6 +20,7 @@ > #include > #include >

Re: [RFC] arm: Handle starting up in secure mode

2014-09-18 Thread Peter Maydell
On 17 September 2014 06:25, Christopher Covington c...@codeaurora.org wrote: On 09/16/2014 05:24 PM, Christopher Covington wrote: On 09/16/2014 05:09 PM, Christopher Covington wrote: ARM Linux currently has the most features available to it in hypervisor (HYP) mode, so switch to it when

Re: [RFC] arm: Handle starting up in secure mode

2014-09-18 Thread Catalin Marinas
On Tue, Sep 16, 2014 at 10:09:16PM +0100, Christopher Covington wrote: diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S index 2a55373..36d1a9c 100644 --- a/arch/arm/kernel/hyp-stub.S +++ b/arch/arm/kernel/hyp-stub.S @@ -20,6 +20,7 @@ #include linux/linkage.h #include

Re: [RFC] arm: Handle starting up in secure mode

2014-09-17 Thread Sonny Rao
On Wed, Sep 17, 2014 at 6:25 AM, Christopher Covington wrote: > On 09/16/2014 05:24 PM, Christopher Covington wrote: >> On 09/16/2014 05:09 PM, Christopher Covington wrote: >>> ARM Linux currently has the most features available to it in hypervisor >>> (HYP) mode, so switch to it when possible.

Re: [RFC] arm: Handle starting up in secure mode

2014-09-17 Thread Christopher Covington
On 09/16/2014 05:24 PM, Christopher Covington wrote: > On 09/16/2014 05:09 PM, Christopher Covington wrote: >> ARM Linux currently has the most features available to it in hypervisor >> (HYP) mode, so switch to it when possible. This can also ensure proper >> reset of newer registers such as

Re: [RFC] arm: Handle starting up in secure mode

2014-09-17 Thread Christopher Covington
On 09/16/2014 05:24 PM, Christopher Covington wrote: On 09/16/2014 05:09 PM, Christopher Covington wrote: ARM Linux currently has the most features available to it in hypervisor (HYP) mode, so switch to it when possible. This can also ensure proper reset of newer registers such as CNTVOFF.

Re: [RFC] arm: Handle starting up in secure mode

2014-09-17 Thread Sonny Rao
On Wed, Sep 17, 2014 at 6:25 AM, Christopher Covington c...@codeaurora.org wrote: On 09/16/2014 05:24 PM, Christopher Covington wrote: On 09/16/2014 05:09 PM, Christopher Covington wrote: ARM Linux currently has the most features available to it in hypervisor (HYP) mode, so switch to it when

Re: [RFC] arm: Handle starting up in secure mode

2014-09-16 Thread Christopher Covington
On 09/16/2014 05:09 PM, Christopher Covington wrote: > ARM Linux currently has the most features available to it in hypervisor > (HYP) mode, so switch to it when possible. This can also ensure proper > reset of newer registers such as CNTVOFF. > > The permissions on the Non-Secure Access Control

Re: [RFC] arm: Handle starting up in secure mode

2014-09-16 Thread Christopher Covington
On 09/16/2014 05:09 PM, Christopher Covington wrote: ARM Linux currently has the most features available to it in hypervisor (HYP) mode, so switch to it when possible. This can also ensure proper reset of newer registers such as CNTVOFF. The permissions on the Non-Secure Access Control