linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cpufreq: Unable to set cpufreq to maximum
@ 2014-10-02 13:17 Stefan Wahren
  2014-10-02 13:59 ` Lucas Stach
  0 siblings, 1 reply; 14+ messages in thread
From: Stefan Wahren @ 2014-10-02 13:17 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar; +Cc: linux-pm, festevam, gregkh

Hi,

i currently try to get cpufreq-cpu0 aka cpufreq-dt running on Freescale i.MX28
(ARM). First i ported the regulator driver and now i want to test it with
cpufreq-cpu0. Everything works fine except changing back to maximum frequency
454736 kHz. I get the following error:

root@duckbill:/sys/devices/system/cpu/cpu0/cpufreq# echo "454736" >
scaling_setspeed
[ 1111.226006] cpu cpu0: failed to find OPP for 454736842
[ 1111.231399] cpufreq: __target_index: Failed to change cpu frequency: -34

I'm using 3.17.0-rc7-00466-g6f28c5c-dirty #1 Thu Oct 2 12:07:49 UTC 2014
armv5tejl GNU/Linux and here is the relevant part of the dts file:

cpus {
	#address-cells = <1>;
	#size-cells = <0>;

	cpu@0 {
		compatible = "arm,arm926ej-s";
		device_type = "cpu";
		reg = <0x0>;
		operating-points = <
			/* kHz	uV */
			454736  1550000
			392727  1475000
			360000  1375000
			261818  1275000
			64000   1050000
		>;
		clocks = <&clks 4>;
		clock-latency = <61036>; /* two CLK32 periods */
		cpu0-supply = <&reg_vddd>;
	};
};

It looks to me like a rounding problem.

For the complete history look at:
http://www.spinics.net/lists/arm-kernel/msg365504.html

Any ideas?

Best regards

Stefan

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

end of thread, other threads:[~2014-10-06 11:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-02 13:17 cpufreq: Unable to set cpufreq to maximum Stefan Wahren
2014-10-02 13:59 ` Lucas Stach
2014-10-02 15:01   ` Stefan Wahren
2014-10-02 15:22     ` Lucas Stach
2014-10-02 16:10       ` Stefan Wahren
2014-10-06  4:21       ` Viresh Kumar
2014-10-06  6:41         ` Stefan Wahren
2014-10-06  8:50           ` Viresh Kumar
2014-10-06  9:13             ` Stefan Wahren
2014-10-06  9:26               ` Viresh Kumar
2014-10-06 10:05                 ` Stefan Wahren
2014-10-06 10:16                   ` Viresh Kumar
2014-10-06 11:12                     ` Stefan Wahren
2014-10-06 11:18                       ` Viresh Kumar

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).