Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 08:17:22 +0200
From:      Ralf Wenk <iz-rpi03@hs-karlsruhe.de>
To:        Stefan Parvu <sparvu@kronometrix.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: RBPI3B+ clock speed 
Message-ID:  <E1gFvQx-009JaE-DL@smtp.hs-karlsruhe.de>
In-Reply-To: <98EE4128-8377-40F4-966C-1CA15F7C644D@kronometrix.org>
References:  <FC82FFE5-C1CB-4FA6-B895-9F3AA8FF6294@kronometrix.org>  <98EE4128-8377-40F4-966C-1CA15F7C644D@kronometrix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-10-26 at 7:40 +0300 Stefan Parvu wrote:
> > - How can I see the current clock speed my RBPI is using at any momen=
t ?
>=20
> by checking system’s variables:
>=20
> dev.cpu.0.freq_levels: 1400/-1 600/-1
> dev.cpu.0.freq: 1400
>=20
> this means now my system is using 1400 frequency vs 600.=20
>=20
> >=20
> > - How would you change the frequency of the clock speed which by
> > default seems=20
> > set to 600MHz ?=20
>=20
> by simple setting powerd during rc.conf or manually start it.=20
>=20
> Are these correct ?

Last time I tried powerd(8) on a RPi3B+ it was complaining about missing
a CPU clock driver.
Meanwhile I did not read anything in the repository log about work on
that issue. So probably powerd(8) will not work.

A RPi3B shows more information about CPU frequency(s) than you provided:

=24 sysctl -a =7C fgrep cpu =7C fgrep freq
debug.cpufreq.verbose: 0
debug.cpufreq.lowest: 0
hw.cpufreq.temperature: 49388
hw.cpufreq.voltage_sdram_p: 1200000
hw.cpufreq.voltage_sdram_i: 1200000
hw.cpufreq.voltage_sdram_c: 1200000
hw.cpufreq.voltage_core: 1256250
hw.cpufreq.turbo: 1
hw.cpufreq.sdram_freq: 450000000
hw.cpufreq.core_freq: 400000000
hw.cpufreq.arm_freq: 1200000000
dev.cpufreq.0.%parent: cpu0
dev.cpufreq.0.%pnpinfo:=20
dev.cpufreq.0.%location:=20
dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%desc:=20
dev.cpufreq.%parent:=20
dev.bcm2835_cpufreq.0.freq_settings: 1200/-1 600/-1
dev.bcm2835_cpufreq.0.%parent: cpu0
dev.bcm2835_cpufreq.0.%pnpinfo:=20
dev.bcm2835_cpufreq.0.%location:=20
dev.bcm2835_cpufreq.0.%driver: bcm2835_cpufreq
dev.bcm2835_cpufreq.0.%desc: CPU Frequency Control
dev.bcm2835_cpufreq.%parent:=20
dev.cpu.0.freq_levels: 1200/-1 600/-1
dev.cpu.0.freq: 1200
=24=20

Occasionally powerd(8) gets into trouble on this RPi3B.

mbox0: mbox response error
bcm2835_cpufreq0: can't set clock rate (id=3D3)
mbox0: mbox response error
bcm2835_cpufreq0: can't get clock rate (id=3D3)
bcm2835_cpufreq0: wrong freq
bcm2835_cpufreq0: set freq failed, err 5
mbox0: mbox response error
bcm2835_cpufreq0: can't set clock rate (id=3D8)

Which seems to depend on the kernel release. Some are working for weeks
without that issue, others only 24 hours. The samples came from revision
339388.

Regards Ralf




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1gFvQx-009JaE-DL>