Re: [PATCH v12 2/9] media: iris: Enable Secure PAS support with IOMMU managed by Linux

From: Vishnu Reddy

Date: Wed Nov 25 2026 - 04:47:44 EST



On 11/25/2026 1:54 PM, Mukesh Ojha wrote:
> On Wed, Nov 25, 2026 at 08:54:09AM +0530, Vishnu Reddy wrote:
>> From: Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx>
>>
>> On platforms where a hypervisor is present, all Secure Monitor Calls
>> (SMC) are intercepted. For qcom_scm_pas_auth_and_reset(), the hypervisor
>> registers a Shared Memory (SHM) bridge over the Peripheral Image Loader
>> (PIL) memory region so that TrustZone (TZ) can access it, forwards the
>> authentication SMC to TZ, and upon return maps the PIL region and
>> triggers the co-processor bring-up sequence:
>> HLOS -> Hypervisor(SHM setup) -> TZ(auth) -> Hypervisor(map+reset) -> IRIS
>>
>> On platforms without a hypervisor, Linux drives these steps directly.
>> The SHM bridge infrastructure required for this is already upstream [1].
>> To isolate firmware memory in its own Input-Output Memory Management
>> Unit (IOMMU) context, a dedicated stream ID (SID) is required. This SID
>> is specified via the iommus property of a video-firmware child node in
>> the device tree. A firmware device is created from this node and mapped
>> to the SID.
>> The presence of the video-firmware child node is used to detect whether
>> a hypervisor is absent: when the node is present, Linux manages the
>> IOMMU directly; when it is absent, a hypervisor is assumed to be present
>> and these steps are skipped.
>> Extend the Iris driver to support Secure Peripheral Authentication
>> Service (PAS) on platforms where Linux manages the IOMMU, by creating
>> the firmware context device and performing the necessary IOMMU mapping
>> when the firmware device SID is present.
>> [1] https://lore.kernel.org/lkml/20260105-kvmrprocv10-v10-0-022e96815380
>> @oss.qualcomm.com/
>>
>> Reviewed-by: Vishnu Reddy <busanna.reddy@xxxxxxxxxxxxxxxx>
>> Co-developed-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>
>> Signed-off-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>
>> Signed-off-by: Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx>
>> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
>> Link: https://lore.kernel.org/lkml/20260105-kvmrprocv10-v10-0-022e96815380@xxxxxxxxxxxxxxxx/
>> Signed-off-by: Vishnu Reddy <busanna.reddy@xxxxxxxxxxxxxxxx>
>
> Looks like it is almost two month after which you posted this series,

As listed in the cover letter prerequisites, this series depends on several
patches that required review and any follow-up updates, if needed. Since this
series would not work without those changes, posting this revision was delayed.

>
> So, I posted a series to move every mdt loader user to move to new pas load API.
>
> Please review this as well.
>
> https://lore.kernel.org/all/20261116162148.2864501-5-mukesh.ojha@xxxxxxxxxxxxxxxx/
>
>