Re: [PATCH] soc: qcom: qcom_stats: Add support for NSP subsystem stats

From: Pankaj Patil

Date: Tue Sep 08 2026 - 06:13:57 EST


On 9/8/2026 1:43 PM, Navya Malempati wrote:
> Add SMEM items for four NSP subsystems stats which are present in Nord
> SoC. Rename CDSP stats as CDSP_NSP as both use same PID and SMEM item
> id. Add new entries for NSP1/2/3.

For other targets as well is the same applicable? NSP and CDSP are interchangeable?

>
> Signed-off-by: Navya Malempati <navya.malempati@xxxxxxxxxxxxxxxx>
> ---
> drivers/soc/qcom/qcom_stats.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c
> index 06923408bfce..91f2d1293124 100644
> --- a/drivers/soc/qcom/qcom_stats.c
> +++ b/drivers/soc/qcom/qcom_stats.c
> @@ -43,8 +43,11 @@ static const struct subsystem_data subsystems[] = {
> { "modem", 605, 1 },
> { "wpss", 605, 13 },
> { "adsp", 606, 2 },
> - { "cdsp", 607, 5 },
> + { "cdsp_nsp", 607, 5 },
> { "cdsp1", 607, 12 },

Is cdsp1 not the same as nsp1?
Adding cdsp_nsp_1 is very SOC specific

> + { "cdsp_nsp_1", 607, 69 },
> + { "cdsp_nsp_2", 607, 133 },
> + { "cdsp_nsp_3", 607, 197 },
> { "gpdsp0", 607, 17 },
> { "gpdsp1", 607, 18 },
> { "soccp", 607, 19 },
>
> ---
> base-commit: af5f12805e5cefa4fe68d6127c7e1fb78cd5535c
> change-id: 20260907-nord_stats-ea163d025d43
>
> Best regards,
> --
> Navya Malempati <navya.malempati@xxxxxxxxxxxxxxxx>
>
>