patching cpufreq for rpi3

Jia-Shiun Li jiashiun at gmail.com
Tue Feb 7 19:00:39 UTC 2017


I was figuring out why frequency scaling does not work
on rpi3, and found that bcm2837 was not caught in some
cases. Thus the attached patch.

The patch corrects voltage reporting for rpi3.
Frequency scaling still does not work though.
Any ideas?


--- dmesg.orig.txt    2017-02-07 20:00:46.587450000 +0800
+++ dmesg.new3.txt    2017-02-08 00:44:23.609649000 +0800
@@ -5,13 +5,13 @@
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
     The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
-FreeBSD 12.0-CURRENT #1 r313043: Sun Feb  5 01:01:06 CST 2017
+FreeBSD 12.0-CURRENT #3 r313043M: Wed Feb  8 00:24:00 CST 2017
     jsli at 4cbsd:/personal/freebsd/obj/x64/arm64.aarch64/
personal/freebsd/fbsdsrc/sys/GENERIC arm64
 FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM
3.9.1)
 WARNING: WITNESS option enabled, expect reduced performance.
 VT: init without driver.
-Preloaded elf kernel "/boot/kernel/kernel" at 0xffff000000e27000.
-Preloaded /boot/entropy "/boot/entropy" at 0xffff000000e27de0.
+Preloaded elf kernel "/boot/kernel.cpufreq/kernel" at 0xffff000000e27000.
+Preloaded /boot/entropy "/boot/entropy" at 0xffff000000e27de8.
 Starting CPU 1 (1)
 Starting CPU 2 (2)
 Starting CPU 3 (3)
@@ -236,8 +236,8 @@
 bcm2835_cpufreq0: Boot settings:
 bcm2835_cpufreq0: current ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF
 bcm2835_cpufreq0: max/min ARM 1200/600MHz, Core 400/250MHz, SDRAM
450/400MHz
-bcm2835_cpufreq0: current Core 30001200mV, SDRAM_C 30001200mV, SDRAM_I
30001200mV, SDRAM_P 30001200mV
-bcm2835_cpufreq0: max/min Core 32344950/30001200mV, SDRAM_C
30001200/30001200mV, SDRAM_I 30001200/30001200mV, SDRAM_P
30001200/30001200mV
+bcm2835_cpufreq0: current Core 1200mV, SDRAM_C 1200mV, SDRAM_I 1200mV,
SDRAM_P 1200mV
+bcm2835_cpufreq0: max/min Core 1293/1200mV, SDRAM_C 1200/1200mV, SDRAM_I
1200/1200mV, SDRAM_P 1200/1200mV
 bcm2835_cpufreq0: Temperature 51.5C
 Release APs
 mmc0: setting bus width to 4 bits


-Jia-Shiun.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpi3cpufreq.patch
Type: text/x-patch
Size: 1990 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20170208/8590d191/attachment.bin>


More information about the freebsd-arm mailing list