Skip to contentSkip to conversation

soc: qcom: qcom_stats: Add DSPs and apss subsystem stats

PATCH Applied Maulik Shah 3 participants 4 messages Feb 15, 2024 – Mar 19, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: qcom: qcom_stats: Add DSPs and apss subsystem stats

Add SMEM items for compute, general purpose DSPs and application processor subsystem stats.

---
 drivers/soc/qcom/qcom_stats.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/soc/qcom/qcom_stats.c +4 -0
index 0216fc24f2ca..c429d5154aae 100644
@@ -35,11 +35,15 @@ static const struct subsystem_data subsystems[] = {
 	{ "wpss", 605, 13 },
 	{ "adsp", 606, 2 },
 	{ "cdsp", 607, 5 },
+	{ "cdsp1", 607, 12 },
+	{ "gpdsp0", 607, 17 },
+	{ "gpdsp1", 607, 18 },
 	{ "slpi", 608, 3 },
 	{ "gpu", 609, 0 },
 	{ "display", 610, 0 },
 	{ "adsp_island", 613, 2 },
 	{ "slpi_island", 613, 3 },
+	{ "apss", 631, QCOM_SMEM_HOST_ANY },
 };
 
 struct stats_config {

---
base-commit: 943b9f0ab2cfbaea148dd6ac279957eb08b96904
change-id: 20240215-qcom_stats-442d21d964c8

Best regards,

Signature · 1 line
Maulik Shah <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Maulik Shah

Add SMEM items for compute, general purpose DSPs and application processor subsystem stats.

---
 drivers/soc/qcom/qcom_stats.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/soc/qcom/qcom_stats.c +0 -0
index 0216fc24f2ca..c429d5154aae 100644
@@ -35,11 +35,15 @@ static const struct subsystem_data subsystems[] = {
 	{ "wpss", 605, 13 },
 	{ "adsp", 606, 2 },

drivers/soc/qcom/qcom_stats.c static const struct subsystem_data subsystems[] = { · line 46

Quoted 10 lines
drivers/soc/qcom/qcom_stats.c +4 -0
 	{ "cdsp", 607, 5 },
+	{ "cdsp1", 607, 12 },
+	{ "gpdsp0", 607, 17 },
+	{ "gpdsp1", 607, 18 },
 	{ "slpi", 608, 3 },
 	{ "gpu", 609, 0 },
 	{ "display", 610, 0 },
 	{ "adsp_island", 613, 2 },
 	{ "slpi_island", 613, 3 },
+	{ "apss", 631, QCOM_SMEM_HOST_ANY },

Although, giving it a spin on 8280, it's not there.. It is there on 8450, but the reported count seems to coincide with cpuidle.. roughly min{/sys/bus/cpu/devices/cpu*/cpuidle/state0/usage).

Konrad

#2 lore raw
Quoted 20 lines · Konrad Dybcio
Quoted 19 lines · Maulik Shah

Add SMEM items for compute, general purpose DSPs and application processor subsystem stats.

---
  drivers/soc/qcom/qcom_stats.c | 4 ++++
  1 file changed, 4 insertions(+)
drivers/soc/qcom/qcom_stats.c +3 -0
index 0216fc24f2ca..c429d5154aae 100644
@@ -35,11 +35,15 @@ static const struct subsystem_data subsystems[] = {
  	{ "wpss", 605, 13 },
  	{ "adsp", 606, 2 },
  	{ "cdsp", 607, 5 },
+	{ "cdsp1", 607, 12 },
+	{ "gpdsp0", 607, 17 },
+	{ "gpdsp1", 607, 18 },
Quoted 9 lines

drivers/soc/qcom/qcom_stats.c static const struct subsystem_data subsystems[] = { · line 46

Quoted 6 lines
drivers/soc/qcom/qcom_stats.c +1 -0
  	{ "slpi", 608, 3 },
  	{ "gpu", 609, 0 },
  	{ "display", 610, 0 },
  	{ "adsp_island", 613, 2 },
  	{ "slpi_island", 613, 3 },
+	{ "apss", 631, QCOM_SMEM_HOST_ANY },

Thanks for the review.

Quoted 5 lines

Although, giving it a spin on 8280, it's not there.. It is there on 8450, but the reported count seems to coincide with cpuidle.. roughly min{/sys/bus/cpu/devices/cpu*/cpuidle/state0/usage).

Konrad

yes apss stats should be available from sm8450 onward and count should (not necessarily) coincide with /sys/kernel/debug/pm_genpd/power-domain-cluster/idle_states, s1 usage count on sm8450.

DSP stats for gdsp0/gdsp1/cdsp1 are available in sa8775p.

Thanks,
Maulik

maintainer Applied
#3 lore raw
In reply to Maulik Shah
Quoted 4 lines · Maulik Shah

Add SMEM items for compute, general purpose DSPs and application processor subsystem stats.

Applied, thanks!

[1/1] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats

      commit: f8627c303fd34ab70ff6fd8a1048ac11035b7fd6

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>