From owner-acpi-jp@jp.FreeBSD.org Tue Jan 13 04:27:52 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i0CJRqk89581;
	Tue, 13 Jan 2004 04:27:52 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from smtp.fud.org.nz (203-79-110-29.cable.paradise.net.nz [203.79.110.29])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i0CJRpC89532
	for <acpi-jp@jp.FreeBSD.org>; Tue, 13 Jan 2004 04:27:51 +0900 (JST)
	(envelope-from andy@fud.org.nz)
Received: by smtp.fud.org.nz (Postfix, from userid 1001)
	id 354E7170AB; Tue, 13 Jan 2004 08:27:49 +1300 (NZDT)
From: Andrew Thompson <andy@fud.org.nz>
To: Nate Lawson <nate@root.org>
Cc: acpi-jp@jp.FreeBSD.org
Message-ID: <20040112192749.GB94200@kate.fud.org.nz>
References: <20040111191853.74D9616A5D2@hub.freebsd.org> <20040111112608.D51960@root.org> <20040112010646.GA90909@kate.fud.org.nz> <20040111224654.N54009@root.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20040111224654.N54009@root.org>
User-Agent: Mutt/1.5.4i
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 13 Jan 2004 08:27:49 +1300
X-Sequence: acpi-jp 2998
Subject: [acpi-jp 2998] Re: cvs commit: src/sys/i386/acpica acpi_toshiba.c
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: andy@fud.org.nz
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+031216

On Sun, Jan 11, 2004 at 10:50:14PM -0800, Nate Lawson wrote:
> On Mon, 12 Jan 2004, Andrew Thompson wrote:
> > On Sun, Jan 11, 2004 at 11:27:18AM -0800, Nate Lawson wrote:
> > > This is still a work in progress but it's gotten far enough that wider
> > > testing is needed.  We're interested in testing on various Toshiba
> > > equipment, post results to acpi-jp@jp.freebsd.org
> >
> > I have tried it on my Tecra8000 and it works well.  I am able to
> > toggle the fan/brightness/backlight with the FN keys and the sysctls.
> >
[snip]
> 
> Excellent.  Can you load and unload the module at runtime and be sure all
> the functions still work after an unload/load cycle?  

Yes, I can unload/load at runtime and the sysctls and FN keys still work.

> Also, can you cycle through the various cpu speeds and video outputs to 
> see what is active for each level from 0-7?

Im not you mean by active. Fn-F5 will cycle through LCD/both/external. I
dont have the video_output sysctl so I cant test that way.


Here is a benchmark that I did with the cpu_speed setting:

% for i in 0 1 2 3 4 5 6 7;do
for> sudo sysctl hw.acpi.toshiba.cpu_speed=$i
for> md5 -t
for> done

hw.acpi.toshiba.cpu_speed: 0 -> 0
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 26.592485 seconds
Speed = 37604608.366259 bytes/second
hw.acpi.toshiba.cpu_speed: 0 -> 1
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 30.425812 seconds
Speed = 32866830.559492 bytes/second
hw.acpi.toshiba.cpu_speed: 1 -> 2
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 35.459557 seconds
Speed = 28201142.271914 bytes/second
hw.acpi.toshiba.cpu_speed: 2 -> 3
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 42.539124 seconds
Speed = 23507771.596976 bytes/second
hw.acpi.toshiba.cpu_speed: 3 -> 0
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 55.141857 seconds
Speed = 18135043.898326 bytes/second
hw.acpi.toshiba.cpu_speed: 0 -> 5
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 70.838234 seconds
Speed = 14116670.394939 bytes/second
hw.acpi.toshiba.cpu_speed: 5 -> 6
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 106.316414 seconds
Speed = 9405885.352138 bytes/second
hw.acpi.toshiba.cpu_speed: 6 -> 7
MD5 time trial. Digesting 100000 10000-byte blocks ... done
Digest = 766a2bb5d24bddae466c572bcabca3ee
Time = 214.733322 seconds
Speed = 4656939.081544 bytes/second

> 
> Also, I don't see hw.acpi.toshiba.video_output above.  Is that sysctl not
> showing up?

Nope, and I was already able to toggle the video modes with FN-F5 before 
your changes. I am unsure if your video_output code is working or not.

Andy

