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

From: Navya Malempati

Date: Sun Nov 01 2026 - 22:36:10 EST


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.

Signed-off-by: Navya Malempati <navya.malempati@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- Add comments for the cdsp/cdsp_nsp instances with further details.
- These comments explain on the naming of those instances.
- Link to v1: https://patch.msgid.link/20260908-nord_stats-v1-1-a55adb083d65@xxxxxxxxxxxxxxxx

To: Bjorn Andersson <andersson@xxxxxxxxxx>
To: Konrad Dybcio <konradybcio@xxxxxxxxxx>
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
---
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..2ff0123a7804 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 },
+ { "cdsp_nsp_1", 607, 69 }, /* newer SoCs (Nord) use a different PID for cdsp1 */
+ { "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>