From owner-freebsd-ppc@FreeBSD.ORG Tue Jan 1 14:46:33 2008 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40CD116A41A for ; Tue, 1 Jan 2008 14:46:33 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (unknown [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id D1C0C13C45D for ; Tue, 1 Jan 2008 14:46:32 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from tau.draftnet (unknown [IPv6:2a01:348:10f:0:240:f4ff:fe57:9871]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id 9D94A300EA; Tue, 1 Jan 2008 14:46:30 +0000 (GMT) Message-ID: <477A5245.5010700@cran.org.uk> Date: Tue, 01 Jan 2008 14:46:29 +0000 From: Bruce Cran User-Agent: Thunderbird 2.0.0.9 (X11/20071201) MIME-Version: 1.0 To: Philip Schulz References: <20071031123042.GA11139@muon.bluestop.org> <47288CD8.4030501@deadc0.de> In-Reply-To: <47288CD8.4030501@deadc0.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ppc@freebsd.org Subject: Re: Adding PMU support for Apple PPC-based computers X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2008 14:46:33 -0000 Philip Schulz wrote: > Hi, > > Am 31.10.2007 13:30, bruce@cran.org.uk schrieb: >> I recently installed FreeBSD 7.0-BETA1 on my 1GHz G4 iBook. I got it >> installed without too many problems, but noticed that it's only running >> at 356MHz - from reading previous posts I gather it's because FreeBSD >> doesn't support the PMU, which needs programmed to take the CPU up to >> its >> full speed. Is anyone already working on this, or is it something I >> could take a look at to see what would need done to support it? >> > > NetBSD has a new, polished driver for the PMU that is in my 12" > PowerBook G4. I don't know if it touches the CPU divider, though (*) > What certainly works on my PowerBook is using the "set-dfs-high" word > in the CPU node of Open Firmware: > > > dev /path/to/cpu > > set-dfs-high > > I don't know if your laptop has that word, but you can easily find out > by typing "words" once you've navigated to the CPU node. > > HTH, > > Phil. > > (*) I've done a quick and dirty port of that driver to FreeBSD for a > project I'm working on, but the code is not nearly in shape to be > released to the public. I haven't been able to work it for a while > now, but I might be able to polish it up a bit and file a PR. > Thanks - my iBook does have the set-dfs-high word; I spent some time learning OpenFirmware a few months ago and found that after using set-dfs-high the system booted at around 550MHz. I've just installed 7.0-RC1 and found that it boots at 550MHz without using set-dfs-high: if I do use it the system now boots at the top speed of 1GHz. -- Bruce