Re: [PATCH 0/3] Dynamic CPU frequency switching for the HiFive

From: Greentime Hu
Date: Mon Jun 29 2020 - 16:52:47 EST


Yash Shah <yash.shah@xxxxxxxxxx> æ 2020å6æ16æ éä äå8:01åéï
>
> The patch series adds the support for dynamic CPU frequency switching
> for FU540-C000 SoC on the HiFive Unleashed board. All the patches are
> based on Paul Walmsley's work.
>
> This series is based on Linux v5.7 and tested on HiFive unleashed board.
>
> Yash Shah (3):
> riscv: defconfig, Kconfig: enable CPU power management
> riscv: dts: fu540-c000: define hart clocks
> riscv: dts: HiFive Unleashed: define a default set of CPU OPPs
>
> arch/riscv/Kconfig | 8 +++++
> arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 5 +++
> .../riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 38 ++++++++++++++++++++++
> arch/riscv/configs/defconfig | 5 +++
> 4 files changed, 56 insertions(+)
>

Hi Yash,

Thank you for the patch. It works for me to test with cpufreq-ljt-stress-test.
Here is my log.

CPU stress test, which is doing JPEG decoding by libjpeg-turbo
at different cpufreq operating points.

Testing CPU 0
1400 MHz ............................................................ OK
999 MHz ............................................................ OK
700 MHz ............................................................ OK
350 MHz ............................................................ OK

Testing CPU 1
1400 MHz ............................................................ OK
999 MHz ............................................................ OK
700 MHz ............................................................ OK
350 MHz ............................................................ OK

Testing CPU 2
1400 MHz ............................................................ OK
999 MHz ............................................................ OK
700 MHz ............................................................ OK
350 MHz ............................................................ OK

Testing CPU 3
1400 MHz ............................................................ OK
999 MHz ............................................................ OK
700 MHz ............................................................ OK
350 MHz ............................................................ OK

Overall result : PASSED

Tested-by: Greentime Hu <greentime.hu@xxxxxxxxxx>