From: Piotr Oniszczuk <piotr.oniszczuk@gmail.com>
To: Alexey Charkov <alchark@gmail.com>
Cc: Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-rockchip@lists.infradead.org,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/4] arm64: dts: rockchip: list all CPU supplies on ArmSoM Sige5
Date: Thu, 5 Jun 2025 15:22:41 +0200 [thread overview]
Message-ID: <512E950E-E8CB-443B-8E47-79F073D217E8@gmail.com> (raw)
In-Reply-To: <CABjd4Yx05SCm+03jWbsEP-A5AuhL14wLj=+VdKyQgqMbnxi3xQ@mail.gmail.com>
> Wiadomość napisana przez Alexey Charkov <alchark@gmail.com> w dniu 4 cze 2025, o godz. 21:12:
>
> On Wed, Jun 4, 2025 at 10:38 PM Nicolas Frattaroli
> <nicolas.frattaroli@collabora.com> wrote:
>>
>>
>
> Frequencies are fine, but I don't think the more power hungry big CPU
> cluster gets any voltage scaling without it. Once I try to load the
> system enough that the governor decides to bump the big cluster
> frequency up, the regulator stays at 850000 microvolts, causing random
> reboots when the whole cluster starts starving. With the patch,
> voltage oscillates between 700000-737000 microvolts in idle and jumps
> up to 950000 under load, and the system seems stable.
>
> Here's what I used to monitor the voltage (there must be a better way
> to do it, but it works):
> sige5 ~ # watch cat `grep -r . /sys/class/regulator/*/name | grep
> vdd_cpu_big_s0 | sed -e 's/name.*//'`/microvolts
>
> And in another terminal:
> sige5 ~ # stress-ng -c8
Alexey,
I see you are using rk3576 board like me (nanopi-m5)
Have you on your board correctly working cpu dvfs?
I mean: [1][desired clocks reported by kernel sysfs are in pair with [2[]cur clocks?
In my case i see mine cpu lives totally on it’s own with dvfs:
Requested is [1]
Running is [2]
Measured is [3]
random read 1:
Requested CPU4: 408 MHz
Requested CPU0: 408 MHz
Running CPU4: 1800 MHz
Running CPU0: 1416 MHz
Measured on HW: 1579.03 MHz
random read 2:
Requested CPU4: 1608 MHz
Requested CPU0: 408 MHz
Running CPU4: 2016 MHz
Running CPU0: 1800 MHz
Measured on HW: 410.33 MHz
random read 3:
Requested CPU4: 600 MHz
Requested CPU0: 1800 MHz
Running CPU4: 816 MHz
Running CPU0: 1008 MHz
Measured on HW: 2275.07 MHz
random read 4:
Requested CPU4: 1608 MHz
Requested CPU0: 1200 MHz
Running CPU4: 816 MHz
Running CPU0: 816 MHz
Measured on HW: 2114.58 MHz
this is on rk3576
on i.e allwinner h618 or rk3588 all looks quite normal - [1] and [2] are equal...
my scaling governor is on_demand - so for sure clocks are dynamic - but i.e. on 3588 with the same binaries - i can't catch -at any random read - that requested is not equal to running while on 3576 almost any random read gives significant differences.
[1] scaling_cur_freq in sysfs
[2] cpuinfo_cur_freq in sysfs
[3] code to estimate arm cpu clock from http://uob-hpc.github.io/2017/11/22/arm-clock-freq.html
>
> This might warrant a note in the commit message I guess :)
>
> Thanks for your review and testing!
>
> Best regards,
> Alexey
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2025-06-05 13:33 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 17:01 [PATCH 0/4] arm64: dts: rockchip: enable further peripherals on ArmSoM Sige5 Alexey Charkov
2025-06-03 17:01 ` [PATCH 1/4] arm64: dts: rockchip: list all CPU supplies " Alexey Charkov
2025-06-04 18:38 ` Nicolas Frattaroli
2025-06-04 19:12 ` Alexey Charkov
2025-06-04 19:23 ` Nicolas Frattaroli
2025-06-04 19:54 ` Alexey Charkov
2025-06-05 13:22 ` Piotr Oniszczuk [this message]
2025-06-05 13:42 ` Alexey Charkov
2025-06-08 7:24 ` Piotr Oniszczuk
2025-06-09 14:05 ` Alexey Charkov
2025-06-15 15:59 ` Piotr Oniszczuk
2025-06-15 16:20 ` Alexey Charkov
2025-06-18 13:51 ` Alexey Charkov
2025-06-18 14:06 ` Nicolas Frattaroli
2025-06-18 14:48 ` Alexey Charkov
2025-06-20 16:02 ` Alexey Charkov
2025-06-21 19:35 ` Alexey Charkov
2025-06-21 19:44 ` Heiko Stuebner
2025-06-21 21:21 ` Alexey Charkov
2025-06-22 13:48 ` Heiko Stuebner
2025-06-23 9:19 ` Alexey Charkov
2025-06-23 13:58 ` Alexey Charkov
2025-06-23 15:02 ` Piotr Oniszczuk
2025-06-23 17:40 ` Jonas Karlman
2025-06-23 21:07 ` Jonas Karlman
2025-06-23 21:17 ` Heiko Stuebner
2025-06-24 7:41 ` Alexey Charkov
2025-06-23 18:04 ` Jonas Karlman
2025-06-05 11:17 ` Diederik de Haas
2025-06-05 11:23 ` Alexey Charkov
2025-06-03 17:01 ` [PATCH 2/4] arm64: dts: rockchip: enable USB A ports " Alexey Charkov
2025-06-03 17:51 ` Nicolas Frattaroli
2025-06-04 6:52 ` Alexey Charkov
2025-06-04 13:24 ` Nicolas Frattaroli
2025-06-03 17:01 ` [PATCH 3/4] arm64: dts: rockchip: enable wifi " Alexey Charkov
2025-06-04 19:01 ` Nicolas Frattaroli
2025-06-04 19:48 ` Alexey Charkov
2025-06-05 2:43 ` Jimmy Hon
2025-06-05 6:32 ` Alexey Charkov
2025-06-05 14:14 ` Alexey Charkov
2025-06-07 2:42 ` Jimmy Hon
2025-06-03 17:01 ` [PATCH 4/4] arm64: dts: rockchip: enable bluetooth " Alexey Charkov
2025-06-04 13:58 ` [PATCH 0/4] arm64: dts: rockchip: enable further peripherals " Rob Herring (Arm)
2025-06-04 14:15 ` Alexey Charkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=512E950E-E8CB-443B-8E47-79F073D217E8@gmail.com \
--to=piotr.oniszczuk@gmail.com \
--cc=alchark@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox