media: qcom: Switch iris/venus to generic PAS TZ APIs - #1651
media: qcom: Switch iris/venus to generic PAS TZ APIs#1651pgujjula-qcom wants to merge 2 commits into
Conversation
Switch qcom media client drivers over to generic PAS TZ APIs. Generic PAS TZ service allows to support multiple TZ implementation backends like QTEE based SCM PAS service, OP-TEE based PAS service and any further future TZ backend service. Reviewed-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Tested-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> # Lemans Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Link: https://lore.kernel.org/lkml/20260702115835.167602-10-sumit.garg@kernel.org/
As per testing the SCM backend just ignores it while OP-TEE makes use of it to for proper book keeping purpose. Reviewed-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Tested-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> # Lemans Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com> Signed-off-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/lkml/20260702115835.167602-11-sumit.garg@kernel.org/
🔨 Build Failure Analysis — PR #1651PR: #1651
Verdict0 of 1 errors are introduced by this PR; 1 is pre-existing. The PR only modifies media driver source files ( 📎 Detailed analysis: Full report |
🔨 Build Failure Analysis — PR #1651PR: #1651
VerdictThe build failure is NOT caused by this PR. The error is a pre-existing device tree compilation issue where 📎 Detailed analysis: Full report |
PR #1651 — validate-patchPR: #1651
Final Summary
|
PR #1651 — checker-log-analyzerPR: #1651
Detailed report: Full report
|
Summary
Switch the Qualcomm media (iris + venus) drivers over to the generic PAS TZ APIs
(
qcom_pas_*), picking up the iris/venus-relevant patches from Sumit Garg's series"firmware: qcom: Add OP-TEE PAS service support" (v9). The remaining patches in that
series (generic PAS service + other subsystem conversions) flow in from a different
branch at merge time.
Commits
Rename
qcom_scm_pas_*/qcom_scm_set_remote_state→qcom_pas_*/qcom_pas_set_remote_statein iris + venus, add#include <linux/firmware/qcom/qcom_pas.h>, andselect QCOM_PASin both Kconfigs.Extended beyond the upstream posting to also convert the context API
(
qcom_scm_pas_prepare_and_auth_reset,devm_qcom_scm_pas_context_alloc,struct qcom_scm_pas_context,qcom_scm_pas_metadata_release,qcom_scm_pas_supported) — a downstream secure-PAS addition not present in Sumit'supstream base. This is required so the drivers do not reference symbols removed by
the series' "Remove SCM PAS wrappers" patch.
qcom_pas_set_remote_state(resume, 0)→(resume, {IRIS,VENUS}_PAS_ID).Notes for reviewers
iris/iris_firmware.c,iris/iris_core.h,iris/Kconfig,venus/firmware.c,venus/core.h,venus/Kconfig.qcom_pas_*symbols andQCOM_PASKconfig come from thegeneric-PAS series; this compiles only once that series is present in the target
branch.
Links:
🤖 Generated with Claude Code