Re: [PATCH V5 3/6] remoteproc: qcom: add hexagon based WCSS secure PIL driver
From: Gokul Sriram P <hidden>
Date: 2025-05-05 13:12:40
Also in:
linux-arm-msm, linux-remoteproc
On 5/5/2025 6:37 PM, Konrad Dybcio wrote:
On 5/5/25 2:30 PM, Gokul Sriram P wrote:quoted
On 4/25/2025 5:17 PM, Konrad Dybcio wrote:quoted
On 4/17/25 8:12 AM, Gokul Sriram Palanisamy wrote:quoted
From: Vignesh Viswanathan <redacted> Add support to bring up hexagon based WCSS using secure PIL. All IPQxxxx SoCs support secure Peripheral Image Loading (PIL). Secure PIL image is signed firmware image which only trusted software such as TrustZone (TZ) can authenticate and load. Linux kernel will send a Peripheral Authentication Service (PAS) request to TZ to authenticate and load the PIL images. This change also introduces secure firmware authentication using Trusted Management Engine-Lite (TME-L) which is supported on IPQ5424 SoC. This driver uses mailbox based PAS request to TME-L for image authentication if supported, else it will fallback to use SCM call based PAS request to TZ. In order to avoid overloading the existing WCSS driver or PAS driver, we came up with this new PAS based IPQ WCSS driver. Signed-off-by: Vignesh Viswanathan <redacted> Signed-off-by: Manikanta Mylavarapu <redacted> Signed-off-by: Gokul Sriram Palanisamy <redacted> ---[...]quoted
+static int wcss_sec_start(struct rproc *rproc) +{ + struct wcss_sec *wcss = rproc->priv; + struct device *dev = wcss->dev; + int ret; + + ret = qcom_q6v5_prepare(&wcss->q6); + if (ret) + return ret; + + if (!IS_ERR_OR_NULL(wcss->mbox_chan)) {You abort probe if wcss->mbox_chan returns an errno, please rework this to use if (use_tmelcom) or somethingHi Konrad, do you mean to use 'use_tmelcom' variable from driver descriptor? If yes, what if mbox_request_channel( ) failed? or based on wcss->mbox_chan, should I set 'use_tmeeiihcckgddglcom' to true or false and use it?Add 'use_tmelcom' in match data and then make decisions based on it if the mailbox channel get fails and use_tmelcom is true, fail probing etc.
Got it. Will update. Regards, Gokul