Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Kevin Hilman
Mark Rutland writes: > On Fri, May 23, 2014 at 03:51:07PM +0100, Catalin Marinas wrote: >> On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: >> > Christopher Covington writes: >> > > On 05/22/2014 03:27 PM, Larry Bassel wrote: >> > >> Make calls to ct_user_enter when the kernel is

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Will Deacon
On Fri, May 23, 2014 at 04:55:44PM +0100, Mark Rutland wrote: > On Fri, May 23, 2014 at 03:51:07PM +0100, Catalin Marinas wrote: > > On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: > > I haven't checked all the code paths but at least for pushing onto the > > stack we must keep it

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Mark Rutland
On Fri, May 23, 2014 at 03:51:07PM +0100, Catalin Marinas wrote: > On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: > > Christopher Covington writes: > > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > > >> Make calls to ct_user_enter when the kernel is exited > > >> and ct_user_exit

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Catalin Marinas
On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: > Christopher Covington writes: > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > >> Make calls to ct_user_enter when the kernel is exited > >> and ct_user_exit when the kernel is entered (in el0_da, > >> el0_ia, el0_svc, el0_irq and

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Catalin Marinas
On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: Christopher Covington c...@codeaurora.org writes: On 05/22/2014 03:27 PM, Larry Bassel wrote: Make calls to ct_user_enter when the kernel is exited and ct_user_exit when the kernel is entered (in el0_da, el0_ia, el0_svc,

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Mark Rutland
On Fri, May 23, 2014 at 03:51:07PM +0100, Catalin Marinas wrote: On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: Christopher Covington c...@codeaurora.org writes: On 05/22/2014 03:27 PM, Larry Bassel wrote: Make calls to ct_user_enter when the kernel is exited and

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Will Deacon
On Fri, May 23, 2014 at 04:55:44PM +0100, Mark Rutland wrote: On Fri, May 23, 2014 at 03:51:07PM +0100, Catalin Marinas wrote: On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: I haven't checked all the code paths but at least for pushing onto the stack we must keep it 16-bytes

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Kevin Hilman
Mark Rutland mark.rutl...@arm.com writes: On Fri, May 23, 2014 at 03:51:07PM +0100, Catalin Marinas wrote: On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: Christopher Covington c...@codeaurora.org writes: On 05/22/2014 03:27 PM, Larry Bassel wrote: Make calls to

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Kevin Hilman
+Mark Rutland Christopher Covington writes: > Hi Larry, > > On 05/22/2014 03:27 PM, Larry Bassel wrote: >> Make calls to ct_user_enter when the kernel is exited >> and ct_user_exit when the kernel is entered (in el0_da, >> el0_ia, el0_svc, el0_irq and all of the "error" paths). >> >> These

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Christopher Covington
Hi Larry, On 05/22/2014 03:27 PM, Larry Bassel wrote: > Make calls to ct_user_enter when the kernel is exited > and ct_user_exit when the kernel is entered (in el0_da, > el0_ia, el0_svc, el0_irq and all of the "error" paths). > > These macros expand to function calls which will only work >

[PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Larry Bassel
Make calls to ct_user_enter when the kernel is exited and ct_user_exit when the kernel is entered (in el0_da, el0_ia, el0_svc, el0_irq and all of the "error" paths). These macros expand to function calls which will only work properly if el0_sync and related code has been rearranged (in a previous

[PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Larry Bassel
Make calls to ct_user_enter when the kernel is exited and ct_user_exit when the kernel is entered (in el0_da, el0_ia, el0_svc, el0_irq and all of the error paths). These macros expand to function calls which will only work properly if el0_sync and related code has been rearranged (in a previous

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Christopher Covington
Hi Larry, On 05/22/2014 03:27 PM, Larry Bassel wrote: Make calls to ct_user_enter when the kernel is exited and ct_user_exit when the kernel is entered (in el0_da, el0_ia, el0_svc, el0_irq and all of the error paths). These macros expand to function calls which will only work properly if

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-22 Thread Kevin Hilman
+Mark Rutland Christopher Covington c...@codeaurora.org writes: Hi Larry, On 05/22/2014 03:27 PM, Larry Bassel wrote: Make calls to ct_user_enter when the kernel is exited and ct_user_exit when the kernel is entered (in el0_da, el0_ia, el0_svc, el0_irq and all of the error paths). These