From: "Clément Péron" <peron.clem@gmail.com> To: Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi <linux-sunxi@googlegroups.com>, "Clément Péron" <peron.clem@gmail.com> Subject: [PATCH v2 0/7] Add support for Allwinner H6 DVFS Date: Sun, 5 Apr 2020 19:35:54 +0200 [thread overview] Message-ID: <20200405173601.24331-1-peron.clem@gmail.com> (raw) Hi Sunxi maintainers and members, Now that required drivers are merged we can contibute on DVFS support for Allwinner H6. This serie is based on Yangtao Li serie[0] and Ondřej Jirman work[1]. Most of the OPP tables are taken from original vendor kernel[2]. Plus there is a new CPU frequencies at 1.6GHz, 1.7GHz and 1.8GHz. I wrote a simple script to randomly set a frequency during a random time[3]. With this script and using stress-ng during several hours, I didn't see any issue. Moreover I have tested specifically the 1.8GHz on my Beelink GS1, max thermal 85°C is reached very quickly and then the SoC oscillates quickly between 1.5 and 1.8GHz. So i have added 1.6GHz and 1.7GHz my board now oscillate slower between 1.5GHz and 1.6GHz swapping every second and temperature is also morestable. I also test that that offlining CPU0 and doing DVFS on other CPUs works. As CPU regulator is only set for CPU0. But maybe it doesn't cost much to set the regulator for all the CPUs? Jernej test the GPU devfreq on several H6 board particulary the Tanix TX6 which doesn't have a proper dedicated PMIC and doesn't had any trouble with it. Do you think I can enable GPU OPP for all H6 Boards? Also Yangtao Li enable DVFS for Pine64, as I can't test it. I'm waiting for his ack or someone who has a Pine64 and can test this serie before reenabling this board. Thanks, Clément 0: https://patchwork.kernel.org/cover/10815117/ 1: https://megous.com/git/linux/log/?h=ths-5.7 2: https://github.com/orangepi-xunlong/OrangePiH6_Linux4_9/blob/master/arch/arm64/boot/dts/sunxi/sun50iw6p1.dtsi#L345-L517 3: https://gist.github.com/clementperon/55a055dae3f13bbd14fb39c0069fe2e2 Changes since v1 (thanks to Ondřej Jirman): - Remove Polling thermal - Add Orange Pi boards - Remove minimal voltage change for Beelink GS1 - Add ramp-deplay for GPU and CPU regulators - Push to thermal point to 85°C (Allwinner set them to 100°C and 115°C) - Added 1.6GHz and 1.7GHz to OPP table. Clément Péron (4): arm64: dts: allwinner: h6: Add GPU Operating Performance Points table arm64: configs: Enable sun50i cpufreq nvmem arm64: dts: allwinner: h6: Enable CPU and GPU opp tables for Beelink GS1 arm64: dts: allwinner: h6: Enable CPU and GPU opp tables for Orange Pi boards Ondrej Jirman (2): arm64: dts: allwinner: h6: Add thermal trip points/cooling map arm64: dts: allwinner: h6: Add CPU Operating Performance Points table Yangtao Li (1): arm64: dts: allwinner: h6: Add clock to CPU cores .../dts/allwinner/sun50i-h6-beelink-gs1.dts | 10 +- .../boot/dts/allwinner/sun50i-h6-cpu-opp.dtsi | 121 ++++++++++++++++++ .../boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi | 74 +++++++++++ .../dts/allwinner/sun50i-h6-orangepi.dtsi | 10 +- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 36 ++++++ arch/arm64/configs/defconfig | 1 + 6 files changed, 250 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-cpu-opp.dtsi create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi -- 2.20.1
WARNING: multiple messages have this Message-ID (diff)
From: "Clément Péron" <peron.clem@gmail.com> To: Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org, linux-sunxi <linux-sunxi@googlegroups.com>, "Clément Péron" <peron.clem@gmail.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/7] Add support for Allwinner H6 DVFS Date: Sun, 5 Apr 2020 19:35:54 +0200 [thread overview] Message-ID: <20200405173601.24331-1-peron.clem@gmail.com> (raw) Hi Sunxi maintainers and members, Now that required drivers are merged we can contibute on DVFS support for Allwinner H6. This serie is based on Yangtao Li serie[0] and Ondřej Jirman work[1]. Most of the OPP tables are taken from original vendor kernel[2]. Plus there is a new CPU frequencies at 1.6GHz, 1.7GHz and 1.8GHz. I wrote a simple script to randomly set a frequency during a random time[3]. With this script and using stress-ng during several hours, I didn't see any issue. Moreover I have tested specifically the 1.8GHz on my Beelink GS1, max thermal 85°C is reached very quickly and then the SoC oscillates quickly between 1.5 and 1.8GHz. So i have added 1.6GHz and 1.7GHz my board now oscillate slower between 1.5GHz and 1.6GHz swapping every second and temperature is also morestable. I also test that that offlining CPU0 and doing DVFS on other CPUs works. As CPU regulator is only set for CPU0. But maybe it doesn't cost much to set the regulator for all the CPUs? Jernej test the GPU devfreq on several H6 board particulary the Tanix TX6 which doesn't have a proper dedicated PMIC and doesn't had any trouble with it. Do you think I can enable GPU OPP for all H6 Boards? Also Yangtao Li enable DVFS for Pine64, as I can't test it. I'm waiting for his ack or someone who has a Pine64 and can test this serie before reenabling this board. Thanks, Clément 0: https://patchwork.kernel.org/cover/10815117/ 1: https://megous.com/git/linux/log/?h=ths-5.7 2: https://github.com/orangepi-xunlong/OrangePiH6_Linux4_9/blob/master/arch/arm64/boot/dts/sunxi/sun50iw6p1.dtsi#L345-L517 3: https://gist.github.com/clementperon/55a055dae3f13bbd14fb39c0069fe2e2 Changes since v1 (thanks to Ondřej Jirman): - Remove Polling thermal - Add Orange Pi boards - Remove minimal voltage change for Beelink GS1 - Add ramp-deplay for GPU and CPU regulators - Push to thermal point to 85°C (Allwinner set them to 100°C and 115°C) - Added 1.6GHz and 1.7GHz to OPP table. Clément Péron (4): arm64: dts: allwinner: h6: Add GPU Operating Performance Points table arm64: configs: Enable sun50i cpufreq nvmem arm64: dts: allwinner: h6: Enable CPU and GPU opp tables for Beelink GS1 arm64: dts: allwinner: h6: Enable CPU and GPU opp tables for Orange Pi boards Ondrej Jirman (2): arm64: dts: allwinner: h6: Add thermal trip points/cooling map arm64: dts: allwinner: h6: Add CPU Operating Performance Points table Yangtao Li (1): arm64: dts: allwinner: h6: Add clock to CPU cores .../dts/allwinner/sun50i-h6-beelink-gs1.dts | 10 +- .../boot/dts/allwinner/sun50i-h6-cpu-opp.dtsi | 121 ++++++++++++++++++ .../boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi | 74 +++++++++++ .../dts/allwinner/sun50i-h6-orangepi.dtsi | 10 +- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 36 ++++++ arch/arm64/configs/defconfig | 1 + 6 files changed, 250 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-cpu-opp.dtsi create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-gpu-opp.dtsi -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2020-04-05 17:36 UTC|newest] Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-05 17:35 Clément Péron [this message] 2020-04-05 17:35 ` [PATCH v2 0/7] Add support for Allwinner H6 DVFS Clément Péron 2020-04-05 17:35 ` [PATCH v2 1/7] arm64: dts: allwinner: h6: Add clock to CPU cores Clément Péron 2020-04-05 17:35 ` Clément Péron 2020-04-05 17:35 ` [PATCH v2 2/7] arm64: dts: allwinner: h6: Add thermal trip points/cooling map Clément Péron 2020-04-05 17:35 ` Clément Péron 2020-04-05 17:35 ` [PATCH v2 3/7] arm64: dts: allwinner: h6: Add CPU Operating Performance Points table Clément Péron 2020-04-05 17:35 ` Clément Péron 2020-04-06 8:14 ` Maxime Ripard 2020-04-06 8:14 ` Maxime Ripard 2020-04-06 18:03 ` Clément Péron 2020-04-06 18:03 ` Clément Péron 2020-04-07 8:47 ` Maxime Ripard 2020-04-07 8:47 ` Maxime Ripard 2020-04-05 17:35 ` [PATCH v2 4/7] arm64: dts: allwinner: h6: Add GPU " Clément Péron 2020-04-05 17:35 ` Clément Péron 2020-04-06 8:16 ` Maxime Ripard 2020-04-06 8:16 ` Maxime Ripard 2020-04-06 8:58 ` Clément Péron 2020-04-06 8:58 ` Clément Péron 2020-04-05 17:35 ` [PATCH v2 5/7] arm64: configs: Enable sun50i cpufreq nvmem Clément Péron 2020-04-05 17:35 ` Clément Péron 2020-04-06 8:16 ` Maxime Ripard 2020-04-06 8:16 ` Maxime Ripard 2020-04-05 17:36 ` [PATCH v2 6/7] arm64: dts: allwinner: h6: Enable CPU and GPU opp tables for Beelink GS1 Clément Péron 2020-04-05 17:36 ` Clément Péron 2020-04-05 17:36 ` [PATCH v2 7/7] arm64: dts: allwinner: h6: Enable CPU and GPU opp tables for Orange Pi boards Clément Péron 2020-04-05 17:36 ` Clément Péron 2020-04-06 9:10 ` Clément Péron 2020-04-06 9:10 ` Clément Péron 2020-04-06 8:10 ` [PATCH v2 0/7] Add support for Allwinner H6 DVFS Maxime Ripard 2020-04-06 8:10 ` Maxime Ripard 2020-04-06 9:07 ` Clément Péron 2020-04-06 9:07 ` Clément Péron 2020-04-13 13:37 ` Clément Péron 2020-04-13 13:37 ` Clément Péron 2020-04-15 10:28 ` Maxime Ripard 2020-04-15 10:28 ` Maxime Ripard
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=20200405173601.24331-1-peron.clem@gmail.com \ --to=peron.clem@gmail.com \ --cc=devicetree@vger.kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-sunxi@googlegroups.com \ --cc=mripard@kernel.org \ --cc=robh+dt@kernel.org \ --cc=wens@csie.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.