Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Stephen Boyd
On 09/23/14 10:45, Kumar Gala wrote: > On Sep 23, 2014, at 12:42 PM, Stephen Boyd wrote: > >> On 09/23/14 09:47, Kumar Gala wrote: >>> On Sep 22, 2014, at 5:36 PM, Stephen Boyd wrote: >>> The secure environment only runs in little-endian mode, so any buffers shared with the secure

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Kumar Gala
On Sep 23, 2014, at 12:42 PM, Stephen Boyd wrote: > On 09/23/14 09:47, Kumar Gala wrote: >> On Sep 22, 2014, at 5:36 PM, Stephen Boyd wrote: >> >>> The secure environment only runs in little-endian mode, so any >>> buffers shared with the secure environment should have their >>> contents

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Stephen Boyd
On 09/23/14 09:47, Kumar Gala wrote: > On Sep 22, 2014, at 5:36 PM, Stephen Boyd wrote: > >> The secure environment only runs in little-endian mode, so any >> buffers shared with the secure environment should have their >> contents converted to little-endian. We also mark such elements >> with

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Kumar Gala
On Sep 22, 2014, at 5:36 PM, Stephen Boyd wrote: > The secure environment only runs in little-endian mode, so any > buffers shared with the secure environment should have their > contents converted to little-endian. We also mark such elements > with __le32 to allow sparse to catch such

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Kumar Gala
On Sep 22, 2014, at 5:36 PM, Stephen Boyd sb...@codeaurora.org wrote: The secure environment only runs in little-endian mode, so any buffers shared with the secure environment should have their contents converted to little-endian. We also mark such elements with __le32 to allow sparse to

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Stephen Boyd
On 09/23/14 09:47, Kumar Gala wrote: On Sep 22, 2014, at 5:36 PM, Stephen Boyd sb...@codeaurora.org wrote: The secure environment only runs in little-endian mode, so any buffers shared with the secure environment should have their contents converted to little-endian. We also mark such

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Kumar Gala
On Sep 23, 2014, at 12:42 PM, Stephen Boyd sb...@codeaurora.org wrote: On 09/23/14 09:47, Kumar Gala wrote: On Sep 22, 2014, at 5:36 PM, Stephen Boyd sb...@codeaurora.org wrote: The secure environment only runs in little-endian mode, so any buffers shared with the secure environment should

Re: [PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-23 Thread Stephen Boyd
On 09/23/14 10:45, Kumar Gala wrote: On Sep 23, 2014, at 12:42 PM, Stephen Boyd sb...@codeaurora.org wrote: On 09/23/14 09:47, Kumar Gala wrote: On Sep 22, 2014, at 5:36 PM, Stephen Boyd sb...@codeaurora.org wrote: The secure environment only runs in little-endian mode, so any buffers

[PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-22 Thread Stephen Boyd
The secure environment only runs in little-endian mode, so any buffers shared with the secure environment should have their contents converted to little-endian. We also mark such elements with __le32 to allow sparse to catch such problems. Signed-off-by: Stephen Boyd ---

[PATCH] ARM: qcom: Fix SCM interface for big-endian kernels

2014-09-22 Thread Stephen Boyd
The secure environment only runs in little-endian mode, so any buffers shared with the secure environment should have their contents converted to little-endian. We also mark such elements with __le32 to allow sparse to catch such problems. Signed-off-by: Stephen Boyd sb...@codeaurora.org ---