Re: [PATCH 2/4] firmware: qcom: scm: add iommu scm calls for pg table

From: Andy Gross
Date: Tue Aug 30 2016 - 17:15:42 EST


On Wed, Aug 24, 2016 at 11:35:29AM -0700, Gupta, Puja wrote:
> On 8/19/2016 8:53 AM, Stanimir Varbanov wrote:
> >Those two scm calls are used to get the size of secure iommu
> >page table and to pass physical memory address for this page
> >table. The calls are used by remoteproc venus driver to load
> >the firmware.
> Do we really need these additional scm calls for venus? why can't we just
> reuse existing __qcom_scm_pas_mem_setup() call?

Keep in mind this is with the smmu-v1 on 8916. It seems like the downstream
kernel has to do extra stuff when dealing with the older smmu. The newer
platforms handle this quasi-transparently.

Regards,

Andy