From owner-freebsd-arm@FreeBSD.ORG Sat Nov 1 01:55:01 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E246594 for ; Sat, 1 Nov 2014 01:55:01 +0000 (UTC) Received: from st11p02mm-asmtp002.mac.com (st11p02mm-asmtp002.mac.com [17.172.220.237]) (using TLSv1 with cipher DES-CBC3-SHA (112/168 bits)) (Client CN "smtp.me.com", Issuer "VeriSign Class 3 Extended Validation SSL SGC CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DCD374F for ; Sat, 1 Nov 2014 01:55:01 +0000 (UTC) Received: from fukuyama.hsd1.ca.comcast.net (unknown [73.162.13.215]) by st11p02mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0NEC00MPR7ZEXT30@st11p02mm-asmtp002.mac.com> for freebsd-arm@freebsd.org; Sat, 01 Nov 2014 01:54:52 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-11-01_01:2014-10-31,2014-10-31,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1408290000 definitions=main-1411010021 Subject: Re: FreeBSD 11-CURRENT on Raspberry Pi 512MB MIME-version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Content-type: text/plain; charset=us-ascii From: Rui Paulo X-Priority: 3 In-reply-to: <5DC02CC61B85442AADD2BDD28496421E@ad.peach.ne.jp> Date: Fri, 31 Oct 2014 18:54:49 -0700 Content-transfer-encoding: quoted-printable Message-id: <60F13E5C-A166-497B-8CB7-6C76AFB6BDB8@me.com> References: <0A8390C3FC2B444B9AA8AC934B79DCD6@ad.peach.ne.jp> <7946CCA3-26D0-4B6E-AEBB-8623CAAA9725@me.com> <840772A7305444C1B1AF7CE31A89BD7D@ad.peach.ne.jp> <09F2506B-11E9-43A2-A783-784AA6E39976@me.com> <5DC02CC61B85442AADD2BDD28496421E@ad.peach.ne.jp> To: Daisuke Aoyama X-Mailer: Apple Mail (2.1990.1) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 01:55:01 -0000 On Oct 31, 2014, at 12:32, Daisuke Aoyama wrote: >=20 >> That patch has a lot of unrelated changes. Could you produce a patch = with svn that is just related to cpufreq and its mbox changes? >=20 > I have uploaded as: > http://www.peach.ne.jp/archives/rpi/patch/cpufreq-20141101.tar.gz >=20 > Please use this archive. >=20 > CHANGES: > modify for style(9) and 80 columns > remove multiple cast > remove bootverbose of error case > remove unused code and g_XXXX variables > fix wrong message/comments. > add DPRINTF and dump into #ifdef DEBUG > add tunable int for verbose and lowest_freq > suppress default boot log Thanks, I've updated the review page: https://reviews.freebsd.org/D1025 I'm going to review it again during the weekend. > default boot: >=20 > bcm2835_cpufreq0: ARM 700MHz, Core 250MHz, SDRAM 398MHz, Turbo OFF >=20 > verbose boot or hw.bcm2835.cpufreq.verbose=3D1 by loader.conf: >=20 > bcm2835_cpufreq0: Boot settings: > bcm2835_cpufreq0: current ARM 700MHz, Core 250MHz, SDRAM 398MHz, Turbo = OFF > bcm2835_cpufreq0: max/min ARM 1000/700MHz, Core 500/250MHz, SDRAM = 500/400MHz > bcm2835_cpufreq0: current Core 1200mV, SDRAM_C 1200mV, SDRAM_I 1200mV, = SDRAM_P 1200mV > bcm2835_cpufreq0: max/min Core 1350/1200mV, SDRAM_C 1225/1200mV, = SDRAM_I 1225/1200mV, SDRAM_P 1225/1200mV Cool! > default (max=3D1000MHz): > dev.cpu.0.freq_levels: 1000/-1 900/-1 800/-1 700/-1 600/-1 500/-1 = 400/-1 300/-1 >=20 > hw.bcm2835.cpufreq.lowest_freq=3D500 by loader.conf (max=3D1000MHz): > dev.cpu.0.freq_levels: 1000/-1 900/-1 800/-1 700/-1 600/-1 500/-1 >=20 >=20 >> - Did you measure the power consumption when using the different = frequency values? >=20 > I have tried to get an ampere on USB power cable both idle and running = ports/benchmarks/unixbench. > Following table is the result. It's not so different on CPU idle. >=20 > Power=3D5.10V > V=3D0/0 300MHz idle/0.35A 1.79W 3%DOWN unixbench/0.39A 50.8C 1.99W = 9%DOWN > V=3D0/0 700MHz idle/0.36A 1.84W ------ unixbench/0.43A 54.6C 2.19W = ------ > V=3D6/1 1000MHz idle/0.40A 2.04W 10%UP unixbench/0.51A 58.3C 2.60W = 19%UP >=20 > Note: > V=3D0/0 mean default voltage(1.2V/1.2V) > V=3D6/1 mean over_voltage=3D6/over_voltage_sdram=3D1(1.35V/1.225V) > All manual setting without powered > Temperature is checked running only That's interesting. Thanks for taking the time to measure it. Regards, -- Rui Paulo