Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
On Wed 15 Jul 17:55 PDT 2015, Stephen Boyd wrote: > On 07/15/2015 05:35 PM, Bjorn Andersson wrote: > >On Wed 15 Jul 16:43 PDT 2015, Stephen Boyd wrote: > > > >>On 07/15, Bjorn Andersson wrote: [..] > >>Also, dma_alloc_coherent() doesn't do enough to prevent XPU > >>violations because memory return

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Stephen Boyd
On 07/15/2015 05:35 PM, Bjorn Andersson wrote: On Wed 15 Jul 16:43 PDT 2015, Stephen Boyd wrote: On 07/15, Bjorn Andersson wrote: This adds the Peripheral Authentication Service (PAS) interface to the Qualcomm SCM interface. The API is used to authenticate and boot a range of external processo

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
On Wed 15 Jul 14:33 PDT 2015, Andy Gross wrote: > On Wed, Jul 15, 2015 at 11:58:06AM -0700, Bjorn Andersson wrote: > > > > > +int __qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t > > size) > > +{ > > + dma_addr_t mdata_phys; > > + void *mdata_buf; > > + __le32 scm_r

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
On Wed 15 Jul 16:43 PDT 2015, Stephen Boyd wrote: > On 07/15, Bjorn Andersson wrote: > > This adds the Peripheral Authentication Service (PAS) interface to the > > Qualcomm SCM interface. The API is used to authenticate and boot a range > > of external processors in various Qualcomm platforms. > >

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Stephen Boyd
On 07/15, Bjorn Andersson wrote: > This adds the Peripheral Authentication Service (PAS) interface to the > Qualcomm SCM interface. The API is used to authenticate and boot a range > of external processors in various Qualcomm platforms. > > Signed-off-by: Bjorn Andersson > --- > > Changes since

Re: [PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Andy Gross
On Wed, Jul 15, 2015 at 11:58:06AM -0700, Bjorn Andersson wrote: > +int __qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t > size) > +{ > + dma_addr_t mdata_phys; > + void *mdata_buf; > + __le32 scm_ret; > + int ret; > + struct pas_init_image_req { > +

[PATCH v2] firmware: qcom: scm: Peripheral Authentication Service

2015-07-15 Thread Bjorn Andersson
This adds the Peripheral Authentication Service (PAS) interface to the Qualcomm SCM interface. The API is used to authenticate and boot a range of external processors in various Qualcomm platforms. Signed-off-by: Bjorn Andersson --- Changes since v1: - Big endian compatibility drivers/firmware