linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats
@ 2024-02-15  9:23 Maulik Shah
  2024-02-15  9:54 ` Konrad Dybcio
  2024-03-19  2:48 ` Bjorn Andersson
  0 siblings, 2 replies; 4+ messages in thread
From: Maulik Shah @ 2024-02-15  9:23 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio; +Cc: linux-arm-msm, linux-kernel, Maulik Shah

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

Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
---
 drivers/soc/qcom/qcom_stats.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c
index 0216fc24f2ca..c429d5154aae 100644
--- a/drivers/soc/qcom/qcom_stats.c
+++ b/drivers/soc/qcom/qcom_stats.c
@@ -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,
-- 
Maulik Shah <quic_mkshah@quicinc.com>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats
  2024-02-15  9:23 [PATCH] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats Maulik Shah
@ 2024-02-15  9:54 ` Konrad Dybcio
  2024-02-15 11:24   ` Maulik Shah (mkshah)
  2024-03-19  2:48 ` Bjorn Andersson
  1 sibling, 1 reply; 4+ messages in thread
From: Konrad Dybcio @ 2024-02-15  9:54 UTC (permalink / raw)
  To: Maulik Shah, Bjorn Andersson; +Cc: linux-arm-msm, linux-kernel

On 15.02.2024 10:23, Maulik Shah wrote:
> Add SMEM items for compute, general purpose DSPs and application processor
> subsystem stats.
> 
> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
> ---
>  drivers/soc/qcom/qcom_stats.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c
> index 0216fc24f2ca..c429d5154aae 100644
> --- a/drivers/soc/qcom/qcom_stats.c
> +++ b/drivers/soc/qcom/qcom_stats.c
> @@ -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 },

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats
  2024-02-15  9:54 ` Konrad Dybcio
@ 2024-02-15 11:24   ` Maulik Shah (mkshah)
  0 siblings, 0 replies; 4+ messages in thread
From: Maulik Shah (mkshah) @ 2024-02-15 11:24 UTC (permalink / raw)
  To: Konrad Dybcio, Bjorn Andersson; +Cc: linux-arm-msm, linux-kernel

On 2/15/2024 3:24 PM, Konrad Dybcio wrote:
> On 15.02.2024 10:23, Maulik Shah wrote:
>> Add SMEM items for compute, general purpose DSPs and application processor
>> subsystem stats.
>>
>> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
>> ---
>>   drivers/soc/qcom/qcom_stats.c | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c
>> index 0216fc24f2ca..c429d5154aae 100644
>> --- a/drivers/soc/qcom/qcom_stats.c
>> +++ b/drivers/soc/qcom/qcom_stats.c
>> @@ -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 },
> 
> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> 
Thanks for the review.

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats
  2024-02-15  9:23 [PATCH] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats Maulik Shah
  2024-02-15  9:54 ` Konrad Dybcio
@ 2024-03-19  2:48 ` Bjorn Andersson
  1 sibling, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2024-03-19  2:48 UTC (permalink / raw)
  To: Konrad Dybcio, Maulik Shah; +Cc: linux-arm-msm, linux-kernel


On Thu, 15 Feb 2024 14:53:50 +0530, Maulik Shah wrote:
> 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,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-19  2:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-15  9:23 [PATCH] soc: qcom: qcom_stats: Add DSPs and apss subsystem stats Maulik Shah
2024-02-15  9:54 ` Konrad Dybcio
2024-02-15 11:24   ` Maulik Shah (mkshah)
2024-03-19  2:48 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).