On 11/27/26 10:56 AM, Anandu Krishnan E wrote:
> ADSP running a compute-capable firmware image needs an additional
> unsigned PD device node, same as CDSP/GDSP, instead of only the
> signed node it gets today. The probe-time capability query now
> caches the DSP's attributes before device nodes are registered, so
> fastrpc_register_devices() can check DSP_IMAGE_CONFIG_ATTR_IDX and
> fall through to the CDSP/GDSP unsigned+signed registration path when
> the queried ADSP reports FASTRPC_DSP_COMPUTE_LITE.
> 
> Signed-off-by: Anandu Krishnan E <[email protected]>
> ---

[...]

> @@ -2621,8 +2629,17 @@ static int fastrpc_register_devices(struct 
> fastrpc_channel_ctx *cctx,
>                                   struct rpmsg_device *rpdev)
>  {
>       struct device *rdev = &rpdev->dev;
> +     bool compute_capable = false;
>       int err, i;
>  
> +     /*
> +      * ADSP running a compute-capable firmware image also needs an
> +      * unsigned PD node, same as CDSP/GDSP.
> +      */
> +     if (cctx->domain_id == ADSP_DOMAIN_ID && cctx->valid_attributes &&
> +         cctx->dsp_attributes[DSP_IMAGE_CONFIG_ATTR_IDX] == 
> FASTRPC_DSP_COMPUTE_LITE)
> +             compute_capable = true;
> +
>       /*
>        * Duplicate the ADSP sessions before any device node is registered
>        * below: misc_register() lets userspace open() and allocate a
> @@ -2647,6 +2664,9 @@ static int fastrpc_register_devices(struct 
> fastrpc_channel_ctx *cctx,
>  
>       switch (cctx->domain_id) {
>       case ADSP_DOMAIN_ID:

With capability discovery in place, can we drop the domain_id
handling from the driver altogether?

Konrad

Reply via email to