From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 30 05:00:29 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78239C3F for ; Tue, 30 Oct 2012 05:00:29 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 29F908FC12 for ; Tue, 30 Oct 2012 05:00:28 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so2648938vba.13 for ; Mon, 29 Oct 2012 22:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PEfjaqrS4Iw/MWBMw7qh1MZ+45D73hynZUMR1uoQLIY=; b=dX1d0LmTqaqIT3j3T7kp9FZCvyd/Ir7Q0Q1udN37YtEKj0aFu4s9MvWB3UNEIc7tMP uyAuAstlNnsZ9R3oLEhZcqusdX9TU2+L882Y3ifkk3YHYqUxvozdYzbb4BzTY42rK4Lt h2wHZjj+uophB6H0RWVEgn5NtPeDZ3DCKEgKguZPwWiLxB8TGyCQfv/xa8tJcDTgI9+E 1yRk0aVleImK6sMLdezL0cQosXdgl9rYvspTB0ModYV1dXCjRgXPGP+NRgpY6TJDoPnU ZQ/AItT1yzhcfjeMEMeElEY51jJTQxv5Q+rYgsKZhqgVntCzwmHB4YLDH5aNN4bUsIQW nZlw== MIME-Version: 1.0 Received: by 10.59.13.135 with SMTP id ey7mr38159613ved.37.1351573227808; Mon, 29 Oct 2012 22:00:27 -0700 (PDT) Received: by 10.58.239.66 with HTTP; Mon, 29 Oct 2012 22:00:27 -0700 (PDT) In-Reply-To: <20121028214917.3500f21e@narn.knownspace> References: <20121028214917.3500f21e@narn.knownspace> Date: Tue, 30 Oct 2012 00:00:27 -0500 Message-ID: Subject: Re: Help on PMU work From: Super Bisquit To: Justin Hibbits Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 05:00:29 -0000 Right now, I'm stuck at "Need to replace the video cable on my G4 titanium." On 10/28/12, Justin Hibbits wrote: > I'm working on getting PMU sleep and speed control working for at least > the MPC7455-based PowerBooks and running into a snag. I've got it > changing speed, but it immediately panics. > > The method for PMU speed change is as follows: > * Tell the PMU to change PLL inputs > * Save all the needed registers (methinks I missed one or two critical > ones, but can't figure out which) > * Flush and disable the caches > * Disable NAP and enable SLEEP in HID0 > * Sleep via MSR > * PMU asserts #HRESET, and jumps to where you want (write address at > 0x80). > * Recover and restore all the necessary registers > * Go on your merry way. > > I'm getting stuck on the "Go on your merry way" part. When it > recovers, I get a 'panic: null_fetch_syscall_args'. curthread is the > same going into and coming out of reset/restore, verified with a printf. > > Any help tracking this down is greatly appreciated. I'll be at MeetBSD > with my PowerBook, and hope to get it finished either before then, or > by the time I leave. > > - Justin