* [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS
@ 2017-01-05 15:02 Neil Armstrong
2017-01-05 19:04 ` Michał Zegan
0 siblings, 1 reply; 5+ messages in thread
From: Neil Armstrong @ 2017-01-05 15:02 UTC (permalink / raw)
To: khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
Cc: Neil Armstrong, linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
The current hardware is not able to run with all cores enabled at a
cluster frequency superior at 1536MHz.
But the currently shipped u-boot for the platform still reports an OPP
table with possible DVFS frequency up to 2GHz, and will not change since
the off-tree linux tree supports limiting the OPPs with a kernel parameter.
A recent u-boot change reports the boot-time DVFS around 100MHz and
the default performance cpufreq governor sets the maximum frequency.
Previous version of u-boot reported to be already at the max OPP and
left the OPP as is.
Nevertheless, other governors like ondemand could setup the max frequency
and make the system crash.
This patch disables the DVFS clock and disables cpufreq.
Fixes: 70db166a2baa ("ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes")
Signed-off-by: Neil Armstrong <narmstrong-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
---
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
index 238fbea..5e63e3b 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
@@ -137,6 +137,10 @@
};
};
+&scpi_dvfs {
+ status = "disabled";
+};
+
&uart_AO {
status = "okay";
pinctrl-0 = <&uart_ao_a_pins>;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS 2017-01-05 15:02 [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS Neil Armstrong @ 2017-01-05 19:04 ` Michał Zegan [not found] ` <9f508097-f605-ebd8-20af-c3e798c6fdcc-wo4oW1Pw1HF3vZ0LZ0W7Rg@public.gmane.org> 2017-01-06 11:54 ` Sudeep Holla 0 siblings, 2 replies; 5+ messages in thread From: Michał Zegan @ 2017-01-05 19:04 UTC (permalink / raw) To: Neil Armstrong, khilman, carlo Cc: linux-amlogic, devicetree, linux-kernel, linux-arm-kernel [-- Attachment #1.1: Type: text/plain, Size: 2155 bytes --] Hello. The patch causes cpufreq module (scpi-cpufreq) not to detect cpufreq, so it actually works, but... Loading the module causes few errors because of not found frequencies or something, then it is all okay. However after loading scpi-cpufreq you cannot actually power the cpu off and on. You will power it off successfully, but when trying to power it on, the cpufreq driver will error out, and then after it happens, the cpu that was trying to go online will be offline again, and that is a little... unfortunate. The question is, and I cannot really test that: will the module actually autoload after this change? W dniu 05.01.2017 o 16:02, Neil Armstrong pisze: > The current hardware is not able to run with all cores enabled at a > cluster frequency superior at 1536MHz. > But the currently shipped u-boot for the platform still reports an OPP > table with possible DVFS frequency up to 2GHz, and will not change since > the off-tree linux tree supports limiting the OPPs with a kernel parameter. > A recent u-boot change reports the boot-time DVFS around 100MHz and > the default performance cpufreq governor sets the maximum frequency. > Previous version of u-boot reported to be already at the max OPP and > left the OPP as is. > Nevertheless, other governors like ondemand could setup the max frequency > and make the system crash. > > This patch disables the DVFS clock and disables cpufreq. > > Fixes: 70db166a2baa ("ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes") > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> > --- > arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts > index 238fbea..5e63e3b 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts > @@ -137,6 +137,10 @@ > }; > }; > > +&scpi_dvfs { > + status = "disabled"; > +}; > + > &uart_AO { > status = "okay"; > pinctrl-0 = <&uart_ao_a_pins>; > [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 525 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <9f508097-f605-ebd8-20af-c3e798c6fdcc-wo4oW1Pw1HF3vZ0LZ0W7Rg@public.gmane.org>]
* Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS [not found] ` <9f508097-f605-ebd8-20af-c3e798c6fdcc-wo4oW1Pw1HF3vZ0LZ0W7Rg@public.gmane.org> @ 2017-01-06 8:04 ` Neil Armstrong 0 siblings, 0 replies; 5+ messages in thread From: Neil Armstrong @ 2017-01-06 8:04 UTC (permalink / raw) To: Michał Zegan, khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A Cc: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r [-- Attachment #1.1: Type: text/plain, Size: 2653 bytes --] On 01/05/2017 08:04 PM, Michał Zegan wrote: > Hello. > > The patch causes cpufreq module (scpi-cpufreq) not to detect cpufreq, so > it actually works, but... > Loading the module causes few errors because of not found frequencies or > something, then it is all okay. However after loading scpi-cpufreq you > cannot actually power the cpu off and on. You will power it off > successfully, but when trying to power it on, the cpufreq driver will > error out, and then after it happens, the cpu that was trying to go > online will be offline again, and that is a little... unfortunate. The > question is, and I cannot really test that: will the module actually > autoload after this change? Hi Michal, You are right, it breaks cpufreq and the cpu hotplug feature, I will send a v2 completely disabling cpufreq instead. For the module autoloading, the arm_scpi.ko must be loaded before the other scpi modules. Please ask Sudeep Holla <sudeep.holla-5wv7dgnIgG8@public.gmane.org> if module autoloading for scpi is meant to work. Neil > > W dniu 05.01.2017 o 16:02, Neil Armstrong pisze: >> The current hardware is not able to run with all cores enabled at a >> cluster frequency superior at 1536MHz. >> But the currently shipped u-boot for the platform still reports an OPP >> table with possible DVFS frequency up to 2GHz, and will not change since >> the off-tree linux tree supports limiting the OPPs with a kernel parameter. >> A recent u-boot change reports the boot-time DVFS around 100MHz and >> the default performance cpufreq governor sets the maximum frequency. >> Previous version of u-boot reported to be already at the max OPP and >> left the OPP as is. >> Nevertheless, other governors like ondemand could setup the max frequency >> and make the system crash. >> >> This patch disables the DVFS clock and disables cpufreq. >> >> Fixes: 70db166a2baa ("ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes") >> Signed-off-by: Neil Armstrong <narmstrong-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> >> --- >> arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts >> index 238fbea..5e63e3b 100644 >> --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts >> +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts >> @@ -137,6 +137,10 @@ >> }; >> }; >> >> +&scpi_dvfs { >> + status = "disabled"; >> +}; >> + >> &uart_AO { >> status = "okay"; >> pinctrl-0 = <&uart_ao_a_pins>; >> > [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS 2017-01-05 19:04 ` Michał Zegan [not found] ` <9f508097-f605-ebd8-20af-c3e798c6fdcc-wo4oW1Pw1HF3vZ0LZ0W7Rg@public.gmane.org> @ 2017-01-06 11:54 ` Sudeep Holla 2017-01-06 13:12 ` Michał Zegan 1 sibling, 1 reply; 5+ messages in thread From: Sudeep Holla @ 2017-01-06 11:54 UTC (permalink / raw) To: Michał Zegan, Neil Armstrong, khilman, carlo Cc: linux-amlogic, devicetree, linux-kernel, linux-arm-kernel, Sudeep Holla Hi Michał, On 05/01/17 19:04, Michał Zegan wrote: > Hello. > > The patch causes cpufreq module (scpi-cpufreq) not to detect cpufreq, so > it actually works, but... > Loading the module causes few errors because of not found frequencies or > something, then it is all okay. However after loading scpi-cpufreq you > cannot actually power the cpu off and on. You will power it off > successfully, but when trying to power it on, the cpufreq driver will > error out, Yes I had noticed this in past, this needs to be fixed. I had a patch and seems like it slipped through the cracks. I will fins and post it. > and then after it happens, the cpu that was trying to go > online will be offline again, and that is a little... unfortunate. The IIUC, you mean the cpufreq drive spits error on every hotplug event ? If so yes, otherwise I think I didn't understand you concern above. > question is, and I cannot really test that: will the module actually > autoload after this change? > It should work, I had tested this in past. -- Regards, Sudeep _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS 2017-01-06 11:54 ` Sudeep Holla @ 2017-01-06 13:12 ` Michał Zegan 0 siblings, 0 replies; 5+ messages in thread From: Michał Zegan @ 2017-01-06 13:12 UTC (permalink / raw) To: Sudeep Holla, Neil Armstrong, khilman, carlo Cc: linux-amlogic, linux-kernel, linux-arm-kernel, devicetree [-- Attachment #1.1.1: Type: text/plain, Size: 1200 bytes --] Yes, I meant what you think I meant. :) thanks W dniu 06.01.2017 o 12:54, Sudeep Holla pisze: > Hi Michał, > > On 05/01/17 19:04, Michał Zegan wrote: >> Hello. >> >> The patch causes cpufreq module (scpi-cpufreq) not to detect cpufreq, so >> it actually works, but... >> Loading the module causes few errors because of not found frequencies or >> something, then it is all okay. However after loading scpi-cpufreq you >> cannot actually power the cpu off and on. You will power it off >> successfully, but when trying to power it on, the cpufreq driver will >> error out, > > Yes I had noticed this in past, this needs to be fixed. I had a patch > and seems like it slipped through the cracks. I will fins and post it. > >> and then after it happens, the cpu that was trying to go >> online will be offline again, and that is a little... unfortunate. The > > IIUC, you mean the cpufreq drive spits error on every hotplug event ? > If so yes, otherwise I think I didn't understand you concern above. > >> question is, and I cannot really test that: will the module actually >> autoload after this change? >> > > It should work, I had tested this in past. > [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 525 bytes --] [-- Attachment #2: Type: text/plain, Size: 176 bytes --] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-01-06 13:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-05 15:02 [PATCH] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS Neil Armstrong
2017-01-05 19:04 ` Michał Zegan
[not found] ` <9f508097-f605-ebd8-20af-c3e798c6fdcc-wo4oW1Pw1HF3vZ0LZ0W7Rg@public.gmane.org>
2017-01-06 8:04 ` Neil Armstrong
2017-01-06 11:54 ` Sudeep Holla
2017-01-06 13:12 ` Michał Zegan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox