From owner-freebsd-arm@FreeBSD.ORG Fri Oct 31 19:32:39 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A895291 for ; Fri, 31 Oct 2014 19:32:39 +0000 (UTC) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3197A391 for ; Fri, 31 Oct 2014 19:32:38 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 05AAF39D0A; Sat, 1 Nov 2014 04:32:30 +0900 (JST) Received: from artemis (unknown [172.18.0.21]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id D495439D09; Sat, 1 Nov 2014 04:32:29 +0900 (JST) Message-ID: <5DC02CC61B85442AADD2BDD28496421E@ad.peach.ne.jp> From: "Daisuke Aoyama" To: "Rui Paulo" 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> In-Reply-To: <09F2506B-11E9-43A2-A783-784AA6E39976@me.com> Subject: Re: FreeBSD 11-CURRENT on Raspberry Pi 512MB Date: Sat, 1 Nov 2014 04:32:25 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP 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: Fri, 31 Oct 2014 19:32:39 -0000 >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? I have uploaded as: http://www.peach.ne.jp/archives/rpi/patch/cpufreq-20141101.tar.gz Please use this archive. 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 default boot: bcm2835_cpufreq0: ARM 700MHz, Core 250MHz, SDRAM 398MHz, Turbo OFF verbose boot or hw.bcm2835.cpufreq.verbose=1 by loader.conf: 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 default (max=1000MHz): dev.cpu.0.freq_levels: 1000/-1 900/-1 800/-1 700/-1 600/-1 500/-1 400/-1 300/-1 hw.bcm2835.cpufreq.lowest_freq=500 by loader.conf (max=1000MHz): dev.cpu.0.freq_levels: 1000/-1 900/-1 800/-1 700/-1 600/-1 500/-1 >- Did you measure the power consumption when using the different frequency values? 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. Power=5.10V V=0/0 300MHz idle/0.35A 1.79W 3%DOWN unixbench/0.39A 50.8C 1.99W 9%DOWN V=0/0 700MHz idle/0.36A 1.84W ------ unixbench/0.43A 54.6C 2.19W ------ V=6/1 1000MHz idle/0.40A 2.04W 10%UP unixbench/0.51A 58.3C 2.60W 19%UP Note: V=0/0 mean default voltage(1.2V/1.2V) V=6/1 mean over_voltage=6/over_voltage_sdram=1(1.35V/1.225V) All manual setting without powered Temperature is checked running only Thank you. -- Daisuke Aoyama